Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 85022 invoked from network); 14 Dec 2010 02:02:28 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Dec 2010 02:02:28 -0000 Received: (qmail 98494 invoked by uid 500); 14 Dec 2010 02:02:27 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 98427 invoked by uid 500); 14 Dec 2010 02:02:27 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 98420 invoked by uid 99); 14 Dec 2010 02:02:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Dec 2010 02:02:27 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Dec 2010 02:02:25 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oBE223m9009414 for ; Tue, 14 Dec 2010 02:02:03 GMT Message-ID: <24479594.105501292292122993.JavaMail.jira@thor> Date: Mon, 13 Dec 2010 21:02:02 -0500 (EST) From: "Han Hong Fang (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Commented: (GERONIMODEVTOOLS-689) NullPointerException when publishing with Geronimo Eclipse Plugin v2.1.7 In-Reply-To: <613217.105431292291880746.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12971124#action_12971124 ] Han Hong Fang commented on GERONIMODEVTOOLS-689: ------------------------------------------------ Hi again, after a little bit of debugging, it seems to me that the problem is that I've deleted ejbModule/META-INF/openejb-jar.xml in the SampleEJB project, as is suggested in https://cwiki.apache.org/GMOxDOC21/5-minute-tutorial-on-enterprise-application-development-with-eclipse-and-geronimo.html Since that file is gone, the check file.getName().equals(GeronimoUtils.OPENEJB_PLAN_NAME) && file.exists() in DependencyHelper Line 538 is false, so "environment" in DependencyHelper Line 442 is never set for the EJB project. Did I misread the instructions to delete ejbModule/META-INF/openejb-jar.xml? By the way, a NullpointerException also occurs if one adds a "Utility Project" to the EAR (since there's only handling for Web, EJB, EAR, RAR and AppClient modules). Maybe I'm simply misunderstanding how Geronimo works (I've been using JBoss for a long time, and have just started using Geronimo). Best regards, Martin > NullPointerException when publishing with Geronimo Eclipse Plugin v2.1.7 > ------------------------------------------------------------------------ > > Key: GERONIMODEVTOOLS-689 > URL: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-689 > Project: Geronimo-Devtools > Issue Type: Bug > Components: eclipse-plugin > Affects Versions: 2.1.7 > Reporter: Han Hong Fang > Assignee: Delos Dai > > Hi everybody, > I just updated to Geronimo Eclipse Plugin v2.1.7, and now I get a NullpointerException whenever I try to publish to the server: > java.lang.NullPointerException > at java.util.concurrent.ConcurrentHashMap.put(Unknown Source) > at org.apache.geronimo.st.core.internal.DependencyHelper.getEnvironment(DependencyHelper.java:442) > at org.apache.geronimo.st.core.internal.DependencyHelper.reorderModules(DependencyHelper.java:109) > at org.apache.geronimo.st.core.GeronimoServerBehaviourDelegate.publishModules(GeronimoServerBehaviourDelegate.java:243) > at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:948) > at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:775) > at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:2889) > at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:337) > at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) > The project I used for testing is the one described here: > https://cwiki.apache.org/GMOxDOC21/5-minute-tutorial-on-enterprise-application-development-with-eclipse-and-geronimo.html > The exception disappears when switching back to 2.1.6 of the eclipse plugin > I'm using Eclipse 3.6.1 > Any ideas? > Martin -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.