users@genericjmsra.java.net

Re: Glassfish 2 & generica 2

From: homauoon mahboobi <hmmahboobi_at_yahoo.com>
Date: Tue, 13 Jan 2009 21:42:49 -0800 (PST)

Hi
 
That error is related to GRA 2.0.
There isnt any other log related to this problem on the server.
 
These are my asadmin commands:
 
create-resource-adapter-config --port 7070 --property SupportsXA=false:RMPolicy=OnePerPhysicalConnection:ProviderIntegrationMode=javabean:ConnectionFactoryClassName=org.apache.activemq.ActiveMQConnectionFactory:QueueConnectionFactoryClassName=org.apache.activemq.ActiveMQConnectionFactory:TopicConnectionFactoryClassName=org.apache.activemq.ActiveMQConnectionFactory:XAConnectionFactoryClassName=org.apache.activemq.ActiveMQXAConnectionFactory:XAQueueConnectionFactoryClassName=org.apache.activemq.ActiveMQXAConnectionFactory:XATopicConnectionFactoryClassName=org.apache.activemq.ActiveMQXAConnectionFactory:UnifiedDestinationClassName=org.apache.activemq.command.ActiveMQDestination:QueueClassName=org.apache.activemq.command.ActiveMQQueue:TopicClassName=org.apache.activemq.command.ActiveMQTopic:ConnectionFactoryProperties=brokerURL\\=tcp\\://192.168.3.88\\:61616:LogLevel=FINE general-ledger-product-0.0.1-SNAPSHOT#genericra-2.0
 
create-connector-connection-pool --port 7070 --raname general-ledger-product-0.0.1-SNAPSHOT#genericra-2.0 --connectiondefinition javax.jms.QueueConnectionFactory --transactionsupport LocalTransaction ActiveMQQueueConnectionFactoryPool

create-connector-resource --port 7070 --poolname ActiveMQQueueConnectionFactoryPool jms/SimpleQueueConnectionFactory
 
create-admin-object --port 7070 --raname general-ledger-product-0.0.1-SNAPSHOT#genericra-2.0 --restype javax.jms.Queue --property DestinationJndiName=Send jms/inqueue

Before GRA 2.0, I was checked version 1.7 in Glassfish,
Im received follwing error:
 
java.lang.Exception
 at com.sun.enterprise.connectors.inflow.ConnectorMessageBeanClient.setup(ConnectorMessageBeanClient.java:261)
 at com.sun.ejb.containers.MessageBeanContainer.<init>(MessageBeanContainer.java:209)
 at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:280)
 at com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:536)
 at com.sun.enterprise.server.ApplicationLoader.doLoad(ApplicationLoader.java:188)
 at com.sun.enterprise.server.TomcatApplicationLoader.doLoad(TomcatApplicationLoader.java:126)
 at com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:244)
 at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:336)
 at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:210)
 at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:645)
 at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeployEventListener(AdminEventMulticaster.java:928)
 at com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeployEvent(AdminEventMulticaster.java:912)
 at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:461)
 at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:176)
 at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
 at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:226)
 at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
 at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
 at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
 at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
 at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:591)
 at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:635)
 at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:744)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375)
 at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358)
 at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:464)
 at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
 at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
 at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
 at $Proxy1.invoke(Unknown Source)
 at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
 at com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
 at com.sun.enterprise.deployment.client.DeploymentClientUtils.startApplication(DeploymentClientUtils.java:145)
 at com.sun.enterprise.deployment.client.DeployAction.run(DeployAction.java:537)
 at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassCastException: com.sun.genericra.GenericJMSRA cannot be cast to com.sun.genericra.GenericJMSRAProperties
 at com.sun.genericra.GenericJMSRAProperties.setResourceAdapter(GenericJMSRAProperties.java:526)
 at com.sun.enterprise.connectors.inflow.ConnectorMessageBeanClient.setup(ConnectorMessageBeanClient.java:229)
 ... 41 more

--- On Tue, 1/13/09, Ramesh Parthasarathy <Ramesh.Parthasarathy_at_Sun.COM> wrote:

From: Ramesh Parthasarathy <Ramesh.Parthasarathy_at_Sun.COM>
Subject: Re: Glassfish 2 & generica 2
To: users_at_genericjmsra.dev.java.net
Date: Tuesday, January 13, 2009, 9:30 AM

hi,
i guess you are using GRA 1.7, are you using the bundled version that comes
along with GlassFish or did you download GRA 2.0 from the GRA site.

Could you post your resource adapter configuration (command).

Are there any other exceptions in the log file ?


Thanks
-Ramesh
On 01/12/09 11:01, homauoon mahboobi wrote:


> Hi
> I have a problem with generica 2 with glassfish 2
> I'm configured all steps in
>
http://weblogs.java.net/blog/rampsarathy/archive/2007/03/glassfish_v2_an_1.html
> please help me
> java.lang.NullPointerException
> at
com.sun.genericra.inbound.EndpointConsumer.initializeAdministeredObjects(EndpointConsumer.java:313)
> at
com.sun.genericra.inbound.EndpointConsumer.<init>(EndpointConsumer.java:74)
> at
com.sun.genericra.GenericJMSRA.endpointActivation(GenericJMSRA.java:214)
> at
com.sun.enterprise.connectors.inflow.ConnectorMessageBeanClient.setup(ConnectorMessageBeanClient.java:252)
> at
com.sun.ejb.containers.MessageBeanContainer.<init>(MessageBeanContainer.java:209)
> at
com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:280)
> at
com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:536)
> at
com.sun.enterprise.server.ApplicationLoader.doLoad(ApplicationLoader.java:188)
> at
com.sun.enterprise.server.TomcatApplicationLoader.doLoad(TomcatApplicationLoader.java:126)
> at
com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:244)
> at
com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:336)
> at
com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:210)
> at
com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:645)
> at
com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeployEventListener(AdminEventMulticaster.java:928)
> at
com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeployEvent(AdminEventMulticaster.java:912)
> at
com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:461)
> at
com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:176)
> at
com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
> at
com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:226)
> at
com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
> at
com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
> at
com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
> at
com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
> at
com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:591)
> at
com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:635)
> at
com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:744)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375)
> at
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358)
> at
com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:464)
> at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
> at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
> at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
> at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
> at $Proxy1.invoke(Unknown Source)
> at
com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
> at
com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
> at
com.sun.enterprise.deployment.client.DeploymentClientUtils.startApplication(DeploymentClientUtils.java:145)
> at
com.sun.enterprise.deployment.client.DeployAction.run(DeployAction.java:537)
> at java.lang.Thread.run(Thread.java:619)
>
[#|2009-01-12T10:32:31.446-0300|SEVERE|sun-appserver9.1|javax.enterprise.system.core.classloading|_ThreadID=22;_ThreadName=Thread-448;_RequestID=cf6f5f3e-65ea-4c7a-a190-a93a9bdf8b53;|LDR5004:
UnExpected error occured while creating ejb container
> java.lang.Exception
> at
com.sun.enterprise.connectors.inflow.ConnectorMessageBeanClient.setup(ConnectorMessageBeanClient.java:261)
> at
com.sun.ejb.containers.MessageBeanContainer.<init>(MessageBeanContainer.java:209)
> at
com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:280)
> at
com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:536)
> at
com.sun.enterprise.server.ApplicationLoader.doLoad(ApplicationLoader.java:188)
> at
com.sun.enterprise.server.TomcatApplicationLoader.doLoad(TomcatApplicationLoader.java:126)
> at
com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:244)
> at
com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:336)
> at
com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:210)
> at
com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:645)
> at
com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeployEventListener(AdminEventMulticaster.java:928)
> at
com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeployEvent(AdminEventMulticaster.java:912)
> at
com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:461)
> at
com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:176)
> at
com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:308)
> at
com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:226)
> at
com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:298)
> at
com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:132)
> at
com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
> at
com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:919)
> at
com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:591)
> at
com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:635)
> at
com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:744)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:375)
> at
com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:358)
> at
com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:464)
> at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
> at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
> at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
> at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:90)
> at $Proxy1.invoke(Unknown Source)
> at
com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:304)
> at
com.sun.enterprise.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:174)
> at
com.sun.enterprise.deployment.client.DeploymentClientUtils.startApplication(DeploymentClientUtils.java:145)
> at
com.sun.enterprise.deployment.client.DeployAction.run(DeployAction.java:537)
> at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.NullPointerException
> at
com.sun.genericra.inbound.EndpointConsumer.initializeAdministeredObjects(EndpointConsumer.java:313)
> at
com.sun.genericra.inbound.EndpointConsumer.<init>(EndpointConsumer.java:74)
> at
com.sun.genericra.GenericJMSRA.endpointActivation(GenericJMSRA.java:214)
> at
com.sun.enterprise.connectors.inflow.ConnectorMessageBeanClient.setup(ConnectorMessageBeanClient.java:252)
> ... 41 more
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_genericjmsra.dev.java.net
For additional commands, e-mail: users-help_at_genericjmsra.dev.java.net