You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Tim Howe <ti...@celebrityresorts.com> on 2006/07/07 06:56:03 UTC

NullPointerException when deploying RAR

Hi everyone.

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:

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)

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

   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.

Any hints?

Thanks,
Tim

Re: NullPointerException when deploying RAR

Posted by Tim Howe <ti...@celebrityresorts.com>.
"Krishnakumar B" <ww...@gmail.com> writes:

> can u post the plans u r usings.

<?xml version="1.0" encoding="UTF-8"?>
<connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.1">
  <environment xmlns="http://geronimo.apache.org/xml/ns/deployment-1.1">
    <moduleId>
      <groupId>com.celebrityresorts</groupId>
      <artifactId>rcc</artifactId>
      <version>0</version>
      <type>rar</type>
    </moduleId>
  </environment>

  <resourceadapter>
    <outbound-resourceadapter>
      <connection-definition>
        <connectionfactory-interface>
          javax.resource.cci.ConnectionFactory
        </connectionfactory-interface>

        <connectiondefinition-instance>
          <name>Celebrity Resorts RCC development instance</name>

           <connectionmanager>
             <container-managed-security />
             <partitioned-pool>
               <max-size>1000</max-size>
               <blocking-timeout-milliseconds>
                 5000
               </blocking-timeout-milliseconds>
               <match-one/>
               <partition-by-connectionrequestinfo/>
             </partitioned-pool>
           </connectionmanager>
        </connectiondefinition-instance>
      </connection-definition>
    </outbound-resourceadapter>
  </resourceadapter>
</connector>

Re: NullPointerException when deploying RAR

Posted by Krishnakumar B <ww...@gmail.com>.
hi tim,

can u post the plans u r usings. That may give some pointers as to why
u r getitng a Null.

Regards
Krish

On 7/7/06, Tim Howe <ti...@celebrityresorts.com> wrote:
> Hi everyone.
>
> 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:
>
> 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)
>
> 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
>
>   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.
>
> Any hints?
>
> Thanks,
> Tim
>

Re: NullPointerException when deploying RAR

Posted by Tim Howe <ti...@celebrityresorts.com>.
"Aaron Mulder" <am...@alumni.princeton.edu> writes:

> Could you create a Jira issue for this?

http://issues.apache.org/jira/browse/GERONIMO-2168

> And can you be sure to note which version of Geronimo you were using
> when you got that stack trace so we're looking at the right line
> numbers?

1.1

Thanks,
Tim

Re: NullPointerException when deploying RAR

Posted by Aaron Mulder <am...@alumni.princeton.edu>.
Could you create a Jira issue for this?  And can you be sure to note
which version of Geronimo you were using when you got that stack trace
so we're looking at the right line numbers?

Thanks,
     Aaron

On 7/7/06, Tim Howe <ti...@celebrityresorts.com> wrote:
> Hi everyone.
>
> 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:
>
> 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)
>
> 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
>
>    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.
>
> Any hints?
>
> Thanks,
> Tim
>