CORBA vs JNI vs Wev Service
Hi All,
We need to expose some functionality from module running under MS Windows and written entirely in C/C++ to another module written in Java (possibly working in a separate machine). Therefore, we are facing the problem of how to connect our two modules. I think the major options are:
- CORBA
- JNI
- Web service
but still not sure which one of them to choose. Exposing a web service for c++ module is not going to be a big problem for us since we can make a little wrapper in C# (using .net) which will be the actual web service and the java module will be the client. We allready finished a little project using for the same purposes web service but there were some difficulties the major of them was the long answer time for the server (> 30sec.) which is hardly acceptable for web services.
I will be very glad to hear more opinions, thanks in advance.
Dimitar
CORBA requires that an ORB be available to both client and server. There are free ones (e.g., Mico), but usually they're a for-fee item. I believe CORBA can be made to go through firewalls, but I've not done it. I've used it on Intranets. It uses a proprietary protocol. Both client and server have to CORBA-enabled.
I believe JNI requires that the C++ code and the Java client be running on the same machine.
You could use RMI to wrap the module, but that would require Java for both client and server. It's similar to CORBA, but more restrictive on language choices.
Web services are similar to CORBA, except they use SOAP XML over HTTP. They don't have a problem going through firewalls, and the protocol is more widespread.
Is the long answer time due to the network latency, the SOAP message parsing, marshalling/unmarshalling, or the execution time of the C++ module itself? If it's the module execution time, maybe you need an asynchronous solution instead of an RPC.
Similar Messages
-
Weblogic 12c CORBA: DynAnyFactory service is absent
Hi,
I have installed Weblogic 12.1.1 developer release. It seems that CORBA does not contain DynAnyFactory service.
ORB orb = org.omg.CORBA.ORB.init();
Object dyn = orb.resolve_initial_references("DynAnyFactory");
org.omg.CORBA.ORBPackage.InvalidName
at weblogic.corba.orb.ORB.resolve_initial_references(ORB.java:272)
at weblogic.corba.orb.ORB$resolve_initial_references.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
The only services it has are:
for ( String s : orb.list_initial_services() )
System.out.println( s );
NameService
CodeBase
TransactionFactory
HeartbeatHelper
Is it a platform bug or it could be configured any way?
AntonHello,
The latest version of OSB realease avaible is 11.1.1.6.0.
OSB are tightly coupled with the Weblogic Server versions. So for example OSB 11.1.1.6 will have problems running on Weblogic Version 10.3.1,similarly you wont be able to properly run OSB 11.1.1.6 on Weblogic 12c.
Here are the list of compatible OSB,Weblogic and OEPE.
OSB Weblogic OEPE
11.1.1.6.0 10.3.6 11.1.1.8.0
11.1.1.5.0 10.3.5 11.1.1.7.2
11.1.1.4.0 10.3.4 11.1.1.6.1
11.1.1.3.0 10.3.3 11.1.1.5
Regards,
Abdul -
Relation between EJB and CORBA
Hi,
I'm confused as to the relation between EJB and CORBA. Some books I've read say that CORBA is used to implement the underlying RMI protocol in EJB while others say it is an alternative to EJB.
Could someone please clarify.
ThanksCould you pleae restate your question.
I'm assuming you want to bind a Corba object to a
CosNaming service from within a j2ee component. JNDI
supports this case fully via their CosNaming service provider
(see http://java.sun.com/products/jndi/serviceproviders.html) JNDI is part of J2SE, so it's fully available to any J2EE component.
Amlan on behalf of Kenneth Saks -
Javax.ejb.EJBException: Null primary key returned by ejbCreate method
Hi all,
I'm using SunOne 7.1 and I got this error when I call the create on the CMP bean.
javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean; nested exception is: javax.ejb.EJBException: Null primary key returned by ejbCreate method
[14/Aug/2004:01:15:34] WARNING ( 4044): CORE3283: stderr: javax.ejb.EJBException: Null primary key returned by ejbCreate method
[14/Aug/2004:01:15:34] WARNING ( 4044): CORE3283: stderr: at com.sun.ejb.containers.EntityContainer.postCreate(EntityContainer.java:801)
[14/Aug/2004:01:15:34] WARNING ( 4044): CORE3283: stderr: at uk.co.upco.workflow.applicationAdmin.ejb.ApplicationAdminBean_854379388_ConcreteImpl_LocalHomeImpl.createNewApplication(ApplicationAdminBean_854379388_ConcreteImpl_LocalHomeImpl.java:64)
[14/Aug/2004:01:15:34] WARNING ( 4044): CORE3283: stderr: at uk.co.upco.workflow.sessionFacedeApplicationAdmin.SFApplicationAdminBean.insertNewApplicationName(SFApplicationAdminBean.java:64)
[14/Aug/2004:01:15:34] WARNING ( 4044): CORE3283: stderr: at uk.co.upco.workflow.sessionFacedeApplicationAdmin.SFApplicationAdminBean_EJBObjectImpl.insertNewApplicationName(SFApplicationAdminBean_EJBObjectImpl.java:31)
[14/Aug/2004:01:15:34] WARNING ( 4044): CORE3283: stderr: at uk.co.upco.workflow.sessionFacedeApplicationAdmin._SFApplicationAdminBean_EJBObjectImpl_Tie._invoke(Unknown Source)
[14/Aug/2004:01:15:34] WARNING ( 4044): CORE3283: stderr: at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(GenericPOAServerSC.java:569)
[14/Aug/2004:01:15:34] WARNING ( 4044): CORE3283: stderr: at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(GenericPOAServerSC.java:211)
[14/Aug/2004:01:15:34] WARNING ( 4044): CORE3283: stderr: at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(GenericPOAServerSC.java:113)
[14/Aug/2004:01:15:34] WARNING ( 4044): CORE3283: stderr: at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:275)
[14/Aug/2004:01:15:34] WARNING ( 4044): CORE3283: stderr: at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:83)
[14/Aug/2004:01:15:34] WARNING ( 4044): CORE3283: stderr: at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(ServicableWrapper.java:25)
[14/Aug/2004:01:15:34] WARNING ( 4044): CORE3283: stderr: at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(FastThreadPool.java:283)
[14/Aug/2004:01:15:34] WARNING ( 4044): CORE3283: stderr: at java.lang.Thread.run(Thread.java:534)
cmp:
public java.lang.Integer ejbCreateNewApplication(java.lang.String application) throws javax.ejb.CreateException {
setApplication(application);
return null;
The key is auto_increment and is an integer.
I'm usin MySQL and it is already set up as ANSI. (running as mysqld --ansi)
Any Idea?
Thanks in advanceWhat happend when two concourrent user try to get the same key on the table? If for example I have 30 users at same time do I have lock table?
Any way here the finest log using sunone 8. The error is the same, so I think I missing something:
[#|2004-08-14T12:11:19.296+0100|FINE|sun-appserver-pe8.0|javax.enterprise.system.util|_ThreadID=11;|IM: preInvokeorg.apache.catalina.servlets.DefaultServlet@1acecf3|#]
[#|2004-08-14T12:11:19.296+0100|FINE|sun-appserver-pe8.0|javax.enterprise.system.util|_ThreadID=11;|IM: postInvokeorg.apache.catalina.servlets.DefaultServlet@1acecf3|#]
[#|2004-08-14T12:11:26.166+0100|FINE|sun-appserver-pe8.0|javax.enterprise.system.core.security|_ThreadID=22;|JACC: returning cached ProtectionDomain - CodeSource: ((file:/Test <no certificates>)) PrincipalSet: null|#]
[#|2004-08-14T12:11:26.166+0100|FINE|sun-appserver-pe8.0|javax.enterprise.system.core.security|_ThreadID=22;|JACC: Changing Policy Context ID: oldV = null newV = Test|#]
[#|2004-08-14T12:11:26.166+0100|FINE|sun-appserver-pe8.0|javax.enterprise.system.core.security|_ThreadID=22;|JACC: Access Control Decision Result: true EJBMethodPermission (Name) = SFApplicationAdmin (Action) = create,Home, (Codesource) = (file:/Test <no certificates>)|#]
[#|2004-08-14T12:11:26.186+0100|FINE|sun-appserver-pe8.0|javax.enterprise.system.core.security|_ThreadID=22;|JACC: returning cached ProtectionDomain - CodeSource: ((file:/Test <no certificates>)) PrincipalSet: null|#]
[#|2004-08-14T12:11:26.186+0100|FINE|sun-appserver-pe8.0|javax.enterprise.system.core.security|_ThreadID=22;|JACC: Access Control Decision Result: true EJBMethodPermission (Name) = SFApplicationAdmin (Action) = insertNewApplicationName,Remote,java.util.Hashtable (Codesource) = (file:/Test <no certificates>)|#]
[#|2004-08-14T12:11:26.186+0100|FINE|sun-appserver-pe8.0|javax.enterprise.system.util|_ThreadID=22;|IM: preInvokeuk.co.myDomain.workflow.sessionFacedeApplicationAdmin.SFApplicationAdminBean@1fa487f|#]
[#|2004-08-14T12:11:26.186+0100|FINE|sun-appserver-pe8.0|javax.enterprise.system.core.security|_ThreadID=22;|JACC: doAsPrivileged contextId(Test)|#]
[#|2004-08-14T12:11:26.186+0100|INFO|sun-appserver-pe8.0|javax.enterprise.system.stream.out|_ThreadID=22;|
new|#]
[#|2004-08-14T12:11:26.186+0100|INFO|sun-appserver-pe8.0|javax.enterprise.system.stream.out|_ThreadID=22;|
mgmt: com.sun.enterprise.naming.TransientContext:com.sun.enterprise.naming.TransientContext@ad00b2|#]
[#|2004-08-14T12:11:26.186+0100|INFO|sun-appserver-pe8.0|javax.enterprise.system.stream.out|_ThreadID=22;|
new|#]
[#|2004-08-14T12:11:26.186+0100|INFO|sun-appserver-pe8.0|javax.enterprise.system.stream.out|_ThreadID=22;|
SFApplicationAdmin: javax.naming.Reference:Reference Class Name: reference
Type: url
Content: ejb/SFApplicationAdmin
|#]
[#|2004-08-14T12:11:26.186+0100|FINE|sun-appserver-pe8.0|javax.enterprise.system.core.security|_ThreadID=22;|JACC: returning cached ProtectionDomain - CodeSource: ((file:/Test <no certificates>)) PrincipalSet: null|#]
[#|2004-08-14T12:11:26.186+0100|FINE|sun-appserver-pe8.0|javax.enterprise.system.core.security|_ThreadID=22;|JACC: Access Control Decision Result: true EJBMethodPermission (Name) = ApplicationAdmin (Action) = createNewApplication,LocalHome,java.lang.String (Codesource) = (file:/Test <no certificates>)|#]
[#|2004-08-14T12:11:26.196+0100|FINE|sun-appserver-pe8.0|javax.enterprise.system.container.ejb|_ThreadID=22;|[Pool-ApplicationAdmin]: Added PoolResizeTimerTask...|#]
[#|2004-08-14T12:11:26.196+0100|FINE|sun-appserver-pe8.0|javax.enterprise.system.util|_ThreadID=22;|IM: preInvokeuk.co.myDomain.workflow.applicationAdmin.ejb.ApplicationAdminBean_1421299025_ConcreteImpl@7ae165|#]
[#|2004-08-14T12:11:26.196+0100|FINEST|sun-appserver-pe8.0|javax.enterprise.resource.jdo.persistencemanager|_ThreadID=22;|:Thread[Worker: 16,5,org.apache.commons.launcher.ChildMain] -->SQLPersistenceManagerFactory.getPersistenceManager().|#]
[#|2004-08-14T12:11:26.196+0100|FINEST|sun-appserver-pe8.0|javax.enterprise.resource.jdo.persistencemanager|_ThreadID=22;|Thread[Worker: 16,5,org.apache.commons.launcher.ChildMain] <->SQLPersistenceManagerFactory.getPersistenceManager() FOUND javax.transaction.Transaction: com.sun.ejb.containers.PMTransactionImpl@5.|#]
[#|2004-08-14T12:11:26.196+0100|FINEST|sun-appserver-pe8.0|javax.enterprise.resource.jdo.persistencemanager|_ThreadID=22;|<--SQLPersistenceManagerFactory.getFromPool().|#]
[#|2004-08-14T12:11:26.196+0100|FINEST|sun-appserver-pe8.0|javax.enterprise.resource.jdo.persistencemanager|_ThreadID=22;|PersistenceManagerImpl cache properties: _txCacheInitialCapacity=20, _flushedCacheInitialCapacity=20, _flushedCacheLoadFactor=0.75, _weakCacheInitialCapacity=20, _weakCacheLoadFactor=0.75.|#]
[#|2004-08-14T12:11:26.196+0100|FINEST|sun-appserver-pe8.0|javax.enterprise.resource.jdo.utility|_ThreadID=22;|NullSemaphore constructor() for PersistenceManagerImpl.cacheLock.|#]
[#|2004-08-14T12:11:26.196+0100|FINEST|sun-appserver-pe8.0|javax.enterprise.resource.jdo.utility|_ThreadID=22;|NullSemaphore constructor() for PersistenceManagerImpl.fieldUpdateLock.|#]
[#|2004-08-14T12:11:26.196+0100|FINEST|sun-appserver-pe8.0|javax.enterprise.resource.jdo.persistencemanager|_ThreadID=22;|<--SQLPersistenceManagerFactory.getFromPool() PM: com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@8d18c for JTA com.sun.ejb.containers.PMTransactionImpl@5.|#]
[#|2004-08-14T12:11:26.196+0100|FINEST|sun-appserver-pe8.0|javax.enterprise.resource.jdo.persistencemanager|_ThreadID=22;|<->SQLPersistenceManagerFactory.getPersistenceManager() JDO Transaction: Transaction:
status = STATUS_NO_TRANSACTION
Transaction Object = Transaction@16077795
threads = 0
.|#]
[#|2004-08-14T12:11:26.196+0100|FINEST|sun-appserver-pe8.0|javax.enterprise.resource.jdo.transaction|_ThreadID=22;|Thread[Worker: 16,5,org.apache.commons.launcher.ChildMain] Tran[ Transaction:
status = STATUS_NO_TRANSACTION
Transaction Object = Transaction@16077795
threads = 0
].begin:status = STATUS_NO_TRANSACTION ,txType: UNKNOWN for com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@8d18c.|#]
[#|2004-08-14T12:11:26.196+0100|FINEST|sun-appserver-pe8.0|javax.enterprise.resource.jdo.transaction|_ThreadID=22;|Thread[Worker: 16,5,org.apache.commons.launcher.ChildMain] Tran[ Transaction:
status = STATUS_NO_TRANSACTION
Transaction Object = Transaction@16077795
threads = 0
].setStatus: STATUS_NO_TRANSACTION => STATUS_ACTIVE for com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@8d18c.|#]
[#|2004-08-14T12:11:26.196+0100|FINEST|sun-appserver-pe8.0|javax.enterprise.resource.jdo.persistencemanager|_ThreadID=22;|Thread[Worker: 16,5,org.apache.commons.launcher.ChildMain] <->SQLPersistenceManagerFactory.getPersistenceManager() : com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@8d18c for JTA: com.sun.ejb.containers.PMTransactionImpl@5.|#]
[#|2004-08-14T12:11:26.196+0100|FINEST|sun-appserver-pe8.0|javax.enterprise.resource.jdo.persistencemanager|_ThreadID=22;|---PersistenceManagerImpl.getCurrentWrapper() > current: null.|#]
[#|2004-08-14T12:11:26.196+0100|FINEST|sun-appserver-pe8.0|javax.enterprise.resource.jdo.persistencemanager|_ThreadID=22;|---PersistenceManagerImpl.pushCurrentWrapper() > current: null new: com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerWrapper@567117.|#]
[#|2004-08-14T12:11:26.196+0100|FINEST|sun-appserver-pe8.0|javax.enterprise.resource.jdo.persistencemanager|_ThreadID=22;|---PersistenceManagerImpl.popCurrentWrapper() > current: com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerWrapper@567117 prev: null.|#]
[#|2004-08-14T12:11:26.196+0100|FINE|sun-appserver-pe8.0|javax.enterprise.system.util|_ThreadID=22;|IM: postInvokeuk.co.myDomain.workflow.applicationAdmin.ejb.ApplicationAdminBean_1421299025_ConcreteImpl@7ae165|#]
[#|2004-08-14T12:11:26.196+0100|FINE|sun-appserver-pe8.0|javax.enterprise.system.container.ejb|_ThreadID=22;|Exception in forceDestroyBean()
java.lang.IllegalStateException: Primary key not available
at com.sun.ejb.containers.EntityContextImpl.getPrimaryKey(EntityContextImpl.java:114)
at com.sun.ejb.containers.EntityContainer.forceDestroyBean(EntityContainer.java:1232)
at com.sun.ejb.containers.BaseContainer.checkExceptionClientTx(BaseContainer.java:2559)
at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:2416)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:763)
at com.sun.ejb.containers.EJBLocalHomeInvocationHandler.invoke(EJBLocalHomeInvocationHandler.java:197)
at $Proxy10.createNewApplication(Unknown Source)
at uk.co.myDomain.workflow.sessionFacedeApplicationAdmin.SFApplicationAdminBean.insertNewApplicationName(SFApplicationAdminBean.java:64)
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:324)
at com.sun.enterprise.security.SecurityUtil$2.run(SecurityUtil.java:146)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.enterprise.security.application.EJBSecurityManager.doAsPrivileged(EJBSecurityManager.java:930)
at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:151)
at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:128)
at $Proxy7.insertNewApplicationName(Unknown Source)
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:324)
at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:117)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:651)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:190)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1653)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1513)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:895)
at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:172)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:668)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:375)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.read(SocketOrChannelConnectionImpl.java:284)
at com.sun.corba.ee.impl.transport.ReaderThreadImpl.doWork(ReaderThreadImpl.java:73)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:382)
|#]
[#|2004-08-14T12:11:26.196+0100|INFO|sun-appserver-pe8.0|javax.enterprise.system.container.ejb|_ThreadID=22;|EJB5018: An exception was thrown during an ejb invocation on [ApplicationAdmin]|#]
[#|2004-08-14T12:11:26.196+0100|INFO|sun-appserver-pe8.0|javax.enterprise.system.container.ejb|_ThreadID=22;|
javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean; nested exception is: java.lang.IllegalArgumentException: JDO73013: Primary Key field applicationId for bean 'ApplicationAdmin' cannot be null.
java.lang.IllegalArgumentException: JDO73013: Primary Key field applicationId for bean 'ApplicationAdmin' cannot be null.
at com.sun.jdo.spi.persistence.support.ejb.cmp.JDOEJB11HelperImpl.assertPrimaryKeyFieldNotNull(JDOEJB11HelperImpl.java:446)
at uk.co.myDomain.workflow.applicationAdmin.ejb.ApplicationAdminBean_1421299025_ConcreteImpl.setApplicationId(ApplicationAdminBean_1421299025_ConcreteImpl.java:102)
at uk.co.myDomain.workflow.applicationAdmin.ejb.ApplicationAdminBean.ejbCreateNewApplication(ApplicationAdminBean.java:93)
at uk.co.myDomain.workflow.applicationAdmin.ejb.ApplicationAdminBean_1421299025_ConcreteImpl.ejbCreateNewApplication(ApplicationAdminBean_1421299025_ConcreteImpl.java:334)
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:324)
at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:140)
at com.sun.ejb.containers.EJBLocalHomeInvocationHandler.invoke(EJBLocalHomeInvocationHandler.java:168)
at $Proxy10.createNewApplication(Unknown Source)
at uk.co.myDomain.workflow.sessionFacedeApplicationAdmin.SFApplicationAdminBean.insertNewApplicationName(SFApplicationAdminBean.java:64)
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:324)
at com.sun.enterprise.security.SecurityUtil$2.run(SecurityUtil.java:146)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.enterprise.security.application.EJBSecurityManager.doAsPrivileged(EJBSecurityManager.java:930)
at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:151)
at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:128)
at $Proxy7.insertNewApplicationName(Unknown Source)
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:324)
at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:117)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:651)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:190)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1653)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1513)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:895)
at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:172)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:668)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:375)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.read(SocketOrChannelConnectionImpl.java:284)
at com.sun.corba.ee.impl.transport.ReaderThreadImpl.doWork(ReaderThreadImpl.java:73)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:382)
javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean; nested exception is: java.lang.IllegalArgumentException: JDO73013: Primary Key field applicationId for bean 'ApplicationAdmin' cannot be null.
at com.sun.ejb.containers.BaseContainer.checkExceptionClientTx(BaseContainer.java:2564)
at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:2416)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:763)
at com.sun.ejb.containers.EJBLocalHomeInvocationHandler.invoke(EJBLocalHomeInvocationHandler.java:197)
at $Proxy10.createNewApplication(Unknown Source)
at uk.co.myDomain.workflow.sessionFacedeApplicationAdmin.SFApplicationAdminBean.insertNewApplicationName(SFApplicationAdminBean.java:64)
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:324)
at com.sun.enterprise.security.SecurityUtil$2.run(SecurityUtil.java:146)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.enterprise.security.application.EJBSecurityManager.doAsPrivileged(EJBSecurityManager.java:930)
at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:151)
at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:128)
at $Proxy7.insertNewApplicationName(Unknown Source)
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:324)
at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:117)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:651)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:190)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1653)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1513)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:895)
at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:172)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:668)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:375)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.read(SocketOrChannelConnectionImpl.java:284)
at com.sun.corba.ee.impl.transport.ReaderThreadImpl.doWork(ReaderThreadImpl.java:73)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:382)
|#]
Any Idea?
Thanks in advance for any help -
Remote or transactional roll back exception
Hi All,
I have deployed CMP2 entity bean to SUN ONE with Oracle as DB. There is no problem while retrieving/updating values to the table. But throws following
exception while adding values to the table.
Exception from the server log is below:
SEVERE: EJB5071: Some remote or transactional roll back exception occurred
com.sun.jdo.api.persistence.support.JDOFatalInternalException: Got an unknown ex
ception.
NestedException: java.lang.NullPointerException
at com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.updatePe
rsistent(Unknown Source)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerI
mpl.beforeCompletion(Unknown Source)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.TransactionImpl.not
ifyBeforeCompletion(Unknown Source)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.TransactionImpl.com
mitBefore(Unknown Source)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.TransactionImpl.bef
oreCompletion(Unknown Source)
at com.sun.ejb.containers.ContainerSynchronization.beforeCompletion(Unkn
own Source)
at com.sun.enterprise.distributedtx.J2EETransaction.commit(Unknown Sourc
e)
at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(Unk
nown Source)
at com.sun.ejb.containers.BaseContainer.completeNewTx(Unknown Source)
at com.sun.ejb.containers.BaseContainer.postInvokeTx(Unknown Source)
at com.sun.ejb.containers.BaseContainer.postInvoke(Unknown Source)
at com.siptech.pdf.ejb.config.session.ConfigSessionBean_EJBObjectImpl.se
tCountry(ConfigSessionBean_EJBObjectImpl.java:558)
at com.siptech.pdf.ejb.config.session._ConfigSessionBean_EJBObjectImpl_T
ie._invoke(Unknown Source)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(Un
known Source)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(Unk
nown Source)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(Unknown Sou
rce)
at com.sun.corba.ee.internal.iiop.ORB.process(Unknown Source)
at com.sun.corba.ee.internal.iiop.RequestProcessor.process(Unknown Sourc
e)
at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(Unkn
own Source)
at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(U
nknown Source)
at java.lang.Thread.run(Thread.java:536)
WARNING: CORE3283: stderr: java.lang.NullPointerException
WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
sql.generator.UpdateQueryPlan.addConstraint(Unknown Source)
WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
sql.generator.UpdateQueryPlan.addBasetableConstraint(Unknown Source)
WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
sql.generator.UpdateQueryPlan.processStatements(Unknown Source)
WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
sql.generator.UpdateQueryPlan.build(Unknown Source)
WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
model.ClassDesc.getUpdateQueryPlanForUpdate(Unknown Source)
WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
model.ClassDesc.getUpdateQueryPlan(Unknown Source)
WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
SQLStoreManager.executeBatch(Unknown Source)
WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
SQLStateManager.updatePersistent(Unknown Source)
WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
impl.PersistenceManagerImpl.beforeCompletion(Unknown Source)
WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
impl.TransactionImpl.notifyBeforeCompletion(Unknown Source)
WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
impl.TransactionImpl.commitBefore(Unknown Source)
WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
impl.TransactionImpl.beforeCompletion(Unknown Source)
WARNING: CORE3283: stderr: at com.sun.ejb.containers.ContainerSynchronizati
on.beforeCompletion(Unknown Source)
WARNING: CORE3283: stderr: at com.sun.enterprise.distributedtx.J2EETransact
ion.commit(Unknown Source)
WARNING: CORE3283: stderr: at com.sun.enterprise.distributedtx.J2EETransact
ionManagerOpt.commit(Unknown Source)
WARNING: CORE3283: stderr: at com.sun.ejb.containers.BaseContainer.complete
NewTx(Unknown Source)
WARNING: CORE3283: stderr: at com.sun.ejb.containers.BaseContainer.postInvo
keTx(Unknown Source)
WARNING: CORE3283: stderr: at com.sun.ejb.containers.BaseContainer.postInvo
ke(Unknown Source)
WARNING: CORE3283: stderr: at com.siptech.pdf.ejb.config.session.ConfigSess
ionBean_EJBObjectImpl.setCountry(ConfigSessionBean_EJBObjectImpl.java:558)
WARNING: CORE3283: stderr: at com.siptech.pdf.ejb.config.session._ConfigSes
sionBean_EJBObjectImpl_Tie._invoke(Unknown Source)
WARNING: CORE3283: stderr: at com.sun.corba.ee.internal.POA.GenericPOAServe
rSC.dispatchToServant(Unknown Source)
WARNING: CORE3283: stderr: at com.sun.corba.ee.internal.POA.GenericPOAServe
rSC.internalDispatch(Unknown Source)
WARNING: CORE3283: stderr: at com.sun.corba.ee.internal.POA.GenericPOAServe
rSC.dispatch(Unknown Source)
WARNING: CORE3283: stderr: at com.sun.corba.ee.internal.iiop.ORB.process(Un
known Source)
WARNING: CORE3283: stderr: at com.sun.corba.ee.internal.iiop.RequestProcess
or.process(Unknown Source)
WARNING: CORE3283: stderr: at com.iplanet.ias.corba.ee.internal.iiop.Servic
ableWrapper.service(Unknown Source)
WARNING: CORE3283: stderr: at com.iplanet.ias.util.threadpool.FastThreadPoo
l$ThreadPoolThread.run(Unknown Source)
WARNING: CORE3283: stderr: at java.lang.Thread.run(Thread.java:536)
Thanks,
Muthu.Hi Muthu,
from looking into SQLStateManager.updatePersistent, I doubt that we can run into an NPE here.
Can you please send us the entire log file? BTW: It would be much easier for me to help you, if I could see line the numbers in the stack trace. Would it be possible for you to get an non
optimized build and rerun your application?
Thank you,
-- markus. -
UNABLE TO ACCESS SECURED EJB USING IIOP FROM JSP
Following codes does not work with IIOP when called from jsp returns an
com.sap.engine.services.iiop.CORBA.CORBAObject:com.sap.engine.services.iiop.server.portable.Delegate_1_1@8312b1 step2 RemoteException occurred in server thread; nested exception is: java.rmi.RemoteException: com.sap.engine.services.ejb.exceptions.BaseRemoteException: User Guest does not have access to method create(). at
Following codes does not work with IIOP when called from a fat client returns an
org.omg.CORBA.UNKNOWN: vmcid: 0x0 minor code: 0 completed: Maybe
at com.sun.corba.se.internal.core.UEInfoServiceContext.<init>(UEInfoServ
iceContext.java:33)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at com.sun.corba.se.internal.core.ServiceContextData.makeServiceContext(
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.jndi.cosnaming.CNCtxFactory");
p.put(Context.PROVIDER_URL, "iiop://hostname:50007");
p.put(Context.SECURITY_PRINCIPAL, "User");
p.put(Context.SECURITY_CREDENTIALS, "pass");
I have add java option to add IIOP filer
-Dorg.omg.PortableInterceptor.ORBInitializerClass.com.sap.engine.services.iiop.csiv2.interceptors.SecurityInitializer
Solution Required: Could you please detail me what steps in need to perform in order for me to access secure ejb using iiop protocol.
FYI -- How ever ejb security works with P4 protocol, If required i can send you the test case ear.
Thanks
Vijay
Following are the server side logs
java.rmi.RemoteException: com.sap.engine.services.ejb.exceptions.BaseRemoteException: User Guest does not have access to method create().
at test.TestEJBHomeImpl0.create(TestEJBHomeImpl0.java:91)
at test._TestEJBHome_Stub.create(_TestEJBHome_Stub.java:214)
at jsp_testIIOP1199698887113._jspService(jsp_testIIOP1199698887113.java:33)
at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: com.sap.engine.services.security.exceptions.BaseSecurityException: Caller not authorized.
at com.sap.engine.services.security.resource.ResourceHandleImpl.checkPermission(ResourceHandleImpl.java:608)
at com.sap.engine.services.security.resource.ResourceHandleImpl.checkPermission(ResourceHandleImpl.java:505)
at com.sap.engine.services.security.resource.ResourceContextImpl.checkPermission(ResourceContextImpl.java:45)
at test.TestEJBHomeImpl0.create(TestEJBHomeImpl0.java:89)
... 20 more
; nested exception is:
java.lang.SecurityException: com.sap.engine.services.security.exceptions.BaseSecurityException: Caller not authorized.
at com.sap.engine.services.security.resource.ResourceHandleImpl.checkPermission(ResourceHandleImpl.java:608)
at com.sap.engine.services.security.resource.ResourceHandleImpl.checkPermission(ResourceHandleImpl.java:505)
at com.sap.engine.services.security.resource.ResourceContextImpl.checkPermission(ResourceContextImpl.java:45)
at test.TestEJBHomeImpl0.create(TestEJBHomeImpl0.java:89)
at test._TestEJBHome_Stub.create(_TestEJBHome_Stub.java:214)
at jsp_testIIOP1199698887113._jspService(jsp_testIIOP1199698887113.java:33)
at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)That's the code that you need to execute but you should
probably encapsulate that code in Custom Action.
Orion has a EJB Tag Library that is free to distribute that
does all that stuff you just set some attributes.
Go to their site and look at their Tag Libraries.
Also look for other Tag Libraries Freely Available for EJB Access. -
Hi,
I want to report a bug in the WLE5.0 IDL compiler. It occurs in the
generated stub, skeleton and implementation files (*c,*s and _i)
files. Here is a description of the problem:
Say we have the following IDL:
Filename:filewithmoduleM1.idl
module M1 {
#include "BoundaryClasses\CORBA\Types\M1Complex.idl"
interfaceService {
boolean method1 (
interface Factory {
Service findService ();
The IDL compiler loses track of the Module M1 and does not scope the
interfaces inside the module. Henck even if we register a factory called
APSBalReporting::Factory it is registered as Factory. The problem gets
more interesting if we have another module that includes the first as
shown below:
Filename:filewithmoduleM2.idl
#include filewithmoduleM1.idl
module M2 {
#include "BoundaryClasses\CORBA\Types\M1Complex.idl"
interface Service {
boolean method2 (
interface Factory {
Service findService ();
Here it thinks that Service and Factory are the ones for module M1 and
so generates the return type as M1::Factory and M1::Service instead of
M2::Factory and M2::Service.
The IDL compiler used to work fine with code such as the above
previously.
Please let me know if you have any feedback for this bug and if any of
you have tried it.
Thanks,
Raman Ramesh
678-358-3581
mailto:[email protected]
www.cicube.comBEA customers who need this problem corrected must use WLE 5.1. A patch to WLE 5.0
or WLE 5.0.1 is not available.
Wendell MacKenzie wrote:
We received a patch that fixed this problem under WLE 5.01. There were problems
back porting the fix into the 5.0 release. Talk to Tom Hegadorn.
Mary Ann Slavin wrote:
Actually that is Clarify CASE 162819 not a Clarify CR number. That particular
problem has been corrected in WLE 5.1. This problem cannot be patched in WLE
5.0.1, so if you have encountered this problem, you should upgrade to WLE 5.1
and it is corrected as part of the base product, no patch required.
MAS
Wendell MacKenzie wrote:
You have 2 choices:
- upgrade to Version 5.1 (which includes CR162819)
- obtain the patch from BEA support for CR162819 to fix a bug in the IDL
compiler
that caused Module and Interface scope names to work incorrectly. Also,
where
nesting of IDL #includes exceeded 1 level deep, this caused problems.
You will have to install the patch onto version 5.01.
Regards,
Wendell MacKenzie
Ram Ramesh wrote:
Hi,
I want to report a bug in the WLE5.0 IDL compiler. It occurs in the
generated stub, skeleton and implementation files (*c,*s and _i)
files. Here is a description of the problem:
Say we have the following IDL:
Filename:filewithmoduleM1.idl
module M1 {
#include "BoundaryClasses\CORBA\Types\M1Complex.idl"
interfaceService {
boolean method1 (
interface Factory {
Service findService ();
The IDL compiler loses track of the Module M1 and does not scope the
interfaces inside the module. Henck even if we register a factory called
APSBalReporting::Factory it is registered as Factory. The problem gets
more interesting if we have another module that includes the first as
shown below:
Filename:filewithmoduleM2.idl
#include filewithmoduleM1.idl
module M2 {
#include "BoundaryClasses\CORBA\Types\M1Complex.idl"
interface Service {
boolean method2 (
interface Factory {
Service findService ();
Here it thinks that Service and Factory are the ones for module M1 and
so generates the return type as M1::Factory and M1::Service instead of
M2::Factory and M2::Service.
The IDL compiler used to work fine with code such as the above
previously.
Please let me know if you have any feedback for this bug and if any of
you have tried it.
Thanks,
Raman Ramesh
678-358-3581
mailto:[email protected]
www.cicube.com -
Error with get(Home)Handle
Hello
i have deployed an ejb on the sun one server and l can invoke all the methods i need on this EJB . But when i try to invoke the method getHandle or getHomeHandle or getEJBMetaData, i have this error on the server : (this error is with getHandle but it is the same with the two others methods)
org.omg.CORBA.BAD_OPERATION: The delegate has not been set! vmcid: 0x0
minor c
ode: 0 completed: No
at org.omg.CORBA.portable.ObjectImpl._get_delegate(ObjectImpl.java:53)
at com.sun.corba.ee.internal.iiop.CDROutputStream_1_0.write_Object(CDROu
tputStream_1_0.java:571)
at com.sun.corba.ee.internal.iiop.CDROutputStream.write_Object(CDROutput
Stream.java:227)
at com.sun.org.omg.CORBA.IDLTypeHelper.write(IDLTypeHelper.java:70)
at com.sun.org.omg.CORBA.ValueMemberHelper.write(ValueMemberHelper.java:
140)
at com.sun.org.omg.CORBA.ValueMemberSeqHelper.write(ValueMemberSeqHelper
.java:83)
at com.sun.org.omg.CORBA.ValueDefPackage.FullValueDescriptionHelper.writ
e(FullValueDescriptionHelper.java:193)
at com.sun.org.omg.SendingContext._CodeBaseImplBase._invoke(_CodeBaseImp
lBase.java:85)
at com.sun.corba.ee.internal.corba.ServerDelegate.dispatch(ServerDelegat
e.java:379)
at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:275)
at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProces
sor.java:83)
at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(Serv
icableWrapper.java:25)
at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(F
astThreadPool.java:283)
at java.lang.Thread.run(Thread.java:536)
and on the client :
java.rmi.MarshalException: CORBA MARSHAL 1398079699 Maybe; nested exception
is:
org.omg.CORBA.MARSHAL: Unable to read value from underlying bridge : Can't
skip sender's custom marshaled class:
RMI:com.sun.ejb.portable.HandleImpl:7969D1B587E037EF:27329270E7B1269F
vmcid: SUN minor code: 211 completed: Maybe
at com.sun.corba.se.internal.iiop.ShutdownUtilDelegate.mapSystemException
(ShutdownUtilDelegate.java:97)
at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
at Test02Stub.getHandle(Unknown Source)
at Test01.main(Test01.java:48)
Caused by: org.omg.CORBA.MARSHAL: Unable to read value from underlying
bridge : Can't skip sender's custom marshaled class:
RMI:com.sun.ejb.portable.HandleImpl:7969D1B587E037EF:27329270E7B1269F
vmcid: SUN minor code: 211 completed: Maybe
at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_value
(CDRInputStream_1_0.java:944)
at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_abstract_interface
(CDRInputStream_1_0.java:850)
at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_abstract_interface
(CDRInputStream_1_0.java:842)
at com.sun.corba.se.internal.iiop.CDRInputStream.read_abstract_interface
(CDRInputStream.java:309)
at Test02Stub.getHandle(Unknown Source)
... 1 more
It seems that there is a probleme with serialization ...
I have the same JDK on the server and on the client.
Can someone explain me please the problem ?
Thank you very mutch
olivierHi,
For advanced search view, you should manually specify the super class to your view controller as the advanced search controller class. I'm not exactly sure what the name is, but you can find it out from the standard search view components. Do not pick the immediate super class from the standard components, dog through and pick the basic advanced search controller. This class will contain the methods that you mentioned.
Regards,
Arun Prakash -
Remote or transactional roll back exception occurred
Hi,
I am getting this message, anybody could help me?
SEVERE ( 1166): EJB5071: Some remote or transactional roll back exception occurred
com.sun.jdo.api.persistence.support.JDOFatalInternalException: Got an unknown exception.
NestedException: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at com.sun.jdo.spi.persistence.support.sqlstore.SQLStateManager.updatePersistent(SQLStateManager.java:1012)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl.beforeCompletion(PersistenceManagerImpl.java:1251)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.TransactionImpl.notifyBeforeCompletion(TransactionImpl.java:1115)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.TransactionImpl.commitBefore(TransactionImpl.java:743)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.TransactionImpl.beforeCompletion(TransactionImpl.java:646)
at com.sun.ejb.containers.ContainerSynchronization.beforeCompletion(ContainerSynchronization.java:105)
at com.sun.enterprise.distributedtx.J2EETransaction.commit(J2EETransaction.java:183)
at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:310)
at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:1786)
at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:1585)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:510)
at br.com.inttegra.infra.businesslayer.ejb.ControllerBean_EJBObjectImpl.insert(ControllerBean_EJBObjectImpl.java:136)
at br.com.inttegra.infra.businesslayer.ejb._ControllerBean_EJBObjectImpl_Tie._invoke(Unknown Source)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(GenericPOAServerSC.java:569)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(GenericPOAServerSC.java:211)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(GenericPOAServerSC.java:113)
at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:275)
at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:83)
at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(ServicableWrapper.java:25)
at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(FastThreadPool.java:283)
at java.lang.Thread.run(Thread.java:536)Hi,
Please make shure, that your sun-cmp-mappings.xml is correct. The exception in your message just indicates a problem executing a sql statement. Please look into your log file again if you could find another exception trace showing where the IndexOutOfBoundsException happens.
Thanks,
-- markus. -
FPC Bench, Database API and a lot more...
FPC Bench is a FREE java benchmark to test and compare the performance of a phone with others phones.
FPC Bench is a complete test tool to test performance and features.
- CPU/Memory benchmark (single threaded and multi threaded)
- NetMeter benchmark (GPRS, EDGE, UMTS, HSDPA speed)
- Check for total heap memory size
- Check for free heap memory size
- Check for full screen's maximum resolution in a Java canvas
- Check for double buffering
- Check for RMS size
- Check for RMS speed (external/internal memory speed)
- Check for your internet connection speed
- Check for available profile/configuration
- Check for the latest APIs:
JSR 75: File System access API.
JSR 82: Bluetooth/OBEX API.
JSR 118: Mobile Information Device Profile API.
JSR 120: Wireless Messaging API (WMA 1.1).
JSR 135: Multimedia API (MMAPI)
JSR 139: Connected Limited Device Configuration 1.1
JSR 172: Wev service specification.
JSR 177: Security and Truste Services API.
JSR 179: Location API.
JSR 180: SIP API.
JSR 184: Mobile 3D Graphics.
JSR 185: Java Tech for Wireless Industry API.
JSR 205: Wireless Messaging API (WMA 2.0).
JSR 209: Advanced graphics and user interface.
JSR 211: Content Handler API.
JSR 226: Scalable 2D vector graphics for JavaME.
JSR 229: Payment API.
JSR 234: Advanced Multimedia API.
JSR 238: Mobile internationalization API.
JSR 239: Java binding for OpenGL ES.
JSR 248: MSA Umbrella.
JSR 248: Fully featured MSA.
JSR 256: Mobile Sensor API.
JSR 257: Contactless communication API.
This application runs on all Java Micro Edition MIDP platforms.
We have a big database where you can check if a phone supports an API simply by filtering our database with the api of your interest.
Please help us enlarging our results database by sending us your results directly from FPC Bench using Internet or SMS.
Sending results by Internet is really cheaper than a normal SMS.
You can find more info about our project here:
http://www.dpsoftware.org
Message was edited by:
overtheclockFPC Bench is a FREE java benchmark to test and compare the performance of a phone with others phones.
FPC Bench is a complete test tool to test performance and features.
- CPU/Memory benchmark (single threaded and multi threaded)
- NetMeter benchmark (GPRS, EDGE, UMTS, HSDPA speed)
- Check for total heap memory size
- Check for free heap memory size
- Check for full screen's maximum resolution in a Java canvas
- Check for double buffering
- Check for RMS size
- Check for RMS speed (external/internal memory speed)
- Check for your internet connection speed
- Check for available profile/configuration
- Check for the latest APIs:
JSR 75: File System access API.
JSR 82: Bluetooth/OBEX API.
JSR 118: Mobile Information Device Profile API.
JSR 120: Wireless Messaging API (WMA 1.1).
JSR 135: Multimedia API (MMAPI)
JSR 139: Connected Limited Device Configuration 1.1
JSR 172: Wev service specification.
JSR 177: Security and Truste Services API.
JSR 179: Location API.
JSR 180: SIP API.
JSR 184: Mobile 3D Graphics.
JSR 185: Java Tech for Wireless Industry API.
JSR 205: Wireless Messaging API (WMA 2.0).
JSR 209: Advanced graphics and user interface.
JSR 211: Content Handler API.
JSR 226: Scalable 2D vector graphics for JavaME.
JSR 229: Payment API.
JSR 234: Advanced Multimedia API.
JSR 238: Mobile internationalization API.
JSR 239: Java binding for OpenGL ES.
JSR 248: MSA Umbrella.
JSR 248: Fully featured MSA.
JSR 256: Mobile Sensor API.
JSR 257: Contactless communication API.
This application runs on all Java Micro Edition MIDP platforms.
We have a big database where you can check if a phone supports an API simply by filtering our database with the api of your interest.
Please help us enlarging our results database by sending us your results directly from FPC Bench using Internet or SMS.
Sending results by Internet is really cheaper than a normal SMS.
You can find more info about our project here:
http://www.dpsoftware.org
Message was edited by:
overtheclock -
Sun One EJB problem - PortableRemoteObject.narrow ClassCastException...
Hi all,
I'm using Sun One app server 7 for the first time and am having a bit of difficulty. I have deployed a very simple EAR containing one stateless session bean just to test it. The ear appears to have deployed correctly but PortableRemoteObject.narrow is throwing a ClassCastException when trying to do a remote lookup on the bean.
I'm using the following env settings...
initialContextFactory = com.sun.enterprise.naming.SerialInitContextFactory
providerUrl = iiop://127.0.0.1:3700The lookup appears to work okay - this line of code executes successfully
Object objref = initialContext.lookup(jndiHomeName);...objref appears to initalise succesfully (if I toString() it I get an iiop stream of some sort). However, it is the next line that is failing...
Object obj = PortableRemoteObject.narrow(objref, homeClass);...this is the exception I get...
java.lang.ClassCastException
at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(Unknown Source)
at javax.rmi.PortableRemoteObject.narrow(Unknown Source)
at com.scorlog.ServiceLocator.getRemoteHome(ServiceLocator.java:145)Furthermore, when PortableRemoteObject.narrow() executes, I get the following console exception on the server...
com.sun.corba.ee.internal.core.DuplicateServiceContext
at com.sun.corba.ee.internal.core.ServiceContexts.put(ServiceContexts.java:208)
at com.sun.corba.ee.internal.iiop.ServerRequestImpl.getServiceContextsForReply(ServerRequestImpl.java:258)
at com.sun.corba.ee.internal.iiop.ServerRequestImpl.createResponse(ServerRequestImpl.java:89)
at com.sun.corba.ee.internal.POA.SubcontractResponseHandler.createReply(SubcontractResponseHandler.java:50)
at org.omg.CosNaming.NamingContextExtPOA._invoke(NamingContextExtPOA.java:377)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(GenericPOAServerSC.java:569)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(GenericPOAServerSC.java:211)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(GenericPOAServerSC.java:113)
at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:275)
at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:83)
at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(ServicableWrapper.java:25)
at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(FastThreadPool.java:288)
at java.lang.Thread.run(Thread.java:534)
FINE: No SAS context element found in service context listI have seen the forum that other users have had similar problems and the suggestion was that the client can't see the ejb stubs. I don't think this is the problem in my case as I deployed the same ear on weblogic 7 (obviously substituting sun-ejb-jar.xml for a weblogic-ejb-jar.xml) and successfully executed the same client code for the remote lookup.
My feeling is that the problem revolves around the JNDI binding. Could it be the case that even though the object is binding properly, the app server doesn't realise it is an ejb and not a jdbc/jms/mail object? The documentation gives details on looking up a JDBC, javamail, URL, JMS resource (http://docs.sun.com/source/817-2177/djjndi.html) but not ejb so I could be doing something simple wrong here...
My sun-ejb-jar.xml is as follows....
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by XDoclet -->
<sun-ejb-jar>
<enterprise-beans>
<ejb>
<ejb-name>SBTest</ejb-name>
<jndi-name>ejb/SBTestBean</jndi-name>
</ejb>
</enterprise-beans>
</sun-ejb-jar>However, I noticed on another thread, a user had some additional elements under their <ejb> tag like this...
<?xml version="1.0" encoding="UTF-8"?>
<sun-ejb-jar>
<enterprise-beans>
<name>Ejb1</name>
<ejb>
<ejb-name>HelloBean</ejb-name>
<jndi-name>HelloBean</jndi-name>
<ejb-ref>
<ejb-ref-name>ejb/helloBean</ejb-ref-name>
<jndi-name>HelloBean</jndi-name>
</ejb-ref>
</ejb>
</enterprise-beans>
</sun-ejb-jar>However, when I tried to add and <ejb-ref> element to my xml doc the ear failed to deploy. This is the error I get in the admin console...
Error
Deployment Error -- Error while running ejbc -- Fatal Error from EJB Compiler -- --
Failed to load deployment descriptor for: testApp cause: Error converting J2EE-
specific ejb xml to object representation: testApp.jar app_testApp Generated by
XDoclet This bean has no ejb reference by the name of [ejb/SBtest]
ejb/SBTestSBTestThis problem is eating up my time and being made all the more frustrating by the fact that a) it deploys on weblogic and b) the documentation is terrible. Even the sample application that comes with sun one only provides the .class files for the code that does the ejb look up and not the .java so you can't see how they hell they do it!
Unfortunately I am tied to using Sun One so I really need to solve this problem fast. If anyone can provide any help I'd greatly appreciate it.
Cheers,
John :)I am having the same problem after upgrading to Sun One from iplanet. Any clue?
-
Error using EJB from webapp.
Hi
Im trying to move a j2ee application from BEA to SunOne A 7.0.
Im getting an error when using/creating a EJB.
But i can use any method on another EJB. I havent set any authority rules at all and the xml file looks the same for both EJBs.
This application works fine on the BEA container.
The error is:
javax.ejb.EJBException: nested exception is: javax.ejb.EJBException: nested exception is: javax.ejb.CreateException: Could not create stateless EJB: java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write)
javax.ejb.EJBException: nested exception is: javax.ejb.CreateException: Could not create stateless EJB: java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write)
javax.ejb.CreateException: Could not create stateless EJB: java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write)
at com.sun.ejb.containers.StatelessSessionContainer.createStatelessEJB(StatelessSessionContainer.java:528)
at com.sun.ejb.containers.StatelessSessionContainer.access$000(StatelessSessionContainer.java:68)
at com.sun.ejb.containers.StatelessSessionContainer$SessionContextFactory.create(StatelessSessionContainer.java:734)
at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(NonBlockingPool.java:176)
at com.sun.ejb.containers.StatelessSessionContainer.getContext(StatelessSessionContainer.java:457)
at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:452)
at se.ltjkpg.itc.intra.ejb.session.db.DBinterfaceBean_EJBObjectImpl.select(DBinterfaceBean_EJBObjectImpl.java:108)
at se.ltjkpg.itc.intra.ejb.session.db._DBinterfaceBean_EJBObjectImpl_Tie._invoke(Unknown Source)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(GenericPOAServerSC.java:569)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(GenericPOAServerSC.java:211)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(GenericPOAServerSC.java:113)
at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:275)
at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:83)
at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(ServicableWrapper.java:25)
at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(FastThreadPool.java:283)
at java.lang.Thread.run(Thread.java:536)
javax.ejb.EJBException: nested exception is: javax.ejb.CreateException: Could not create stateless EJB: java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write)
at com.sun.ejb.containers.StatelessSessionContainer$SessionContextFactory.create(StatelessSessionContainer.java:736)
at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(NonBlockingPool.java:176)
at com.sun.ejb.containers.StatelessSessionContainer.getContext(StatelessSessionContainer.java:457)
at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:452)
at se.ltjkpg.itc.intra.ejb.session.db.DBinterfaceBean_EJBObjectImpl.select(DBinterfaceBean_EJBObjectImpl.java:108)
at se.ltjkpg.itc.intra.ejb.session.db._DBinterfaceBean_EJBObjectImpl_Tie._invoke(Unknown Source)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(GenericPOAServerSC.java:569)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(GenericPOAServerSC.java:211)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(GenericPOAServerSC.java:113)
at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:275)
at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:83)
at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(ServicableWrapper.java:25)
at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(FastThreadPool.java:283)
at java.lang.Thread.run(Thread.java:536)
javax.ejb.EJBException: nested exception is: javax.ejb.EJBException: nested exception is: javax.ejb.CreateException: Could not create stateless EJB: java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write)
at com.sun.ejb.containers.StatelessSessionContainer.getContext(StatelessSessionContainer.java:461)
at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:452)
at se.ltjkpg.itc.intra.ejb.session.db.DBinterfaceBean_EJBObjectImpl.select(DBinterfaceBeaGrant the property permission in config/server.policy file of your app server instance
for eg:
grant {
permission java.util.PropertyPermission "os.version", "read";
HTH
Satish -
Error while creating JAAS subject credentials
Hello,
I have a client program that runs in a separeate JVM accessing a server (on a different JVM of course). A user name and password is given as inputs to the client program. One of our testers have found out that any user name containing the "@" character seems to mess up the JAAS authentication. For example, as user names,
sunil.com will work.
[email protected] will not
sunil@xyz will not.
On the client side, I get a
"nested exception is: org.omg.CORBA.UNKNOWN: vmcid: SUN minor code: 202 completed: Maybe" error and on the server side I see the following
SEVERE: IOP5035: Error while creating a JAAS subject credential.
com.sun.enterprise.iiop.security.SecurityMechanismException: Unknown realm
at com.sun.enterprise.iiop.security.GSSUPToken.<init>(GSSUPToken.java:222)
at com.sun.enterprise.iiop.security.SecServerRequestInterceptor.createAuthCred(SecServerRequestInterceptor.java:387)
at com.sun.enterprise.iiop.security.SecServerRequestInterceptor.receive_request(SecServerRequestInterceptor.java:562)
at com.sun.corba.ee.internal.Interceptors.InterceptorInvoker.invokeServerInterceptorIntermediatePoint(InterceptorInvoker.java:479)
at com.sun.corba.ee.internal.Interceptors.PIORB.invokeServerPIIntermediatePoint(PIORB.java:810)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(GenericPOAServerSC.java:207)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(GenericPOAServerSC.java:113)
at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:275)
at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:83)
at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(ServicableWrapper.java:25)
at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(FastThreadPool.java:283)
at java.lang.Thread.run(Thread.java:536)
Does any one know if this is expected?I'm not using AS.
I have full permission on the file.
It's not a non-English environment.
So I feel it doesn't resemble.
My environment is on 11.1.0.6.0 and that note applies to Version: 10.1.3.0.0 to 10.1.3.1.0
Regards,
S.K.
Edited by: Santosh Kumar on Oct 7, 2009 4:25 PM -
Caught Exception when trying to create pool Object
Hi All,
When a stateless session bean is looking up the entity bean following 'could not create pool object' exception is throwing.
[14/Jan/2003:09:12:50] SEVERE ( 1048): EJB5070: Exception creating stateless session bean : [java.lang.reflect.InvocationTargetException]
[14/Jan/2003:09:12:50] SEVERE ( 1048): EJB5017: Exception while running preinvoke : ejbName = [ConfigSessionBean]
[14/Jan/2003:09:12:50] SEVERE ( 1048):
javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: c
java.lang.RuntimeException: Caught Exception when trying to create pool Object
at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(Unknown Source)
at com.sun.ejb.containers.StatelessSessionContainer.getContext(Unknown Source)
at com.sun.ejb.containers.BaseContainer.preInvoke(Unknown Source)
at com.siptech.pdf.ejb.config.session.ConfigSessionBean_EJBObjectImpl.getAllModules(ConfigSessionBean_EJBObjectImpl.java:255)
at com.siptech.pdf.ejb.config.session._ConfigSessionBean_EJBObjectImpl_Tie._invoke(Unknown Source)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(Unknown Source)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(Unknown Source)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(Unknown Source)
at com.sun.corba.ee.internal.iiop.ORB.process(Unknown Source)
at com.sun.corba.ee.internal.iiop.RequestProcessor.process(Unknown Source)
at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(Unknown Source)
at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(Unknown Source)
at java.lang.Thread.run(Thread.java:536)
Caused by: javax.ejb.EJBException: nested exception is: javax.ejb.CreateException: Could not create stateless EJB:
java.lang.reflect.InvocationTargetException
at com.sun.ejb.containers.StatelessSessionContainer$SessionContextFactory.create(Unknown Source)
... 13 more
javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: Caught Exception when trying to create pool Object
at com.sun.ejb.containers.StatelessSessionContainer.getContext(Unknown Source)
at com.sun.ejb.containers.BaseContainer.preInvoke(Unknown Source)
at com.siptech.pdf.ejb.config.session.ConfigSessionBean_EJBObjectImpl.getAllModules(ConfigSessionBean_EJBObjectImpl.java:255)
at com.siptech.pdf.ejb.config.session._ConfigSessionBean_EJBObjectImpl_Tie._invoke(Unknown Source)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(Unknown Source)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(Unknown Source)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(Unknown Source)
at com.sun.corba.ee.internal.iiop.ORB.process(Unknown Source)
at com.sun.corba.ee.internal.iiop.RequestProcessor.process(Unknown Source)
at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(Unknown Source)
at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(Unknown Source)
at java.lang.Thread.run(Thread.java:536)
I have also specified the following properties in the sunejbjar.xml for the session bean.
<ejb>
<bean-pool>
<steady-pool-size>2</steady-pool-size>
<resize-quantity>5</resize-quantity>
<max-pool-size>200</max-pool-size>
<pool-idle-timeout-in-seconds>3600</pool-idle-timeout-in-seconds>
</bean-pool>
</ejb>
--Muthu.Muthu,
To find out whether the problem is with container setting or with your application, can you create a simple stateless session bean and check if it works fine. If it works fine send me ejb-jar.xml and sun-ejb-jar.xml for your application.
Deepak -
Exception when trying to create pool Object
I've been trying to get the forte 4.0ee ProductRichClient example for container managed beans to work.
After the deployment to Sun One I got following exception when I'm using the client:
18.10.2002 10:56:20 com.iplanet.ias.appclient.Main <init>
INFO:
---------AppClient Container--------
18.10.2002 10:56:20 com.iplanet.ias.appclient.Main setTagetServerProperties
INFO: ACC001:Using ClientContainer file: [C:\Sun\AppServer7\appserv\domains\domain1\server1\config\sun-acc.xml].
18.10.2002 10:56:20 com.iplanet.ias.appclient.Main <init>
INFO: ACC014: ORB host name: [NOD]
18.10.2002 10:56:20 com.iplanet.ias.appclient.Main <init>
INFO: ACC013: ORB port number: [3700]
18.10.2002 10:56:21 com.sun.enterprise.appclient.AppContainer preInvoke
INFO: ACC007: Initiating Login ...
18.10.2002 10:56:21 com.iplanet.ias.appclient.Main <init>
INFO: ACC009: Load Application Class: [CMPClient.SwingClient]
18.10.2002 10:56:23 com.iplanet.ias.appclient.Main <init>
INFO: Application main() finished normally
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: nested exception is: java.lang.RuntimeException: Caught Exception when trying to create pool Object ; nested exception is:
java.lang.RuntimeException: Caught Exception when trying to create pool Object
at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.mapSystemException(Unknown Source)
at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
at CMPServer._ProductHome_Stub.create(Unknown Source)
at CMPClient.SwingClient.AddRow_ButtonActionPerformed(SwingClient.java:127)
at CMPClient.SwingClient.access$100(SwingClient.java:24)
at CMPClient.SwingClient$2.actionPerformed(SwingClient.java:89)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1820)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:258)
at java.awt.Component.processMouseEvent(Component.java:5021)
at java.awt.Component.processEvent(Component.java:4818)
at java.awt.Container.processEvent(Container.java:1525)
at java.awt.Component.dispatchEventImpl(Component.java:3526)
at java.awt.Container.dispatchEventImpl(Container.java:1582)
at java.awt.Component.dispatchEvent(Component.java:3367)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3359)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3074)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3004)
at java.awt.Container.dispatchEventImpl(Container.java:1568)
at java.awt.Window.dispatchEventImpl(Window.java:1581)
at java.awt.Component.dispatchEvent(Component.java:3367)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:191)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
Caused by: java.rmi.RemoteException: nested exception is: java.lang.RuntimeException: Caught Exception when trying to create pool Object ; nested exception is:
java.lang.RuntimeException: Caught Exception when trying to create pool Object
at com.sun.enterprise.iiop.POAProtocolMgr.mapException(Unknown Source)
at com.sun.ejb.containers.BaseContainer.postInvoke(Unknown Source)
at CMPServer.ProductEJB2024414397_ConcreteImpl_RemoteHomeImpl.create(ProductEJB2024414397_ConcreteImpl_RemoteHomeImpl.java:33)
at CMPServer._ProductEJB2024414397_ConcreteImpl_RemoteHomeImpl_Tie._invoke(Unknown Source)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(Unknown Source)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(Unknown Source)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(Unknown Source)
at com.sun.corba.ee.internal.iiop.ORB.process(Unknown Source)
at com.sun.corba.ee.internal.iiop.RequestProcessor.process(Unknown Source)
at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(Unknown Source)
at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(Unknown Source)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.RuntimeException: Caught Exception when trying to create pool Object
at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(Unknown Source)
at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(Unknown Source)
at com.sun.ejb.containers.EntityContainer.getPooledEJB(Unknown Source)
at com.sun.ejb.containers.EntityContainer.getContext(Unknown Source)
at com.sun.ejb.containers.BaseContainer.preInvoke(Unknown Source)
at CMPServer.ProductEJB2024414397_ConcreteImpl_RemoteHomeImpl.create(ProductEJB2024414397_ConcreteImpl_RemoteHomeImpl.java:25)
... 9 more
Caused by: javax.ejb.EJBException: nested exception is: java.lang.NullPointerException
at com.sun.ejb.containers.EntityContainer$EntityContextFactory.create(Unknown Source)
... 15 more
Any thoughts on why this exception is being thrown?
Thanks for any help!
Richardthis sample has been tested by the SunONE TOOLs QA
and is working. Please check your deployment descriptors
and use the cmp samples which come with S1AS to see if your
descriptors are correct.
Maybe you are looking for
-
How do I restore my iPhone 4S to iOS 6 (instead of 6.1.2)?
My phone has had serious issues with dropping calls since I upgraded to iOS 6.1, and then 6.1.2. I frequently get the "calls failed" message. I think the iOS is the problem, so I want to roll back from 6.1.2. I made a backup through iTunes, althou
-
IPod shuffle 4th Gen. How to start playing podcast from the very beginning once again?
Hello to everybody in this forum, I bought a new iPod shuffle 4th Gen music player for about two weeks ago. I love this device, it works great as well as it's sound quality amazes me after Windows Mobile 6.0 Phone, Transcend MP3 and even Samsung
-
How do i publish comments in a shared review?
It used to automatically give me the option with a publish button, but now I don't see it anywhere.
-
BUG: Record Limit per Document doesn't work for PDF in CS4 - does it work in CS5?
Hey all - I'm attempting to export 100 data merged documents to pdf. I know i can use "Record Limit per Document" set to 1 to create 100 InDesign files, which isn't what i want to do. When you select "Export to PDF" in the data merge window, the "r
-
HT204053 how to share my songs with other computers in house
how to share music with other computers in house