Hi Ron,

The 1.5 requirement is for Neo4j kernel, the core of embedded Neo4j. Neo4j
HA actually requires JDK 6, and has not been tested on other JDKs than
Sun/OpenJDK. The Exception you are reporting is in fact from the use of a
Sun specific class, it is going to be resolved when we get around to more
testing on other JDKs, we are probably going to have to find classes that do
similar things on the other JDKs. This particular use is optional though,
and this bug will most likely be fixed today (and released in 1.2 final).

As a quick fix for now to get you further: The classes where you are getting
these exceptions are loaded by the management extensions to Neo4j, if you
remove the neo4j-management jar from your classpath you should be able to
procede (although without JMX introspection).

I'll let you know when this issue has been fixed.

On a separate note to Peter: J9 does not support Mac OS X, you will need to
start up a Linux VM for that.

-tobias

On Thu, Dec 23, 2010 at 2:14 PM, Ron van Weverwijk <[email protected]>wrote:

>
> Hi all,
>
> I'm trying to use NEO4J-HA on an IBM websphere 6 application server (the
> JDK version is 1.5).
> The NEO4J website states that JDK 1.5 is required to use NEO4J.
> Unfortunately the NEO4J-HA module is compiled with 1.6. Which results in
> the famous java.lang.UnsupportedClassVersionError.
>
> We fixed this by setting the source and target elements in the pom to 1.5.
> After that we run to the next problem.
> The class: org.neo4j.management.impl.JmxExtension is using some SUN
> specific JMX classes like sun.management.ConnectorAddressLink. This causes
> problems because these classes are not available on IBM. We are getting the
> following exception:
> INFO: Failed to load local JMX configuration.
> java.lang.reflect.InvocationTargetException
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
>        at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>        at java.lang.reflect.Method.invoke(Method.java:618)
>        at
>
> org.neo4j.management.impl.JmxExtension$JmxData.<init>(JmxExtension.java:130)
>        at
> org.neo4j.management.impl.JmxExtension.loadBeans(JmxExtension.java:102)
>        at
> org.neo4j.management.impl.JmxExtension.load(JmxExtension.java:63)
>        at
>
> org.neo4j.kernel.KernelExtension$KernelData.loadAll(KernelExtension.java:171)
>        at
> org.neo4j.kernel.EmbeddedGraphDbImpl$2.load(EmbeddedGraphDbImpl.java:165)
>        at
> org.neo4j.kernel.EmbeddedGraphDbImpl.<init>(EmbeddedGraphDbImpl.java:170)
>        at
>
> org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:81)
>        at
>
> org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:65)
>        at
> nl.kvk.htr.fitnesse.triggers.StartLocalHaDb.main(StartLocalHaDb.java:23)
> Caused by: java.lang.UnsatisfiedLinkError:
> sun/misc/Perf.registerNatives()V
>        at sun.misc.Perf.<clinit>(Perf.java:540)
>        at java.lang.J9VMInternals.initializeImpl(Native Method)
>        at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
>        at
>
> sun.management.ConnectorAddressLink.importFrom(ConnectorAddressLink.java:81)
>        ... 13 more
>
> Are there some people with experience on running the NEO4J project on the
> IBM JDK 1.5?
>
> Thanks a lot in advance,
> Ron
>
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Tobias Ivarsson <[email protected]>
Hacker, Neo Technology
www.neotechnology.com
Cellphone: +46 706 534857
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to