Bugs item #702559, was opened at 2003-03-12 14:00
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=702559&group_id=22866

Category: Clustering
Group: v3.0 Rabbit Hole
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Sebastian Hauer (hauer)
>Assigned to: Scott M Stark (starksm)
Summary: HAJNDI lookup over HTTP wrapped NameNotFoundException

Initial Comment:
Hi,

While using HAJNDI and accessing it via HTTP I realized
that lookup failures that should throw a
NameNotFoundException thow a
java.lang.reflect.UndeclaredThrowableException instead.
 UndeclaredThrowableException wraps
InvocationTargetException and this one than wraps
NameNotFoundException.

Here the full log of my test application:

16:31:34,777 DEBUG
org.jboss.naming.HttpNamingContextFactory - Retrieving
content from : http://localhost:8080/invoker/HAJNDIFactory
16:31:34,840 DEBUG
org.jboss.naming.HttpNamingContextFactory -
ContentLength: 962
ContentType: application/x-java-serialized-object;
class=org.jboss.invocation.MarshalledValue
16:31:34,902 TRACE
org.jboss.invocation.http.interfaces.HttpInvokerProxyHA
- Init, targets:
[http://192.168.12.146:8080/invoker/JMXInvokerHAServlet],
[EMAIL PROTECTED]
16:31:34,949 INFO  JNDITest - Returning InitialContext:
[EMAIL PROTECTED]
16:31:34,949 INFO  JNDITest - Try to lookup:
youWillNotFindThisInJNDI
16:31:34,949 TRACE
org.jboss.invocation.http.interfaces.HttpInvokerProxyHA
- Choose remoteTarget:
http://192.168.12.146:8080/invoker/JMXInvokerHAServlet
16:31:34,949 TRACE
org.jboss.invocation.http.interfaces.HttpInvokerProxyHA
- Invoking on
target=http://192.168.12.146:8080/invoker/JMXInvokerHAServlet
16:31:34,949 TRACE
org.jboss.invocation.http.interfaces.Util - invoke,
externalURL=http://192.168.12.146:8080/invoker/JMXInvokerHAServlet
16:31:34,980 ERROR JNDITest - Caught exception during
lookup: java.lang.reflect.UndeclaredThrowableException
java.lang.reflect.UndeclaredThrowableException:
java.lang.reflect.InvocationTargetException:
javax.naming.NameNotFoundException:
youWillNotFindThisInJNDI
        <<no stack trace available>>

Attached you will find this very simple test case.
I tested it with code from the head of Branch_3_0.


----------------------------------------------------------------------

>Comment By: Scott M Stark (starksm)
Date: 2003-03-18 08:38

Message:
Logged In: YES 
user_id=175228

Fixed for 3.0.7+

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=702559&group_id=22866


-------------------------------------------------------
This SF.net email is sponsored by: Does your code think in ink? 
You could win a Tablet PC. Get a free Tablet PC hat just for playing. 
What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to