`
streammoon
  • 浏览: 24649 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
纠结了很久的错误; 点击发送请求页面,在请求未返回前关闭页面报错: java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.Response.getWriter(Response.java:611) at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198) at javax.servle ...
JasperReport 6.0.0,iReport5.6,SqlServer2008 一:设置jdbc连接,本例设定mssqlserver 2008 上图下拉列表中红色部分表示无法使用的驱动,需要添加数据库驱动jar包(Tools > Options > iReport > Classpath and add the required JARs to the classpat ...
myeclipse8 + mysql: 其中数据库以及表的编码都是utf-8; Illegal mix of collations (utf8_general_ci,IMPLICIT) and (gbk_chinese_ci,COERCIBLE) for operation 'UNION' 这是在使用union关联时出现的问题; 解决如下: 在代码中 查询出来的字段上添加 convert( using utf8);如: select '列值'  as 列名 from  table。。。 换成 select convert('列值' using utf8) as 列名   table。。 ...
pom.xml: <properties> <struts2.springPlatformVersion> 3.2.0.RELEASE </struts2.springPlatformVersion> </properties> <dependencies> <dependency> <groupId>dom4j</groupId> <artifactId>dom4j</artifactId> <version>1 ...
java.lang.ExceptionInInitializerError Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0': Initialization of bean failed; nested exception is org.springframework.beans.fac ...
采用hibernate anno 注解 时候出现这个问题,项目无法进入。 数据库:oracle11 jar: ojdbc6.jar 后来发现原因: 在bean的属性上有           @Id @GeneratedValue (strategy=GenerationType.SEQUENCE,generator="SEQ_PAGE") private Integer pid; 但是 在类头部并没有声明 SEQ_PAGE。 修复后的形式: @Entity @Table(name="t_page") @SequenceGenerator( ...
Oracle11  的 ojdbc6.jar 首先 ,下载ojdbc6.jar(在oracle的安装目录下 product\11.2.0\dbhome_1\jdbc\lib 下可以找到)。 将jar放在 某一目录下,运行cmd,制定目录到改目录 运行 mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.1.0 -Dpackaging=jar -Dfile=ojdbc6.jar 这样就可以在maven仓库下找到相应的jar。 然后添加 <dependency>     ...
EntityManager 删除数据时出现 java.lang.IllegalArgumentException: Removing a detached instance com.txl.app.beans.UserInfo#8 at org.hibernate.ejb.event.EJB3DeleteEventListener.performDetachedEntityDeletionCheck(EJB3DeleteEventListener.java:45) at org.hibernate.event.def.DefaultDeleteEventListener.onDelete ...
错误信息: Syntax error, annotations are only available if source level is 5.0 解决 : 变更java Compiler 为6.0(我jdk为6) 右击项目 选 Properties 然后 如图。。 ============================= maven install 时 异常。。。。 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-com ...
在之前建立的maven web app中 虽然web可以跑通了, 但是如果想在java中 运行main方法,还是会出问题。 错误如下: java.lang.NoClassDefFoundError: com/tt/app/action/LoginAction Caused by: java.lang.ClassNotFoundException: com.tt.app.action.LoginAction at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.do ...
在之前 建立的maven基础上 构建SSH。。 首先,在pom.xml中添加jar依赖。。 添加spring xml , struts xml等。 完成后项目结构如图: 发布运行。。 一切正常。。 打开jsp页面。。报错【java.lang.VerifyError】: 网上搜索说是jar冲突,好,那就去掉pom.xml中重复的jar吧,, 运行 ,还是一样的错。 用maven clean一下,还是错。。 再搜,更改 JDK Compliance【网上搜的】 右键单击项目 ,选【Propertie】 在弹出的框中找到【Java Compiler】 将Compiler compli ...
开始学习maven。。。。 Myeclipse6.5 下创建maven web项目. next... 继续 next... 选择之后  next... Finish... 完成之后的结构如图: 这个结构还是不够符合maven要求的,同时也无法再myeclipse下发布, 如上图 ,可见,无法再发布框下找到该项目。 首先,先将项目变更为可在eclipse下发布的web。 变更后的项目结构如: 这样,在eclipse下就可以发布了: 但是,目前该项目是不符合maven要求的 。。。 首先,添加Source Fol ...
myeclipse6.5 安装maven后,启动报warning。。。。 解决方式: 添加 -vm D:\Program Files\Java\jdk1.6.0_21\bin\javaw.exe 到 eclipse.ini. 并且 必须添加在 -vmargs 的前面。 同时,这两句必须分为两行。
DWR.xml: <dwr> <allow>          <create creator="new" javascript="dwrComment">             <param name="class" value="com.my.dwr.app.DwrAction"></param>         </create>                 <convert match="com.my.dwr. ...
首先说明:以我个人的测试结果来看, 同名的textbox不可能都将“键--值”对提交到后台去。如果是多个同名textbox(如下的name="text4"),只有第一个的“键-值”对会提交到后台去,后面的同名值不行。 form 表单如下: <form name="form1"  method="post">            <br>            test1:<input   name="test1" /><br>            te ...
Global site tag (gtag.js) - Google Analytics