ORACLE 集合使用报未找到任何数据问题

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/pehao/article/details/73436569


1. 集合使用中调用了

 集合.delete(index)方法, 实际上在集合中是未删除的. 

2.循环判断中需要添加是否存在判断,比如:

for  i..集合.count loop
if  集合.exists(index) == false then
   continue;
end if;
//
end loop;


展开阅读全文

readUTF()使用报 java.io.EOFException异常

12-25

今天在编程的时候,用到了DataInPutStream类的readUTF()方法时报了个异常,查了好多资料也不能解决,求大神指点啊.高分悬赏.nnn```n package IO流;nnimport java.io.DataInputStream;nimport java.io.DataOutputStream;nimport java.io.FileInputStream;nimport java.io.FileNotFoundException;nimport java.io.FileOutputStream;nimport java.io.IOException;nnpublic class DataTest nn /**n * 数据输入输出流n * n */n public static void main(String[] args) throws IOException n //向指定文件中写入数据n //打开文件输出流n FileOutputStream fos=new FileOutputStream("G://word.txt");n //将此输出流链接到指定基础输出流DataOutPutStreamn DataOutputStream dos=new DataOutputStream(fos);n //写入数据:n dos.writeBytes("我是大禹!");//用此方法写入的数据用记事本打开是乱码n dos.writeChars("我治水!");//用此方法写入的数据用记事本打开是乱码n dos.writeUTF("你智障吗?");n //关闭流n fos.close();n //从文件中读取数据n //首先打开文件输入流n FileInputStream fis=new FileInputStream("G://word.txt");n //将此输入流连接到基本数据输入流DataInPutStreamn DataInputStream dis=new DataInputStream(fis);n //开始读取数据啦n// String s=dis.readUTF();n System.out.println(dis.readUTF());n dis.close();n n n n n n n n nnnn```n异常信息:nException in thread "main" java.io.EOFExceptionn at java.io.DataInputStream.readFully(DataInputStream.java:180)n at java.io.DataInputStream.readUTF(DataInputStream.java:592)n at java.io.DataInputStream.readUTF(DataInputStream.java:547)n at IO流.DataTest.main(DataTest.java:35)nn 问答

急求助:jxl类使用报java.lang.NoClassDefFoundError

12-26

在使用jxl包时,某java类中引入了该包,写了些读取excel文件的方法,编译都通过了,并且在该java类中写了个测试主函数都能执行成功。rn可是在Jsp页面调用该java类中的方法的时候报以下错误:rnjava.lang.NoClassDefFoundError: jxl/Workbookrn at teleweb.util.ExcelToTxt.readExcal(ExcelToTxt.java:31)rn at jsp_servlet._webapp._lst_excel.__lstfileuploadact._jspService(__lstfirnleuploadact.java:667)rn at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)rn at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.runrn(ServletStubImpl.java:1006)rn at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImrnpl.java:419)rn at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImrnpl.java:315)rn at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActiornn.run(WebAppServletContext.java:6718)rn at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticaterndSubject.java:321)rn at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:rn121)rn at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSernrvletContext.java:3764)rn at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImrnpl.java:2644)rn at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)rn at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)rn>rnrn注释:在环境变量中都已经引入了该jxl.jar包,可是还是总报以上错误rn请问各位是何原因,急......谢谢了 论坛

linux环境下Jnative使用报org.xvolks.jnative.exceptions.NativeException

12-29

最近做一个项目: 使用jnative调用动态库(.dll或.a文件),在windows环境下,能够完成dll动态库的调用,但是放到linux下面,改用.a文件格式的动态,jnative在linux下使用的libJNativeCpp.so已经放入/usr/lib路径下,调用时就发生异常:rnorg.xvolks.jnative.exceptions.NativeException: Library /opt/finger/lib/libBLServerAPI.a not found : /opt/finger/lib/libBLServerAPI.a: invalid ELF headerrn at org.xvolks.jnative.JNative.nLoadLibrary(Native Method)rn at org.xvolks.jnative.JNative.(JNative.java:348)rn at org.xvolks.jnative.JNative.(JNative.java:269)rn at finger.UserCall.verifyMatch(UserCall.java:55)rn at finger.FingerAction.authFinger(FingerAction.java:230)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:452)rn at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:291)rn at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:254)rn at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)rn at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)rnrn代码如下:rn public int verifyMatch(String fingerAuth, String fingerSign, int matchResult)rn throws NativeException, IllegalAccessException rn JNative Something = null;rn if (Something == null) rn Something = new JNative("/opt/finger/lib/libBLServerAPI.a", "BLM_VerifyMatch");rn // 利用org.xvolks.jnative.JNative 来装载 libBLServerAPI.a BLModuleServerAPIrn // FNetSDK_Client.dll,并利用其BLM_OpenModule方法rn Something.setRetVal(Type.INT);rn // 指定返回参数的类型rn rn int i = 0;rn Pointer fingerAuthPointer = creatCharPointer();rn Pointer fingersignPointer = creatCharPointer();rn Pointer resultPointer = creatPointer();rn rn fingerAuthPointer.setMemory(Base64.decode(fingerAuth));rn fingersignPointer.setMemory(Base64.decode(fingerSign));rn rn Something.setParameter(i++, fingerAuthPointer);rn Something.setParameter(i++, fingersignPointer);rn Something.setParameter(i++, resultPointer);rn rn Something.invoke();// 调用方法rn rn return resultPointer.getAsInt(0);rn rnrn 请哪位高手知道这是什么问题啊?rnrnrn 论坛

没有更多推荐了,返回首页