Forum Stats

  • 3,759,518 Users
  • 2,251,557 Discussions
  • 7,870,690 Comments

Discussions

Error while opening taskflow in popup

Manasa Chanda
Manasa Chanda Member Posts: 42 Blue Ribbon

Hello all,

We are using Jdeveloper 12.2.1.3 and egtting below error while opening ADF Taskflow in popup

oracle.adf.controller.AdfcIllegalStateException: oracle.adf.controller.ControllerException: ADFC-12020: The ADF controller received a request to open a dialog when no dialog request was pending.

    at oracle.adfinternal.controller.application.DialogRequestHandler.invokeDialogTaskFlow(DialogRequestHandler.java:114)

    at oracle.adfinternal.controller.application.DialogRequestHandler.doCreateView(DialogRequestHandler.java:59)

    at oracle.adfinternal.controller.application.BaseRequestHandlerImpl.createView(BaseRequestHandlerImpl.java:59)

    at org.apache.myfaces.trinidadinternal.application.InternalViewHandlingStrategy.createView(InternalViewHandlingStrategy.java:48)

    at com.sun.faces.application.view.MultiViewHandler.createView(MultiViewHandler.java:169)

    at javax.faces.application.ViewHandlerWrapper.createView(ViewHandlerWrapper.java:173)

    at javax.faces.application.ViewHandlerWrapper.createView(ViewHandlerWrapper.java:173)

    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.createView(ViewHandlerImpl.java:108)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._restoreView(LifecycleImpl.java:1011)

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

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:227)

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

    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:207)

    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.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:169)

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

    at oracle.security.jps.ee.http.JpsAbsFilter$3.run(JpsAbsFilter.java:172)

    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:650)

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

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilterInternal(JpsAbsFilter.java:273)

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

    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:248)

    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:3701)

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

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

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

    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:2443)

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

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

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

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

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

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

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

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

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

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

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

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

Tagged:

Best Answer

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 37,556 Red Diamond
    Accepted Answer

    Still, it's a warning that you should fix because we don't know the impact.

    What you should do is to create a fresh app, not migrated vom 11g or 12c, but directly in your 12c version. Do you get the same problem with this new app?

    If not, you have your answer. Compare the running to the not running one.


    Timo


Answers

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 37,556 Red Diamond

    The error doesn't tell us why you get this problem. Please show us the code you use to open the popup and the pgae code.


    Timo


  • Manasa Chanda
    Manasa Chanda Member Posts: 42 Blue Ribbon

    Hi Timo,

    Here is the taskflow


    and this is the taskflow that is launched as dialog


    Please let me know what other code you need.

  • Manasa Chanda
    Manasa Chanda Member Posts: 42 Blue Ribbon

    This is the command link code which opens the popup

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 37,556 Red Diamond

    The task flow you call adfc..id_card.xml has a problem. I see a yellow ⚠️ on it. Find out what problem this is.


    Timo


  • Manasa Chanda
    Manasa Chanda Member Posts: 42 Blue Ribbon

    Hi Timo,

    This is a project migrated from 11g to 12c. So the yellow button which is shown on taskflow is because we are using jsf page (The error says This taskflow call refers to a task flow that uses different view technology than the owning taskflow). It is just a warning. I tried using jspx as well but got the same issue.

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 37,556 Red Diamond
    Accepted Answer

    Still, it's a warning that you should fix because we don't know the impact.

    What you should do is to create a fresh app, not migrated vom 11g or 12c, but directly in your 12c version. Do you get the same problem with this new app?

    If not, you have your answer. Compare the running to the not running one.


    Timo


  • Manasa Chanda
    Manasa Chanda Member Posts: 42 Blue Ribbon

    Hi Timo,

    I tried creating new app in 12c and dint face any issues. Do you have any suggestion on which all files to compare.

    Also are there are any particular steps to follow while migrating from 11g to 12c.please share your thoughts

  • Timo Hahn
    Timo Hahn Senior Principal Technical Consultant - Oracle ACE Director Member, Moderator Posts: 37,556 Red Diamond

    The steps for migrating are always

    1) check the documentation if a direct migration is possible or if you have to use one or more steps from your current version to the target version.

    2) open the application in the jdev version of the first step and recompile everything. Get rid of all errors from compilation.

    3) test the application throughoutly in the version of the step

    4) do step 2) for the next step.


    After each step you tested successfully, make a copy of the whole workspaces used to build the application. This comes handy if you have to go back later to check out errors you get in the next step.

    Read the release notes of all versions between your current version and the target version. There you might find hints of known errors and other changes to the framework. This info comes handy if you run into problems, them you may remember this mentioned in the release notes.


    Timo