Saturday, June 11, 2011

oracle.jbo.NoDefException: JBO-25002: Definition .PageDef of type Form Binding Definition is not found.

ADF error stack is definetly not very user friendly and there are times when you solely get depenedend on forums or google to get some hint of the solution but one would also settle if you can figure the cause of it.

oracle.jbo.NoDefException: JBO-25002: Definition .PageDef of type Form Binding Definition is not found.
is one of those exceptions. There are couple of forum post post to it but solution is vague and its get hard to interpret what the solution was. Well, if you get into this issue here is the cause.

DataBinding.cpx is missing definitionFactories tags. So as a solution add below tag to the DataBinding.cpx inside Application Tag and before PageMap tag:

3 comments:

  1. hi,
    i had same problem. but i put definition factories, but problem not yet solved. please guide me.

    ReplyDelete
  2. problem is,

    oracle.jbo.NoDefException: JBO-25002: Definition setup1.view.pageDefs.untitled3PageDef of type Form Binding Definition is not found.
    at oracle.jbo.mom.DefinitionManager.findDefObjectUsingMetadataObject(DefinitionManager.java:2703)
    at oracle.jbo.mom.DefinitionManager.findDefObjectUsingMetadataObject(DefinitionManager.java:2715)
    at oracle.adf.model.binding.DCBindingContainerDef.findDefObject(DCBindingContainerDef.java:292)
    at oracle.adf.model.binding.DCBindingContainerReference.createBindingContainer(DCBindingContainerReference.java:134)
    at oracle.adf.model.binding.DCBindingContainerReference.getBindingContainer(DCBindingContainerReference.java:92)
    at oracle.adf.model.BindingContext.get(BindingContext.java:1088)


    Caused by: oracle.jbo.PersistenceException: JBO-34000: Definition class name missing in XML file of type taskFlow
    at oracle.adf.model.binding.DCDefBase.createAndLoadFromXML(DCDefBase.java:402)
    at oracle.adf.model.binding.DCBindingContainerDef.loadExecutables(DCBindingContainerDef.java:1417)
    at oracle.adf.model.binding.DCBindingContainerDef.loadChildrenFromXML(DCBindingContainerDef.java:1213)
    at oracle.adf.model.binding.DCDefBase.loadFromXML(DCDefBase.java:325)
    at oracle.adf.model.binding.DCDefBase.createAndLoadFromXML(DCDefBase.java:409)
    at oracle.jbo.uicli.mom.JUMetaObjectManager.loadFromXML(JUMetaObjectManager.java:1066)
    at oracle.jbo.mom.DefinitionManager.loadDefinitionObjectWithoutCaching(DefinitionManager.java:1206)
    at oracle.jbo.mom.DefinitionManager.findDefObjectUsingMetadataObject(DefinitionManager.java:2681)
    ... 56 more
    ## Detail 0 ##

    ReplyDelete
  3. I hope you added definition factory in untitled3PageDef file.
    Also you can check if DataBinding.cpx has correct mapping for untitled3 page and its page definition.

    ReplyDelete