geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krishnakumar B" <www....@gmail.com>
Subject Re: Null pointer exception when deploying Apache Jackrabbit JCA resource adapter
Date Wed, 15 Nov 2006 09:15:52 GMT
Hi Gary,

The geronimo-ra plan does not contain a link to WorkManager and hence
an exception is thrown.

I was able to deploy the RA by adding a WorkManager

<ger:resourceadapter>
  <ger:resourceadapter-instance>
     <ger:resourceadapter-name>JACKRABBITRA</ger:resourceadapter-name>
     <ger:workmanager>
       <ger:gbean-link>DefaultWorkManager</ger:gbean-link>
     </ger:workmanager>
    </ger:resourceadapter-instance>
<ger:outbound-resourceadapter>
...

Regards
Krish

On 11/15/06, Gary <gary.smith199@verizon.net> wrote:
> I'm trying to deploy the Apache Jackrabbit JCA resource adapter that is available at
the jackrabbit site: http://jackrabbit.apache.org/downloads.cgi .
>
> I get a null pointer exception when I deploy the rar. Is there something wrong with my
deployment plan ?
>
> Output from the console, ra.xml and deployment plan below.
>
>
> java.lang.NullPointerException
> org.apache.geronimo.common.DeploymentException: java.lang.NullPointerException
>        at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:383)
>        at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:124)
>        at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(<generated>)
>        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
>        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
>        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
>        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:852)
>        at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
>        at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:106)
>        at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:60)
>        at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
>        at org.apache.geronimo.connector.deployment.ConnectorModuleBuilder.addConnectorGBeans(ConnectorModuleBuilder.java:408)
>        at org.apache.geronimo.connector.deployment.ConnectorModuleBuilder.initContext(ConnectorModuleBuilder.java:383)
>        at org.apache.geronimo.connector.deployment.ConnectorModuleBuilder$$FastClassByCGLIB$$a535b6aa.invoke(<generated>)
>        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
>        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
>        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
>        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817)
>        at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
>        at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
>        at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
>        at org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$58fec5b0.initContext(<generated>)
>        at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:500)
>        at org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke(<generated>)
>        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
>        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
>        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
>        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817)
>        at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
>        at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
>        at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
>        at org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$bd93291f.buildConfiguration(<generated>)
>        at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:302)
>        ... 10 more
>
>
>
> <connector xmlns="http://java.sun.com/xml/ns/j2ee"
>           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>           xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"
>           version="1.5">
>  <display-name>Jackrabbit JCR Adapter</display-name>
>  <vendor-name>Apache.org</vendor-name>
>  <eis-type>JCR Adapter</eis-type>
>  <resourceadapter-version>1.0</resourceadapter-version>
>  <resourceadapter>
>    <resourceadapter-class>org.apache.jackrabbit.jca.JCAResourceAdapter</resourceadapter-class>
>    <outbound-resourceadapter>
>      <connection-definition>
>        <managedconnectionfactory-class>org.apache.jackrabbit.jca.JCAManagedConnectionFactory</managedconnectionfactory-class>
>        <config-property>
>          <config-property-name>HomeDir</config-property-name>
>          <config-property-type>java.lang.String</config-property-type>
>        </config-property>
>        <config-property>
>          <config-property-name>ConfigFile</config-property-name>
>          <config-property-type>java.lang.String</config-property-type>
>        </config-property>
>        <connectionfactory-interface>javax.jcr.Repository</connectionfactory-interface>
>        <connectionfactory-impl-class>org.apache.jackrabbit.jca.JCARepositoryHandle</connectionfactory-impl-class>
>        <connection-interface>javax.jcr.Session</connection-interface>
>        <connection-impl-class>org.apache.jackrabbit.jca.JCASessionHandle</connection-impl-class>
>      </connection-definition>
>      <transaction-support>XATransaction</transaction-support>
>      <reauthentication-support>false</reauthentication-support>
>    </outbound-resourceadapter>
>  </resourceadapter>
> </connector>
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <ger:connector xmlns:ger="http://geronimo.apache.org/xml/ns/j2ee/connector-1.1"
>               xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1"
>               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>               xsi:schemaLocation="http://geronimo.apache.org/xml/ns/j2ee/connector-1.1
http://geronimo.apache.org/xml/ns/j2ee/connector-1.1">
>  <sys:environment>
>    <sys:moduleId>
>      <sys:groupId>org.apache.jackrabbit</sys:groupId>
>      <sys:artifactId>jackrabbit-jca</sys:artifactId>
>      <sys:version>1.1</sys:version>
>      <sys:type>jca.rar</sys:type>
>    </sys:moduleId>
>    <sys:dependencies />
>  </sys:environment>
>  <ger:resourceadapter>
>    <ger:outbound-resourceadapter>
>      <ger:connection-definition>
>        <ger:connectionfactory-interface>javax.jcr.Repository</ger:connectionfactory-interface>
>        <ger:connectiondefinition-instance>
>          <ger:name>jackrabbit</ger:name>
>          <ger:config-property-setting name="HomeDir">..</ger:config-property-setting>
>          <ger:config-property-setting name="ConfigFile">repository.xml</ger:config-property-setting>
>          <ger:connectionmanager>
>            <ger:container-managed-security />
>            <ger:xa-transaction>
>              <ger:transaction-caching />
>              <ger:thread-caching />
>            </ger:xa-transaction>
>            <ger:single-pool>
>              <ger:max-size>10</ger:max-size>
>              <ger:min-size>1</ger:min-size>
>              <ger:blocking-timeout-milliseconds>5000</ger:blocking-timeout-milliseconds>
>              <ger:idle-timeout-minutes>5</ger:idle-timeout-minutes>
>              <ger:match-one />
>            </ger:single-pool>
>          </ger:connectionmanager>
>        </ger:connectiondefinition-instance>
>      </ger:connection-definition>
>    </ger:outbound-resourceadapter>
>  </ger:resourceadapter>
> </ger:connector>
>
>
>

Mime
View raw message