Forum Stats

  • 3,770,027 Users
  • 2,253,050 Discussions
  • 7,875,270 Comments

Discussions

Error while running ADF application

Kareem Wahba
Kareem Wahba Member Posts: 24
edited Mar 4, 2016 2:26PM in JDeveloper and ADF

hello i am new in  ADF and trying to create a simple App ,i am using Jdeveloper 12c with MYSQL database i made the business components , when i ran the AppModule i got this Error "Error while opening JDBC connection." and when i dragged the userView on jsf page i got this error

    Error 500--Internal Server Error

    oracle.jbo.DMLException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-27200. Error message parameters are {0=Data Source, 1=java:comp/env/jdbc/testArchiveDS}

            at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1490)

            at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:328)

            at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)

            at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:643)

            at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:439)

            at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9909)

            at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4538)

            at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2453)

            at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2263)

            at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3162)

            at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:604)

            at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:224)

            at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:537)

            at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:532)

            at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:644)

            at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:1017)

            at oracle.adf.model.binding.DCDataControl.setErrorHandler(DCDataControl.java:492)

            at oracle.jbo.uicli.binding.JUApplication.setErrorHandler(JUApplication.java:261)

            at oracle.adf.model.BindingContext.put(BindingContext.java:1731)

            at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:286)

            at oracle.adf.model.BindingContext.instantiateDataControl(BindingContext.java:1416)

            at oracle.adf.model.dcframe.DataControlFrameImpl.doFindDataControl(DataControlFrameImpl.java:1906)

            at oracle.adf.model.dcframe.DataControlFrameImpl.internalFindDataControl(DataControlFrameImpl.java:1768)

            at oracle.adf.model.dcframe.DataControlFrameImpl.findDataControl(DataControlFrameImpl.java:1728)

            at oracle.adf.model.BindingContext.internalFindDataControl(BindingContext.java:1549)

            at oracle.adf.model.BindingContext.get(BindingContext.java:1499)

            at oracle.adf.model.binding.DCParameter.evaluateValue(DCParameter.java:83)

            at oracle.adf.model.binding.DCParameter.getValue(DCParameter.java:112)

            at oracle.adf.model.binding.DCBindingContainer.getChildByName(DCBindingContainer.java:2765)

            at oracle.adf.model.binding.DCBindingContainer.internalGet(DCBindingContainer.java:2813)

            at oracle.adf.model.binding.DCExecutableBinding.get(DCExecutableBinding.java:116)

            at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:340)

            at oracle.adf.model.binding.DCBindingContainer.evaluateParameterWithElCheck(DCBindingContainer.java:1491)

            at oracle.adf.model.binding.DCBindingContainer.findDataControl(DCBindingContainer.java:1627)

            at oracle.adf.model.binding.DCIteratorBinding.initDataControl(DCIteratorBinding.java:2715)

            at oracle.adf.model.binding.DCIteratorBinding.getDataControl(DCIteratorBinding.java:2650)

            at oracle.adf.model.binding.DCIteratorBinding.refresh(DCIteratorBinding.java:4812)

            at oracle.adf.model.binding.DCExecutableBinding.refreshIfNeeded(DCExecutableBinding.java:346)

            at oracle.jbo.uicli.binding.JUCtrlValueBinding.isAttributeUpdateable(JUCtrlValueBinding.java:1750)

            at oracle.jbo.uicli.binding.JUCtrlValueBinding.isAttributeUpdateable(JUCtrlValueBinding.java:1894)

            at oracle.jbo.uicli.binding.JUCtrlValueBinding.isUpdateable(JUCtrlValueBinding.java:2794)

            at oracle.adfinternal.view.faces.model.AdfELResolver._isReadOnly(AdfELResolver.java:158)

            at oracle.adfinternal.view.faces.model.AdfELResolver.isReadOnly(AdfELResolver.java:175)

            at oracle.adfinternal.view.faces.model.AdfELResolverProxy.isReadOnly(AdfELResolverProxy.java:78)

            at com.sun.faces.el.DemuxCompositeELResolver._isReadOnly(DemuxCompositeELResolver.java:293)

            at com.sun.faces.el.DemuxCompositeELResolver.isReadOnly(DemuxCompositeELResolver.java:322)

            at com.sun.el.parser.AstValue.isReadOnly(AstValue.java:216)

            at com.sun.el.ValueExpressionImpl.isReadOnly(ValueExpressionImpl.java:269)

            at com.sun.faces.facelets.el.TagValueExpression.isReadOnly(TagValueExpression.java:120)

            at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.getUncachedReadOnly(EditableValueRenderer.java:658)

            at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.getReadOnly(EditableValueRenderer.java:565)

            at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.isReadOnly(LabeledInputRenderer.java:314)

            at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.getClientComponentType(LabeledInputRenderer.java:99)

            at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1510)

            at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:538)

            at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1230)

            at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1863)

            at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:660)

            at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer._encodeFormItem(PanelFormLayoutRenderer.java:1160)

            at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer.access$200(PanelFormLayoutRenderer.java:53)

            at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer$FormColumnEncoder.processComponent(PanelFormLayoutRenderer.java:1915)

            at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer$FormColumnEncoder.processComponent(PanelFormLayoutRenderer.java:1821)

            at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:198)

            at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:330)

            at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:295)

            at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer._encodeChildren(PanelFormLayoutRenderer.java:428)

            at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer.encodeAll(PanelFormLayoutRenderer.java:211)

            at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1650)

            at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:538)

            at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1230)

            at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1863)

            at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:660)

            at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:677)

            at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3284)

            at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:275)

            at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1650)

            at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:538)

            at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1230)

            at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1863)

            at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:660)

            at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:677)

            at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3284)

            at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1428)

            at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1650)

            at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:538)

            at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1230)

            at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1863)

            at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)

            at oracle.adfinternal.view.faces.component.AdfViewRoot.encodeAll(AdfViewRoot.java:102)

            at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:458)

            at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)

            at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)

            at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.renderView(ViewDeclarationLanguageFactoryImpl.java:338)

            at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:134)

            at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:337)

            at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:170)

            at oracle.adfinternal.view.faces.lifecycle.ResponseRenderManager.runRenderView(ResponseRenderManager.java:52)

            at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1228)

            at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executeRenderResponse(LifecycleImpl.java:1040)

            at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:332)

            at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:254)

            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:651)

            at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:286)

            at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:260)

            at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:137)

            at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:350)

            at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)

            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)

            at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:194)

            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)

            at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:105)

            at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:529)

            at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

            at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:529)

            at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:354)

            at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:232)

            at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)

            at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:141)

            at java.security.AccessController.doPrivileged(Native Method)

            at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)

            at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:649)

            at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:124)

            at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:232)

            at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:94)

            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)

            at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:224)

            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)

            at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:32)

            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)

            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3654)

            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3620)

            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:326)

            at weblogic.security.service.SecurityManager.runAsForUserCode(SecurityManager.java:196)

            at weblogic.servlet.provider.WlsSecurityProvider.runAsForUserCode(WlsSecurityProvider.java:203)

            at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:71)

            at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2423)

            at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2280)

            at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2258)

            at weblogic.servlet.internal.ServletRequestImpl.runInternal(ServletRequestImpl.java:1626)

            at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1586)

            at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:270)

            at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:348)

            at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:333)

            at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:54)

            at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)

            at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:617)

            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:397)

            at weblogic.work.ExecuteThread.run(ExecuteThread.java:346)

    Caused by: javax.naming.LinkException:  [Root exception is javax.naming.NameNotFoundException: While trying to lookup 'jdbc.testArchiveDS' didn't find subcontext 'jdbc'. Resolved ''; remaining name 'jdbc/testArchiveDS']; Link Remaining Name: 'jdbc/testArchiveDS'

            at weblogic.jndi.internal.WLNamingManager.getObjectInstance(WLNamingManager.java:114)

            at weblogic.jndi.internal.BasicNamingNode.resolveObject(BasicNamingNode.java:958)

            at weblogic.jndi.internal.ApplicationNamingNode.resolveObject(ApplicationNamingNode.java:186)

            at weblogic.jndi.internal.BasicNamingNode.resolveObject(BasicNamingNode.java:930)

            at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:222)

            at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:132)

            at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:227)

            at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:132)

            at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:227)

            at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:132)

            at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:227)

            at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:132)

            at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:307)

            at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:430)

            at weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyContextWrapper.java:45)

            at weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.java:130)

            at javax.naming.InitialContext.lookup(InitialContext.java:417)

            at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1476)

            ... 148 more

    Caused by: javax.naming.NameNotFoundException: While trying to lookup 'jdbc.testArchiveDS' didn't find subcontext 'jdbc'. Resolved ''; remaining name 'jdbc/testArchiveDS'

            at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1224)

            at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:268)

            at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:217)

            at weblogic.jndi.internal.BasicNamingNode.lookupIgnorePartition(BasicNamingNode.java:1503)

            at weblogic.jndi.internal.PartitionHandler.lookupSharable(PartitionHandler.java:88)

            at weblogic.jndi.internal.ServerNamingNode.lookup(ServerNamingNode.java:584)

            at weblogic.jndi.internal.RootNamingNode.lookup(RootNamingNode.java:81)

            at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:307)

            at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:430)

            at javax.naming.InitialContext.lookup(InitialContext.java:417)

            at weblogic.jndi.internal.WLNamingManager.getObjectInstance(WLNamingManager.java:112)

            ... 165 more

Tagged:

Best Answer

  • PedroGabriel
    PedroGabriel Member Posts: 244 Bronze Badge
    edited Mar 1, 2016 5:17AM Accepted Answer

    Hi,

    It seems that you don't have the "jdbc/testArchiveDS" data source configured in your server.

    Create a new generic data source in your server with the same name.

    Best Regards,

    Pedro Gabriel

    Kareem Wahba
«1

Answers

This discussion has been closed.