org.apache.ojb.broker.OJBRuntimeException: Can't assign the specified jdbc field-type 'BIGINT' for field: access="readwrite" <field-descriptor /> in class: name="maxKey" column="MAX_KEY" jdbc-type="BIGINT" access="readwrite" /> org.apache.ojb.broker.metadata.ClassDescriptor@62470c64[ classNameOfObject=org.apache.ojb.broker.util.sequence.HighLowSequence in class: tableName=OJB_HL_SEQ org.apache.ojb.broker.metadata.ClassDescriptor@62470c64[ schema=<null> classNameOfObject=org.apache.ojb.broker.util.sequence.HighLowSequence isInterface=false tableName=OJB_HL_SEQ extendClassNames=[] schema=<null> {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], 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], ],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], ]} ] ]


Solutions on the web

Solution icon of apache
via portals-jetspeed-dev by Gökhan Şahin (JIRA), 1 year ago
[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

Solution icon of apache
via portals-jetspeed-dev by David Sean Taylor (JIRA), 1 year ago
[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

Solution icon of apache
via portals-jetspeed-dev by David Sean Taylor (JIRA), 1 year ago
[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

Stack trace

org.apache.ojb.broker.OJBRuntimeException: Can't assign the specified jdbc field-type 'BIGINT' for field: 
         access="readwrite"
       <field-descriptor 
       />
 
 in class: 
         name="maxKey"
         column="MAX_KEY"
         jdbc-type="BIGINT"
         access="readwrite"
       />
 org.apache.ojb.broker.metadata.ClassDescriptor@62470c64[
 
   classNameOfObject=org.apache.ojb.broker.util.sequence.HighLowSequence
 in class: 
   tableName=OJB_HL_SEQ
 org.apache.ojb.broker.metadata.ClassDescriptor@62470c64[
   schema=<null>
   classNameOfObject=org.apache.ojb.broker.util.sequence.HighLowSequence
   isInterface=false
   tableName=OJB_HL_SEQ
   extendClassNames=[]
   schema=<null>
   {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],
   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],
 ],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)
	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)
	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)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
	at org.apache.jetspeed.components.SpringComponentManager.start(SpringComponentManager.java:301)
	at org.apache.jetspeed.tools.db.serializer.JetspeedSerializerApplicationImpl.importFiles(JetspeedSerializerApplicationImpl.java:184)
	at org.apache.jetspeed.tools.db.serializer.JetspeedSerializerApplicationImpl.main(JetspeedSerializerApplicationImpl.java:120)
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)
	... 42 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.