Skip to main content

JXTA on jikes RVM

9 replies [Last post]
potapova
Offline
Joined: 2008-02-29
Points: 0

Ho all.
We are working on project devoted to perfomance of JXTA on different JVMs.
It is common knowledge that JXTA works fine on sun JVM. We have used it and all was ok.
But then we tried to run JXTA shell using Jikes RVM we receivd a nullpointer exeption while creating a pipe.
We have tried to run tutorial using Jikes RVM. Those examples which are not related to pipes worked perfectly. As for pipes or groups creation ---we still have got nullpointer exeption.
Does anybody work with JXTA in Jiles RVM or some other JVM?
Could you tell us if it is possible to run JXTA on other JVM

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
potapova
Offline
Joined: 2008-02-29
Points: 0

THANK YOU!!!!
WE HAVE INSTALL JRE IBM AND IT WORKS!!!!!

potapova
Offline
Joined: 2008-02-29
Points: 0

we have used jars as the inherent part of classpaths,
but we have compiled something using javac

davjoh
Offline
Joined: 2007-07-18
Points: 0

Hello again...

> As for specification ---- at a first sight yes --the
> spec is the same.
> But perhaps we have missed something.

Eh hem, yes maybe you have missed something. A simple look at the Jikes RVM FAQ it says....

"The Classpath libraries, which Jikes RVM uses, currently does not provide a complete Java implementation; Swing and AWT coverage is particularly incomplete. Jikes RVM also currently does not support other features such as bytecode verification."

So chances are JXTA is implemented using Java stuff that isn't implemented by Jikes RVM.

potapova
Offline
Joined: 2008-02-29
Points: 0

we have solved classpath problem.
user just should use not the env but special key such as
rvm -classpath=/.....jar.

potapova
Offline
Joined: 2008-02-29
Points: 0

werry helpful

davjoh
Offline
Joined: 2007-07-18
Points: 0

Well.... the obvious first question, is what is your exact error from the stack trace??

Next, is Jikes RVM fully compatible with the Sun Java specs??

Yes, it is absolutely possible to run JXTA on other JVMs. I've run JXTA on the IBM JRE.

potapova
Offline
Joined: 2008-02-29
Points: 0

Thank you so much for your answer.
The error is in stack trace:
Feb 28, 2008 11:16:02 PM net.jxta.impl.peergroup.StdPeerGroup isCompatible
WARNING: Failure handling compatibility statement
java.lang.NullPointerException
at net.jxta.impl.peergroup.StdPeerGroup.isCompatible(StdPeerGroup.java:426)
at net.jxta.impl.peergroup.GenericPeerGroup$1.compatible(GenericPeerGroup.java:148)
at net.jxta.impl.loader.RefJxtaLoader.findClass(RefJxtaLoader.java:254)
at net.jxta.impl.loader.RefJxtaLoader.findModuleImplAdvertisement(RefJxtaLoader.java:350)
at net.jxta.impl.peergroup.StdPeerGroup.getDefaultModuleImplAdvertisement(StdPeerGroup.java:325)
at net.jxta.impl.peergroup.StdPeerGroup.(StdPeerGroup.java:143)
at org.jikesrvm.classloader.VM_Class.initialize(VM_Class.java:1963)
at org.jikesrvm.runtime.VM_Runtime.initializeClassForDynamicLink(VM_Runtime.java:572)
at org.jikesrvm.classloader.VM_TableBasedDynamicLinker.resolveMember(VM_TableBasedDynamicLinker.java:72)
at org.jikesrvm.classloader.VM_TableBasedDynamicLinker.resolveMember(VM_TableBasedDynamicLinker.java:61)
at net.jxta.peergroup.WorldPeerGroupFactory.getDefaultWorldPeerGroupClass(WorldPeerGroupFactory.java:237)
at net.jxta.peergroup.WorldPeerGroupFactory.(WorldPeerGroupFactory.java:151)
at net.jxta.peergroup.NetPeerGroupFactory.(NetPeerGroupFactory.java:126)
at test.main(test.java:52)

As for specification ---- at a first sight yes --the spec is the same.
But perhaps we have missed something.

davjoh
Offline
Joined: 2007-07-18
Points: 0

What version of JXTA?

What Java version does Jikes RVM implement? e.g. 1.4, 1.5, 1.6?

Also, are you compiling JXTA for Jikes RVM, or are you just using pre-built JXTA .jars downloaded from the project site?

potapova
Offline
Joined: 2008-02-29
Points: 0

we have used Jikes only as JVM. I mean we used it for just runтing. For compiling we have used javac.
As for version we have used JXTA 2.5.
Jikes was 1.9.2.
Btw, is JRE IBM is free?