I've written some beans who throw a java.rmi.RemoteException wenever an
application error occurs. Everything is working like a charm during testing
with junit no exeptions in my jboss 4 console.
Only, when I do a soap call from a non java environment, say php. The same
RemoteException is throw during an application error. This execption however
isn't handled correctly and is throw to the client and is also displayed in my
jboss console as:
| [ServiceEndpointInterceptor] Error from service endpoint, processing fault
handler chain java.rmi.RemoteException: The supplied phonenumber wasn't
accepted. ExceptionName: PhonenumberNotAllowedException.
| at
ejb.WebServiceFacadeBean.assignRelaynumber(WebServiceFacadeBean.java:216)
| 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.invocation.Invocation.performCall(Invocation.java:345)
| .....
|
and
| ERROR [ServerEngine] Server error: AxisFault
| faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
| faultSubcode:
| faultString: MBeanException: null Cause: java.rmi.RemoteException: The
supplied phonenumber wasn't accepted. ExceptionName:
PhonenumberNotAllowedException.
| faultActor:
| faultNode:
| faultDetail:
| {http://xml.apache.org/axis/}stackTrace: MBeanException: null Cause:
java.rmi.RemoteException: The supplied phonenumber wasn't accepted.
ExceptionName: PhonenumberNotAllowedException.
| at
org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:166)
| at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:149)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
| .....
|
PhonenumerNotAllowedException is an exception of my own, this isn't the
exception which is thrown, it's catched and re-thrown as an remoteException.
In this case my webservice didn't accept the supplied phonenumber because is
was malformed.
The problem however is:
no exception in my console from a java client,
same call, same parameters from a non-java client and an the above exeption is
displayed.
any sugestions?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3868395#3868395
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3868395
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user