2 Replies Latest reply: Oct 14, 2012 12:53 AM by Shahab.et RSS

    Error in calling webService based Entity

    Shahab.et
      I'm using JD 11.1.1.5.0

      in my application I've created an Entity based on a webService, It works fine when called through AM.
      but when I'm trying to make a (.jsff) page out of the VO ,It gives the following error :

      here is part of Log file :

      <Proxy> <invoke>
      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 oracle.jbo.client.svc.Proxy.invoke(Proxy.java:64)
           at oracle.jbo.client.svc.ADFProxyInvocationHandler.invoke(ADFProxyInvocationHandler.java:54)
           at $Proxy153.findProgramTaskVO1(Unknown Source)
           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.jbo.client.svc.ServiceProxyInvocationHandler.invoke(ServiceProxyInvocationHandler.java:58)
           at $Proxy154.findProgramTaskVO1(Unknown Source)
           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.jbo.datasource.svc.SIVODataSourceImpl.retrieveData(SIVODataSourceImpl.java:88)
           at oracle.jbo.server.DSViewObjectImpl.executeQueryForCollection(DSViewObjectImpl.java:127)
           at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1183)
           at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:1363)
           at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:1269)
           at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:1254)
           at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:6897)
           at oracle.adf.model.bc4j.DCJboDataControl.executeIteratorBindingIfNeeded(DCJboDataControl.java:1387)
           at oracle.adf.model.binding.DCIteratorBinding.executeQueryIfNeeded(DCIteratorBinding.java:2160)
           at oracle.jbo.uicli.binding.JUCtrlHierBinding.getRootNodeBinding(JUCtrlHierBinding.java:92)
           at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$HierCurrencyRowKeySet.getRowIterator(FacesCtrlHierBinding.java:1178)
           at oracle.adfinternal.view.faces.model.binding.CurrencyRowKeySet.size(CurrencyRowKeySet.java:34)
           at org.apache.myfaces.trinidad.model.RowKeySet.getSize(RowKeySet.java:152)
           at oracle.adfinternal.view.faces.renderkit.rich.TableRendererUtils.writePojoSelectionState(TableRendererUtils.java:306)
           at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.renderDataBlockRows(TableRenderer.java:1738)
           at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer._renderSingleDataBlock(TableRenderer.java:1613)
           at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer._handleDataFetch(TableRenderer.java:1015)
           at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.encodeAll(TableRenderer.java:506)
           at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
           at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
           at org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXCollection.java:538)
           at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
           at oracle.adfinternal.view.faces.util.rich.InvokeOnComponentUtils$EncodeChildVisitCallback.visit(InvokeOnComponentUtils.java:113)
           at org.apache.myfaces.trinidadinternal.context.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:222)
           at org.apache.myfaces.trinidad.component.UIXIterator.visitTree(UIXIterator.java:251)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:443)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:326)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:443)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:326)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:443)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:326)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:443)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:326)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:443)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:326)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:443)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:326)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:443)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:326)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:443)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:326)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:443)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:326)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:443)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:326)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:443)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:326)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:443)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:326)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:443)
           at oracle.adf.view.rich.component.rich.RichDocument.visitTree(RichDocument.java:198)
           at org.apache.myfaces.trinidad.component.UIXComponent.visitTree(UIXComponent.java:443)
           at oracle.adfinternal.view.faces.util.rich.InvokeOnComponentUtils.renderChild(InvokeOnComponentUtils.java:43)
           at oracle.adfinternal.view.faces.streaming.StreamingDataManager._pprComponent(StreamingDataManager.java:756)
           at oracle.adfinternal.view.faces.streaming.StreamingDataManager.execute(StreamingDataManager.java:525)
           at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer._encodeStreamingResponse(DocumentRenderer.java:3488)
           at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1458)
           at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
           at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
           at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
           at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
           at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
           at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:266)
           at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:197)
           at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
           at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
           at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:800)
           at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:294)
           at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:214)
           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
           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.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
           at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
           at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
           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.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
           at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
           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:209)
           at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
      Caused by: Exception [EclipseLink-45101] (Eclipse Persistence Services - 2.1.3.v20110304-r9073): org.eclipse.persistence.exceptions.SDOException
      Exception Description: An error occurred attempting to return the requested SDOHelperContext. In an active WebLogic instance the application name is required for helper context cache lookups. The application name could not be determined because getExecuteThread could not be invoked reflectively on ThreadPoolRuntime.
      Internal Exception: java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[weblogic, Administrators]
           at org.eclipse.persistence.exceptions.SDOException.errorInvokingWLSMethodReflectively(SDOException.java:126)
           at org.eclipse.persistence.sdo.helper.SDOHelperContext.getExecuteThread(SDOHelperContext.java:721)
           at org.eclipse.persistence.sdo.helper.SDOHelperContext.getContextMapKey(SDOHelperContext.java:625)
           at org.eclipse.persistence.sdo.helper.SDOHelperContext.getMapKey(SDOHelperContext.java:583)
           at org.eclipse.persistence.sdo.helper.SDOHelperContext.getAliasMap(SDOHelperContext.java:1160)
           at org.eclipse.persistence.sdo.helper.SDOHelperContext.getHelperContext(SDOHelperContext.java:435)
           at org.eclipse.persistence.sdo.SDOResolvable.readExternal(SDOResolvable.java:329)
           at commonj.sdo.impl.ExternalizableDelegator.readExternal(ExternalizableDelegator.java:83)
           at org.eclipse.persistence.sdo.SDOExternalizableDelegator.readExternal(SDOExternalizableDelegator.java:60)
           at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1791)