java.lang.reflect.UndeclaredThrowableException when deploying with bsh

304 views
Skip to first unread message

Sandarenu

unread,
Jun 16, 2009, 1:27:24 AM6/16/09
to mobicents-public
Hi all,
I got the following exception when I deploy a RA and Sbb I developed.
But even though I got this exception, everything deployed correctly
and was working fine. Can anyone explain me the meaning of this
exception and how to fix this.

2.3.GA/jboss-4.2.3.GA/server/default/conf/jboss-service.xml
2009-06-16 10:26:37,886 DEBUG [org.jboss.web.tomcat.service.JBossWeb]
Saw org.jboss.system.server.started notification, starting connectors
2009-06-16 10:26:37,925 DEBUG
[org.jboss.varia.deployment.BeanShellScript] Failed to obtain
interfaces
java.lang.reflect.UndeclaredThrowableException
at $Proxy85.getInterfaces(Unknown Source)
at org.jboss.varia.deployment.BeanShellScript.loadScript
(BeanShellScript.java:410)
at org.jboss.varia.deployment.BeanShellScript.<init>
(BeanShellScript.java:109)
at org.jboss.varia.deployment.BeanShellSubDeployer.create
(BeanShellSubDeployer.java:153)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:
969)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:
818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:
782)
at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown
Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke
(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke
(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke
(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke
(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:
210)
at $Proxy9.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy
(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan
(URLDeploymentScanner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner
$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner
$ScannerThread.loop(AbstractDeploymentScanner.java:274)
at org.jboss.deployment.scanner.AbstractDeploymentScanner
$ScannerThread.run(AbstractDeploymentScanner.java:225)
Caused by: Method getInterfaces() not found in bsh scripted object:
global : at Line: -1 : in file: <Called from Java Code> : <Compiled
Java Code>

at bsh.This.invokeMethod(Unknown Source)
at bsh.This.invokeMethod(Unknown Source)
at bsh.XThis$Handler.invokeImpl(Unknown Source)
at bsh.XThis$Handler.invoke(Unknown Source)
... 25 more
2009-06-16 10:26:37,927 INFO
[org.jboss.varia.deployment.BeanShellSubDeployer]
javax.management.InstanceNotFoundException: jboss.scripts:url=file%3a/
home/sa
ndarenu/Software/mobicents-jainslee-server-1.2.4.GA-jboss-4.2.3.GA/
jboss-4.2.3.GA/server/default//deploy-mobicents/scripts/smpp-http-
connector-deploy.bsh,typ
e=BeanShell is not registered.
2009-06-16 10:26:37,935 DEBUG
[org.jboss.varia.deployment.BeanShellSubDeployer] Deploying: file:/
home/sandarenu/Software/mobicents-jainslee-server-1.2.4.GA-j
boss-4.2.3.GA/jboss-4.2.3.GA/server/default//deploy-mobicents/scripts/
smpp-http-connector-deploy.bsh
:

Thanks in advance,
Regards,
Sandarneu.

Sandarenu

unread,
Jun 16, 2009, 1:45:45 AM6/16/09
to mobicents-public
Hi,
I did some more testing and figured out this error is coming even with
blank bsh file. I'm using Mobicents server 'mobicents-jainslee-
server-1.2.4.GA-jboss-4.2.3.GA'. Can anyone explain the reason for
this issue.......

Thanks.
Sandarenu.

Eduardo Martins

unread,
Jun 16, 2009, 4:07:29 AM6/16/09
to mobicent...@googlegroups.com
The "bsh model" to deploy/undeploy slee components was replaced by the
SLEE Deployer long time ago, all you need to do is copy/delete the
deployable unit jar(s) to the $JBOSS_HOME/server/default/deploy dir,
to deploy/undeploy. For RA components you should add a
deploy-config.xml file in META-INF dir of the jar, indicating the
entity and link names to create, otherwise default values will be
used, which may not be the ones your SBBs are expecting...

More on http://groups.google.com/group/mobicents-public/web/.draft-1200500364429

I advise you to read the Mobicents User Guide included with the binary
release, to get updated instructions on the server usage.

-- Eduardo

Reply all
Reply to author
Forward
0 new messages