bawking
bawking · 共 23 篇文章
com.arjuna.ats.arjuna.coordinator.TransactionReaper
10:59:09,203 WARN - TransactionReaper::check timeout for TX -3f57fe7d:a4a:4e45e4af:2f4 in state RUN 10:59:09,203 WARN - Abort of action id -3f57fe7d:a4a:4e45e4af:2f4 invoked while multiple threads active within it. 10:59:09,203 WARN - CheckedAction::check - atomic action -3f57fe7d:a4a:4e45e4af:2f4 …
There is already a delivery set for auto ack :false
JMS的消息session接受后设置值进去会报 There is already a delivery set for auto ack :false。代码 session = connection.createQueueSession( false , QueueSession.AUTO_ACKNOWLEDGE); 先改为 session = connection.createQueueSession( true , QueueSession.AUTO_ACKNOWLEDGE);试试,待会儿看结果 结果不行,暂时先换成2条消息发送
2011-07-19 14:53 · java · 评论(0)
No Dialect mapping for JDBC type: -1
@SuppressWarnings("unchecked") public List findAll(final int... rowStartIdxAndCount) { LogUtil.log("finding all ReturnDidQuery instances", Level.INFO, null); try { final String queryString = "select model from ReturnDidQuery model"; Query query = entityManager.createQuery(queryString); if (rowStart…
2011-07-18 13:58 · java · 评论(0)
Grub4Dos硬盘安装Fedora/CentOS Linux操作系统
从硬盘安装Linux/GNU操作系统,有不需要光盘驱动器及刻录光盘等便利特点,因而具有实用价值。本文描述了Windows XP环境下使用Grub4Dos进行硬盘安装Fedora/CentOS Linux操作系统的详细步骤和方法(Grub4Dos是大名鼎鼎的引导装载程序Grub在Dos/Windows环境版本,其基于Grub开发并对其功能进行了增强和扩充,具有更好的兼容性和适应性)。 1. 首先下载Fedora/CentOS Linux的光盘镜像(ISO文件,CD/DVD/LiveCD版的都行),把它们放在某个文件系统分区(Fat32/NTFS/Ext3类型不限)下。 2. 使用WinRAR打…
2011-07-15 09:57 · linux · 评论(0)
windows端口占用详细查看
大家在日常工作生活学习中难免遇见端口占用的问题,大家首先想到的是netstat,看见的是一个列表,何不加个参数呢?netstat -abon,just do it,会给你不一样的惊喜。
2011-06-09 14:55 · 评论(0)
android官网访问2方法
nyud.net代理: http://developer.android.com.nyud.net/index.html http://androidappdocs.appspot.com/
2011-05-30 22:09 · 评论(0)
jboss5.1GA 端口异常小计
jboos版本发布之快,真是神速啊。各个版本之间总有些让人猝不及防的感觉,这不,启动jboss5.1GA版本的all,会发现一些端口被占用,1099,1090。。。。等等,有些在控制台就会提示是哪个端口位于哪个配置文件发生问题,这个直接去改改就ok,还有些是其他软件占用的,netstat -no -a可以看见,还有就是看不见的,发现server/nodeB/conf/bindingservice.beans/META-INF下面的bindings-jboss-beans.xml文件里可以找到很多,大多可以解决. jboss5目前支持配置多个实例,实现端口自增,网上有很多资料可寻(后续分享一个…
2011-05-21 02:08 · 评论(1)
jboss message driver bean:NameNotFoundException
EJB30在发布时出现异常javax.naming.NameNotFoundException: RequestOmsQueue not bound platform: Jboss 5.1GA(默认jms提供者为JBoss Messaging 1.4,而非JbossMQ) 服务器端: package com.octawave.oms.trade.msg; import javax.ejb.ActivationConfigProperty; import javax.ejb.MessageDriven; import javax.jms.Message; import javax.jms.Me…
2011-05-19 11:10 · 评论(0)
could not initialize proxy - no Session
org.hibernate.LazyInitializationException: could not initialize proxy - no Session at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:86) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:140) at org.hibernate.proxy.poj…
2011-05-17 15:32 · 评论(0)
SQL Error: 156, SQLState: S0001
由于偷懒,用MyEclipse连接ms sqlServer2008,然后反转生成了一些Entity,结果自动生成的Entity的注解@Table(name = "LineItem", schema = "dbo", catalog = "Order"),这样的话,生成的sql语句会带上Order.dbo.LineItem,这个时候数据库会报SQL Error: 156, SQLState: S0001,说用了ms sqlServer2008数据库的关键字(order by),这个时候讲注解@Table(name = "LineItem", schema = "dbo", catalog = …
2011-05-17 15:01 · 评论(0)
ejb3:Illegal to call this method from injected, managed EntityManager
在EJB3.0的业务方法中,我们可以一般都猜想,可以调用EntityManager的getTransaction()方法得到一个事务对象,然后再通过该事务的begin()、commit()方法,可以开启、提交事务,然后关闭连接。然而,在开发过程中却发现这样做会抛出异常:java.lang.IllegalStateException: Illegal to call this method from injected, managed EntityManager。 在Hibernate中,我们明明可以手动开启、提交事务的,为什么在EJB3.0中却不行呢?上网找了一下,终于发现了问题的所在。 原…
2011-05-17 14:55 · 评论(0)
ejb3:Unable to build EntityManagerFactory
开发环境为: jboss-5.1.0.GA Microsoft SQL Server sqljdbc4.jar jndi.Properties: java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.provider.url=192.168.1.131:1099,192.168.1.170:1099 java.naming.factory.url.pkgs=org.jnp.interfaces persistence.xml: <persistence-unit name="octawa…
2011-05-17 14:45 · 评论(0)
解决Eclipse"Failed to create the Java Virtual Machine"
今天在启动Eclipse,发现弹出提示框“ Failed to create the Java Virtual Machine”,我的eclipse版本为3.6,几经周折终于找到了解决办法,特与朋友们分享,方法如下: 确定jdk安装完好,并且环境变量没有问题的前提下 ,找到eclipse目录下的eclipse.ini,可以看到如下内容: -startup plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.w…
2011-05-16 08:46 · 评论(0)
J2ME环境搭建
大致步骤如下: 1。下载安装JDK 2。下载安装Eclipse 3。下载安装WTK 4。下载EclipseME插件,并安装 5。集成EclipseME到Eclipse 一。下载JDK 下载地址:http://www.oracle.com/technetwork/java/javase/downloads/index.html 配置好环境变量: JAVA_HOME,CLASSPATH,PATH。建议配成用户变量,因为有的同学配置成系统变量时容 易把系统的PATH弄丢了 二。下载Eclipse 下载地址:http://www.eclipse.org/downloads/ 下载完成后解压在一个位置…
2011-05-07 10:40 · 评论(1)
The list of Android books
The list of Android books This is a simple list of Android books I have found, if you found any other Android book not in here, pls tell me. The details info of these Android books is maintained in the “Android Book” page and I will update it regularly. Android Developer’s Guide Hello, Android: Int…
2011-05-05 14:30 · 评论(0)