java.rmi.AccessException: ; nested exception is: com.ibm.websphere.csi.CSIAccessException: SECJ0053E: Authorization failed for /UNAUTHENTICATED while invoking (Home)client/ClientJobSessionBean create:2 securityName: /UNAUTHENTICATED;accessID: UNAUTHENTICATED is not granted any of the required roles: User vmcid: 0x0 minor code: 0 completed: No] at .JobSessionInvoker.executeInternal(JobSessionInvoker.java:70)

Terracotta Project Issue Tracker | Nandini Bhat | 7 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    We have our own scheduler application as a wrapper over Quartz. We are currently using Quartz 1.6.4 and WAS 6.1. We have jobs defined as EJB. At trigger time, the JobSessionInvoker (normal java class which extends QuartzJobBean ) looks up for the job(EJB) and executes it .This works fine if the EJB is not secure. If the job is made secure, it is not getting invoked and the below exception is thrown. [7/7/10 11:53:20:919 IST] 0000083f SecurityColla A SECJ0053E: Authorization failed for /UNAUTHENTICATED while invoking (Home)client/ClientJobSessionBean create:2 securityName: /UNAUTHENTICATED;accessID: UNAUTHENTICATED is not granted any of the required roles: User [7/7/10 11:53:20:920 IST] 0000083f JobRunShell I org.quartz.core.JobRunShell run Job statelessJobGroup.statelessJob threw a JobExecutionException: org.quartz.JobExecutionException: CORBA NO_PERMISSION 0x0 No; nested exception is: org.omg.CORBA.NO_PERMISSION: java.rmi.AccessException: ; nested exception is: com.ibm.websphere.csi.CSIAccessException: SECJ0053E: Authorization failed for /UNAUTHENTICATED while invoking (Home)client/ClientJobSessionBean create:2 securityName: /UNAUTHENTICATED;accessID: UNAUTHENTICATED is not granted any of the required roles: User vmcid: 0x0 minor code: 0 completed: No [See nested exception: java.rmi.AccessException: CORBA NO_PERMISSION 0x0 No; nested exception is: org.omg.CORBA.NO_PERMISSION: java.rmi.AccessException: ; nested exception is: com.ibm.websphere.csi.CSIAccessException: SECJ0053E: Authorization failed for /UNAUTHENTICATED while invoking (Home)client/ClientJobSessionBean create:2 securityName: /UNAUTHENTICATED;accessID: UNAUTHENTICATED is not granted any of the required roles: User vmcid: 0x0 minor code: 0 completed: No] at .JobSessionInvoker.executeInternal(JobSessionInvoker.java:70) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) Caused by: java.rmi.AccessException: CORBA NO_PERMISSION 0x0 No; nested exception is: org.omg.CORBA.NO_PERMISSION: java.rmi.AccessException: ; nested exception is: com.ibm.websphere.csi.CSIAccessException: SECJ0053E: Authorization failed for /UNAUTHENTICATED while invoking (Home)client/ClientJobSessionBean create:2 securityName: /UNAUTHENTICATED;accessID: UNAUTHENTICATED is not granted any of the required roles: User vmcid: 0x0 minor code: 0 completed: No at com.ibm.CORBA.iiop.UtilDelegateImpl.mapSystemException(UtilDelegateImpl.java:269) at com.ibm.CORBA.iiop.UtilDelegateImpl.wrapException(UtilDelegateImpl.java:752) at javax.rmi.CORBA.Util.wrapException(Util.java:296) at .jobsession._JobSessionHome_Stub.create(Unknown Source) at .JobSessionInvoker.getJobSessionBean(JobSessionInvoker.java:111) at .JobSessionInvoker.executeInternal(JobSessionInvoker.java:55) ... 3 more Caused by: org.omg.CORBA.NO_PERMISSION: java.rmi.AccessException: ; nested exception is: com.ibm.websphere.csi.CSIAccessException: SECJ0053E: Authorization failed for /UNAUTHENTICATED while invoking (Home)client/ClientJobSessionBean create:2 securityName: /UNAUTHENTICATED;accessID: UNAUTHENTICATED is not granted any of the required roles: User vmcid: 0x0 minor code: 0 completed: No at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:522) at com.ibm.rmi.util.ProxyUtil.copyObject(ProxyUtil.java:341) at com.ibm.rmi.util.ProxyUtil.invokeWithClassLoaders(ProxyUtil.java:757) at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1161) at $Proxy147.create(Unknown Source) ... 6 more As mentioned in http://jira.opensymphony.com/browse/QUARTZ-743, we changed the code of QuartzSchedulerThread class to start the QuartzSchedulerThread from a thread in the threadpool qsRsrcs.getThreadPool().runInThread(this) instead of this.start() This fix works for us but it means that we need to use a patched Quartz jar. Is it possible to give us a patch with this fix.

    Terracotta Project Issue Tracker | 7 years ago | Nandini Bhat
    java.rmi.AccessException: ; nested exception is: com.ibm.websphere.csi.CSIAccessException: SECJ0053E: Authorization failed for /UNAUTHENTICATED while invoking (Home)client/ClientJobSessionBean create:2 securityName: /UNAUTHENTICATED;accessID: UNAUTHENTICATED is not granted any of the required roles: User vmcid: 0x0 minor code: 0 completed: No] at .JobSessionInvoker.executeInternal(JobSessionInvoker.java:70)

    Root Cause Analysis

    1. java.rmi.AccessException

      CORBA NO_PERMISSION 0x0 No; nested exception is: org.omg.CORBA.NO_PERMISSION: java.rmi.AccessException: ; nested exception is: com.ibm.websphere.csi.CSIAccessException: SECJ0053E: Authorization failed for /UNAUTHENTICATED while invoking (Home)client/ClientJobSessionBean create:2 securityName: /UNAUTHENTICATED;accessID: UNAUTHENTICATED is not granted any of the required roles: User vmcid: 0x0 minor code: 0 completed: No

      at com.ibm.CORBA.iiop.UtilDelegateImpl.mapSystemException()
    2. com.ibm.CORBA
      UtilDelegateImpl.wrapException
      1. com.ibm.CORBA.iiop.UtilDelegateImpl.mapSystemException(UtilDelegateImpl.java:269)
      2. com.ibm.CORBA.iiop.UtilDelegateImpl.wrapException(UtilDelegateImpl.java:752)
      2 frames
    3. Java RT
      Util.wrapException
      1. javax.rmi.CORBA.Util.wrapException(Util.java:296)
      1 frame