michaelwiles / google-gin

Automatically exported from code.google.com/p/google-gin
Apache License 2.0
0 stars 0 forks source link

Unable to run hosted mode due to byte code incompatibility with the JDK of WAS 6.1 #140

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I use GWT with Gin integration under a Websphere Application Server 6.1 
environnement.

When I try to launch the hosted mode (GWT 2.2) I got this error at start time : 

WARNING: Use on a JRE prior to version 1.6 is deprecated
Loading modules
   com.jcdecaux.dynamo.presentation.Dynamo
      Loading inherited module 'com.google.gwt.inject.Inject'
         [ERROR] Unexpected error while processing XML
java.lang.UnsupportedClassVersionError: 
(com/google/gwt/inject/rebind/GinjectorGenerator) bad major version at offset=6

I think gin-1.5-post-gwt-2.2.jar has been compiled using a JDK 6, so my JDK 
(WAS 6.1) is not compatible with that compiled code.

Can you consider a recompilation of google-gin to keep compatibility with older 
 than 1.6 ?

I've attached the full stack trace in StackTrace.txt

Original issue reported on code.google.com by mat.boni...@gmail.com on 22 Feb 2011 at 4:03

Attachments:

GoogleCodeExporter commented 9 years ago
Issue 141 has been merged into this issue.

Original comment by aragos on 22 Feb 2011 at 4:53

GoogleCodeExporter commented 9 years ago
I'll see what I can do. :)

Original comment by aragos on 22 Feb 2011 at 4:54

GoogleCodeExporter commented 9 years ago
Can you try out the attached jar and tell me whether it works? I compiled it 
for target "1.5" so presumably it should be compatible. If it works I'll update 
the release.

Original comment by aragos on 22 Feb 2011 at 9:40

Attachments:

GoogleCodeExporter commented 9 years ago
Hi, thanks for your quick answer but it seems there is no difference between 
this jar and the orginal (packaged) jar.

Further, I've checked the class file (GinjectorGenerator.class) using an 
hexadecimal editor and I get the same major version :
   CA FE BA BE 00 00 00 32

00 00 00 32 means JDK 1.6

Original comment by mat.boni...@gmail.com on 23 Feb 2011 at 7:32

GoogleCodeExporter commented 9 years ago
Ah, I must have forgotten to clean my output directory or something last 
time... here is yet another jar, this one shows "ca fe ba be 00 00 00 31", 
which should be JDK 1.5. Let me know if this is better!

Original comment by aragos on 24 Feb 2011 at 9:03

Attachments:

GoogleCodeExporter commented 9 years ago
Since no one complained I have update the download file with the 1.5 compatible 
version.

Original comment by aragos on 28 Feb 2011 at 8:32