Return-Path: Delivered-To: apmail-openejb-users-archive@www.apache.org Received: (qmail 13907 invoked from network); 10 Oct 2007 16:04:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Oct 2007 16:04:42 -0000 Received: (qmail 42513 invoked by uid 500); 10 Oct 2007 15:34:52 -0000 Delivered-To: apmail-openejb-users-archive@openejb.apache.org Received: (qmail 42495 invoked by uid 500); 10 Oct 2007 15:34:52 -0000 Mailing-List: contact users-help@openejb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openejb.apache.org Delivered-To: mailing list users@openejb.apache.org Received: (qmail 42480 invoked by uid 99); 10 Oct 2007 15:34:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2007 08:34:51 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [195.46.70.174] (HELO mx.whitestein.com) (195.46.70.174) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2007 15:34:52 +0000 Received: from mail.whitestein.com (unknown [10.240.100.2]) by mx.whitestein.com (Postfix) with ESMTP id 7629E396A78 for ; Wed, 10 Oct 2007 17:34:30 +0200 (CEST) Received: from localhost (mail [10.240.100.2]) by mail.whitestein.com (Postfix) with ESMTP id 655B595C006; Wed, 10 Oct 2007 17:34:09 +0200 (CEST) Received: from mail.whitestein.com ([10.240.100.2]) by localhost (mail [10.240.100.2]) (amavisd-new, port 10024) with ESMTP id 19424-05; Wed, 10 Oct 2007 17:34:09 +0200 (CEST) Received: from [10.240.101.110] (moto.dynip.whitestein.net [10.240.101.110]) by mail.whitestein.com (Postfix) with ESMTP id 40C0E95C003 for ; Wed, 10 Oct 2007 17:34:09 +0200 (CEST) Subject: Re: Exception: NullPointerException From: Martin Vysny To: users@openejb.apache.org In-Reply-To: <1192003454.6845.2.camel@moto> References: <1191999925.6615.5.camel@moto> <1192003454.6845.2.camel@moto> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-2JJsTTG6z2UxhaZdDat8" Organization: Whitestein Technologies Date: Wed, 10 Oct 2007 17:34:30 +0200 Message-Id: <1192030470.6845.4.camel@moto> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at whitestein.com X-Virus-Checked: Checked by ClamAV on apache.org --=-2JJsTTG6z2UxhaZdDat8 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2007-10-10 at 10:04 +0200, Martin Vysny wrote: > On Wed, 2007-10-10 at 09:05 +0200, Martin Vysny wrote: > > Hi guys, > > I tried to deploy an EJB2.1 project in OpenEJB, (btw EJB2.0 descripto= r > > is rejected by OpenEJB: validation error - the > > element in is rejected), > > but I get this error: > >=20 > > ERROR - FATAL ERROR: Unknown error in Assembler. Please send the > > following stack trace and this message to user@openejb.org : > > java.lang.NullPointerException > > at java.lang.String.compareTo(String.java:998) > > at java.lang.String.compareTo(String.java:90) > > at java.util.TreeMap.compare(TreeMap.java:1093) > > at java.util.TreeMap.getEntry(TreeMap.java:347) > > at java.util.TreeMap.get(TreeMap.java:265) > > at > > org.apache.openejb.config.JndiEncInfoBuilder.initJndiReferences(JndiEnc= InfoBuilder.java:84) > > at > > org.apache.openejb.config.ConfigurationFactory.configureApplication(Con= figurationFactory.java:397) > > at > > org.apache.openejb.config.ConfigurationFactory.configureApplication(Con= figurationFactory.java:285) > > at > > org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(= ConfigurationFactory.java:268) > > at > > org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:206= ) > > at org.apache.openejb.OpenEJB$Instance.(OpenEJB.java:149) > > at org.apache.openejb.OpenEJB.init(OpenEJB.java:293) > > at org.apache.openejb.OpenEJB.init(OpenEJB.java:272) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja= va:39) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso= rImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:585) > > at > > org.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36) > > at > > org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialC= ontextFactory.java:59) > > at > > org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(= LocalInitialContextFactory.java:45) > > at > > javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667= ) > > at > > javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247) > > at javax.naming.InitialContext.init(InitialContext.java:223) > > at javax.naming.InitialContext.(InitialContext.java:197) > > at org.acme.FriendlyPersonTest.setUp(FriendlyPersonTest.java:41) > > at junit.framework.TestCase.runBare(TestCase.java:128) > > at junit.framework.TestResult$1.protect(TestResult.java:110) > > at junit.framework.TestResult.runProtected(TestResult.java:128) > > at junit.framework.TestResult.run(TestResult.java:113) > > at junit.framework.TestCase.run(TestCase.java:120) > > at junit.framework.TestSuite.runTest(TestSuite.java:228) > > at junit.framework.TestSuite.run(TestSuite.java:223) > > at > > org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JU= nit3TestReference.java:128) > > at > > org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.j= ava:38) > > at > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteT= estRunner.java:460) > > at > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteT= estRunner.java:673) > > at > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRu= nner.java:386) > > at > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestR= unner.java:196) > >=20 > > FATAL - OpenEJB has encountered a fatal error and cannot be started: > > Assembler failed to build the container system. > > org.apache.openejb.OpenEJBException: java.lang.NullPointerException: > > null > > at > > org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:220= ) > > at org.apache.openejb.OpenEJB$Instance.(OpenEJB.java:149) > > at org.apache.openejb.OpenEJB.init(OpenEJB.java:293) > > at org.apache.openejb.OpenEJB.init(OpenEJB.java:272) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja= va:39) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso= rImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:585) > > at > > org.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36) > > at > > org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialC= ontextFactory.java:59) > > at > > org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(= LocalInitialContextFactory.java:45) > > at > > javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667= ) > > at > > javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247) > > at javax.naming.InitialContext.init(InitialContext.java:223) > > at javax.naming.InitialContext.(InitialContext.java:197) > > at org.acme.FriendlyPersonTest.setUp(FriendlyPersonTest.java:41) > > at junit.framework.TestCase.runBare(TestCase.java:128) > > at junit.framework.TestResult$1.protect(TestResult.java:110) > > at junit.framework.TestResult.runProtected(TestResult.java:128) > > at junit.framework.TestResult.run(TestResult.java:113) > > at junit.framework.TestCase.run(TestCase.java:120) > > at junit.framework.TestSuite.runTest(TestSuite.java:228) > > at junit.framework.TestSuite.run(TestSuite.java:223) > > at > > org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JU= nit3TestReference.java:128) > > at > > org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.j= ava:38) > > at > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteT= estRunner.java:460) > > at > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteT= estRunner.java:673) > > at > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRu= nner.java:386) > > at > > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestR= unner.java:196) > > Caused by: java.lang.NullPointerException > > at java.lang.String.compareTo(String.java:998) > > at java.lang.String.compareTo(String.java:90) > > at java.util.TreeMap.compare(TreeMap.java:1093) > > at java.util.TreeMap.getEntry(TreeMap.java:347) > > at java.util.TreeMap.get(TreeMap.java:265) > > at > > org.apache.openejb.config.JndiEncInfoBuilder.initJndiReferences(JndiEnc= InfoBuilder.java:84) > > at > > org.apache.openejb.config.ConfigurationFactory.configureApplication(Con= figurationFactory.java:397) > > at > > org.apache.openejb.config.ConfigurationFactory.configureApplication(Con= figurationFactory.java:285) > > at > > org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(= ConfigurationFactory.java:268) > > at > > org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:206= ) > > ... 28 more > >=20 > > I'm using OpenEJB 3.0-beta-1, it seems that the moduleID is not set > > correctly at DeploymentLoader:372. I'll try to fix it somehow - I'll > > post later. > >=20 >=20 > Okay, changing the line to > EjbModule ejbModule =3D new EjbModule(classLoader, > jarFile.getName(), jarFile.getAbsolutePath(), ejbJar, null); > seems to did the trick. >=20 >=20 > >=20 https://issues.apache.org/jira/browse/OPENEJB-707 --=20 Mgr. Martin Vysny | mvy@whitestein.com Software Engineer Whitestein Technologies s.r.o | www.whitestein.com Panenska 28 | 811 03 Bratislava | Slovak Republic Main +421 2 5443-5502 | Direct +421 2 5930-0717 --=-2JJsTTG6z2UxhaZdDat8 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBHDPEGxMY7ornrPO0RAmvtAJ0Zue0LGofjdS2iL1s6ytOILQ2LPwCeL/EP Zhm7BDihEuq4ZjGbItbhL3c= =7gWM -----END PGP SIGNATURE----- --=-2JJsTTG6z2UxhaZdDat8--