google-code-export / appengine-jruby

Automatically exported from code.google.com/p/appengine-jruby
0 stars 0 forks source link

Imposible to do POST requests #76

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I've already tried this in two diferent clean Win 7 Pro envs and the result
is the same.

After install Ruby 1.8.6 (One-Click Installer):

1. gem update --system
2. gem install rails
3. gem install google-appengine 
4. gem install rails_dm_datastore 
5. gem install activerecord-nulldb-adapter
6. curl -O
http://appengine-jruby.googlecode.com/hg/demos/rails2/rails2_appengine.rb
7. ruby rails2_appengine.rb (previously downloaded)
8. rails myproj
9. chmod myproj
10. ruby script/generate dd_model MyModel f1:string f2:float f3:float
f4:float f5:integer f6:integer f7:integer -f
11. ruby script/generate scaffold MyModel f1:string f2:float f3:float
f4:float f5:integer f6:integer f7:integer -f --skip-migration
12. dev_appserver.rb -p 3000 .

At this point, I manually test the scaffold in
http://localhost:3000/locations. The index is OK, then I create a new
registry with the generated form, everything's fine, but when I try to
create a second one, I get a "java.lang.RuntimeException: DummyDynamicScope
should never be used for backref storage" in the console.

As far as I read this is a won't-fix behavior in JRuby 1.4.1, but it's
converted to a debug only warning in 1.5.0, so I proceed to install the pre
release.

13. gem install appengine-jruby-jars --pre

With this, that exception is solved and everything works great... until I
move the project to the GAE server.

14. ruby appcfg.rb update .

And now, in http://myproj.appspot.com/locations, again, the index is fine,
also the new form, but in the moment that I submit it with valid data, I
get a 500 error: "java.lang.IllegalAccessException: Reflection is not
allowed on public int".

As I said, this behavior is not present in the local SDK.

In both cases, I'm completely unable to post anything.

I'm pretty sure that I didn't miss any instruction, so I'm tempted to think
that this is a bug (maybe from JRuby and not yours, but anyway I'll left it
in here).

I attach the logs that I get in the local server in the case of the
DummyDynamicScope exception and in the remote server in the case of the
Reflection exception (truncated by the GAE log viewer).

What should I do now? Any hint would be wellcome. Thanks!

Original issue reported on code.google.com by inbox%jo...@gtempaccount.com on 14 May 2010 at 7:51

Attachments:

GoogleCodeExporter commented 9 years ago
By the way, this is what I have:

=============================================
App Environment
=============================================
Ruby version        1.8.7 (java)
RubyGems        disabled
Rack version        1.1
Rails version       2.3.5
Action Pack version 2.3.5
Active Support version  2.3.5
DataMapper version  0.10.2
Environment     production
JRuby Runtime version   1.5.0.pre
JRuby-Rack version  0.9.7
AppEngine SDK version   Google App Engine/1.3.3
AppEngine APIs version  0.0.15

=============================================
Local gems
=============================================
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activerecord-nulldb-adapter (0.2.0)
activeresource (2.3.5)
activesupport (2.3.5)
addressable (2.1.2)
appengine-apis (0.0.15)
appengine-jruby-jars (0.0.8.pre, 0.0.7)
appengine-rack (0.0.8)
appengine-sdk (1.3.3.1)
appengine-tools (0.0.12)
bundler08 (0.8.5)
dm-appengine (0.0.8)
dm-ar-finders (0.10.2)
dm-core (0.10.2)
dm-timestamps (0.10.2)
dm-validations (0.10.2)
extlib (0.9.14)
fxri (0.3.7, 0.3.6)
google-appengine (0.0.12)
hpricot (0.8.2 x86-mswin32, 0.6 mswin32)
jruby-rack (0.9.8, 0.9.7)
log4r (1.1.7, 1.0.5)
rack (1.1.0, 1.0.1)
rails (2.3.5)
rails_appengine (0.0.3)
rails_dm_datastore (0.2.9)
rake (0.8.7, 0.7.3)
rubygems-update (1.3.7, 1.3.6)
rubyzip (0.9.4)
sources (0.0.1)
win32-api (1.4.6 x86-mswin32-60, 1.0.4 mswin32)
win32-clipboard (0.5.2, 0.4.3)
win32-dir (0.3.6, 0.3.2)
win32-eventlog (0.5.2, 0.4.6)
win32-file (0.6.3, 0.5.4)
win32-file-stat (1.3.4, 1.2.7)
win32-process (0.6.2, 0.5.3)
win32-sapi (0.1.5, 0.1.4)
win32-sound (0.4.2, 0.4.1)
windows-api (0.4.0, 0.2.0)
windows-pr (1.0.9, 0.7.2)

Original comment by inbox%jo...@gtempaccount.com on 14 May 2010 at 8:02