6 Replies Latest reply: Sep 22, 2009 11:48 AM by 621055 RSS

    DataControl not found

    621055
      hi,

      1 - i create DataControls in this location valtex.ejbmodel.DataControls.dcx
      2 -i changed to other location and i change in file adfm.xml


      Error 500--Internal Server Error

      oracle.jbo.NoDefException: JBO-25002: A definição valtex.ejbmodel.DataControls.dcx do tipo null não foi encontrada (type null not found)
           at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:503)
           at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:421)
           at oracle.adf.model.binding.DCDataControlConfigDef.findDefObject(DCDataControlConfigDef.java:28)
           at oracle.adf.model.binding.DCDataControlDef.findDefObject(DCDataControlDef.java:417)
           at oracle.jbo.uicli.mom.JUApplicationDefImpl.loadDataControlUsage(JUApplicationDefImpl.java:1098)
           at oracle.jbo.uicli.mom.JUApplicationDefImpl.loadDataControls(JUApplicationDefImpl.java:1058)
           at oracle.jbo.uicli.mom.JUApplicationDefImpl.loadContainees(JUApplicationDefImpl.java:1012)
           at oracle.jbo.mom.ContainerDefImpl.loadFromXMLFile(ContainerDefImpl.java:357)
           at oracle.jbo.uicli.mom.JUApplicationDefImpl.loadFromXMLFile(JUApplicationDefImpl.java:666)
           at oracle.jbo.mom.DefinitionManager.loadProjectDefinition(DefinitionManager.java:1315)
           at oracle.jbo.mom.DefinitionManager.loadProjectDefinition(DefinitionManager.java:1403)
           at oracle.jbo.uicli.mom.JUMetaObjectManager.findCpx(JUMetaObjectManager.java:815)
           at oracle.jbo.uicli.mom.JUMetaObjectManager.loadCpx(JUMetaObjectManager.java:860)
           at oracle.adf.model.BindingRequestHandler.initializeBindingContext(BindingRequestHandler.java:361)
           at oracle.adf.model.BindingRequestHandler.beginRequest(BindingRequestHandler.java:135)
           at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:179)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
           at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:279)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:239)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:196)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:139)
           at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
           at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:102)
           at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:65)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
           at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
           at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
           at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
           at weblogic.security.service.SecurityManager.runAs(Unknown Source)
           at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
           at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
           at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
           at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
           at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

      why give me this error? what's i have to do?

      thanks,
      best regards

      miguel
        • 1. Re: DataControl not found
          Puthanampatti
          check your "DataControls.dcx", AdapterDataControl definition must be missing. I faced this issue sometime ago.
          Also, check "DataBindings.cpx" under dataControlUsages.
          • 2. Re: DataControl not found
            621055
            hi

            1 - i have AdapterDataControl definition in my DataControls.dcx file.

            in AdapterDataControl i have this:

            <AdapterDataControl id="SessionEJBLocal" FactoryClass="oracle.adf.model.adapter.DataControlFactoryImpl"
            ImplDef="oracle.adfinternal.model.adapter.ejb.EjbDefinition" SupportsTransactions="false" SupportsSortCollection="true"
            SupportsResetState="false" SupportsRangesize="false" SupportsFindMode="false" SupportsUpdates="true"
            Definition="valtex.java.ejb.sbean.SessionEJBLocal" BeanClass="valtex.java.ejb.sbean.SessionEJBLocal"
            xmlns="http://xmlns.oracle.com/adfm/datacontrol">

            what's fail?


            2 - i not found the file "DataBindings.cpx", this file not exist.
            where i found this file?

            thanks
            miguel
            • 3. Re: DataControl not found
              Puthanampatti
              did you modify adfm.xml in both model and view controller?
              • 4. Re: DataControl not found
                621055
                hi,

                yes I modified adfm.xml in model projects but in viewcontroller i not find any reference to DataCrontrols.dcx file.

                i find "DataBindinds.cpx" file in ViewController project

                thanks
                • 5. Re: DataControl not found
                  621055
                  hi again,

                  in this link [http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/web_testdebug.htm#ADFFD936] i see this:

                  ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

                  The project dependency between the data model project and the user interface project is disabled.

                  By default, the dependency between projects is enabled whenever you create a web page that accesses a data control in the data model project. However, if the dependency is disabled and remains disabled when you attempt to run the application, an internal servlet error will be generated at runtime:

                  oracle.jbo.NoDefException: JBO-25002: Definition model.DataControls.dcx of type null not found

                  To correct the error, double-click the user interface project, and select the Dependencies node in the dialog. Make sure that the ModelProjectName.jpr option appears selected in the panel.

                  ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

                  and yes i have ModelProjectName.jpr option selected.


                  I do not know what to do anymore
                  • 6. Re: DataControl not found
                    621055
                    hi


                    problem resolved ...

                    1 - i deleted the DataControls
                    2 - create new DataControls
                    3 - problem resolved


                    thanks