`
anthon_lx
  • 浏览: 100468 次
  • 性别: Icon_minigender_1
  • 来自: 地球
社区版块
存档分类
最新评论
文章列表
完整的错误信息如下:   java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor The Connection descriptor used by the client was: 192.168.149.128:1521:orcl at oracle.jdbc.driver.DatabaseError.throw ...
用Flex Builder debug调试的时候遇到个错误:   Flex Builder cannot locate the required debugger version of Flash Player. You might need to install the debugger version of Flash Player 9 or reinstall Flex Builder.Do you want to try to debug with the current version?   奇怪的是我已经安装过了 Flash Player 9 了   我在我的电脑 C:\ ...
      下面以三个页面分别命名为framedemo.html,top.html,button.html为例来具体说明如何做。       其中framedemo.html由上下两个页面组成,代码如下: 以下是引用片段:< !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> < HTML> < HEAD> < TITLE> frameDemo < /TITLE> < /HEAD>  < frame ...

jsp输出word

    博客分类:
  • J2EE
 在页面直接打开word。  在Action中写   response.reset();  response.setContentType("application/msword;charset=GBK");  response.setHeader("Content-Disposition", "inline;filename=temp.doc");     response.getOutputStream().write(document.getContent());    response.getOutputStream() ...
 java.lang.IllegalStateException:   Current   state   =   FLUSHED,   new   state   =   CODING_END     web开发中报错-弹出Internet Explorer 无法打开...已终止操作   在当前系统中,发现错误,在点击某些超链时,会报错:“弹出Internet Explorer 无法打开...已终止操作。” 具体为弹出IE提示框,内容为:     Integernet Explorer无法打开Internet站点http://..............     已终止操作。 而且问 ...

jsp 图片读取

    博客分类:
  • J2EE
CREATE TABLE photo (photo_no int(6) unsigned NOT NULL auto_increment,image blob,PRIMARY KEY (`photo_no`)) ------------------------------------------------------------ page import="java.sql.*"   Statement stmt = con.createStatement(); String sql = " SELECT * FROM PHOTO WHERE photo ...
Hibernate中取序列 Session session=HibernateSessionFactory.currentSession();   Transaction tx=session.beginTransaction();       Long s=(Long)session.createSQLQuery("select SQU_TEST.nextval as id from dual")                      .addScalar("id",Hibernate.LONG)                      .u ...
问题描述:Null value was assigned to a property of primitive type setter  ,hibernate long型数据无法读取 hiberante读long 整型数据出错 hiberante读数据库出错  错误日志:Exception in thread "main" org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of com.zsba.AdornCompanyIn ...
el表达式在jsp中不起作用 ${xxx }   现在taglib标签库不是必须定义。 web.xml中的加入这些 <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/we ...
java.lang.IllegalArgumentException: node to traverse cannot be null!at org.hibernate.hql.ast.util.NodeTraverser.traverseDepthFirst(NodeTraverser.java:31)at org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:254)at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslat ...
Exception in thread "main" java.lang.UnsupportedClassVersionError: 前几天用Eclipse,说我Java版本不对,改用命令行,就出了这个问题,一直找不到原因,上网搜了搜,在这里找到了原因 http://dev.cbw.com/java/j2se/2005955401_4188257.shtml 后来看了几个网页,发现原来都是Oracle9i惹的祸,为什么它不先检查一下现有机器上的Java版本呢 改正方法之一: 改正前 Path=E:\oracle\ora92\bin;C:\Program Files\Ora ...
  <%          for(int i = 0 ; i<5 ; i++){  %>      <input type="text" name="code<%=i %>" id="code<%=i %>" value="待取值"      onclick="window.open('child.jsp?key=code<%=i %>')"><br>            <%       }    ...
在使用iBatis的sqlmap时,总是有些疑惑,DAO是怎么找到sqlmap的配置文件的呢,DAO是怎么获得数据库的配置信息的呢,这些又是怎么和Spring整合在一起的呢?带着这些疑问,鄙人试图通过对某个项目的代码分析,来理清这些头绪。  ...
在linux AS4 下装mysql 5.0.18.0,[root@localhost home]# rpm -ivh MySQL-server-standard-5.0.18-0.rhel4.i386.rpm 提示error: Failed dependencies:       MySQL conflicts with mysql-4.1.12-3.RHEL4.1.i386然后我想卸载mysql-4.1.12-3.RHEL4.1.i386[root@localhost home]# rpm -e mysql-4.1.12-3.RHEL4.1又提示error: Failed dependenc ...
Tomcat作为Linux系统服务自启动设置 一. 简单的方法最简单的方法就是通过Tomcat自带的startup.sh来自动启动,编辑/etc/rc.d/rc.local,增加:export JDK_HOME=/usr/local/jdkexport JAVA_HOME=/usr/local/jdk/usr/local/tomcat/bin/startup.sh 二. 复杂而专业的方法第一个方法无法指定启动Tomcat服务的用户,存在安全隐患,另外在系统关闭时无法自动停止服务。在Linux下,Tomcat可以作为一个守护进程来启动以及停止,这个必须借助于项目commons-daemon中的j ...
Global site tag (gtag.js) - Google Analytics