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

正确回答 作者 jaikiran pai  开启 Feb 8, 2011 2:35 AM

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错误相关推荐

  1. springBoot启动异常【Consider defining a bean of type】解决

    启动时报异常Consider defining a bean of type 'xxx' in your configuration. 异常原因:未加@Component,导致未检测到 解决方法:往类 ...

  2. CentOS7 service network start命令启动时报错解决方法

    service network start命令启动时报错: [root@localhost network-scripts]# service network start Starting netwo ...

  3. eclipse启动时报错An internal error occurred during: Initializing Java Tooling.

    eclipse启动时报错An internal error o当前工作目录文件夹下的 /.metadata/.plugins/org.eclipse.core.resources/.project.就 ...

  4. Eclipse启动时报错

    2019独角兽企业重金招聘Python工程师标准>>> Eclipse启动时报错:A Java RunTime Environment (JRE) or Java Developme ...

  5. resin启动时报错com.caucho.config.LineConfigException的解决

    resin启动时报以下错误: [13:32:10.120] {main} WEB-INF/web.xml:42: 'listener-class' is an unknown property of ...

  6. hcl启动设备失败_施耐德ATS48M10Q软启动器启动时报故障维修技术精湛

    施耐德ATS48M10Q软启动器启动时报故障维修技术精湛其行走电动机软启动器的起动和停止较频繁,传统起动方式机械.电气冲击大,容易造成斗轮的联轴器.高速轴.减速机等部位的损坏,设备故障率高,同时靠自由 ...

  7. PL/SQL Developer启动时报错:“Control 'dxDockBrowserPanel' has no parent window

    PL/SQL Developer启动时报错: "Control 'dxDockBrowserPanel' has no parent window" 出现原因:某次刚打开PL/SQ ...

  8. 【报错笔记】maven项目启动时报错

    maven项目启动时报错,通过maven test知报错原因如下: 解决方案:在pom.xml中指定项目的编码方式为utf-8 方法一: 在pom.xml的/project/build/plugins ...

  9. java项目启动时登录,Java项目启动时报错解决方法

    当前位置:我的异常网» Java Web开发 » Java项目启动时报错解决方法 Java项目启动时报错解决方法 www.myexceptions.net  网友分享于:2013-08-07  浏览: ...

最新文章

  1. StaticFactoryMethod_Level1
  2. linux下各种颜色的文件表示的文件类型
  3. hadoop优化之操作系统优化
  4. iOS开发网络篇—NSURLConnection基本使用(一)
  5. mxnet symbol图的 变量 shape
  6. 从cpan上安装perl模块
  7. 性能优化:Sql语句中HINT不起作用
  8. 实战总结:我是怎么从0到1做后台业务系统的?
  9. 计算机屏幕怎么睡眠状态,解决办法:显示器进入睡眠状态时如何解决问题
  10. function implemented in Scala - compiled java code - some closure example
  11. P4981-父子【数学,树】
  12. 【HDU - 5988】Coding Contest(网络流费用流,改模板)
  13. 索引-css-第二版-pyhui
  14. GARFIELD@05-01-2005
  15. 2007年IT技术走向何方 网络将再掀“酷”革命
  16. 感性电路电流计算_220和380V功率和电流计算知识。
  17. 数据结构之栈和队列(顺序栈、链栈、循环队列)
  18. 如何打造一个自动化的前端项目
  19. Quantile-Quantile (q-q) Plots
  20. PS怎么用3D功能怎么用?如何用PS做立体字

热门文章

  1. 中国如何成为一流国家
  2. 版本控制(译文)-5 (连载)
  3. 【阅读笔记】Thinking in Java 对象入门
  4. python统计单元测试代码覆盖率
  5. Clusterware 和 RAC 中的域名解析的配置校验和检查 (文档 ID 1945838.1)
  6. switch case 支持的 6 种数据类型!
  7. Linux虚拟化介绍
  8. 胖子哥的大数据之路(10)- 基于Hive构建数据仓库实例
  9. 寒冰linux视频教程笔记8 系统监控
  10. 【166期推荐】医院中电脑耗材采购该不该归信息科负责?