org.ofbiz.core.entity.GenericModelException: Could not find definition for entity name ??tion

Atlassian JIRA | Jeff Turner | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Under application servers with lax XML parsers (eg. Resin), it is possible to export a JIRA backup that has non-Unicode characters, and so is invalid XML. JIRA cannot import these files. To work around this, we wrote a filter which strips out invalid characters before the parser gets to them. This filter is enabled by setting the jira.exportimport.cleanxml in jira-application.properties. Unfortunately under Tomcat (JIRA Standalone), enabling this flag causes imports to break with the message: Exception occurred: java.lang.IllegalArgumentException: [GenericDelegator.makeValue] could not find entity for entityName: ��tion And in the log: 2004-10-06 11:14:12,533 INFO [jira.action.admin.DataImport] Importing using the SAX Parser 2004-10-06 11:14:12,538 INFO [jira.action.admin.DataImport] Start parsing XML with SAX Parser 2004-10-06 11:14:12,564 WARN [jira.action.admin.DataImport] Replaced invalid XML character (0). 2004-10-06 11:14:12,564 WARN [jira.action.admin.DataImport] Replaced invalid XML character (0). 2004-10-06 11:14:12,569 ERROR [ofbiz.core.entity.GenericDelegator] Error getting entity definition from model org.ofbiz.core.entity.GenericModelException: Could not find definition for entity name ??tion at org.ofbiz.core.entity.model.ModelReader.getModelEntity(ModelReader.java:300) at org.ofbiz.core.entity.GenericDelegator.getModelEntity(GenericDelegator.java:248) at org.ofbiz.core.entity.GenericDelegator.makeValue(GenericDelegator.java:408) at com.atlassian.jira.action.admin.ImportParser.startElement(ImportParser.java:79) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)

    Atlassian JIRA | 1 decade ago | Jeff Turner
    org.ofbiz.core.entity.GenericModelException: Could not find definition for entity name ??tion
  2. 0

    Under application servers with lax XML parsers (eg. Resin), it is possible to export a JIRA backup that has non-Unicode characters, and so is invalid XML. JIRA cannot import these files. To work around this, we wrote a filter which strips out invalid characters before the parser gets to them. This filter is enabled by setting the jira.exportimport.cleanxml in jira-application.properties. Unfortunately under Tomcat (JIRA Standalone), enabling this flag causes imports to break with the message: Exception occurred: java.lang.IllegalArgumentException: [GenericDelegator.makeValue] could not find entity for entityName: ��tion And in the log: 2004-10-06 11:14:12,533 INFO [jira.action.admin.DataImport] Importing using the SAX Parser 2004-10-06 11:14:12,538 INFO [jira.action.admin.DataImport] Start parsing XML with SAX Parser 2004-10-06 11:14:12,564 WARN [jira.action.admin.DataImport] Replaced invalid XML character (0). 2004-10-06 11:14:12,564 WARN [jira.action.admin.DataImport] Replaced invalid XML character (0). 2004-10-06 11:14:12,569 ERROR [ofbiz.core.entity.GenericDelegator] Error getting entity definition from model org.ofbiz.core.entity.GenericModelException: Could not find definition for entity name ??tion at org.ofbiz.core.entity.model.ModelReader.getModelEntity(ModelReader.java:300) at org.ofbiz.core.entity.GenericDelegator.getModelEntity(GenericDelegator.java:248) at org.ofbiz.core.entity.GenericDelegator.makeValue(GenericDelegator.java:408) at com.atlassian.jira.action.admin.ImportParser.startElement(ImportParser.java:79) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)

    Atlassian JIRA | 1 decade ago | Jeff Turner
    org.ofbiz.core.entity.GenericModelException: Could not find definition for entity name ??tion

    Root Cause Analysis

    1. org.ofbiz.core.entity.GenericModelException

      Could not find definition for entity name ??tion

      at org.ofbiz.core.entity.model.ModelReader.getModelEntity()
    2. org.ofbiz.core
      GenericDelegator.makeValue
      1. org.ofbiz.core.entity.model.ModelReader.getModelEntity(ModelReader.java:300)
      2. org.ofbiz.core.entity.GenericDelegator.getModelEntity(GenericDelegator.java:248)
      3. org.ofbiz.core.entity.GenericDelegator.makeValue(GenericDelegator.java:408)
      3 frames
    3. com.atlassian.jira
      ImportParser.startElement
      1. com.atlassian.jira.action.admin.ImportParser.startElement(ImportParser.java:79)
      1 frame
    4. Xerces2-j
      DTDConfiguration.parse
      1. org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
      2. org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
      3. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
      4. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
      5. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      6. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      7. org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
      7 frames