activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "alex.hollerith" <a...@hollerith.net>
Subject NPE in console.Main
Date Wed, 21 Oct 2009 12:10:17 GMT

OS: CentOS release 4.6 (Final)
Java: jdk1.6.0_02
AMQ version Version: 5.3.0
Started via 32-bit Java wrapper.

camel and jetty imports enabled:
   <import resource="camel.xml"/>
   <import resource="jetty.xml"/>

I had to use endorsement to make it use Jax 2.1.

I naively I tried the following, since I am quite lazy:
-Djava.endorsed.dirs=/opt/apache-activemq-5.3.0/lib


And that produces:
INFO   | jvm 1    | 2009/10/21 12:32:30 | WrapperSimpleApp: Encountered an
error running main: java.lang.NullPointerException
INFO   | jvm 1    | 2009/10/21 12:32:30 | java.lang.NullPointerException
INFO   | jvm 1    | 2009/10/21 12:32:30 |       at
org.apache.activemq.console.Main.canUseExtdir(Main.java:285)
INFO   | jvm 1    | 2009/10/21 12:32:30 |       at
org.apache.activemq.console.Main.main(Main.java:81)
INFO   | jvm 1    | 2009/10/21 12:32:30 |       at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2009/10/21 12:32:30 |       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
INFO   | jvm 1    | 2009/10/21 12:32:30 |       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
INFO   | jvm 1    | 2009/10/21 12:32:30 |       at
java.lang.reflect.Method.invoke(Method.java:597)
INFO   | jvm 1    | 2009/10/21 12:32:30 |       at
org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
INFO   | jvm 1    | 2009/10/21 12:32:30 |       at
java.lang.Thread.run(Thread.java:619)
STATUS | wrapper  | 2009/10/21 12:32:32 | <-- Wrapper Stopped

Copying the Jax API lib into a directory and then using:
-Djava.endorsed.dirs=/opt/apache-activemq-5.3.0/jaxb

works perfectly.

Just thought I'll share that finding.

Cheers
A.
-- 
View this message in context: http://www.nabble.com/NPE-in-console.Main-tp25991268p25991268.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message