org.apache.jetspeed.serializer.SerializerException

Unexpected error during import: Error creating bean with name 'PlatformConfigurator' defined in file [e:\Jetspeed-2.2.2\database\..\webapps\jetspeed\WEB-INF\assembly\boot\datasource.xml]: Invocation of init method failed; nested exception is org.apache.ojb.broker.metadata.MetadataException: Can't read repository file 'repository.xml'

Solutions on the web5

  • via portals-jetspeed-dev by David Sean Taylor (JIRA), 9 months ago
    Unexpected error during import: Error creating bean with name 'PlatformConfigurator' defined in file [e:\Jetspeed-2.2.2\database\..\webapps\jetspeed\WEB-INF\assembly\boot\datasource.xml]: Invocation of init method failed; nested exception is org.apache.ojb.broker.metadata.MetadataException: Can't read repository file 'repository.xml'
  • via portals-jetspeed-dev by Gökhan Şahin (JIRA), 1 year ago
    Unexpected error during import: Error creating bean with name 'PlatformConfigurator' defined in file [e:\Jetspeed-2.2.2\database\..\webapps\jetspeed\WEB-INF\assembly\boot\datasource.xml]: Invocation of init method failed; nested exception is org.apache.ojb.broker.metadata.MetadataException: Can't read repository file 'repository.xml'
  • via portals-jetspeed-dev by David Sean Taylor (JIRA), 1 year ago
    Unexpected error during import: Error creating bean with name 'PlatformConfigurator' defined in file [e:\Jetspeed-2.2.2\database\..\webapps\jetspeed\WEB-INF\assembly\boot\datasource.xml]: Invocation of init method failed; nested exception is org.apache.ojb.broker.metadata.MetadataException: Can't read repository file 'repository.xml'
  • Stack trace

    • org.apache.jetspeed.serializer.SerializerException: Unexpected error during import: Error creating bean with name 'PlatformConfigurator' defined in file [e:\Jetspeed-2.2.2\database\..\webapps\jetspeed\WEB-INF\assembly\boot\datasource.xml]: Invocation of init method failed; nested exception is org.apache.ojb.broker.metadata.MetadataException: Can't read repository file 'repository.xml' at org.apache.jetspeed.tools.db.serializer.JetspeedSerializerApplicationImpl.main(JetspeedSerializerApplicationImpl.java:120) Caused by: org.apache.ojb.broker.metadata.MetadataException: Can't read repository file 'repository.xml' at org.apache.jetspeed.tools.db.serializer.JetspeedSerializerApplicationImpl.importFiles(JetspeedSerializerApplicationImpl.java:209) at org.apache.ojb.broker.metadata.MetadataManager.init(MetadataManager.java:160) at org.apache.jetspeed.tools.db.serializer.JetspeedSerializerApplicationImpl.main(JetspeedSerializerApplicationImpl.java:120) at org.apache.ojb.broker.metadata.MetadataManager.<init>(MetadataManager.java:139) at org.apache.ojb.broker.metadata.MetadataManager.getInstance(MetadataManager.java:173) at org.apache.jetspeed.components.rdbms.ojb.DatabasePlatformConfigurator.init(DatabasePlatformConfigurator.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335) ... 1 more Caused by: org.apache.ojb.broker.metadata.MetadataException: Exception when reading metadata information, please check your repository.xml file at org.apache.ojb.broker.metadata.RepositoryXmlHandler.startElement(RepositoryXmlHandler.java:956) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.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.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.ojb.broker.metadata.RepositoryPersistor.readMetadataFromXML(RepositoryPersistor.java:326) at org.apache.ojb.broker.metadata.RepositoryPersistor.buildRepository(RepositoryPersistor.java:278) at org.apache.ojb.broker.metadata.RepositoryPersistor.readDescriptorRepository(RepositoryPersistor.java:179) at org.apache.ojb.broker.metadata.MetadataManager.init(MetadataManager.java:149) ... 14 more Caused by: org.apache.ojb.broker.OJBRuntimeException: Can't assign the specified jdbc field-type 'BIGINT' for field: <field-descriptor name="maxKey" column="MAX_KEY" jdbc-type="BIGINT" access="readwrite" /> in class: org.apache.ojb.broker.metadata.ClassDescriptor@62470c64[ classNameOfObject=org.apache.ojb.broker.util.sequence.HighLowSequence tableName=OJB_HL_SEQ schema=<null> isInterface=false extendClassNames=[] {org.apache.ojb.broker.metadata.FieldDescriptor@267eaba4[columnName=TABLENAME,columnType=VARCHAR,isPrimaryKey=true,isLocking=false,isAutoincrement=false,access=readwrite,sequenceName=<null>,jdbcType=org.apache.ojb.broker.metadata.JdbcTypesHelper$T_Varchar@4636afba[jdbcType=12,jdbcTypeString=VARCHAR,associatedFieldType=org.apache.ojb.broker.metadata.FieldTypeClasses$StringFieldType@78f30883[sqlType=12,sqlTypeAsString=VARCHAR,isMutable=false]],super_class_fields ==> org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldDirectAccessImplNew@1bb40e7e[rootType=class org.apache.ojb.broker.util.sequence.HighLowSequence,fieldName=tableName], field_belongs_to org.apache.ojb.broker.util.sequence.HighLowSequence, custom attributes [null], ],org.apache.ojb.broker.metadata.FieldDescriptor@60c31037[columnName=FIELDNAME,columnType=VARCHAR,isPrimaryKey=true,isLocking=false,isAutoincrement=false,access=readwrite,sequenceName=<null>,jdbcType=org.apache.ojb.broker.metadata.JdbcTypesHelper$T_Varchar@4636afba[jdbcType=12,jdbcTypeString=VARCHAR,associatedFieldType=org.apache.ojb.broker.metadata.FieldTypeClasses$StringFieldType@78f30883[sqlType=12,sqlTypeAsString=VARCHAR,isMutable=false]],super_class_fields ==> org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldDirectAccessImplNew@265dbc82[rootType=class org.apache.ojb.broker.util.sequence.HighLowSequence,fieldName=fieldName], field_belongs_to org.apache.ojb.broker.util.sequence.HighLowSequence, custom attributes [null], ],org.apache.ojb.broker.metadata.FieldDescriptor@54030e7b[columnName=MAX_KEY,columnType=BIGINT,isPrimaryKey=false,isLocking=false,isAutoincrement=false,access=readwrite,sequenceName=<null>,jdbcType=<null>,super_class_fields ==> org.apache.ojb.broker.metadata.fieldaccess.PersistentFieldDirectAccessImplNew@14abd854[rootType=class org.apache.ojb.broker.util.sequence.HighLowSequence,fieldName=maxKey], field_belongs_to org.apache.ojb.broker.util.sequence.HighLowSequence, custom attributes [null], ]} ] at org.apache.ojb.broker.metadata.FieldDescriptor.lookupJdbcType(FieldDescriptor.java:206) at org.apache.ojb.broker.metadata.FieldDescriptor.setColumnType(FieldDescriptor.java:147) at org.apache.ojb.broker.metadata.RepositoryXmlHandler.startElement(RepositoryXmlHandler.java:397) ... 30 more Caused by: org.apache.ojb.broker.OJBRuntimeException: The type BIGINT can not be handled by OJB. Please specify only types as defined by java.sql.Types. at org.apache.ojb.broker.metadata.JdbcTypesHelper.getJdbcTypeByName(JdbcTypesHelper.java:142) at org.apache.ojb.broker.metadata.FieldDescriptor.lookupJdbcType(FieldDescriptor.java:201) ... 33 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.