并发队列
我现在多并非下,每次的请求我都需要把对象添加进队列里,可是我觉得不使用安全队列也没问题啊。使用普通的队列,一样可以添加进去,不会发生什么数据错误
边读边写绝对会出现问题。
不信你开10个线程加大访问力度,5读5写。
就算没出现异常、或出现什么问题、那内容是你想要的吗?
这样你怎么保障内容的一致性?
不可能吧.……继续阅读 »
11年前 (2015-04-07) 1376浏览 0评论
0个赞
我是用A用户去调用B用户的sequence,出现以上错误。
5分
不是已经告诉你序列不存在了吗?
但是我在pl/sql中是可以执行的,
我就是不明白,为什么在pl/sql中可以执行,而程序中不能执行。
5分
你把程序调用的代码和PL/SQL里调用的代码贴出看看
String seqSql=”s……继续阅读 »
11年前 (2015-04-07) 1512浏览 0评论
0个赞
websphere异常tomcatstruts2cxf
spring+struts2+cxf项目部署到webSphere后报错,部署到tomcat下时正常。
异常信息:
[10/30/14 23:33:47:211 PDT] 0000006b StrutsSpringO I com.opensymphony.xwork2.util.logging.……继续阅读 »
11年前 (2015-04-07) 1948浏览 0评论
0个赞
eclipse版本:eclipse-jee-luna-R-linux-gtk-x86_64.tar.gz
jdk版本:jdk1.8.0_20
eclipse安装路径:/home/chimes/eclipse
jdk解压缩路径:/home/chimes/eclipse/jdk1.8.0_20
/etc/profile设置如下:
export JA……继续阅读 »
11年前 (2015-04-07) 2579浏览 0评论
0个赞
多线程线程池
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Execut……继续阅读 »
11年前 (2015-04-07) 1834浏览 0评论
0个赞
sshexceptionjunit
org.springframework.beans.factory.BeanCreationException: Error creating bean with name “”test.TestService””: Injection of resource de……继续阅读 »
11年前 (2015-04-07) 1844浏览 0评论
0个赞
hibernatejavajavasejavaee
映射文件:
测试代码:
报错:user_addressmap表不存在
具体错误:
Hibernate: insert into user (name, gender, age) values (?, ?, ?)
Hibernate: insert into user_addressMap (u……继续阅读 »
11年前 (2015-04-07) 2123浏览 0评论
0个赞
class sync_thread
{
public static void main (String argv[])
{
Runnable r=new name_test();
Thread t1=new Thread(r,"t1");
Thread t2=new Thread(r,"t2");
t1.setPriority(Thread……继续阅读 »
11年前 (2015-04-07) 1153浏览 0评论
0个赞
页面提交的时候 控制台报错为:java.sql.SQLException: Incorrect string value: “”\xE5\x92\xA8\xE8\xAF\xA2…”” for column “”purpose”” at r……继续阅读 »
11年前 (2015-04-07) 1745浏览 0评论
0个赞