java.sql.SQLSyntaxErrorException:length must be specified in type definition:VARBINARY
2013-01-09 16:19
746 查看
Can you try this:
- Open the JBOSS_HOME/server/< servername>/conf/standardjbosscmp-jdbc.xml in a text editor
- Search for the "Hypersonic SQL" type-mappping in that file. It will look something like this:
Try changing it to:
See the change in the sql-type value. I set the length randomly to 1024.
After this change, restart the server and see if it works.
- Open the JBOSS_HOME/server/< servername>/conf/standardjbosscmp-jdbc.xml in a text editor
- Search for the "Hypersonic SQL" type-mappping in that file. It will look something like this:
<type-mapping> <name>Hypersonic SQL</name> <row-locking-template/> ... <mapping> <java-type>java.lang.Object</java-type> <!-- hsqldb only supports directly serializable objects for sql type OBJECT --> <jdbc-type>VARBINARY</jdbc-type> <sql-type>VARBINARY</sql-type> </mapping> ... </type-mapping>
Try changing it to:
<type-mapping> <name>Hypersonic SQL</name> <row-locking-template/> ... <mapping> <java-type>java.lang.Object</java-type> <!-- hsqldb only supports directly serializable objects for sql type OBJECT --> <jdbc-type>VARBINARY</jdbc-type> <sql-type>VARBINARY(1024)</sql-type> </mapping> ... </type-mapping>
See the change in the sql-type value. I set the length randomly to 1024.
After this change, restart the server and see if it works.
相关文章推荐
- jboss5 启动时报HsqlException:length must be specified in type definition:VARBINARY错误
- Caused by: java.sql.SQLSyntaxErrorException: Unknown column 'name' in 'field list'
- com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: You have an error in your SQL syntax;
- org.hibernate.exception.SQLGrammarException: could not inYou have an error in your SQL syntax;完美解决错误
- ERROR: No pool defined. at least one pool section must be specified in config file
- java.sql.SQLSyntaxErrorException: ORA-01747: user.table.column, table.column
- IAR遇到问题Error[e72]: Segment XDATA_HEAP must be defined in a segment definition option (-Z, -b or -P)
- JAVA中 错误代码是 the public type must be defined in its own file 解决方法 android开发 java编程
- [bug] captcha中demo运行失败(TypeError must be sequence of length 4, not 2)
- Activiti5.19查询报错[java.sql.SQLSyntaxErrorException: ORA-00936: 缺失表达式]
- java.sql.SQLSyntaxErrorException: ORA-00904: "column": 标识符无效
- Caused by: java.sql.SQLSyntaxErrorException: ORA-00942: 表或视图不存在,分页等关于hibernate测试的几个问题
- Error:You have an error in your SQL syntax; TYPE=MYISAM
- [置顶] JAVA中 错误代码是 the public type must be defined in its own file 解决方法 android开发 java编程
- error : A file found in a source-path must have an externally visible definition. If a definition in the file is meant to be ext
- java-No exception of type ConfigurationException can be thrown; an exception type must be a subclass of Throwable
- java.sql.SQLSyntaxErrorException: ORA-02289:序列不存在
- mybatis报了一个java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符
- java.lang.RuntimeException: Date pattern must be set for column update_time in the schema of component
- java.sql.SQLSyntaxErrorException: ORA-00907: 缺失右括号