jboss5 启动时报HsqlException:length must be specified in type definition:VARBINARY错误
https://community.jboss.org/message/585994
EJBTimerService error on JBoss5 start up - without applications
此问题已回答。
Hi
I just starting to use JBoss5 with HSQLDB2.0.1 rc 3. Just installed and configured JBoss and HSQLDB, without any deployment of application.
This is what I get in the log of server startup:
16:49:17,405 ERROR [AbstractKernelController] Error installing to Start: name=jboss.ejb:persistencePolicy=database,service=EJBTimerService state=Create mode=Manual requiredState=Installed
java.sql.SQLException: length must be specified in type definition: VARBINARY
at org.hsqldb.jdbc.Util.sqlException(Util.java:215)
at org.hsqldb.jdbc.JDBCStatement.fetchResult(JDBCStatement.java:1826)
at org.hsqldb.jdbc.JDBCStatement.executeUpdate(JDBCStatement.java:207)
at org.jboss.resource.adapter.jdbc.WrappedStatement.executeUpdate(WrappedStatement.java:249)
at org.jboss.ejb.txtimer.GeneralPurposeDatabasePersistencePlugin.createTableIfNotExists(GeneralPurposeDatabasePersistencePlugin.java:175)
at org.jboss.ejb.txtimer.DatabasePersistencePolicy.startService(DatabasePersistencePolicy.java:104)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)
at sun.reflect.GeneratedMethodAccessor107.invoke(Unknown Source)
...
and then:
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "jboss.ejb:service=EJBTimerService" is missing the following dependencies:
Dependency "jboss.ejb:persistencePolicy=database,service=EJBTimerService" (should be in state "Create", but is actually in state "**ERROR**")
DEPLOYMENTS IN ERROR:
Deployment "jboss.ejb:persistencePolicy=database,service=EJBTimerService" is in error due to the following reason(s): org.hsqldb.HsqlException: length must be specified in type definition: VARBINARY, **ERROR**
Any help would be really appreciated
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:
<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错误相关推荐
- springBoot启动异常【Consider defining a bean of type】解决
启动时报异常Consider defining a bean of type 'xxx' in your configuration. 异常原因:未加@Component,导致未检测到 解决方法:往类 ...
- CentOS7 service network start命令启动时报错解决方法
service network start命令启动时报错: [root@localhost network-scripts]# service network start Starting netwo ...
- eclipse启动时报错An internal error occurred during: Initializing Java Tooling.
eclipse启动时报错An internal error o当前工作目录文件夹下的 /.metadata/.plugins/org.eclipse.core.resources/.project.就 ...
- Eclipse启动时报错
2019独角兽企业重金招聘Python工程师标准>>> Eclipse启动时报错:A Java RunTime Environment (JRE) or Java Developme ...
- resin启动时报错com.caucho.config.LineConfigException的解决
resin启动时报以下错误: [13:32:10.120] {main} WEB-INF/web.xml:42: 'listener-class' is an unknown property of ...
- hcl启动设备失败_施耐德ATS48M10Q软启动器启动时报故障维修技术精湛
施耐德ATS48M10Q软启动器启动时报故障维修技术精湛其行走电动机软启动器的起动和停止较频繁,传统起动方式机械.电气冲击大,容易造成斗轮的联轴器.高速轴.减速机等部位的损坏,设备故障率高,同时靠自由 ...
- PL/SQL Developer启动时报错:“Control 'dxDockBrowserPanel' has no parent window
PL/SQL Developer启动时报错: "Control 'dxDockBrowserPanel' has no parent window" 出现原因:某次刚打开PL/SQ ...
- 【报错笔记】maven项目启动时报错
maven项目启动时报错,通过maven test知报错原因如下: 解决方案:在pom.xml中指定项目的编码方式为utf-8 方法一: 在pom.xml的/project/build/plugins ...
- java项目启动时登录,Java项目启动时报错解决方法
当前位置:我的异常网» Java Web开发 » Java项目启动时报错解决方法 Java项目启动时报错解决方法 www.myexceptions.net 网友分享于:2013-08-07 浏览: ...
最新文章
- StaticFactoryMethod_Level1
- linux下各种颜色的文件表示的文件类型
- hadoop优化之操作系统优化
- iOS开发网络篇—NSURLConnection基本使用(一)
- mxnet symbol图的 变量 shape
- 从cpan上安装perl模块
- 性能优化:Sql语句中HINT不起作用
- 实战总结:我是怎么从0到1做后台业务系统的?
- 计算机屏幕怎么睡眠状态,解决办法:显示器进入睡眠状态时如何解决问题
- function implemented in Scala - compiled java code - some closure example
- P4981-父子【数学,树】
- 【HDU - 5988】Coding Contest(网络流费用流,改模板)
- 索引-css-第二版-pyhui
- GARFIELD@05-01-2005
- 2007年IT技术走向何方 网络将再掀“酷”革命
- 感性电路电流计算_220和380V功率和电流计算知识。
- 数据结构之栈和队列(顺序栈、链栈、循环队列)
- 如何打造一个自动化的前端项目
- Quantile-Quantile (q-q) Plots
- PS怎么用3D功能怎么用?如何用PS做立体字