5 Replies Latest reply: Jan 16, 2013 5:24 AM by RajaSekharReddy.M RSS

    Getting wierd exceptions when rebuilding adf application on weblogic server

    RajaSekharReddy.M
      Hi all,
      I am using J developer version 11.2.3
      and it's integrated wls.
      I was testing the application and when i changed a piece of managed bean code and rebuilded it . It is throwing the following exceptions in server's log
      Any help would be appreciated

      Here is the log :
      java.lang.ClassCastException: oracle.adf.controller.internal.binding.DCTaskFlowBindingDef cannot be cast to oracle.adf.controller.internal.binding.DCTaskFlowBindingDef
           at oracle.adf.controller.internal.binding.DCTaskFlowBinding.initialize(DCTaskFlowBinding.java:174)
           at oracle.adf.controller.internal.binding.DCTaskFlowBinding.isActive(DCTaskFlowBinding.java:1293)
           at oracle.adf.controller.internal.binding.TaskFlowRegionController.refreshRegion(TaskFlowRegionController.java:126)
           at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3237)
           at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2906)
           at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:115)
           at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareModel(FacesPageLifecycle.java:392)
           at oracle.adf.controller.v2.lifecycle.Lifecycle$2.execute(Lifecycle.java:149)
           at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:197)
           at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.access$400(ADFPhaseListener.java:23)
           at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.startPageLifecycle(ADFPhaseListener.java:238)
           at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$1.after(ADFPhaseListener.java:274)
           at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:75)
           at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)
           at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:447)
           at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
           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:173)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
           at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
           at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
           at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
           at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
           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:442)
           at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
           at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
           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:139)
           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)
        • 1. Re: Getting wierd exceptions when rebuilding adf application on weblogic server
          Timo Hahn
          Remove the whole classes folder from the view controller project using your operating system remove function, then recompile the project and try again.

          Timo
          • 2. Re: Getting wierd exceptions when rebuilding adf application on weblogic server
            Arunkumar Ramamoorthy-Oracle
            Hi,

            Try Build->Clean All to clear off all the generated classes and then try compiling them again to see if you are getting same error.

            -Arun
            • 3. Re: Getting wierd exceptions when rebuilding adf application on weblogic server
              RajaSekharReddy.M
              Hi ,
              I have tried both deleting the folder and clean all option in the jdev . After trying 3 to 4 times i got the page the problem is i am getting some more stack trace as below


              <Jan 8, 2013 6:19:56 PM IST> <Error> <HTTP> <BEA-101362> <[ServletContext@9793686[app:FormFromDatabase module:FormFromDatabase-ViewController-context-root path:/FormFromDatabase-ViewController-context-root spec-version:2.5]] could not deserialize the servlet-context scoped attribute with name: "oracle.adf.view.rich.context.NewSessionURLProvider"
              java.lang.NullPointerException
                   at weblogic.servlet.internal.AttributeWrapper.saveObjectClassLoaderInfo(AttributeWrapper.java:227)
                   at weblogic.servlet.internal.AttributeWrapper.convertBytesToObject(AttributeWrapper.java:112)
                   at weblogic.servlet.internal.ContextAttributeWrapper.getObject(ContextAttributeWrapper.java:53)
                   at weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:60)
                   at weblogic.servlet.internal.AttributesMap.get(AttributesMap.java:108)
                   Truncated. see log file for complete stacktrace
              >
              <Jan 8, 2013 6:19:56 PM IST> <Error> <HTTP> <BEA-101362> <[ServletContext@9793686[app:FormFromDatabase module:FormFromDatabase-ViewController-context-root path:/FormFromDatabase-ViewController-context-root spec-version:2.5]] could not deserialize the servlet-context scoped attribute with name: "oracle.adf.view.rich.context.NewSessionURLProvider"
              java.lang.NullPointerException
                   at weblogic.servlet.internal.AttributeWrapper.saveObjectClassLoaderInfo(AttributeWrapper.java:227)
                   at weblogic.servlet.internal.AttributeWrapper.convertBytesToObject(AttributeWrapper.java:112)
                   at weblogic.servlet.internal.ContextAttributeWrapper.getObject(ContextAttributeWrapper.java:53)
                   at weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:60)
                   at weblogic.servlet.internal.AttributesMap.get(AttributesMap.java:108)
                   Truncated. see log file for complete stacktrace
              >
              <Jan 8, 2013 6:19:56 PM IST> <Error> <HTTP> <BEA-101002> <[ServletContext@9793686[app:FormFromDatabase module:FormFromDatabase-ViewController-context-root path:/FormFromDatabase-ViewController-context-root spec-version:2.5]] Could not deserialize the context attribute.
              java.lang.NullPointerException
                   at weblogic.servlet.internal.AttributeWrapper.saveObjectClassLoaderInfo(AttributeWrapper.java:227)
                   at weblogic.servlet.internal.AttributeWrapper.convertBytesToObject(AttributeWrapper.java:112)
                   at weblogic.servlet.internal.ContextAttributeWrapper.getObject(ContextAttributeWrapper.java:53)
                   at weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:60)
                   at weblogic.servlet.internal.EventsManager.unwrapAttribute(EventsManager.java:256)
                   Truncated. see log file for complete stacktrace
              >
              <Jan 8, 2013 6:19:56 PM IST> <Error> <HTTP> <BEA-101362> <[ServletContext@9793686[app:FormFromDatabase module:FormFromDatabase-ViewController-context-root path:/FormFromDatabase-ViewController-context-root spec-version:2.5]] could not deserialize the servlet-context scoped attribute with name: "org.apache.myfaces.trinidad.UIXEditableValue.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL"
              java.lang.NullPointerException
                   at weblogic.servlet.internal.AttributeWrapper.saveObjectClassLoaderInfo(AttributeWrapper.java:227)
                   at weblogic.servlet.internal.AttributeWrapper.convertBytesToObject(AttributeWrapper.java:112)
                   at weblogic.servlet.internal.ContextAttributeWrapper.getObject(ContextAttributeWrapper.java:53)
                   at weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:60)
                   at weblogic.servlet.internal.AttributesMap.get(AttributesMap.java:108)
                   Truncated. see log file for complete stacktrace
              >
              <Jan 8, 2013 6:19:56 PM IST> <Error> <HTTP> <BEA-101362> <[ServletContext@9793686[app:FormFromDatabase module:FormFromDatabase-ViewController-context-root path:/FormFromDatabase-ViewController-context-root spec-version:2.5]] could not deserialize the servlet-context scoped attribute with name: "org.apache.myfaces.trinidad.UIXEditableValue.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL"
              java.lang.NullPointerException
                   at weblogic.servlet.internal.AttributeWrapper.saveObjectClassLoaderInfo(AttributeWrapper.java:227)
                   at weblogic.servlet.internal.AttributeWrapper.convertBytesToObject(AttributeWrapper.java:112)
                   at weblogic.servlet.internal.ContextAttributeWrapper.getObject(ContextAttributeWrapper.java:53)
                   at weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:60)
                   at weblogic.servlet.internal.AttributesMap.get(AttributesMap.java:108)
                   Truncated. see log file for complete stacktrace
              >
              <Jan 8, 2013 6:19:56 PM IST> <Error> <HTTP> <BEA-101002> <[ServletContext@9793686[app:FormFromDatabase module:FormFromDatabase-ViewController-context-root path:/FormFromDatabase-ViewController-context-root spec-version:2.5]] Could not deserialize the context attribute.
              java.lang.NullPointerException
                   at weblogic.servlet.internal.AttributeWrapper.saveObjectClassLoaderInfo(AttributeWrapper.java:227)
                   at weblogic.servlet.internal.AttributeWrapper.convertBytesToObject(AttributeWrapper.java:112)
                   at weblogic.servlet.internal.ContextAttributeWrapper.getObject(ContextAttributeWrapper.java:53)
                   at weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:60)
                   at weblogic.servlet.internal.EventsManager.unwrapAttribute(EventsManager.java:256)
                   Truncated. see log file for complete stacktrace
              >
              <Jan 8, 2013 6:19:56 PM IST> <Error> <HTTP> <BEA-101362> <[ServletContext@9793686[app:FormFromDatabase module:FormFromDatabase-ViewController-context-root path:/FormFromDatabase-ViewController-context-root spec-version:2.5]] could not deserialize the servlet-context scoped attribute with name: "org.apache.myfaces.trinidad.UIXEditableValue.VALIDATE_EMPTY_FIELDS"
              java.lang.NullPointerException
                   at weblogic.servlet.internal.AttributeWrapper.saveObjectClassLoaderInfo(AttributeWrapper.java:227)
                   at weblogic.servlet.internal.AttributeWrapper.convertBytesToObject(AttributeWrapper.java:112)
                   at weblogic.servlet.internal.ContextAttributeWrapper.getObject(ContextAttributeWrapper.java:53)
                   at weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:60)
                   at weblogic.servlet.internal.AttributesMap.get(AttributesMap.java:108)
                   Truncated. see log file for complete stacktrace
              >
              <Jan 8, 2013 6:19:56 PM IST> <Error> <HTTP> <BEA-101362> <[ServletContext@9793686[app:FormFromDatabase module:FormFromDatabase-ViewController-context-root path:/FormFromDatabase-ViewController-context-root spec-version:2.5]] could not deserialize the servlet-context scoped attribute with name: "org.apache.myfaces.trinidad.UIXEditableValue.BEAN_VALIDATION_AVAILABLE"
              java.lang.NullPointerException
                   at weblogic.servlet.internal.AttributeWrapper.saveObjectClassLoaderInfo(AttributeWrapper.java:227)
                   at weblogic.servlet.internal.AttributeWrapper.convertBytesToObject(AttributeWrapper.java:112)
                   at weblogic.servlet.internal.ContextAttributeWrapper.getObject(ContextAttributeWrapper.java:53)
                   at weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:60)
                   at weblogic.servlet.internal.AttributesMap.get(AttributesMap.java:108)
                   Truncated. see log file for complete stacktrace
              >
              <UIXEditableValue> <_isBeanValidationAvailable> A Bean Validation provider is not present, therefore bean validation is disabled
              <Jan 8, 2013 6:19:56 PM IST> <Error> <HTTP> <BEA-101362> <[ServletContext@9793686[app:FormFromDatabase module:FormFromDatabase-ViewController-context-root path:/FormFromDatabase-ViewController-context-root spec-version:2.5]] could not deserialize the servlet-context scoped attribute with name: "org.apache.myfaces.trinidad.UIXEditableValue.BEAN_VALIDATION_AVAILABLE"
              java.lang.NullPointerException
                   at weblogic.servlet.internal.AttributeWrapper.saveObjectClassLoaderInfo(AttributeWrapper.java:227)
                   at weblogic.servlet.internal.AttributeWrapper.convertBytesToObject(AttributeWrapper.java:112)
                   at weblogic.servlet.internal.ContextAttributeWrapper.getObject(ContextAttributeWrapper.java:53)
                   at weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:60)
                   at weblogic.servlet.internal.AttributesMap.get(AttributesMap.java:108)
                   Truncated. see log file for complete stacktrace
              >
              <Jan 8, 2013 6:19:56 PM IST> <Error> <HTTP> <BEA-101002> <[ServletContext@9793686[app:FormFromDatabase module:FormFromDatabase-ViewController-context-root path:/FormFromDatabase-ViewController-context-root spec-version:2.5]] Could not deserialize the context attribute.
              java.lang.NullPointerException
                   at weblogic.servlet.internal.AttributeWrapper.saveObjectClassLoaderInfo(AttributeWrapper.java:227)
                   at weblogic.servlet.internal.AttributeWrapper.convertBytesToObject(AttributeWrapper.java:112)
                   at weblogic.servlet.internal.ContextAttributeWrapper.getObject(ContextAttributeWrapper.java:53)
                   at weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:60)
                   at weblogic.servlet.internal.EventsManager.unwrapAttribute(EventsManager.java:256)
                   Truncated. see log file for complete stacktrace
              >
              <Jan 8, 2013 6:19:56 PM IST> <Error> <HTTP> <BEA-101362> <[ServletContext@9793686[app:FormFromDatabase module:FormFromDatabase-ViewController-context-root path:/FormFromDatabase-ViewController-context-root spec-version:2.5]] could not deserialize the servlet-context scoped attribute with name: "org.apache.myfaces.trinidad.UIXEditableValue.VALIDATE_EMPTY_FIELDS"
              java.lang.NullPointerException
                   at weblogic.servlet.internal.AttributeWrapper.saveObjectClassLoaderInfo(AttributeWrapper.java:227)
                   at weblogic.servlet.internal.AttributeWrapper.convertBytesToObject(AttributeWrapper.java:112)
                   at weblogic.servlet.internal.ContextAttributeWrapper.getObject(ContextAttributeWrapper.java:53)
                   at weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:60)
                   at weblogic.servlet.internal.AttributesMap.get(AttributesMap.java:108)
                   Truncated. see log file for complete stacktrace
              >
              <Jan 8, 2013 6:19:56 PM IST> <Error> <HTTP> <BEA-101002> <[ServletContext@9793686[app:FormFromDatabase module:FormFromDatabase-ViewController-context-root path:/FormFromDatabase-ViewController-context-root spec-version:2.5]] Could not deserialize the context attribute.
              java.lang.NullPointerException
                   at weblogic.servlet.internal.AttributeWrapper.saveObjectClassLoaderInfo(AttributeWrapper.java:227)
                   at weblogic.servlet.internal.AttributeWrapper.convertBytesToObject(AttributeWrapper.java:112)
                   at weblogic.servlet.internal.ContextAttributeWrapper.getObject(ContextAttributeWrapper.java:53)
                   at weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:60)
                   at weblogic.servlet.internal.EventsManager.unwrapAttribute(EventsManager.java:256)
                   Truncated. see log file for complete stacktrace
              >

              Edited by: RajaSekharReddy.M on Jan 8, 2013 4:48 AM
              • 4. Re: Getting wierd exceptions when rebuilding adf application on weblogic server
                bigchill
                check your database connections and if you have have the adf runtime in preferences....
                • 5. Re: Getting wierd exceptions when rebuilding adf application on weblogic server
                  RajaSekharReddy.M
                  Hi all,
                  Thanks for all your help. Searching all over i found that the problem is with weblogic-application.xml file where i see lot of duplicates getting added each time i run the app any help :)
                  Thanks,
                  Raj.