Hi,
In our project we are using Glass Fish Application Server 9.1.2 and we
need to connect to the queue in Tibco . We have a MDB which needs to
listen to the queue in the Tibco. We created the Generic Resource
Adapter and we are getting the following error in the server log.
[#|2011-01-05T02:31:03.896-0600|WARNING|sun-appserver9.1|com.sun.generic
jmsra|_ThreadID=10;_ThreadName=main;_RequestID=5382983d-0d54-4496-a70f-9
ff50c8b73ae;|The log message is null.
javax.resource.spi.InvalidPropertyException
at
com.sun.genericra.util.ExceptionUtils.newInvalidPropertyException(Except
ionUtils.java:42)
at
com.sun.genericra.util.ObjectBuilderFactory$JndiObjectBuilder.createObje
ct(ObjectBuilderFactory.java:100)
at
com.sun.genericra.util.ObjectBuilder.build(ObjectBuilder.java:99)
at
com.sun.genericra.inbound.EndpointConsumer.initializeAdministeredObjects
(EndpointConsumer.java:333)
at
com.sun.genericra.inbound.EndpointConsumer.<init>(EndpointConsumer.java:
74)
at
com.sun.genericra.inbound.EndpointConsumer.<init>(EndpointConsumer.java:
79)
at
com.sun.genericra.GenericJMSRA.getXAResources(GenericJMSRA.java:278)
at
com.sun.enterprise.resource.ResourceInstaller.recoverInboundTransactions
(ResourceInstaller.java:896)
at
com.sun.enterprise.resource.ResourceInstaller.recoverXAResources(Resourc
eInstaller.java:334)
at
com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLife
cycle.java:205)
at
com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.
java:442)
at
com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServ
er.java:120)
at com.sun.enterprise.server.PEMain.run(PEMain.java:411)
at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
Caused by: java.lang.NullPointerException
at
javax.naming.InitialContext.getURLScheme(InitialContext.java:269)
at
javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:3
18)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at
com.sun.genericra.util.ObjectBuilderFactory$JndiObjectBuilder.createObje
ct(ObjectBuilderFactory.java:98)
... 17 more
We are not sure which property is invalid .
Steps we used for creating the generic resource adapter
./asadmin create-threadpool --target server --maxthreadpoolsize 8
--minthreadpoolsize 2 --idletimeout 300 --workqueues 1 threadpool-1
./asadmin create-resource-adapter-config --threadpools threadpool-1
--property
SupportsXA=true:ProviderIntegrationMode=jndi:JndiProperties=java.naming.
factory.initial\\=com.sun.jndi.ldap.LdapCtxFactory,java.naming.provider.
url\\=\"ldap://dsxstage.cisco.com/OU=jmsObjects,OU=jms,OU=Apps,O=cco.cis
co.com\",java.naming.security.principal\\=\"cn=stage\":LogLevel=info
genericra
./asadmin deploy --name genericra
/users/profiler/SDK/lib/addons/resourceadapters/genericjmsra/genericra.r
ar
./asadmin create-connector-connection-pool --steadypoolsize 5
--maxpoolsize 10 --poolresize 2 --idletimeout 30000 --raname genericra
--connectiondefinition javax.jms.QueueConnectionFactory
--transactionsupport XATransaction --property
ConnectionValidationEnabled=true:ConnectionFactoryJndiName=\"CN=stage,OU
=profiler,OU=ConnectionFactory,OU=profiler.queue.input\"
jms/inputConnectionFactory
./asadmin create-connector-resource --poolname
jms/inputConnectionFactory jms/inputConnectionFactory
./asadmin create-admin-object --raname genericra --restype
javax.jms.Queue --property
DestinationJndiName=\"CN=stage,OU=Destination,OU=profiler.queue.input\"
jms/input
Your help is very much appreciated.
Thanks
Srini