Search the web
Sign In
New User? Sign Up
JSX-ideas · Ideas on Java Serialization for XML
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
How to let JSX run on Java 1.5 or higher?   Message List  
Reply | Forward Message #2184 of 2204 |
Re: [JSX] How to let JSX run on Java 1.5 or higher?

Hi,

Officially, we don't support the GPL version, and work stopped on the GPL codebase before Java 1.5 was released.
(The commercial version of course supports Java 1.5 and 1.6, but that's not relevant here).


Here's what I can do:

1. send you the latest GPL version of JSX, which was for Java 1.4 (in Aug 2004). It also works for Java 1.5. I'll send the jar directly to your address in a separate email.

2. you'll need to modify to check for the version of Java, so it accepts Java 1.5. It's a simple change. The file is:
  MagicClassFactory.java
which is in the "JSX/magic" directory of the jar.

3. WARNING: This will work for most classes, but some classes will not be handled correctly. For example, the new typesafe enums in Java 1.5 require extra coding elsewhere.


It maybe simpler for you to switch to another project for XML serialization; or you could update the old GPL version of JSX as you go along. It's up to you.

I hope this is helpful to you.


cheers,
Brendan

On 22/06/07, Juan Carlos Sanchez Recio < tupijallegar@...> wrote:

Hello,

I am working on a GPL project which uses the old GPL JSX version, how coud solve this problem:

---ATTENTION!---  JSX could not recognize your implementation of java, which is:
        implVendor='Sun Microsystems Inc.'
        specVersion='1.5'
        implVersion='1.5.0_06'
Please post this information to: jsx-ideas@yahoogroups.com
In the meantime, JSX will try to use the standard implementation for Java 1.3 - which will probably work
Exception in thread "main" java.lang.InternalError: java.lang.NoSuchMethodException: java.io.ObjectInputStream

.allocateNewObject(java.lang.Class, java.lang.Class)
        at JSX.magic.MagicClass13.<init>(MagicClass13.java:44)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at java.lang.Class.newInstance0(Class.java:350)
        at java.lang.Class.newInstance(Class.java:303)
        at JSX.magic.MagicClassFactory.newInstance(MagicClassFactory.java:88)
        at JSX.XMLDeserialize.<clinit>(XMLDeserialize.java:111)
        at JSX.ObjIn.<init>(ObjIn.java:54)
        at JSX.ObjIn.<init>(ObjIn.java:88)
        at jfreevote.shared.Serializer.deserialize(Serializer.java:83)
        at jfreevote.server.auth.censusdrivers.XMLFile_CensusDriver.Init(XMLFile_CensusDriver.java:73)
        at jfreevote.server.auth.CensusManager.<init>(CensusManager.java:65)
        at jfreevote.server.JFreeVoteServer.main(JFreeVoteServer.java:66)

Thanks,

J. Carlos Sanchez Recio




Sat Jun 23, 2007 3:33 am

egroups_yow
Offline Offline
Send Email Send Email

Forward
Message #2184 of 2204 |
Expand Messages Author Sort by Date

Hello, I am working on a GPL project which uses the old GPL JSX version, how coud ... is: implVendor='Sun Microsystems Inc.' specVersion='1.5' ...
Juan Carlos Sanchez R...
tupijallegar@...
Send Email
Jun 22, 2007
8:28 am

Hi, Officially, we don't support the GPL version, and work stopped on the GPL codebase before Java 1.5 was released. (The commercial version of course supports...
Brendan Macmillan
egroups_yow
Offline Send Email
Jun 23, 2007
3:33 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help