You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Tim Howe (JIRA)" <de...@geronimo.apache.org> on 2006/07/07 13:30:29 UTC

[jira] Created: (GERONIMO-2168) NPE when deploying RAR

NPE when deploying RAR
----------------------

         Key: GERONIMO-2168
         URL: http://issues.apache.org/jira/browse/GERONIMO-2168
     Project: Geronimo
        Type: Bug
    Security: public (Regular issues) 
    Versions: 1.1    
 Environment: Solaris 9 (Sparc), Java 1.5.0_06 (also appears in 1.4.2_05)
    Reporter: Tim Howe
    Priority: Critical


I've been using Geronimo 1.0, and now 1.1, as the app server for the
development of a JCA connector for our proprietary EIS and generally
been very happy with it.

I've had no problem running servlets, deploying WARs, and the like.
However, I've run into a problem deploying a RAR that I built.  I view
it as highly probably that there's a bug somewhere in my resource
adapter, but it seems to be triggering a bug in Geronimo, which appears
in both Java 1.4.2 and 1.5:

{quote}
{{23:52:38,091 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="com.celebrityresorts/rcc/0/rar?J2EEApplication=null,JCAConnectionFactory=Celebrity%20Resorts%20RCC%20development%20instance,JCAResource=com.celebrityresorts/rcc/0/rar,ResourceAdapter=com.celebrityresorts/rcc/0/rar,ResourceAdapterModule=com.celebrityresorts/rcc/0/rar,j2eeType=JCAManagedConnectionFactory,name=Celebrity%20Resorts%20RCC%20development%20instance"
java.lang.NullPointerException
        at java.io.PrintWriter.write(PrintWriter.java:401)
        at java.io.PrintWriter.print(PrintWriter.java:546)
        at java.io.PrintWriter.println(PrintWriter.java:683)
        at java.lang.Throwable.printStackTrace(Throwable.java:510)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.printException(GBeanInstance.java:1047)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:983)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:267)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:526)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:111)
        at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:146)
        at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:120)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:173)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:41)
        at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:251)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:292)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
        at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:540)}}
{quote}

and so on.  The only thing I can figure is that somehow the Exception
getting thrown is null, but I can't see how, as it seems to stem from

bq. {{throw new Exception("A reference has failed so construction can not complete");}}

so I'm very confused.  Of course it's also quite late for me and I may
be reading the stack trace wrong.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (GERONIMO-2168) NPE when deploying RAR

Posted by "Tim Howe (JIRA)" <de...@geronimo.apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMO-2168?page=comments#action_12419934 ] 

Tim Howe commented on GERONIMO-2168:
------------------------------------

Donald, thanks for your input.

I haven't yet.  Currently I'm rebuilding Geronimo from source and adding debugging statements.  However if I can't quickly and obviously find the problem I'll try that.  Regardless, I'll update with the results.

Are your suggestions related to known issues or just an attempt to get rid of possible trouble spots?

I thought I'd seen spaces in some of the names of sample applications, and Geronimo seems to be escaping them properly.  Where should they be removed from?  The deployment plan, ra.xml, or both?

As far as the version number, is Maven used for deployment as well?  I thought it was only used for building Geronimo itself.  In fact, before beginning to build from source, I didn't even have Maven installed.


> NPE when deploying RAR
> ----------------------
>
>          Key: GERONIMO-2168
>          URL: http://issues.apache.org/jira/browse/GERONIMO-2168
>      Project: Geronimo
>         Type: Bug
>     Security: public(Regular issues) 
>     Versions: 1.1
>  Environment: Solaris 9 (Sparc), Java 1.5.0_06 (also appears in 1.4.2_05)
>     Reporter: Tim Howe
>     Priority: Critical

>
> I've been using Geronimo 1.0, and now 1.1, as the app server for the
> development of a JCA connector for our proprietary EIS and generally
> been very happy with it.
> I've had no problem running servlets, deploying WARs, and the like.
> However, I've run into a problem deploying a RAR that I built.  I view
> it as highly probably that there's a bug somewhere in my resource
> adapter, but it seems to be triggering a bug in Geronimo, which appears
> in both Java 1.4.2 and 1.5:
> {quote}
> {{23:52:38,091 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="com.celebrityresorts/rcc/0/rar?J2EEApplication=null,JCAConnectionFactory=Celebrity%20Resorts%20RCC%20development%20instance,JCAResource=com.celebrityresorts/rcc/0/rar,ResourceAdapter=com.celebrityresorts/rcc/0/rar,ResourceAdapterModule=com.celebrityresorts/rcc/0/rar,j2eeType=JCAManagedConnectionFactory,name=Celebrity%20Resorts%20RCC%20development%20instance"
> java.lang.NullPointerException
>         at java.io.PrintWriter.write(PrintWriter.java:401)
>         at java.io.PrintWriter.print(PrintWriter.java:546)
>         at java.io.PrintWriter.println(PrintWriter.java:683)
>         at java.lang.Throwable.printStackTrace(Throwable.java:510)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.printException(GBeanInstance.java:1047)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:983)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:267)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:526)
>         at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:111)
>         at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:146)
>         at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:120)
>         at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:173)
>         at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:41)
>         at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:251)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:292)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:540)}}
> {quote}
> and so on.  The only thing I can figure is that somehow the Exception
> getting thrown is null, but I can't see how, as it seems to stem from
> bq. {{throw new Exception("A reference has failed so construction can not complete");}}
> so I'm very confused.  Of course it's also quite late for me and I may
> be reading the stack trace wrong.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (GERONIMO-2168) NPE when deploying RAR

Posted by "Tim Howe (JIRA)" <de...@geronimo.apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMO-2168?page=comments#action_12420162 ] 

Tim Howe commented on GERONIMO-2168:
------------------------------------

This is indeed strange.  I modified GBeanInstance.java like so:

{{    private String printException(Throwable t) {
        StringWriter stringWriter = new StringWriter();
        PrintWriter printWriter = new PrintWriter(stringWriter);
+        System.err.println("t = " + t);
+        System.err.println("printWriter = " + printWriter);
        t.printStackTrace(printWriter);
        printWriter.flush();
        return stringWriter.toString();
    }
}}

And here's the output I got on my console:

{{t = null
printWriter = java.io.PrintWriter@1aa3306
}}

I don't know how it's even possible to throw a null.  I wrote a small test class and attempting to throw null seems to result in a NullPointerException.  But somehow by the time this gets to printException(Throwable), it's null.  I've put more println()s in the exception handler itself to see if I can find anything further.


> NPE when deploying RAR
> ----------------------
>
>          Key: GERONIMO-2168
>          URL: http://issues.apache.org/jira/browse/GERONIMO-2168
>      Project: Geronimo
>         Type: Bug
>     Security: public(Regular issues) 
>     Versions: 1.1
>  Environment: Solaris 9 (Sparc), Java 1.5.0_06 (also appears in 1.4.2_05)
>     Reporter: Tim Howe
>     Priority: Critical

>
> I've been using Geronimo 1.0, and now 1.1, as the app server for the
> development of a JCA connector for our proprietary EIS and generally
> been very happy with it.
> I've had no problem running servlets, deploying WARs, and the like.
> However, I've run into a problem deploying a RAR that I built.  I view
> it as highly probably that there's a bug somewhere in my resource
> adapter, but it seems to be triggering a bug in Geronimo, which appears
> in both Java 1.4.2 and 1.5:
> {quote}
> {{23:52:38,091 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="com.celebrityresorts/rcc/0/rar?J2EEApplication=null,JCAConnectionFactory=Celebrity%20Resorts%20RCC%20development%20instance,JCAResource=com.celebrityresorts/rcc/0/rar,ResourceAdapter=com.celebrityresorts/rcc/0/rar,ResourceAdapterModule=com.celebrityresorts/rcc/0/rar,j2eeType=JCAManagedConnectionFactory,name=Celebrity%20Resorts%20RCC%20development%20instance"
> java.lang.NullPointerException
>         at java.io.PrintWriter.write(PrintWriter.java:401)
>         at java.io.PrintWriter.print(PrintWriter.java:546)
>         at java.io.PrintWriter.println(PrintWriter.java:683)
>         at java.lang.Throwable.printStackTrace(Throwable.java:510)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.printException(GBeanInstance.java:1047)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:983)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:267)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:526)
>         at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:111)
>         at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:146)
>         at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:120)
>         at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:173)
>         at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:41)
>         at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:251)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:292)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:540)}}
> {quote}
> and so on.  The only thing I can figure is that somehow the Exception
> getting thrown is null, but I can't see how, as it seems to stem from
> bq. {{throw new Exception("A reference has failed so construction can not complete");}}
> so I'm very confused.  Of course it's also quite late for me and I may
> be reading the stack trace wrong.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (GERONIMO-2168) NPE when deploying RAR

Posted by "Tim Howe (JIRA)" <de...@geronimo.apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-2168?page=all ]

Tim Howe updated GERONIMO-2168:
-------------------------------

    Attachment: ResourceException.patch

This patch to the specs resolves the issue.  It's against the 1.1 tag.  I should be able to produce one that's against the trunk later in the week if needed.


> NPE when deploying RAR
> ----------------------
>
>          Key: GERONIMO-2168
>          URL: http://issues.apache.org/jira/browse/GERONIMO-2168
>      Project: Geronimo
>         Type: Bug
>     Security: public(Regular issues) 
>     Versions: 1.1
>  Environment: Solaris 9 (Sparc), Java 1.5.0_06 (also appears in 1.4.2_05)
>     Reporter: Tim Howe
>     Assignee: Kevan Miller
>     Priority: Critical
>  Attachments: ResourceException.patch
>
> I've been using Geronimo 1.0, and now 1.1, as the app server for the
> development of a JCA connector for our proprietary EIS and generally
> been very happy with it.
> I've had no problem running servlets, deploying WARs, and the like.
> However, I've run into a problem deploying a RAR that I built.  I view
> it as highly probably that there's a bug somewhere in my resource
> adapter, but it seems to be triggering a bug in Geronimo, which appears
> in both Java 1.4.2 and 1.5:
> {quote}
> {{23:52:38,091 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="com.celebrityresorts/rcc/0/rar?J2EEApplication=null,JCAConnectionFactory=Celebrity%20Resorts%20RCC%20development%20instance,JCAResource=com.celebrityresorts/rcc/0/rar,ResourceAdapter=com.celebrityresorts/rcc/0/rar,ResourceAdapterModule=com.celebrityresorts/rcc/0/rar,j2eeType=JCAManagedConnectionFactory,name=Celebrity%20Resorts%20RCC%20development%20instance"
> java.lang.NullPointerException
>         at java.io.PrintWriter.write(PrintWriter.java:401)
>         at java.io.PrintWriter.print(PrintWriter.java:546)
>         at java.io.PrintWriter.println(PrintWriter.java:683)
>         at java.lang.Throwable.printStackTrace(Throwable.java:510)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.printException(GBeanInstance.java:1047)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:983)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:267)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:526)
>         at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:111)
>         at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:146)
>         at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:120)
>         at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:173)
>         at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:41)
>         at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:251)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:292)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:540)}}
> {quote}
> and so on.  The only thing I can figure is that somehow the Exception
> getting thrown is null, but I can't see how, as it seems to stem from
> bq. {{throw new Exception("A reference has failed so construction can not complete");}}
> so I'm very confused.  Of course it's also quite late for me and I may
> be reading the stack trace wrong.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (GERONIMO-2168) NPE when deploying RAR

Posted by "Kevan Miller (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-2168?page=all ]

Kevan Miller closed GERONIMO-2168.
----------------------------------

    Fix Version/s: 2.0-M1
                       (was: 1.2)
       Resolution: Duplicate

Dup of GERONIMO-1519

Tim, thanks a bunch for the patch. Apologies for letting it sit for so long. 

> NPE when deploying RAR
> ----------------------
>
>                 Key: GERONIMO-2168
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2168
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>    Affects Versions: 1.1
>         Environment: Solaris 9 (Sparc), Java 1.5.0_06 (also appears in 1.4.2_05)
>            Reporter: Tim Howe
>         Assigned To: Kevan Miller
>            Priority: Critical
>             Fix For: 2.0-M1
>
>         Attachments: ResourceException.patch
>
>
> I've been using Geronimo 1.0, and now 1.1, as the app server for the
> development of a JCA connector for our proprietary EIS and generally
> been very happy with it.
> I've had no problem running servlets, deploying WARs, and the like.
> However, I've run into a problem deploying a RAR that I built.  I view
> it as highly probably that there's a bug somewhere in my resource
> adapter, but it seems to be triggering a bug in Geronimo, which appears
> in both Java 1.4.2 and 1.5:
> {quote}
> {{23:52:38,091 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="com.celebrityresorts/rcc/0/rar?J2EEApplication=null,JCAConnectionFactory=Celebrity%20Resorts%20RCC%20development%20instance,JCAResource=com.celebrityresorts/rcc/0/rar,ResourceAdapter=com.celebrityresorts/rcc/0/rar,ResourceAdapterModule=com.celebrityresorts/rcc/0/rar,j2eeType=JCAManagedConnectionFactory,name=Celebrity%20Resorts%20RCC%20development%20instance"
> java.lang.NullPointerException
>         at java.io.PrintWriter.write(PrintWriter.java:401)
>         at java.io.PrintWriter.print(PrintWriter.java:546)
>         at java.io.PrintWriter.println(PrintWriter.java:683)
>         at java.lang.Throwable.printStackTrace(Throwable.java:510)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.printException(GBeanInstance.java:1047)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:983)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:267)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:526)
>         at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:111)
>         at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:146)
>         at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:120)
>         at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:173)
>         at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:41)
>         at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:251)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:292)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:540)}}
> {quote}
> and so on.  The only thing I can figure is that somehow the Exception
> getting thrown is null, but I can't see how, as it seems to stem from
> bq. {{throw new Exception("A reference has failed so construction can not complete");}}
> so I'm very confused.  Of course it's also quite late for me and I may
> be reading the stack trace wrong.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (GERONIMO-2168) NPE when deploying RAR

Posted by "Tim Howe (JIRA)" <de...@geronimo.apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMO-2168?page=comments#action_12420169 ] 

Tim Howe commented on GERONIMO-2168:
------------------------------------

I made the following change as well:

{{
            if (instance instanceof GBeanLifecycle) {
                checkIfShouldFail();
                try {
                    ((GBeanLifecycle) instance).doStart();
                } catch (Exception e) {
+                    System.err.println("e = " + e);
+                    e.printStackTrace();
                    stateReason = "the doStart method threw an exception. \n" + printException(e);
                    throw e;
                }
            }
}}

And on stderr out comes:

{{
e = null
}}

Then the e.printStackTrace() generates an NPE of course.  According to the Java spec this behavior shouldn't even be possible.  Does anyone have any thoughts?


> NPE when deploying RAR
> ----------------------
>
>          Key: GERONIMO-2168
>          URL: http://issues.apache.org/jira/browse/GERONIMO-2168
>      Project: Geronimo
>         Type: Bug
>     Security: public(Regular issues) 
>     Versions: 1.1
>  Environment: Solaris 9 (Sparc), Java 1.5.0_06 (also appears in 1.4.2_05)
>     Reporter: Tim Howe
>     Priority: Critical

>
> I've been using Geronimo 1.0, and now 1.1, as the app server for the
> development of a JCA connector for our proprietary EIS and generally
> been very happy with it.
> I've had no problem running servlets, deploying WARs, and the like.
> However, I've run into a problem deploying a RAR that I built.  I view
> it as highly probably that there's a bug somewhere in my resource
> adapter, but it seems to be triggering a bug in Geronimo, which appears
> in both Java 1.4.2 and 1.5:
> {quote}
> {{23:52:38,091 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="com.celebrityresorts/rcc/0/rar?J2EEApplication=null,JCAConnectionFactory=Celebrity%20Resorts%20RCC%20development%20instance,JCAResource=com.celebrityresorts/rcc/0/rar,ResourceAdapter=com.celebrityresorts/rcc/0/rar,ResourceAdapterModule=com.celebrityresorts/rcc/0/rar,j2eeType=JCAManagedConnectionFactory,name=Celebrity%20Resorts%20RCC%20development%20instance"
> java.lang.NullPointerException
>         at java.io.PrintWriter.write(PrintWriter.java:401)
>         at java.io.PrintWriter.print(PrintWriter.java:546)
>         at java.io.PrintWriter.println(PrintWriter.java:683)
>         at java.lang.Throwable.printStackTrace(Throwable.java:510)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.printException(GBeanInstance.java:1047)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:983)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:267)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:526)
>         at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:111)
>         at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:146)
>         at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:120)
>         at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:173)
>         at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:41)
>         at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:251)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:292)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:540)}}
> {quote}
> and so on.  The only thing I can figure is that somehow the Exception
> getting thrown is null, but I can't see how, as it seems to stem from
> bq. {{throw new Exception("A reference has failed so construction can not complete");}}
> so I'm very confused.  Of course it's also quite late for me and I may
> be reading the stack trace wrong.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (GERONIMO-2168) NPE when deploying RAR

Posted by "Kevan Miller (JIRA)" <de...@geronimo.apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-2168?page=all ]

Kevan Miller reassigned GERONIMO-2168:
--------------------------------------

    Assign To: Kevan Miller

> NPE when deploying RAR
> ----------------------
>
>          Key: GERONIMO-2168
>          URL: http://issues.apache.org/jira/browse/GERONIMO-2168
>      Project: Geronimo
>         Type: Bug
>     Security: public(Regular issues) 
>     Versions: 1.1
>  Environment: Solaris 9 (Sparc), Java 1.5.0_06 (also appears in 1.4.2_05)
>     Reporter: Tim Howe
>     Assignee: Kevan Miller
>     Priority: Critical

>
> I've been using Geronimo 1.0, and now 1.1, as the app server for the
> development of a JCA connector for our proprietary EIS and generally
> been very happy with it.
> I've had no problem running servlets, deploying WARs, and the like.
> However, I've run into a problem deploying a RAR that I built.  I view
> it as highly probably that there's a bug somewhere in my resource
> adapter, but it seems to be triggering a bug in Geronimo, which appears
> in both Java 1.4.2 and 1.5:
> {quote}
> {{23:52:38,091 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="com.celebrityresorts/rcc/0/rar?J2EEApplication=null,JCAConnectionFactory=Celebrity%20Resorts%20RCC%20development%20instance,JCAResource=com.celebrityresorts/rcc/0/rar,ResourceAdapter=com.celebrityresorts/rcc/0/rar,ResourceAdapterModule=com.celebrityresorts/rcc/0/rar,j2eeType=JCAManagedConnectionFactory,name=Celebrity%20Resorts%20RCC%20development%20instance"
> java.lang.NullPointerException
>         at java.io.PrintWriter.write(PrintWriter.java:401)
>         at java.io.PrintWriter.print(PrintWriter.java:546)
>         at java.io.PrintWriter.println(PrintWriter.java:683)
>         at java.lang.Throwable.printStackTrace(Throwable.java:510)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.printException(GBeanInstance.java:1047)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:983)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:267)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:526)
>         at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:111)
>         at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:146)
>         at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:120)
>         at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:173)
>         at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:41)
>         at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:251)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:292)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:540)}}
> {quote}
> and so on.  The only thing I can figure is that somehow the Exception
> getting thrown is null, but I can't see how, as it seems to stem from
> bq. {{throw new Exception("A reference has failed so construction can not complete");}}
> so I'm very confused.  Of course it's also quite late for me and I may
> be reading the stack trace wrong.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (GERONIMO-2168) NPE when deploying RAR

Posted by "Donald Woods (JIRA)" <de...@geronimo.apache.org>.
    [ http://issues.apache.org/jira/browse/GERONIMO-2168?page=comments#action_12419869 ] 

Donald Woods commented on GERONIMO-2168:
----------------------------------------

Have you tried removing the spaces from the name and giving it a real Maven friendly version number like "0.1" instead of "0"?


> NPE when deploying RAR
> ----------------------
>
>          Key: GERONIMO-2168
>          URL: http://issues.apache.org/jira/browse/GERONIMO-2168
>      Project: Geronimo
>         Type: Bug
>     Security: public(Regular issues) 
>     Versions: 1.1
>  Environment: Solaris 9 (Sparc), Java 1.5.0_06 (also appears in 1.4.2_05)
>     Reporter: Tim Howe
>     Priority: Critical

>
> I've been using Geronimo 1.0, and now 1.1, as the app server for the
> development of a JCA connector for our proprietary EIS and generally
> been very happy with it.
> I've had no problem running servlets, deploying WARs, and the like.
> However, I've run into a problem deploying a RAR that I built.  I view
> it as highly probably that there's a bug somewhere in my resource
> adapter, but it seems to be triggering a bug in Geronimo, which appears
> in both Java 1.4.2 and 1.5:
> {quote}
> {{23:52:38,091 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="com.celebrityresorts/rcc/0/rar?J2EEApplication=null,JCAConnectionFactory=Celebrity%20Resorts%20RCC%20development%20instance,JCAResource=com.celebrityresorts/rcc/0/rar,ResourceAdapter=com.celebrityresorts/rcc/0/rar,ResourceAdapterModule=com.celebrityresorts/rcc/0/rar,j2eeType=JCAManagedConnectionFactory,name=Celebrity%20Resorts%20RCC%20development%20instance"
> java.lang.NullPointerException
>         at java.io.PrintWriter.write(PrintWriter.java:401)
>         at java.io.PrintWriter.print(PrintWriter.java:546)
>         at java.io.PrintWriter.println(PrintWriter.java:683)
>         at java.lang.Throwable.printStackTrace(Throwable.java:510)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.printException(GBeanInstance.java:1047)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:983)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:267)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:526)
>         at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:111)
>         at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:146)
>         at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:120)
>         at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:173)
>         at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:41)
>         at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:251)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:292)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:540)}}
> {quote}
> and so on.  The only thing I can figure is that somehow the Exception
> getting thrown is null, but I can't see how, as it seems to stem from
> bq. {{throw new Exception("A reference has failed so construction can not complete");}}
> so I'm very confused.  Of course it's also quite late for me and I may
> be reading the stack trace wrong.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (GERONIMO-2168) NPE when deploying RAR

Posted by "Donald Woods (JIRA)" <de...@geronimo.apache.org>.
     [ http://issues.apache.org/jira/browse/GERONIMO-2168?page=all ]

Donald Woods updated GERONIMO-2168:
-----------------------------------

       Patch Info: [Patch Available]
    Fix Version/s: 1.2

> NPE when deploying RAR
> ----------------------
>
>                 Key: GERONIMO-2168
>                 URL: http://issues.apache.org/jira/browse/GERONIMO-2168
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>    Affects Versions: 1.1
>         Environment: Solaris 9 (Sparc), Java 1.5.0_06 (also appears in 1.4.2_05)
>            Reporter: Tim Howe
>         Assigned To: Kevan Miller
>            Priority: Critical
>             Fix For: 1.2
>
>         Attachments: ResourceException.patch
>
>
> I've been using Geronimo 1.0, and now 1.1, as the app server for the
> development of a JCA connector for our proprietary EIS and generally
> been very happy with it.
> I've had no problem running servlets, deploying WARs, and the like.
> However, I've run into a problem deploying a RAR that I built.  I view
> it as highly probably that there's a bug somewhere in my resource
> adapter, but it seems to be triggering a bug in Geronimo, which appears
> in both Java 1.4.2 and 1.5:
> {quote}
> {{23:52:38,091 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="com.celebrityresorts/rcc/0/rar?J2EEApplication=null,JCAConnectionFactory=Celebrity%20Resorts%20RCC%20development%20instance,JCAResource=com.celebrityresorts/rcc/0/rar,ResourceAdapter=com.celebrityresorts/rcc/0/rar,ResourceAdapterModule=com.celebrityresorts/rcc/0/rar,j2eeType=JCAManagedConnectionFactory,name=Celebrity%20Resorts%20RCC%20development%20instance"
> java.lang.NullPointerException
>         at java.io.PrintWriter.write(PrintWriter.java:401)
>         at java.io.PrintWriter.print(PrintWriter.java:546)
>         at java.io.PrintWriter.println(PrintWriter.java:683)
>         at java.lang.Throwable.printStackTrace(Throwable.java:510)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.printException(GBeanInstance.java:1047)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:983)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:267)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:526)
>         at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:111)
>         at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:146)
>         at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:120)
>         at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:173)
>         at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:41)
>         at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:251)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:292)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102)
>         at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:124)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:540)}}
> {quote}
> and so on.  The only thing I can figure is that somehow the Exception
> getting thrown is null, but I can't see how, as it seems to stem from
> bq. {{throw new Exception("A reference has failed so construction can not complete");}}
> so I'm very confused.  Of course it's also quite late for me and I may
> be reading the stack trace wrong.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira