0 Replies Latest reply: Jan 29, 2013 11:09 AM by Knorrar RSS

    Securing a proxy service with OWSM, error WSM-02079

    Knorrar
      Hi everyone:
      I'm using OSB PS3 developer mode and have deployed a proxy with a OWSM policy, when I want to do testing on the proxy, jumps me the following error:

      oracle.wsm.policymanager.PolicyManagerException: WSM-02079: Failed to connect to the policy manager instance due to error "java.rmi.RemoteException: EJB Exception:; nested exception is:
      java.lang.NullPointerException ".

      I followed all the advice and tips in this post:
      [https://kr.forums.oracle.com/forums/thread.jspa?threadID=2155780]
      But I had no luck,

      Someone could give me some more precise north to resolve this error
      In my osb trace log I have the following:

      <29-Jan-2013 17h40 CET> <WARNING> <oracle.wsm.resources.policymanager> <WSM-02101> <Generic Error Oracle WSM Policy Manager.
      java.lang.NullPointerException
      at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL (WSDLReaderImpl.java: 654)
      at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL (WSDLReaderImpl.java: 648)
      at oracle.wsm.policy.wsdl.util.WSDLPolicyUtil.getWSDL (WSDLPolicyUtil.java: 519)
      at oracle.wsm.policymanager.impl.PolicyService.getCompatibleClientPoliciesMap (PolicyService.java: 584)
      at oracle.wsm.policymanager.impl.PolicyService.getCompatibleClientPolicies (PolicyService.java: 209)
      at oracle.wsm.policymanager.ejb.impl.PolicyService.getCompatibleClientPolicies (PolicyService.java: 116)
      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: 597)
      at oracle.wsm.policymanager.util.PolicyMgrUtil.removeCurrentADFContext (PolicyMgrUtil.java: 820)
      at oracle.wsm.policymanager.ejb.impl.PolicyService.removeCurrentADFContext (PolicyService.java: 199)
      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: 597)
      at $ Proxy197.getCompatibleClientPoliciesAsString (Unknown Source)
      at weblogic.rmi.internal.ServerRequest.sendReceive (ServerRequest.java: 174)
      at weblogic.rmi.cluster.ClusterableRemoteRef.invoke (ClusterableRemoteRef.java: 345)
      at weblogic.rmi.cluster.ClusterableRemoteRef.invoke (ClusterableRemoteRef.java: 259) at Source)
      oracle.wsm.policymanager.client.PolicyServiceDelegate at $ 4.run (PolicyServiceDelegate.java: 257)
      oracle.wsm.policymanager.client.PolicyServiceDelegate at $ 4.run (PolicyServiceDelegate.java: 254)
      at java.security.AccessController.doPrivileged (Native Method)
      at javax.security.auth.Subject.doAsPrivileged (Subject.java: 517)
      at oracle.security.jps.internal.jaas.AccActionExecutor.execute (AccActionExecutor.java: 47)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs (AuthenticatedSubject.java: 363)
      at weblogic.security.service.SecurityManager.runAs (SecurityManager.java: 146)
      at weblogic.security.Security.runAs (Security.java: 61)
      at oracle.security.jps.wls.jaas.WlsActionExecutor.execute (WlsActionExecutor.java: 48)
      at oracle.security.jps.internal.jaas.CascadeActionExecutor.execute (CascadeActionExecutor.java: 52)
      at com.bea.wli.sb.management.configuration.PolicyBrowser.getClientPolicies (PolicyBrowser.java: 278)
      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: 597)
      at $ Proxy196.getClientPolicies (Unknown Source)
      at com.bea.alsb.console.test.service.ServiceForm.populateOwsmPolicies (ServiceForm.java: 2016)
      at com.bea.alsb.console.test.service.ServiceForm.initOwsmPolicies (ServiceForm.java: 1991)
      at com.bea.alsb.console.test.service.ServiceForm.reset (ServiceForm.java: 710)
      at com.bea.alsb.console.test.actions.DefaultRequestAction.execute (DefaultRequestAction.java: 62)
      at com.bea.alsb.console.test.actions.ServiceRequestAction.execute (ServiceRequestAction.java: 143)
      at org.apache.struts.action.RequestProcessor.processActionPerform (RequestProcessor.java: 431)
      at org.apache.struts.action.RequestProcessor.process (RequestProcessor.java: 236)
      at org.apache.beehive.netui.pageflow.PageFlowActionServlet.process (PageFlowActionServlet.java: 158)
      at com.bea.console.internal.ConsoleActionServlet.process (ConsoleActionServlet.java: 262)
      at org.apache.struts.action.ActionServlet.doGet (ActionServlet.java: 414)
      at com.bea.console.internal.ConsoleActionServlet.doGet (ConsoleActionServlet.java: 134)
      at com.bea.alsb.console.common.base.SBConsoleActionServlet.doGet (SBConsoleActionServlet.java: 49)
      at org.apache.beehive.netui.pageflow.PageFlowUtils.strutsLookup (PageFlowUtils.java: 1199)
      at org.apache.beehive.netui.pageflow.PageFlowUtils.strutsLookup (PageFlowUtils.java: 1230)
      at org.apache.beehive.netui.pageflow.PageFlowUtils.strutsLookup (PageFlowUtils.java: 1129)
      at com.bea.portlet.adapter.scopedcontent.StrutsStubImpl.processAction (StrutsStubImpl.java: 76)
      at com.bea.portlet.adapter.NetuiActionHandler.raiseScopedAction (NetuiActionHandler.java: 111)
      at com.bea.netuix.servlets.controls.content.NetuiContent.raiseScopedAction (NetuiContent.java: 181)
      at com.bea.netuix.servlets.controls.content.NetuiContent.raiseScopedAction (NetuiContent.java: 167)
      at com.bea.netuix.servlets.controls.content.NetuiContent.handlePostbackData (NetuiContent.java: 225)
      com.bea.netuix.nf.ControlLifecycle at $ 2.visit (ControlLifecycle.java: 180)
      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.java: 324)
      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.java: 334)
      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.java: 334)
      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.java: 334)
      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.java: 334)
      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.java: 334)
      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.java: 334)
      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.java: 334)
      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.java: 334)
      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.java: 334)
      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.java: 334)
      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.java: 334)
      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.java: 334)
      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.java: 334)
      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.java: 334)
      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.java: 334)
      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.java: 334)
      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.java: 334)
      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.java: 334)
      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.java: 334)
      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.java: 334)
      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.java: 334)
      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.java: 334)
      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.java: 334)
      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.java: 334)
      at com.bea.netuix.nf.ControlTreeWalker.walkRecursive (ControlTreeWalker.java: 334)
      at com.bea.netuix.nf.ControlTreeWalker.walk (ControlTreeWalker.java: 130)
      at com.bea.netuix.nf.Lifecycle.processLifecycles (Lifecycle.java: 395)
      at com.bea.netuix.nf.Lifecycle.processLifecycles (Lifecycle.java: 361)
      at com.bea.netuix.nf.Lifecycle.processLifecycles (Lifecycle.java: 352)
      at com.bea.netuix.nf.Lifecycle.runInbound (Lifecycle.java: 184)
      at com.bea.netuix.nf.Lifecycle.run (Lifecycle.java: 159)
      at com.bea.netuix.servlets.manager.UIServlet.runLifecycle (UIServlet.java: 388)
      at com.bea.netuix.servlets.manager.UIServlet.doPost (UIServlet.java: 258)
      at com.bea.netuix.servlets.manager.UIServlet.doGet (UIServlet.java: 211)
      at com.bea.netuix.servlets.manager.UIServlet.service (UIServlet.java: 196)
      at com.bea.netuix.servlets.manager.SingleFileServlet.service (SingleFileServlet.java: 251)
      at javax.servlet.http.HttpServlet.service (HttpServlet.java: 820)
      at weblogic.servlet.AsyncInitServlet.service (AsyncInitServlet.java: 130)
      at weblogic.servlet.internal.StubSecurityHelper $ ServletServiceAction.run (StubSecurityHelper.java: 227)
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet (StubSecurityHelper.java: 125)
      at weblogic.servlet.internal.ServletStubImpl.execute (ServletStubImpl.java: 300)
      at weblogic.servlet.internal.TailFilter.doFilter (TailFilter.java: 26)
      at weblogic.servlet.internal.FilterChainImpl.doFilter (FilterChainImpl.java: 56)
      at oracle.security.jps.ee.http.JpsAbsFilter $ 1.run (JpsAbsFilter.java: 111)
      at java.security.AccessController.doPrivileged (Native Method)
      at oracle.security.jps.util.JpsSubject.doAsPrivileged (JpsSubject.java: 313)
      at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode (JpsPlatformUtil.java: 413)
      at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode (JpsAbsFilter.java: 94)
      at oracle.security.jps.ee.http.JpsAbsFilter.doFilter (JpsAbsFilter.java: 161)
      at oracle.security.jps.ee.http.JpsFilter.doFilter (JpsFilter.java: 71)
      at weblogic.servlet.internal.FilterChainImpl.doFilter (FilterChainImpl.java: 56)
      at oracle.dms.servlet.DMSServletFilter.doFilter (DMSServletFilter.java: 136)
      at weblogic.servlet.internal.FilterChainImpl.doFilter (FilterChainImpl.java: 56)
      at weblogic.servlet.internal.RequestEventsFilter.doFilter (RequestEventsFilter.java: 27)
      at weblogic.servlet.internal.FilterChainImpl.doFilter (FilterChainImpl.java: 56)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs (AuthenticatedSubject.java: 321)
      at weblogic.security.service.SecurityManager.runAs (SecurityManager.java: 120)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute (WebAppServletContext.java: 2277)
      at weblogic.servlet.internal.WebAppServletContext.execute (WebAppServletContext.java: 2183)
      at weblogic.servlet.internal.ServletRequestImpl.run (ServletRequestImpl.java: 1454)
      at weblogic.work.ExecuteThread.execute (ExecuteThread.java: 207)
      at weblogic.work.ExecuteThread.run (ExecuteThread.java: 176)
      >
      <29-Jan-2013 17h40 CET> <Error> <ALSB Console> <BEA-494002> <There was an internal error in OSB Console: null
      java.lang.reflect.InvocationTargetException
      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: 597)
      at
      Truncated. see log file for complete stacktrace
      Caused by: com.bea.wli.sb.security.wss.PolicyManagementException: oracle.wsm.policymanager.PolicyManagerException: WSM-02079: Failed to connect to the policy manager instance due to error "java.rmi.RemoteException: EJB Exception:; nested exception is:
      java.lang.NullPointerException ".
      com.bea.wli.sb.management.configuration.PolicyBrowser.getClientPolicies (PolicyBrowser.java: 278)
      at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java: 39)
      Truncated. see log file for complete stacktrace
      Caused by: oracle.wsm.policymanager.PolicyManagerException: WSM-02079: Failed to connect to the policy manager instance due to error "java.rmi.RemoteException: EJB Exception:; nested exception is:
      java.lang.NullPointerException ".
      com.bea.wli.sb.management.configuration.PolicyBrowser.getClientPolicies (PolicyBrowser.java: 278)
      at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      Truncated. see log file for complete stacktrace
      Caused by: java.rmi.RemoteException: EJB Exception:; nested exception is:
      java.lang.NullPointerException
      at weblogic.rmi.internal.ServerRequest.sendReceive (ServerRequest.java: 205)
      at weblogic.rmi.cluster.ClusterableRemoteRef.invoke (ClusterableRemoteRef.java: 345)
      at weblogic.rmi.cluster.ClusterableRemoteRef.invoke (ClusterableRemoteRef.java: 259)
      at Source)
      oracle.wsm.policymanager.client.PolicyServiceDelegate at $ 4.run (PolicyServiceDelegate.java: 257)
      Truncated. see log file for complete stacktrace
      Caused by: java.lang.NullPointerException
      at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL (WSDLReaderImpl.java: 654)
      at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL (WSDLReaderImpl.java: 648)
      at oracle.wsm.policy.wsdl.util.WSDLPolicyUtil.getWSDL (WSDLPolicyUtil.java: 519)
      at oracle.wsm.policymanager.impl.PolicyService.getCompatibleClientPoliciesMap (PolicyService.java: 584)
      at oracle.wsm.policymanager.impl.PolicyService.getCompatibleClientPolicies (PolicyService.java: 209)
      Truncated. see log file for complete stacktrace
      >
      <29-Jan-2013 17h40 CET> <Error> <ALSB Console> <BEA-494002> <There was an internal error in OSB Console: oracle.wsm.policymanager.PolicyManagerException: WSM-02079: connection failure the policy manager instance due to error "java.rmi.RemoteException: EJB Exception:; nested exception is:
      java.lang.NullPointerException ".
      com.bea.wli.sb.security.wss.PolicyManagementException: oracle.wsm.policymanager.PolicyManagerException: WSM-02079: Failed to connect to the policy manager instance due to error "java.rmi.RemoteException: EJB Exception:; nested exception is:
      java.lang.NullPointerException ".
      com.bea.wli.sb.management.configuration.PolicyBrowser.getClientPolicies (PolicyBrowser.java: 278)
      at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java: 39)
      Truncated. see log file for complete stacktrace
      Caused by: oracle.wsm.policymanager.PolicyManagerException: WSM-02079: Failed to connect to the policy manager instance due to error "java.rmi.RemoteException: EJB Exception:; nested exception is:
      java.lang.NullPointerException ".
      com.bea.wli.sb.management.configuration.PolicyBrowser.getClientPolicies (PolicyBrowser.java: 278)
      at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      Truncated. see log file for complete stacktrace
      Caused by: java.rmi.RemoteException: EJB Exception:; nested exception is:
      java.lang.NullPointerException
      at weblogic.rmi.internal.ServerRequest.sendReceive (ServerRequest.java: 205)
      at weblogic.rmi.cluster.ClusterableRemoteRef.invoke (ClusterableRemoteRef.java: 345)
      at weblogic.rmi.cluster.ClusterableRemoteRef.invoke (ClusterableRemoteRef.java: 259)
      at Source)
      oracle.wsm.policymanager.client.PolicyServiceDelegate at $ 4.run (PolicyServiceDelegate.java: 257)
      Truncated. see log file for complete stacktrace
      Caused by: java.lang.NullPointerException
      at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL (WSDLReaderImpl.java: 654)
      at oracle.j2ee.ws.wsdl.xml.WSDLReaderImpl.readWSDL (WSDLReaderImpl.java: 648)
      at oracle.wsm.policy.wsdl.util.WSDLPolicyUtil.getWSDL (WSDLPolicyUtil.java: 519)
      at oracle.wsm.policymanager.impl.PolicyService.getCompatibleClientPoliciesMap (PolicyService.java: 584)
      at oracle.wsm.policymanager.impl.PolicyService.getCompatibleClientPolicies (PolicyService.java: 209)
      Truncated. see log file for complete stacktrace