Wednesday, April 23, 2014

Could not complete AutoGenerateJSP because it would result in an invalid document.

I was working on a BPM test case and i got this issue.

In order to recreate this issue all you need is to go to your human task(.task file)

and click on auto-generate task form as shown below



and you will get an window with following error

oracle.bali.xml.model.XmlInvalidOnCommitException: SEVERE: Element af:selectItem not expected (missing required ancestor) [ node = af:selectItem ]
SEVERE: Element af:selectItem not expected (missing required ancestor) [ node = af:selectItem ]
SEVERE: Element af:selectItem not expected (missing required ancestor) [ node = af:selectItem ]
SEVERE: Element af:selectItem not expected (missing required ancestor) [ node = af:selectItem ]
SEVERE: Element af:selectItem not expected (missing required ancestor) [ node = af:selectItem ]
SEVERE: Element af:selectItem not expected (missing required ancestor) [ node = af:selectItem ]
SEVERE: Element af:selectItem not expected (missing required ancestor) [ node = af:selectItem ]
SEVERE: Element af:selectItem not expected (missing required ancestor) [ node = af:selectItem ]


at oracle.bali.xml.model.XmlModel._validateSubtree(XmlModel.java:3201)
at oracle.bali.xml.model.XmlModel._validateDocument(XmlModel.java:3109)
at oracle.bali.xml.model.XmlModel.__precommitTransaction(XmlModel.java:2737)
at oracle.bali.xml.model.XmlContext.precommitTransaction(XmlContext.java:1203)
at oracle.bali.xml.model.XmlContext.__precommitTransaction(XmlContext.java:1718)
at oracle.bali.xml.model.XmlContext.__commitTransaction(XmlContext.java:1749)
at oracle.bali.xml.model.XmlModel.__requestCommitTransaction(XmlModel.java:2810)
at oracle.bali.xml.model.XmlModel.commitTransaction(XmlModel.java:446)
at oracle.bali.xml.model.XmlModel.commitTransaction(XmlModel.java:416)
at oracle.bali.xml.model.task.StandardTransactionTask.__commitWrapperTransaction(StandardTransactionTask.java:541)
at oracle.bali.xml.model.task.StandardTransactionTask.runWithTokenThrowingXCE(StandardTransactionTask.java:271)
at oracle.bali.xml.model.task.StandardTransactionTask.runWithToken(StandardTransactionTask.java:114)
at oracle.bali.xml.model.task.StandardTransactionTask.run(StandardTransactionTask.java:101)
at oracle.tip.tools.ide.workflow.taskflow.wizard.TFWizardLauncher.CreateDataboundJSP(TFWizardLauncher.java:606)
at oracle.tip.tools.ide.workflow.taskflow.wizard.TFWizardLauncher.createTaskFlow(TFWizardLauncher.java:404)
at oracle.tip.tools.ide.workflow.taskflow.wizard.TFWizardLauncher$1.run(TFWizardLauncher.java:207)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:642)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:603)
at java.awt.EventQueue$1.run(EventQueue.java:601)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:612)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)


EVen if you create a new application and create a new human task it will not work.

In order to resolve this issue.

Shutdown Jdevleoper

Go to following location

C:\Users\Token\AppData\Roaming\JDeveloper\system11.1.1.7.40.64.93

Rename the system file corresponding to your version of Jdeveloper to some different name system11.1.1.7.40.64.93.bak

save it and restart Jdeveloper.

Your issue should be resolved.

Even if this does not work you try to install the same version of Jdeveloper in a different directory and try to create a form from that page.

No comments: