这段代码在 oracle9i 中没有错误
我也是这样用的error 可能在别处

解决方案 »

  1.   

    刚才有事不再不好意思了
    错误信息
    [04-1-29 15:35:58:758 CST] 17514c8e SystemOut     U hyf2
    [04-1-29 15:35:59:018 CST] 17514c8e SystemOut     U Lz
    [04-1-29 15:36:04:626 CST] 17514c8e SystemOut     U test11
    [04-1-29 15:36:06:369 CST] 17514c8e SystemOut     U [Debug]##Thu Jan 29 15:36:06 CST 2004:
    ##getUser### com.jbbis.finance.construct.login.LoginDAO-----ORA-00600: 内部错误代码,参数: [ttcgcshnd-1], [0], [], [], [], [], [], [][04-1-29 15:36:06:369 CST] 17514c8e SystemOut     U error:ORA-00600: 内部错误代码,参数: [ttcgcshnd-1], [0], [], [], [], [], [], []
    hhh
    [04-1-29 15:36:10:134 CST] 17514c8e SystemOut     U [Debug]##Thu Jan 29 15:36:10 CST 2004:
    ##getUser### com.jbbis.finance.construct.login.LoginDAO--getUser(user)---null
    [04-1-29 15:36:16:183 CST] 17514c8e SystemOut     U [Debug]##Thu Jan 29 15:36:16 CST 2004:
    ##ORA-00600: 内部错误代码,参数: [ttcgcshnd-1], [0], [], [], [], [], [], [][04-1-29 15:36:19:688 CST] 17514c8e SystemOut     U [Debug]##Thu Jan 29 15:36:19 CST 2004:
    ##ORA-00600: 内部错误代码,参数: [ttcgcshnd-1], [0], [], [], [], [], [], []java.lang.NullPointerException
    at com.jbbis.finance.construct.login.LoginAction.execute(LoginAction.java:41)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
    at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)
    at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297)
    at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110)
    at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
    at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
    at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
    at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:665)
    at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:331)
    at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:117)
    at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:124)
    at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:218)
    at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
    at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:106)
    at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:125)
    at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:315)
    at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)
    at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:323)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
    at com.ibm.ws.util.CachedThread.run(ThreadPool.java:137)
      

  2.   

    我用System.out.println()调试确实是到了rs = (ResultSet)cstmt.getObject(2);这句抛出异常,我用公司的oracle8服务器是好的,我自己机子上装了个oracle9服务器,测试可以连上,存储过程载pl/sql中测试也没错,是什么原因阿存储过程是别人写的我只负责调用,我像应该没问题的,因为用oracle8是好的
      

  3.   

    原来是java测试环境中引用的是oracle8下的classes12.jar文件,把他替换成oracle9下的classes12.jar就行了
      

  4.   

    将classes12.jar驱动程序删除,使用ojdbc14.jar驱动程序