[Security & JAAS/JBoss] - Re: Anyone get JAAS working with remote entities?
by SmokingAPipe
And I found out the problem: The thread died because some jar wasn't in the path. This is bad for a thread to die silently, and it is a bug in Java, but oh well, I got that fixed.
Now I have the whole thing working as long as the password is correct for the login. This is big progress. But when the password is incorrect, I get:
Exception in thread "main" java.lang.reflect.UndeclaredThrowableException
| at $Proxy0.time(Unknown Source)
| at mypackage.CLIConnectivityTest.authorizedTest(CLIConnectivityTest.java:59)
| at mypackage.CLIConnectivityTest.main(CLIConnectivityTest.java:70)
| Caused by: java.lang.ClassNotFoundException: [Ljava.lang.StackTraceElement;
| at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
| at java.security.AccessController.doPrivileged(Native Method)
| .............
|
How should my code handle this? Should I really catch UndeclaredThorwableExceptions all over the place? Surely there must be a more specific "you are not authorized" type of exception that could be thrown?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017428#4017428
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017428
19Â years, 2Â months
[EJB 3.0] - javax.ejb.EJBNoSuchObjectException: Could not find Stateful
by indyzone
Hi,
We are getting the following exception from time to time when accessing our stateful session beans in JBoss 4.0.4.GA. I've search in the JIRA database and found out that this was infact a bug reported under the id EJBTHREE-769. There it says that the bug is closed and done in the EJB 3.0 RC10 - FD version.
Then I searched whether we can get the EJB 3.0 RC10 version from the JBoss site but, only the EJB3 RC9 Patch 1 is available for download as the latest version.
So, my question is, where can I get the EJB3.0 RC10 version and hopefully get the fix for the bug we're experiencing. And if I can't get it, when will it be available for download and do I have any other alternatives to resolve my issue?
Thanks,
Indy.
The exception we're getting is given below:
10:00:06,074 ERROR [STDERR] javax.ejb.EJBNoSuchObjectException: Could not find Stateful bean: 3j001-f0ka1v-ey5p0qxz-1-ey6mftvu-9
| 10:00:06,074 ERROR [STDERR] at org.jboss.ejb3.cache.simple.SimpleStatefulCache.get(SimpleStatefulCache.java:266)
| 10:00:06,074 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:59)
| 10:00:06,074 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 10:00:06,074 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
| 10:00:06,074 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 10:00:06,074 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
| 10:00:06,075 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 10:00:06,075 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| 10:00:06,075 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 10:00:06,075 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulContainer.dynamicInvoke(StatefulContainer.java:308)
| 10:00:06,075 ERROR [STDERR] at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:55)
| 10:00:06,075 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 10:00:06,075 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulRemoteProxy.invoke(StatefulRemoteProxy.java:133)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4017427#4017427
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4017427
19Â years, 2Â months