Bugs item #563799, was opened at 2002-06-03 11:15 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376685&aid=563799&group_id=22866
Category: JBossCMP Group: v3.0 Rabbit Hole Status: Open Resolution: None Priority: 5 Submitted By: Jakob Dalsgaard (dalsgaard) Assigned to: Nobody/Anonymous (nobody) Summary: No method permissions assigned to method Initial Comment: On: JB3.0RC3 + JB3.0 (just downloaded from sourceforge) I experience the following problem; Dain Sundstrom suggested that I submit a bug - I've been using the last few days convincing myself that it is indeed a bug - and collecting more information, so here goes: I am runing: - jdk 1.4 sun, "java -version says": java version "1.4.0" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92) Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode) - JBoss 3.0, before the same bug was experienced on JBoss 3.0 RC3.0. - Windows XP. I am developing an appllication containing a bunch of entity beans with relations - and one of my entity beans is called "Customer" - a "Customer" can have many "Policy" beans - and thus there is a method on the "Policy" Bean called "setCustomer(CustomerLocal customer)" -- when I deploy my ejb without security domain set in the jboss.xml file, everything works fine and my "EJBCreatePolicyCommand" can set the Customer on a newly created "Policy" Bean without any problems -- on the web layer I can set a securitydomain and have the user authenticated to access certain areas of the web application; but when I add the same security domain to the ejb-layer, things starts to go wrong. I have no problem calling "getXXXX" on my relations, but the "EJBCreatePolicyCommand" now fails with the exception: Could not create Policy : javax.ejb.TransactionRolledbackLocalException: Error in addRelation Embedded Exception checkSecurityAssociation; nested exception is: java.lang.SecurityException: No method permissions assigned to method=addRelation; nested exception is: javax.ejb.EJBException: Error in addRelation Embedded Exception checkSecurityAssociation; nested exception is: java.lang.SecurityException: No method permissions assigned to method=addRelation Embedded Exception Error in addRelation Embedded Exception checkSecurityAssociation; nested exception is: java.lang.SecurityException: No method permissions assigned to method=addRelation; nested exception is: javax.ejb.EJBException: Error in addRelation Embedded Exception checkSecurityAssociation; nested exception is: java.lang.SecurityException: No method permissions assigned to method=addRelation And the stack trace: Could not create Policy : javax.ejb.TransactionRolledbackLocalException: Error in addRelation Embedded Exception checkSecurityAssociation; nested exception is: java.lang.SecurityException: No method permissions assigned to method=addRelation; nested exception is: javax.ejb.EJBException: Error in addRelation Embedded Exception checkSecurityAssociation; nested exception is: java.lang.SecurityException: No method permissions assigned to method=addRelation Embedded Exception Error in addRelation Embedded Exception checkSecurityAssociation; nested exception is: java.lang.SecurityException: No method permissions assigned to method=addRelation; nested exception is: javax.ejb.EJBException: Error in addRelation Embedded Exception checkSecurityAssociation; nested exception is: java.lang.SecurityException: No method permissions assigned to method=addRelation at com.neupart.sa.policy.command.EJBCreatePolicy.execute(EJBCreatePolicy.java:153) at com.neupart.base.ejb.EJBCommandExecutorBean.execute(EJBCommandExecutorBean.java:37) at com.neupart.sa.policy.ejb.PolicyCMDBean.execute(PolicyCMDBean.java:60) 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.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:664) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:77) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:96) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:167) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:129) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166) at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:313) at org.jboss.ejb.Container.invoke(Container.java:705) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491) at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76) at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:111) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76) at $Proxy110.execute(Unknown Source) at com.neupart.base.cocoon.acting.EJBProxyAction.act(EJBProxyAction.java:155) at org.apache.cocoon.www.sitemap_xmap.action_set_secureaware(C:\Documents and Settings\JD\Local Settings\Temp\Jetty__8080___\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:4198) at org.apache.cocoon.www.sitemap_xmap.matchN105FD(C:\Documents and Settings\JD\Local Settings\Temp\Jetty__8080___\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:5313) at org.apache.cocoon.www.sitemap_xmap.process(C:\Documents and Settings\JD\Local Settings\Temp\Jetty__8080___\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:4896) at org.apache.cocoon.www.sitemap_xmap.process(C:\Documents and Settings\JD\Local Settings\Temp\Jetty__8080___\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:4807) at org.apache.cocoon.sitemap.Handler.process(Handler.java:222) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154) at org.apache.cocoon.Cocoon.process(Cocoon.java:575) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:371) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:607) at org.mortbay.http.HttpContext.handle(HttpContext.java:1387) at org.mortbay.http.HttpContext.handle(HttpContext.java:1326) at org.mortbay.http.HttpServer.service(HttpServer.java:757) at org.jboss.jetty.Jetty.service(Jetty.java:527) at org.mortbay.http.HttpConnection.service(HttpConnection.java:742) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:915) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:757) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:151) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287) at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:715) at java.lang.Thread.run(Thread.java:536) root cause is: javax.ejb.TransactionRolledbackLocalException: Error in addRelation Embedded Exception checkSecurityAssociation; nested exception is: java.lang.SecurityException: No method permissions assigned to method=addRelation; nested exception is: javax.ejb.EJBException: Error in addRelation Embedded Exception checkSecurityAssociation; nested exception is: java.lang.SecurityException: No method permissions assigned to method=addRelation Embedded Exception Error in addRelation Embedded Exception checkSecurityAssociation; nested exception is: java.lang.SecurityException: No method permissions assigned to method=addRelation; nested exception is: javax.ejb.EJBException: Error in addRelation Embedded Exception checkSecurityAssociation; nested exception is: java.lang.SecurityException: No method permissions assigned to method=addRelation at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContainerInvoker.java:313) at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38) at $Proxy124.setLanguage(Unknown Source) at com.neupart.sa.policy.command.EJBLabelUtil.setCustomerText(EJBLabelUtil.java:53) at com.neupart.sa.policy.command.EJBCreatePolicy.execute(EJBCreatePolicy.java:137) at com.neupart.base.ejb.EJBCommandExecutorBean.execute(EJBCommandExecutorBean.java:37) at com.neupart.sa.policy.ejb.PolicyCMDBean.execute(PolicyCMDBean.java:60) 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.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:664) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:77) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:96) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:167) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:129) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166) at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:313) at org.jboss.ejb.Container.invoke(Container.java:705) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491) at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76) at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:111) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76) at $Proxy110.execute(Unknown Source) at com.neupart.base.cocoon.acting.EJBProxyAction.act(EJBProxyAction.java:155) at org.apache.cocoon.www.sitemap_xmap.action_set_secureaware(C:\Documents and Settings\JD\Local Settings\Temp\Jetty__8080___\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:4198) at org.apache.cocoon.www.sitemap_xmap.matchN105FD(C:\Documents and Settings\JD\Local Settings\Temp\Jetty__8080___\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:5313) at org.apache.cocoon.www.sitemap_xmap.process(C:\Documents and Settings\JD\Local Settings\Temp\Jetty__8080___\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:4896) at org.apache.cocoon.www.sitemap_xmap.process(C:\Documents and Settings\JD\Local Settings\Temp\Jetty__8080___\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:4807) at org.apache.cocoon.sitemap.Handler.process(Handler.java:222) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154) at org.apache.cocoon.Cocoon.process(Cocoon.java:575) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:371) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:607) at org.mortbay.http.HttpContext.handle(HttpContext.java:1387) at org.mortbay.http.HttpContext.handle(HttpContext.java:1326) at org.mortbay.http.HttpServer.service(HttpServer.java:757) at org.jboss.jetty.Jetty.service(Jetty.java:527) at org.mortbay.http.HttpConnection.service(HttpConnection.java:742) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:915) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:757) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:151) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287) at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:715) at java.lang.Thread.run(Thread.java:536) javax.transaction.TransactionRolledbackException: Error in addRelation Embedded Exception checkSecurityAssociation; nested exception is: java.lang.SecurityException: No method permissions assigned to method=addRelation; nested exception is: javax.ejb.EJBException: Error in addRelation Embedded Exception checkSecurityAssociation; nested exception is: java.lang.SecurityException: No method permissions assigned to method=addRelation at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:122) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:167) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:129) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166) at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493) at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContainerInvoker.java:296) at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38) at $Proxy124.setLanguage(Unknown Source) at com.neupart.sa.policy.command.EJBLabelUtil.setCustomerText(EJBLabelUtil.java:53) at com.neupart.sa.policy.command.EJBCreatePolicy.execute(EJBCreatePolicy.java:137) at com.neupart.base.ejb.EJBCommandExecutorBean.execute(EJBCommandExecutorBean.java:37) at com.neupart.sa.policy.ejb.PolicyCMDBean.execute(PolicyCMDBean.java:60) 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.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:664) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:77) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:96) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:167) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:129) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166) at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:313) at org.jboss.ejb.Container.invoke(Container.java:705) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491) at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76) at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:111) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76) at $Proxy110.execute(Unknown Source) at com.neupart.base.cocoon.acting.EJBProxyAction.act(EJBProxyAction.java:155) at org.apache.cocoon.www.sitemap_xmap.action_set_secureaware(C:\Documents and Settings\JD\Local Settings\Temp\Jetty__8080___\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:4198) at org.apache.cocoon.www.sitemap_xmap.matchN105FD(C:\Documents and Settings\JD\Local Settings\Temp\Jetty__8080___\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:5313) at org.apache.cocoon.www.sitemap_xmap.process(C:\Documents and Settings\JD\Local Settings\Temp\Jetty__8080___\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:4896) at org.apache.cocoon.www.sitemap_xmap.process(C:\Documents and Settings\JD\Local Settings\Temp\Jetty__8080___\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:4807) at org.apache.cocoon.sitemap.Handler.process(Handler.java:222) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154) at org.apache.cocoon.Cocoon.process(Cocoon.java:575) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:371) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:607) at org.mortbay.http.HttpContext.handle(HttpContext.java:1387) at org.mortbay.http.HttpContext.handle(HttpContext.java:1326) at org.mortbay.http.HttpServer.service(HttpServer.java:757) at org.jboss.jetty.Jetty.service(Jetty.java:527) at org.mortbay.http.HttpConnection.service(HttpConnection.java:742) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:915) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:757) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:151) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287) at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:715) at java.lang.Thread.run(Thread.java:536) Caused by: javax.ejb.EJBException: Error in addRelation Embedded Exception checkSecurityAssociation; nested exception is: java.lang.SecurityException: No method permissions assigned to method=addRelation at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.invokeAddRelation(JDBCCMRFieldBridge.java:744) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.createRelationLinks(JDBCCMRFieldBridge.java:661) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.setInstanceValue(JDBCCMRFieldBridge.java:625) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.setValue(JDBCCMRFieldBridge.java:563) at org.jboss.ejb.plugins.cmp.bridge.EntityBridgeInvocationHandler.invoke(EntityBridgeInvocationHandler.java:125) at org.jboss.proxy.compiler.Runtime.invoke(Runtime.java:59) at com.neupart.sa.ejb.CustomerTextCMP$Proxy.setLanguage(<generated>) 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.EntityContainer$ContainerInterceptor.invoke(EntityContainer.java:1197) at org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor.invoke(JDBCRelationInterceptor.java:190) at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:340) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186) at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:193) at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:107) at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:69) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:96) ... 58 more original messageCould not create Policy : javax.ejb.TransactionRolledbackLocalException: Error in addRelation Embedded Exception checkSecurityAssociation; nested exception is: java.lang.SecurityException: No method permissions assigned to method=addRelation; nested exception is: javax.ejb.EJBException: Error in addRelation Embedded Exception checkSecurityAssociation; nested exception is: java.lang.SecurityException: No method permissions assigned to method=addRelation Embedded Exception Error in addRelation Embedded Exception checkSecurityAssociation; nested exception is: java.lang.SecurityException: No method permissions assigned to method=addRelation; nested exception is: javax.ejb.EJBException: Error in addRelation Embedded Exception checkSecurityAssociation; nested exception is: java.lang.SecurityException: No method permissions assigned to method=addRelation I have been looking at the CVS Repository - and to me it seems as if the SecurityInterceptor is checking the permissions against the wrong methodname; or should I manually add some "AddRelation" permissions in my ejb-jar file? (automaticallly generated by XDoclet). I can provide ejb-jar.xml + jboss.xml + some source code on request. I also wondered why the JDBC CMR Bridge had to go through the SecurityInterceptor - should security already be figured out the JDBC CMR Bridge is executing methods? Regards Jakob Dalsgaard, [EMAIL PROTECTED] ---------------------------------------------------------------------- >Comment By: Jakob Dalsgaard (dalsgaard) Date: 2002-06-05 10:54 Message: Logged In: YES user_id=193225 Just took the liberty to attach a work around for this issue; files found in the jar file are edited versions taken from CVS (Jboss 3.0.0 tag) I basically add an atttribute to the Invocation when calling from within the JDBCCMRFieldBridge to tell the SecurityInterceptor not to try to check security for this field - this is probably not correct; but I do not have a clear view of the correct solution. As I see it, refraining from doing security checks on the addRelation method is not that bad, since security checks have already been performed on the published "setSomething" method. ---------------------------------------------------------------------- Comment By: Jakob Dalsgaard (dalsgaard) Date: 2002-06-05 09:59 Message: Logged In: YES user_id=193225 Just recreated the exception and found this, more correct exception in the log: 2002-06-05 09:53:27,255 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackException, causedBy: java.rmi.RemoteException: checkSecurityAssociation; nested exception is: java.lang.SecurityException: No method permissions assigned to method=addRelation at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:185) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:118) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166) at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.invokeAddRelation(JDBCCMRFieldBridge.java:734) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.createRelationLinks(JDBCCMRFieldBridge.java:661) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.setInstanceValue(JDBCCMRFieldBridge.java:625) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.setValue(JDBCCMRFieldBridge.java:563) at org.jboss.ejb.plugins.cmp.bridge.EntityBridgeInvocationHandler.invoke(EntityBridgeInvocationHandler.java:125) at org.jboss.proxy.compiler.Runtime.invoke(Runtime.java:59) at com.neupart.sa.ejb.CustomerTextCMP$Proxy.setLanguage(<generated>) 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.EntityContainer$ContainerInterceptor.invoke(EntityContainer.java:1197) at org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor.invoke(JDBCRelationInterceptor.java:190) at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:340) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186) at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:193) at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:107) at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:69) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:96) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:167) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:129) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166) at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493) at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContainerInvoker.java:296) at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38) at $Proxy128.setLanguage(Unknown Source) at com.neupart.sa.policy.command.EJBLabelUtil.setCustomerText(EJBLabelUtil.java:53) at com.neupart.sa.policy.command.EJBCreatePolicy.execute(EJBCreatePolicy.java:137) at com.neupart.base.ejb.EJBCommandExecutorBean.execute(EJBCommandExecutorBean.java:37) at com.neupart.sa.policy.ejb.PolicyCMDBean.execute(PolicyCMDBean.java:60) 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.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:664) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:77) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:96) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:167) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:129) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166) at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:313) at org.jboss.ejb.Container.invoke(Container.java:705) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491) at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76) at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:111) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76) at $Proxy110.execute(Unknown Source) at com.neupart.base.cocoon.acting.EJBProxyAction.act(EJBProxyAction.java:155) at org.apache.cocoon.www.sitemap_xmap.action_set_secureaware(C:\Documents and Settings\JD\Local Settings\Temp\Jetty__8080___\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:4228) at org.apache.cocoon.www.sitemap_xmap.matchN105FD(C:\Documents and Settings\JD\Local Settings\Temp\Jetty__8080___\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:5376) at org.apache.cocoon.www.sitemap_xmap.process(C:\Documents and Settings\JD\Local Settings\Temp\Jetty__8080___\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:4926) at org.apache.cocoon.www.sitemap_xmap.process(C:\Documents and Settings\JD\Local Settings\Temp\Jetty__8080___\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:4837) at org.apache.cocoon.sitemap.Handler.process(Handler.java:222) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154) at org.apache.cocoon.Cocoon.process(Cocoon.java:575) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:371) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:607) at org.mortbay.http.HttpContext.handle(HttpContext.java:1387) at org.mortbay.http.HttpContext.handle(HttpContext.java:1326) at org.mortbay.http.HttpServer.service(HttpServer.java:757) at org.jboss.jetty.Jetty.service(Jetty.java:527) at org.mortbay.http.HttpConnection.service(HttpConnection.java:742) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:915) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:757) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:151) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287) at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:715) at java.lang.Thread.run(Thread.java:536) Caused by: java.lang.SecurityException: No method permissions assigned to method=addRelation at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:184) ... 80 more ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376685&aid=563799&group_id=22866 _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development