Problem getting logged in username during runtime

Hey guys.
I am trying to get the username of the logged in user during runtime and set that value to a bind variable in an MSSQL statement.
Im using the following method to get the userID but it crashes when trying to get the principle user:
public String getLoginUserId()
String userId = ((ApplicationModuleImpl)getApplicationModule()).getUserPrincipalName();
// strip off the realm name from the username
int realmEndPos = userId.lastIndexOf("/");
if (realmEndPos>0)
userId= userId.substring(realmEndPos+1);
logger.debug("UserId "+userId);
return userId;
I'm using JDev 10.1.3.2 and MSSQL 2005. The code throws out the following error when trying to getUserPrincipleName():
JBO-30003: The application pool (.112576FB6CB) failed to checkout an application module due to the following exception:
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
     at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2002)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
     at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1546)
     at oracle.jbo.client.Configuration.createRootApplicationModuleFromConfig(Configuration.java:1519)
     at oracle.jbo.jbotester.ConnectionInfo.useApplicationModule(ConnectionInfo.java:129)
     at oracle.jbo.jbotester.MainFrame.init(MainFrame.java:410)
     at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:394)
## Detail 0 ##
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
     at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:545)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2094)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1961)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
     at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1546)
     at oracle.jbo.client.Configuration.createRootApplicationModuleFromConfig(Configuration.java:1519)
     at oracle.jbo.jbotester.ConnectionInfo.useApplicationModule(ConnectionInfo.java:129)
     at oracle.jbo.jbotester.MainFrame.init(MainFrame.java:410)
     at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:394)
## Detail 0 ##
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
     at oracle.jbo.server.ComponentObjectImpl.createRef(ComponentObjectImpl.java:223)
     at oracle.jbo.server.ApplicationModuleImpl.doCreateViewObject(ApplicationModuleImpl.java:3428)
     at oracle.jbo.server.ApplicationModuleDefImpl.loadViewObject(ApplicationModuleDefImpl.java:493)
     at oracle.jbo.server.ApplicationModuleDefImpl.loadComponents(ApplicationModuleDefImpl.java:672)
     at oracle.jbo.server.ApplicationModuleImpl.createRootApplicationModule(ApplicationModuleImpl.java:412)
     at oracle.jbo.server.ApplicationModuleHomeImpl.create(ApplicationModuleHomeImpl.java:91)
     at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:139)
     at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:80)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.instantiateResource(ApplicationPoolImpl.java:2468)
     at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:536)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2094)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1961)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
     at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1546)
     at oracle.jbo.client.Configuration.createRootApplicationModuleFromConfig(Configuration.java:1519)
     at oracle.jbo.jbotester.ConnectionInfo.useApplicationModule(ConnectionInfo.java:129)
     at oracle.jbo.jbotester.MainFrame.init(MainFrame.java:410)
     at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:394)
## Detail 0 ##
java.lang.NullPointerException
     at com.claimvantage.model.ltc.views.myclaims.MyClaims_Extend_ClaimViewImpl.<init>(MyClaims_Extend_ClaimViewImpl.java:19)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
     at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
     at java.lang.Class.newInstance0(Class.java:350)
     at java.lang.Class.newInstance(Class.java:303)
     at oracle.jbo.server.ComponentObjectImpl.createRef(ComponentObjectImpl.java:211)
     at oracle.jbo.server.ApplicationModuleImpl.doCreateViewObject(ApplicationModuleImpl.java:3428)
     at oracle.jbo.server.ApplicationModuleDefImpl.loadViewObject(ApplicationModuleDefImpl.java:493)
     at oracle.jbo.server.ApplicationModuleDefImpl.loadComponents(ApplicationModuleDefImpl.java:672)
     at oracle.jbo.server.ApplicationModuleImpl.createRootApplicationModule(ApplicationModuleImpl.java:412)
     at oracle.jbo.server.ApplicationModuleHomeImpl.create(ApplicationModuleHomeImpl.java:91)
     at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:139)
     at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:80)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.instantiateResource(ApplicationPoolImpl.java:2468)
     at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:536)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2094)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1961)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
     at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1546)
     at oracle.jbo.client.Configuration.createRootApplicationModuleFromConfig(Configuration.java:1519)
     at oracle.jbo.jbotester.ConnectionInfo.useApplicationModule(ConnectionInfo.java:129)
     at oracle.jbo.jbotester.MainFrame.init(MainFrame.java:410)
     at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:394)
----- LEVEL 1: DETAIL 0 -----
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
     at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2002)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
     at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1546)
     at oracle.jbo.client.Configuration.createRootApplicationModuleFromConfig(Configuration.java:1519)
     at oracle.jbo.jbotester.ConnectionInfo.useApplicationModule(ConnectionInfo.java:129)
     at oracle.jbo.jbotester.MainFrame.init(MainFrame.java:410)
     at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:394)
## Detail 0 ##
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
     at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:545)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2094)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1961)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
     at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1546)
     at oracle.jbo.client.Configuration.createRootApplicationModuleFromConfig(Configuration.java:1519)
     at oracle.jbo.jbotester.ConnectionInfo.useApplicationModule(ConnectionInfo.java:129)
     at oracle.jbo.jbotester.MainFrame.init(MainFrame.java:410)
     at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:394)
## Detail 0 ##
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
     at oracle.jbo.server.ComponentObjectImpl.createRef(ComponentObjectImpl.java:223)
     at oracle.jbo.server.ApplicationModuleImpl.doCreateViewObject(ApplicationModuleImpl.java:3428)
     at oracle.jbo.server.ApplicationModuleDefImpl.loadViewObject(ApplicationModuleDefImpl.java:493)
     at oracle.jbo.server.ApplicationModuleDefImpl.loadComponents(ApplicationModuleDefImpl.java:672)
     at oracle.jbo.server.ApplicationModuleImpl.createRootApplicationModule(ApplicationModuleImpl.java:412)
     at oracle.jbo.server.ApplicationModuleHomeImpl.create(ApplicationModuleHomeImpl.java:91)
     at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:139)
     at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:80)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.instantiateResource(ApplicationPoolImpl.java:2468)
     at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:536)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2094)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1961)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
     at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1546)
     at oracle.jbo.client.Configuration.createRootApplicationModuleFromConfig(Configuration.java:1519)
     at oracle.jbo.jbotester.ConnectionInfo.useApplicationModule(ConnectionInfo.java:129)
     at oracle.jbo.jbotester.MainFrame.init(MainFrame.java:410)
     at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:394)
## Detail 0 ##
java.lang.NullPointerException
     at com.claimvantage.model.ltc.views.myclaims.MyClaims_Extend_ClaimViewImpl.<init>(MyClaims_Extend_ClaimViewImpl.java:19)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
     at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
     at java.lang.Class.newInstance0(Class.java:350)
     at java.lang.Class.newInstance(Class.java:303)
     at oracle.jbo.server.ComponentObjectImpl.createRef(ComponentObjectImpl.java:211)
     at oracle.jbo.server.ApplicationModuleImpl.doCreateViewObject(ApplicationModuleImpl.java:3428)
     at oracle.jbo.server.ApplicationModuleDefImpl.loadViewObject(ApplicationModuleDefImpl.java:493)
     at oracle.jbo.server.ApplicationModuleDefImpl.loadComponents(ApplicationModuleDefImpl.java:672)
     at oracle.jbo.server.ApplicationModuleImpl.createRootApplicationModule(ApplicationModuleImpl.java:412)
     at oracle.jbo.server.ApplicationModuleHomeImpl.create(ApplicationModuleHomeImpl.java:91)
     at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:139)
     at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:80)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.instantiateResource(ApplicationPoolImpl.java:2468)
     at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:536)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2094)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1961)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
     at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1546)
     at oracle.jbo.client.Configuration.createRootApplicationModuleFromConfig(Configuration.java:1519)
     at oracle.jbo.jbotester.ConnectionInfo.useApplicationModule(ConnectionInfo.java:129)
     at oracle.jbo.jbotester.MainFrame.init(MainFrame.java:410)
     at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:394)
----- LEVEL 2: DETAIL 0 -----
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
     at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:545)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2094)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1961)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
     at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1546)
     at oracle.jbo.client.Configuration.createRootApplicationModuleFromConfig(Configuration.java:1519)
     at oracle.jbo.jbotester.ConnectionInfo.useApplicationModule(ConnectionInfo.java:129)
     at oracle.jbo.jbotester.MainFrame.init(MainFrame.java:410)
     at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:394)
## Detail 0 ##
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
     at oracle.jbo.server.ComponentObjectImpl.createRef(ComponentObjectImpl.java:223)
     at oracle.jbo.server.ApplicationModuleImpl.doCreateViewObject(ApplicationModuleImpl.java:3428)
     at oracle.jbo.server.ApplicationModuleDefImpl.loadViewObject(ApplicationModuleDefImpl.java:493)
     at oracle.jbo.server.ApplicationModuleDefImpl.loadComponents(ApplicationModuleDefImpl.java:672)
     at oracle.jbo.server.ApplicationModuleImpl.createRootApplicationModule(ApplicationModuleImpl.java:412)
     at oracle.jbo.server.ApplicationModuleHomeImpl.create(ApplicationModuleHomeImpl.java:91)
     at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:139)
     at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:80)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.instantiateResource(ApplicationPoolImpl.java:2468)
     at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:536)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2094)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1961)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
     at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1546)
     at oracle.jbo.client.Configuration.createRootApplicationModuleFromConfig(Configuration.java:1519)
     at oracle.jbo.jbotester.ConnectionInfo.useApplicationModule(ConnectionInfo.java:129)
     at oracle.jbo.jbotester.MainFrame.init(MainFrame.java:410)
     at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:394)
## Detail 0 ##
java.lang.NullPointerException
     at com.claimvantage.model.ltc.views.myclaims.MyClaims_Extend_ClaimViewImpl.<init>(MyClaims_Extend_ClaimViewImpl.java:19)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
     at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
     at java.lang.Class.newInstance0(Class.java:350)
     at java.lang.Class.newInstance(Class.java:303)
     at oracle.jbo.server.ComponentObjectImpl.createRef(ComponentObjectImpl.java:211)
     at oracle.jbo.server.ApplicationModuleImpl.doCreateViewObject(ApplicationModuleImpl.java:3428)
     at oracle.jbo.server.ApplicationModuleDefImpl.loadViewObject(ApplicationModuleDefImpl.java:493)
     at oracle.jbo.server.ApplicationModuleDefImpl.loadComponents(ApplicationModuleDefImpl.java:672)
     at oracle.jbo.server.ApplicationModuleImpl.createRootApplicationModule(ApplicationModuleImpl.java:412)
     at oracle.jbo.server.ApplicationModuleHomeImpl.create(ApplicationModuleHomeImpl.java:91)
     at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:139)
     at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:80)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.instantiateResource(ApplicationPoolImpl.java:2468)
     at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:536)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2094)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1961)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
     at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1546)
     at oracle.jbo.client.Configuration.createRootApplicationModuleFromConfig(Configuration.java:1519)
     at oracle.jbo.jbotester.ConnectionInfo.useApplicationModule(ConnectionInfo.java:129)
     at oracle.jbo.jbotester.MainFrame.init(MainFrame.java:410)
     at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:394)
----- LEVEL 3: DETAIL 0 -----
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
     at oracle.jbo.server.ComponentObjectImpl.createRef(ComponentObjectImpl.java:223)
     at oracle.jbo.server.ApplicationModuleImpl.doCreateViewObject(ApplicationModuleImpl.java:3428)
     at oracle.jbo.server.ApplicationModuleDefImpl.loadViewObject(ApplicationModuleDefImpl.java:493)
     at oracle.jbo.server.ApplicationModuleDefImpl.loadComponents(ApplicationModuleDefImpl.java:672)
     at oracle.jbo.server.ApplicationModuleImpl.createRootApplicationModule(ApplicationModuleImpl.java:412)
     at oracle.jbo.server.ApplicationModuleHomeImpl.create(ApplicationModuleHomeImpl.java:91)
     at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:139)
     at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:80)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.instantiateResource(ApplicationPoolImpl.java:2468)
     at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:536)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2094)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1961)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
     at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1546)
     at oracle.jbo.client.Configuration.createRootApplicationModuleFromConfig(Configuration.java:1519)
     at oracle.jbo.jbotester.ConnectionInfo.useApplicationModule(ConnectionInfo.java:129)
     at oracle.jbo.jbotester.MainFrame.init(MainFrame.java:410)
     at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:394)
## Detail 0 ##
java.lang.NullPointerException
     at com.claimvantage.model.ltc.views.myclaims.MyClaims_Extend_ClaimViewImpl.<init>(MyClaims_Extend_ClaimViewImpl.java:19)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
     at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
     at java.lang.Class.newInstance0(Class.java:350)
     at java.lang.Class.newInstance(Class.java:303)
     at oracle.jbo.server.ComponentObjectImpl.createRef(ComponentObjectImpl.java:211)
     at oracle.jbo.server.ApplicationModuleImpl.doCreateViewObject(ApplicationModuleImpl.java:3428)
     at oracle.jbo.server.ApplicationModuleDefImpl.loadViewObject(ApplicationModuleDefImpl.java:493)
     at oracle.jbo.server.ApplicationModuleDefImpl.loadComponents(ApplicationModuleDefImpl.java:672)
     at oracle.jbo.server.ApplicationModuleImpl.createRootApplicationModule(ApplicationModuleImpl.java:412)
     at oracle.jbo.server.ApplicationModuleHomeImpl.create(ApplicationModuleHomeImpl.java:91)
     at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:139)
     at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:80)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.instantiateResource(ApplicationPoolImpl.java:2468)
     at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:536)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2094)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1961)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
     at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1546)
     at oracle.jbo.client.Configuration.createRootApplicationModuleFromConfig(Configuration.java:1519)
     at oracle.jbo.jbotester.ConnectionInfo.useApplicationModule(ConnectionInfo.java:129)
     at oracle.jbo.jbotester.MainFrame.init(MainFrame.java:410)
     at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:394)
----- LEVEL 4: DETAIL 0 -----
java.lang.NullPointerException
     at com.claimvantage.model.ltc.views.myclaims.MyClaims_Extend_ClaimViewImpl.<init>(MyClaims_Extend_ClaimViewImpl.java:19)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
     at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
     at java.lang.Class.newInstance0(Class.java:350)
     at java.lang.Class.newInstance(Class.java:303)
     at oracle.jbo.server.ComponentObjectImpl.createRef(ComponentObjectImpl.java:211)
     at oracle.jbo.server.ApplicationModuleImpl.doCreateViewObject(ApplicationModuleImpl.java:3428)
     at oracle.jbo.server.ApplicationModuleDefImpl.loadViewObject(ApplicationModuleDefImpl.java:493)
     at oracle.jbo.server.ApplicationModuleDefImpl.loadComponents(ApplicationModuleDefImpl.java:672)
     at oracle.jbo.server.ApplicationModuleImpl.createRootApplicationModule(ApplicationModuleImpl.java:412)
     at oracle.jbo.server.ApplicationModuleHomeImpl.create(ApplicationModuleHomeImpl.java:91)
     at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:139)
     at oracle.jbo.common.ampool.DefaultConnectionStrategy.createApplicationModule(DefaultConnectionStrategy.java:80)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.instantiateResource(ApplicationPoolImpl.java:2468)
     at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:536)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2094)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1961)
     at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
     at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
     at oracle.jbo.client.Configuration.getApplicationModule(Configuration.java:1546)
     at oracle.jbo.client.Configuration.createRootApplicationModuleFromConfig(Configuration.java:1519)
     at oracle.jbo.jbotester.ConnectionInfo.useApplicationModule(ConnectionInfo.java:129)
     at oracle.jbo.jbotester.MainFrame.init(MainFrame.java:410)
     at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:394)
Any help, comments or links to where to do this would be much apperciated

Hi,
ensure you set jbo.security.enforce to Must in the ADF Business Components Applicaton Module Configuration
Frank

Similar Messages

  • Get Log on Username in system session ..

    Hi,
    I'm developing a windows service and i need to get log on username but the problem is service is running under system account so it always return
    system as username, is there any way to get log on username thru service which is running under system account ?? I'm using windows 7
    Thanks and regards.

    Since windows services run in Session 0, I don't think it'll show what Wall.E wants.
    On the other hand, I forgot that the current console user can be found on Win32_ComputerSystem as well. I've tested the following code can get console user name on service.
    private string GetConsoleUser()
    string username = String.Empty;
    ManagementScope scope = new ManagementScope("\\\\.\\root\\cimv2");
    ManagementObjectCollection compQuery = new ManagementObjectSearcher(scope, new SelectQuery("select * from Win32_ComputerSystem")).Get();
    foreach (ManagementObject item in compQuery)
    username = Convert.ToString(item["username"]);
    return username;

  • Getting logged in username

    I can get the currently logged in user's first name from the profile object
    as p.getAttributeString("iwtUserInfoProvider-firstName") and I can get the
    role (assuming I set it as user-readable) as
    p.getAttributeString("iwtUser-role").
    I can't seem to figure out where to get the username they used to log into
    the portal. Where do I find this?
    Also, is there any chance of getting back the cleartext of the password they
    used to authenticate on the login form later on in the session? Is this
    value kept?
    Thanks

    getClientID() in com.iplanet.portalserver.session has the username
    Look for this paragraph in the Javadocs:
    'The Session class represents a session. It contains session related
    information such as client ID (user ID or application ID)'
    Marshall Levin wrote:
    >
    I can get the currently logged in user's first name from the profile object
    as p.getAttributeString("iwtUserInfoProvider-firstName") and I can get the
    role (assuming I set it as user-readable) as
    p.getAttributeString("iwtUser-role").
    I can't seem to figure out where to get the username they used to log into
    the portal. Where do I find this?
    Also, is there any chance of getting back the cleartext of the password they
    used to authenticate on the login form later on in the session? Is this
    value kept?
    Thanks

  • Getting screen field values during runtime

    Hi everyone,
    In debugger for dynamically getting the screen field values we will be using  (SAPLMGMW)CALP-ENDPA this format to get the value of the field CALP-ENDPA.
    But this will give only for fields.My question is that how to get the screen field labels values in debugger.
    Take a look at following picture.

    Hi,
    Try putting a watch point on the screen field name and see where it is changing.
    If your need is before that it won't be possible to get it as it is a processed value.
    Also if it is updating on screen but still you are not getting that means the value is not transported from the Screen to the program in that case use the FM DYNP_VALUES_READ to get the values the documentation has the usage else there are lot of blogs just search it.
    Regards

  • Problem with large option class during runtime 11.5.10

    It seems like our Oracle Configurator has a problem with loading multiple large option classes with about 10,000 items under it. We are running 11.5.10. My guess is that Oracle has to load everything in the option class and at some point the server just gives up after loading so much data.
    Basically the model looks like this and was set up by Oracle themselves in 04. Overtime the option classes grew.
    --Base model
    ----Model A instance 1
    --------option class
    ------------10000 items
    ----Model A instance 2
    --------option class
    ------------10000 items
    ----Model A instance 50
    --------option class
    ------------10000 items
    Is there an optimal amount for an option class? Is the model structure possibly outdated and we should break up the option classes into models to alleviate some of the pain? Or are we at the limitation that Oracle Configurator can do and should peruse a custom solution?

    Funny thing really because the Case study for Chapter 4 is from our company that Oracle put together for us and its not working in the sense that it seems the servers can't handle the current model structure. I wouldn't blame the UI for these crashes and we already hide stuff from the user (ie, having to sort through all 10,000 items and hiding the BOM structure). Quick story of why i want to try and fix it is becuase the way its set up now in the model document is that 3 people could kill the server by basically saying "ok i selected this item for this location" (which would load the 10,000 items into memory on the server and not to the UI upon selection of the model) and then they would say... "ok now copy this selection to all these 50 places" (which would load those items again for each place that the item had to copied to) and BOOM server dead. I think sandeeps diagram of the changes is a really good idea and could help out alot and I tossed out that idea a few times before around my work place to help with the server issues. I feel that it would work but is it also possible that maybe configurator can't support our model the way they are wanting it to work?

  • Form based authentication getting logged in username and role

    Hi
    I have implemented a simple Form based authentication in my web site.
    I have maintained tomcat-users.xml file for user names, passwords and roles.
    Once my user is authenticated, I need to access his name and role in website.
    How can this be done.
    Please guide.
    Thanks

    The request object should contain the information, e.g. use request.getRemoteUser().

  • Error during Runtime: Mapping : RESOURCE_NOT_FOUND

    <b>Hello everybody,
    I get the following error during runtime while mapping:</b>
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Mapping der Request-Message
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING"><u><b>RESOURCE_NOT_FOUND</b></u></SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_FILE_REQUEST_2_RESPONSE_.class</SAP:P1>
      <SAP:P2>http://mm_file_2_file</SAP:P2>
      <SAP:P3>7c57acd0-19fa-11da-a907-fba1c22dd3ca</SAP:P3>
      <SAP:P4>-1</SAP:P4>
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>The Resource com/sap/xi/tf/_MM_FILE_REQUEST_2_RESPONSE_.class (http://mm_file_2_file, 7c57acd0-19fa-11da-a907-fba1c22dd3ca, -1) could not be found.</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    <b>Does anybody have an idea?
    Thanks a lot
    regards Mario</b>

    Could the reason be a wrong "file content convert"?
    The payload:
    <?xml version="1.0" encoding="utf-8" ?>
    <ns:TEST.TXT xmlns:ns="http://mm_file_2_file">
      <Record>
       <Row>
        <FirstName>Mario</FirstName>
        <LastName>Mueller</LastName>
        <City>Mannheim</City>
        <Country>Deutschland</Country>
      </Row>
    </Record>
    </ns:TEST.TXT>
    Structure of corresponding Data-Type
      Record  1..unbounded
        Row     1
          FirstName   1
          LastName    1
          City        1
          Country     1
    Regards Mario

  • Which JRE version during runtime?

    is there a way to get the jre version during runtime?
    like when you call
    java -versionfrom the command line
    I dont want a whole load of stuff I just want to know if its 1.4.0 or above?

    System.getProperty("java.version")

  • How to get the current logged in username from windows and put it into an AS var

    Hello,
    I was hopeing someone would know how to get the current logged in username from windows and put it into a var, so I can create a dynamic text box to display it.
    Thanks in advance
    Michael

    Just for everyone’s info, this is the script I have used to get the logged in windows username into flash ---- not and air app.
    In the html page that publishes with the .swf file under the <head> section:-
    <script language="JavaScript" type="text/javascript">
    function findUserName() {
         var wshell=new ActiveXObject ("wscript.shell");
         var username=wshell.ExpandEnvironmentStrings("%username%");
         return username;
    </script>
    The ActionScript:-
    import flash.external.ExternalInterface;
    var username:String = ExternalInterface.call ("findUserName");
    trace (username); // a quick test to see it in output

  • How do I put strings, which I get during runtime, in a Ring-item? And how to open a Frontpanel of a SubVI by pushing a Button in the MainVI during runtime?

    I'm very new to LabVIEW and every day I learn such a lot about LabVIEW. I did not find any example according to my problem, but I don't know how to do the following :
    In the MainVI I read different strings from file in an array (In the example below I defined them as constants. The example only shows how the frontpanels should look like).
    During a loop I calculate different values, which will be written in an array, too, and in every loop the array of values will be overwritten with the new calculated values. (string[i] belongs to value[i])
    Now, by pushing the button 'sub' during runtime, I want to op
    en the Frontpanel of a SubVI, on which you see a Ring and a numeric Indicator. Now, I want to show the strings I read in the MainVI as items in the Ring-menu. If I choose one of the items (strings) in the Ring-menu during runtime, I want to show the accordant value, which was calculated in the MainVI, in the numeric Indicator, and in every loop the new calculated value should be shown in this Indicator automatically.
    So I have two questions:
    1. How do I put the strings into the Ring-menu during runtime?
    2. How to open a SubVI-Frontpanel during runtime, and how to pass the calculated values to it?
    Every answer I accept with thanks!
    Attachments:
    main.vi ‏29 KB
    sub.vi ‏9 KB

    See the atttached vis :
    1/ Pass the string array to the sub-vi, then use a property node to replace the ring node strings
    2a/ From the subvi front panel window, rightclick on the icon, and select "Show connector". Define the connections
    2b/Set the sub vi properties (right click on the vi icon, select "VI properties... >> Window appearance..." go to "customize...", and checkmark the "Show front panel when called" item).
    3/ your main vi should run 2 separate loops in order to avoid that reading the data stops the aquisition process (if any !..), or the reverse situation.
    You should read the LV manual to find out how to create a sub-vi : there are a number a basic things to learn and to memorize...
    CC
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    main.vi.zip ‏16 KB

  • How to get the field name of an internal table during runtime?

    How to get the field name of an internal table during runtime?

    Hi  Sudhir,
    Declare and Use Get Cursor Field in Your Prm to get the field Name of the Intenal Table
    Example Code:
        <b>  DATA: v_field(60).                        " Insert this code.
         GET CURSOR FIELD v_field.        " Insert this code.</b>
         <b>CHECK v_field = 'ITAB-KUNNR'.    " Insert this code. (or)
    Write: v_field.</b>
    Regards,
    Ramganesan K.

  • How to get the logged in username or how to set the acquiredby?

    We are using BPEL 10.1.2.0.2.
    We have implemented CAS/OID to work with the TaskList. Our issue is with obtaining the logged in username while in the BPEL Workflow. Acquired by variable is not populated even after the task is acquired. Explicitly setting Acquired By doesn't work either (still comes as null).
    This might be something quite simple, but I am not able to figure it out. Is there a way to get the logged in username or the user who acquired the task while in the BPEL workflow?
    Thank you!

    I have no longer access to the custom worklist application of 10.1.2 but in 10.1.3 you can access it through:
    SessionStore sessStore = SessionStore.getInstance(request.getSession(false));
    String userName = ((IWorkflowContext) sessStore.get(WorklistappConstants.SESS_ATTR_WORKFLOW_CONTEXT)).getUser();Kind Regards,
    Andre

  • I just created an apple ID and then tried to log in to facetime but, keep getting : an error occurred during activation, try again" can anyone assist?

    i just created an apple ID and then tried to log in to facetime but, keep getting : an error occurred during activation, try again" can anyone assist?

    i just created an apple ID and then tried to log in to facetime but, keep getting : an error occurred during activation, try again" can anyone assist?

  • Hello, i am having problems getting face time to work, I keep getting an error message saying the server could not process the registration, I am using the username and password I always have and it has always worked in the past, any ideas?

    Hello, i am having problems getting face time to work, I keep getting an error message saying the server could not process the registration, I am using the username and password I always have and it has always worked in the past, any ideas?

    We aren't Apple, just users like you volunteering to help other users with problems. Threatening to go to Samsung doesn't mean anything to us. What troubleshooting have you tried so far?

  • After updating my iPhone 5 to ios 6.1 I'm getting a hissing sound during calls. Any one else having this problem? Need help

    After updating my iPhone 5 to ios 6.1 I'm getting a hissing sound during calls. Any one else having this problem? Need help

    I am having the same issue. I am updating to 6.1.3 to see if that helps. It is really annoying. It seems to vibrate as well as hiss on my ear piece speaker while on a call. I keep looking at the phone thinking maybe another call is coming in.

Maybe you are looking for

  • After recent OS update (10.8.2) I can no longer log into icloud.

    After recent OS update (10.8.2) I can no longer log into icloud.  I've reset password, but when I try to login on the icloud preferences panel it gives a little "bonk" sound and then spins forever.  Open to suggestion.  Thanks!

  • How do I get Flash player to Play

    I have watched a video on the web using flash in Firefox. I have saved the cache file of the video. I am now off line also the online video is no longer available from it's original source. Now I want to watch the video again using my saved Cache fil

  • Error when discover Weblogic 10.x under Grid Control 11g

    Hi all, I'm trying to adding web logic from middleware tab but I receive Internal Error has occurred. Check the log file for details. agent is installed and everything is working perfect. But every time I discover I receive this error which may indic

  • Open DMS document through Portal

    Hi Experts, I  develop one intereactive form in that i want to show attachement. I found many standard fms for that but i could not able execute same fms on portal. i used following code . This code works fine in backend but in frontend it could not

  • Mapping SAP R3 role to EP role for WD ABAP Application

    Hi, I have a WD ABAP application which uses POWL component. I have assigned this application to a role in SAP R3 system. Now, I have created an iview in portal for this WD ABAP application. I want to map this SAP R/3 role to Portal Role so that only