Hi,
Ruby 1.8.6 (one-click)
Camping 1.5
I'd submit this as a bug, but the tracker says I'm forbidden, so here
you go.
The first problem is that the sql to create the sessions table is
broken. This is what it tried to send:
CREATE TABLE sessions (
id NUMBER(38) NOT NULL PRIMARY KEY (38), --> Problem here
hashid VARCHAR2(32),
created_at DATE,
ivars CLOB DEFAULT empty_clob()
)
The problem is that second "(38)" after "PRIMARY KEY". So, I removed
that and created the table manually.
The next problem was a missing Oracle sequence (which I had no idea was
required, but ok). I figured out (by stepping through oci8.rb) that the
name of the sequence should be "sessions_seq". For that I used the
following snippet:
CREATE SEQUENCE ACS_SUPPORT.SESSIONS_SEQ
START WITH 50
MAXVALUE 999999999999999999999999999
MINVALUE 0
NOCYCLE
CACHE 50
NOORDER;
Unfortunately, there are still problems, and here's where I'm not sure
what's happening:
[2007-10-04 15:53:24] INFO WEBrick 1.3.1
[2007-10-04 15:53:24] INFO ruby 1.8.6 (2007-03-13) [i386-mswin32]
[2007-10-04 15:53:24] INFO WEBrick::HTTPServer#start: pid=1736
port=3301
[2007-10-04 15:53:31] ERROR NoMethodError: undefined method `[]=' for
nil:NilClass
C:/ruby/lib/ruby/gems/1.8/gems/camping-1.5/lib/camping/session.rb:21:in
`[]='
C:/ruby/lib/ruby/gems/1.8/gems/camping-1.5/lib/camping/session.rb:110:in
`service'
(eval):44:in `run'
C:/ruby/lib/ruby/gems/1.8/gems/camping-1.5/lib/camping/reloader.rb:117:i
n `run'
C:/ruby/lib/ruby/gems/1.8/gems/camping-1.5/lib/camping/webrick.rb:45:in
`service'
C:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
C:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
C:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
C:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
C:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
C:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
C:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
C:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
C:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
C:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
C:/ruby/lib/ruby/gems/1.8/gems/camping-1.5/bin/camping:244
C:/ruby/bin/camping:16:in `load'
C:/ruby/bin/camping:16
So, for whatever reason, it's not pulling the sessions_seq.nextval
properly. At least, that's my guess. I haven't debugged further as I
sorta lost energy at that point.
Any ideas?
Regards,
Dan
This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and destroy
all copies of the communication and any attachments.
_______________________________________________
Camping-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/camping-list