I am using JBoss 3.x. I have successfully deployed Beans to JBoss server and in order to test the functionality of bean, i am testing it through Jython scripts. Client is able to locate correctly the JNDI name reference but when client is making call to Bean, following exception is raised, could any one help me in tracing out the cause of error. I am also pasting my jython and startup script with that mail.
Thanks in advance,
Harish
-----------------------------------------------------------------------------
Traceback (innermost last):
File "<console>", line 1, in ?
File "startup.py", line 31, in makene
java.lang.reflect.UndeclaredThrowableException
at $Proxy1.createNE(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 org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
at org.python.core.PyMethod.__call__(PyMethod.java)
at org.python.core.PyObject.__call__(PyObject.java)
at org.python.core.PyObject.invoke(PyObject.java)
at org.python.pycode._pyx0.makene$3(startup.py:31)
at org.python.pycode._pyx0.call_function(startup.py)
at org.python.core.PyTableCode.call(PyTableCode.java)
at org.python.core.PyTableCode.call(PyTableCode.java)
at org.python.core.PyFunction.__call__(PyFunction.java)
at org.python.pycode._pyx4.f$0(<console>:1)
at org.python.pycode._pyx4.call_function(<console>)
at org.python.core.PyTableCode.call(PyTableCode.java)
at org.python.core.PyCode.call(PyCode.java)
at org.python.core.Py.runCode(Py.java)
at org.python.core.Py.exec(Py.java)
at org.python.util.PythonInterpreter.exec(PythonInterpreter.java)
at org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter.java)
at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java)
at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java)
at org.python.util.InteractiveConsole.push(InteractiveConsole.java)
at org.python.util.InteractiveConsole.interact(InteractiveConsole.java)
at org.python.util.jython.main(jython.java)
Caused by: javax.ejb.CreateException: Could not dereference object
at com.alcatel.gem.ems.ne.ejb.NEContainerEJB.ejbCreate(NEContainerEJB.java:285)
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 org.jboss.ejb.StatelessSessionEnterpriseContext.<init>(StatelessSessionEnterpriseContext.java:52)
at org.jboss.ejb.plugins.StatelessSessionInstancePool.create(StatelessSessionInstancePool.java:35)
at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:146)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:58)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:117)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:322)
at org.jboss.ejb.Container.invoke(Container.java:674)
at sun.reflect.GeneratedMethodAccessor98.invoke(Unknown Source)
at org.python.core.PyCode.call(PyCode.java)
at org.python.core.Py.runCode(Py.java)
at org.python.core.Py.exec(Py.java)
at org.python.util.PythonInterpreter.exec(PythonInterpreter.java)
at org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter.java)
at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java)
at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java)
at org.python.util.InteractiveConsole.push(InteractiveConsole.java)
at org.python.util.InteractiveConsole.interact(InteractiveConsole.java)
at org.python.util.jython.main(jython.java)
Caused by: javax.ejb.CreateException: Could not dereference object
at com.alcatel.gem.ems.ne.ejb.NEContainerEJB.ejbCreate(NEContainerEJB.java:285)
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 org.jboss.ejb.StatelessSessionEnterpriseContext.<init>(StatelessSessionEnterpriseContext.java:52)
at org.jboss.ejb.plugins.StatelessSessionInstancePool.create(StatelessSessionInstancePool.java:35)
at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:146)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:58)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:117)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:322)
at org.jboss.ejb.Container.invoke(Container.java:674)
at sun.reflect.GeneratedMethodAccessor98.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:359)
at sun.reflect.GeneratedMethodAccessor95.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:536)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:139)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:92)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80)
at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:109)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:82)
... 27 more
java.lang.reflect.UndeclaredThrowableException: java.lang.reflect.UndeclaredThrowableException
STARTUP.PY SCRIPT -----------------------
class JndiInitialContext(InitialContext):
def __init__(self): jndiProps = Hashtable() jndiProps.put(Context.INITIAL_CONTEXT_FACTORY, 'org.jnp.interfaces.NamingContextFactory') jndiProps.put(Context.URL_PKG_PREFIXES, 'org.jboss.naming:org.jnp.interfaces') jndiProps.put(Context.PROVIDER_URL, '139.54.132.72:1199') InitialContext.__init__(self, jndiProps)
ic = JndiInitialContext() home = ic.lookup('ems/NEContainer') ne = home.create()
def makene(id):
ne.createNE('DEF_NETYPE', 'DEF_NERELEASE', 'TJT', id, 'TL1', 'nowhere', None, 0)
def makelocal(id):
makene1(id, 'DEF_NETYPE', 'DEF_NERELEASE', 'gem_ct#9', 'gem_ct9', '3456', '127.0.0.1')
def makene71(id):
#ne.createNE('1671', 'R01_00_00', 'SC', id, 'TL1', 'nowhere', None, 0)
makene1(id, 'DEF_NETYPE', 'DEF_NERELEASE', 'gem_ct#9', 'gem_ct9', '3082', '143.209.156.231')
def makelmc(id):
makene1(id, 'DEF_NETYPE', 'DEF_NERELEASE', 'abenz1', 'abenz_1', '23', '143.209.214.174')
def makene1(id, type, release, user, pswd, port, ip): addresses = zeros(4,String) addresses[0]=user addresses[1]=pswd addresses[2]=port addresses[3]=ip makene2(id, type, release, addresses)
def makene2(id, type, release, addresses):
#ne.createNE(type, release, 'LMC5', id, 'TL1', 'nowhere', addresses, 0)
ne.createNE(type, release, 'PLEASE-SET-SID', id, 'TL1', 'nowhere', addresses, 0)
def startSupervision(id): ne.startNESupervision(id)
def deletene(id): ne.removeNE(id)
def cleanup(): home.delete();
JYTHON --------------------- #!/bin/sh ############################################################################### # # A GEM specific version of the jython command that loads all # available client libraries # ###############################################################################
CACHEDIR="$GEM_RUNTIME_DIR/pycache"
JARDIRS="/nmthomes/kumaha/djars /multisite/projects/vobs/gemfwk/runtime/pycache/packages/jython_client"
CPATH=""
for dir in $JARDIRS ; do for jfile in $dir/*.jar ; do CPATH=$jfile:$CPATH done done
if [ ! -x $CACHEDIR ]; then mkdir -p $CACHEDIR if [ $? -ne 0 ]; then echo "jython: unable to create the jython cache directory." exit 1 fi elif [ ! -d $CACHEDIR ]; then echo "jython: the cache location is not a directory." exit 1 fi
"/apps/sun5_8/java1.4.1/bin/java" \
-Dpython.home="/nmthomes/kumaha/staging" \
-Dpython.cachedir="$GEM_RUNTIME_DIR/pycache" \
-classpath "/nmthomes/mnigam/tnd_cots/JYTHON_2.1/jython.jar:$CPATH:$CLASSPATH" \
"org.python.util.jython" "$@"
~
_________________________________________________________________
Attention NRIs! Banking worries? http://server1.msn.co.in/msnspecials/nriservices/index.asp Get smart tips.
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development