java.io.IOException: stream does not represent a PKCS12 key store

本地环境 windows7 apache8.5 java1.8 eclipse编辑器 springmvc项目

服务器环境 linux apache8.5 java1.8

                问题描述:使用openssl生成 private-rsa.kek **.pfx **.cer 三个文件,在本地运行没事,上传服务器后宝以下错误:
 java.io.IOException: stream does not represent a PKCS12 key store
    at org.bouncycastle.jce.provider.JDKPKCS12KeyStore.engineLoad(Unknown Source)
    at java.security.KeyStore.load(KeyStore.java:1445)
    at com.yufusoft.payplatform.security.util.RSAComUtil.getKsformPfxByInputStream(RSAComUtil.java:161)
    at com.yufusoft.payplatform.security.util.RSAComUtil.getPvkformPfxByInputStream(RSAComUtil.java:114)
    at com.yufusoft.payplatform.security.cipher.BiDirSignWithYufuCipherImpl.<init>(BiDirSignWithYufuCipherImpl.java:28)
    at com.yufusoft.payplatform.security.cipher.YufuCipherFactory.createWithRSA(YufuCipherFactory.java:46)
    at com.cn.yhc.all.yf.YufuCipherSupport.getCipherInstance(YufuCipherSupport.java:35)
    at com.cn.yhc.all.yf.PaySet.doPaySet(PaySet.java:32)
    at com.cn.yhc.all.yf.YFPayInstruction.getOrderInstruction(YFPayInstruction.java:108)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at com.cn.yhc.customannotation.Scanner.getPayMapping(Scanner.java:183)
    at com.cn.yhc.receive.ReceivePayInstruction.doPost(ReceivePayInstruction.java:77)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:108)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:496)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
    at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
    at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790)
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1468)
    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:748)

3个回答

解决了,linux上运行加载这几个文件有问题,Windows可以。最后解决方法是:使用openssl将私钥和公钥导出来

我猜是因为路径问题,导致没有读到文件。或者权限问题导致文件不让读。

java-doc是这么说的:
IOException - if there is an I/O or format problem with thekeystore data, if a password is required but not given,or if the given password was incorrect. If the error is due to awrong password, the cause of the IOException should be an UnrecoverableKeyException

说IOException要么文件格式不对,要么密码不对

看提示,你的哪个方法对应的哪一句有问题。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
How does string represent a Null value?
I'm a freshman for VB.NET.Please help.rnIf I write rnDim str as String = NULL ,rnwrong.rn
java.io.IOException: Stream closed
HTTP Status 500 - Stream closedrnrnrntype Exception reportrnrnmessage Stream closedrnrndescription The server encountered an internal error that prevented it from fulfilling this request.rnrnexception rnjava.io.IOException: Stream closedrn org.apache.jasper.runtime.JspWriterImpl.ensureOpen(JspWriterImpl.java:210)rn org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:115)rn org.apache.jasper.runtime.JspWriterImpl.flush(JspWriterImpl.java:177)rn org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:942)rn org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:656)rn org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:123)rn org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)rn com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:362)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:266)rn cn.labsoft.labos.framework.common.interceptor.IsLoginInterceptorNew.intercept(Unknown Source)rn cn.labsoft.labos.framework.common.interceptor.IsLoginInterceptorNew$$FastClassByCGLIB$$d5f81fd5.invoke()rn net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)rn org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)rn org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)rn org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:50)rn org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)rn org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor.invoke(ThrowsAdviceInterceptor.java:126)rn org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)rn org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)rn org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)rn org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)rn cn.labsoft.labos.framework.common.interceptor.IsLoginInterceptorNew$$EnhancerByCGLIB$$bb81b672.intercept()rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237)rn org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)rn org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488)rn org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)rn org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)rn cn.labsoft.labos.framework.common.filter.HttpSessionContextDataFilter.doFilter(Unknown Source)rn org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)rn org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)rnrnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/7.0.59 logs.rn
java.io.IOException:Stream closed.
我在使用weblogic7时,在上传文件流(压缩文件)的时候老遇到rnrnjava.io.IOException:Stream closed.rnrn的问题!无从下手解决,请高手,或遇到过同样的问题的朋友指教。
java.io.IOException: Stream closed 报错
请问下这是什么错误啊。 这提示完全摸不着头脑啊。。没有一个类是我写的。。。rn我在网上找的资料都说是流未关闭的原因,可是这个原因很不可靠。rnrn[img=https://img-bbs.csdn.net/upload/201407/10/1404987841_657879.jpg][/img]rnrn
java.io.IOException: reading encoded JPEG Stream
rn//代码1:rnimport java.awt.AWTException;rnimport java.awt.Rectangle;rnimport java.awt.Robot;rnimport java.awt.Toolkit;rnimport java.awt.image.BufferedImage;rnimport java.awt.Dimension;rn/*rn * 产生图象rn */rnpublic class ImageProvider rn rn private Dimension screenSize;rn private Robot robot=null;//图象采集类rn private Rectangle rect=null;//要复制的 屏幕区域rn /*rn * rn */rn /*rn * 构造函数,输入要采集的屏幕的 矩形信息rn */rn public ImageProvider() throws AWTExceptionrn screenSize = Toolkit.getDefaultToolkit().getScreenSize();rn rn rect=new Rectangle(0, 0, (int) screenSize.getWidth(),rn (int) screenSize.getHeight());//可以指定捕获屏幕区域rn robot=new Robot();//创建Robot对象rn rn /*rn * 复制全屏幕,返回BufferedImage对象rn */rn public BufferedImage CopyScreen()rn rn return robot.createScreenCapture(rect);//rn rn rn rnrnrnrn//代码2:rnrnimport java.awt.AWTException;rnimport java.awt.image.BufferedImage;rnimport java.io.IOException;rnimport java.io.ObjectOutputStream;rnimport java.io.OutputStream;rnimport java.net.InetAddress;rnimport java.net.Socket;rnrnimport com.sun.image.codec.jpeg.JPEGCodec;rnimport com.sun.image.codec.jpeg.JPEGImageEncoder;rnrnpublic class SendImageThread extends Threadrn rn ImageProvider impv=null;rn Socket client=null;rn int PORT;rn rn BufferedImage image=null;rn ObjectOutputStream send=null;rn SendImageThread(InetAddress server_ip,int port) throws IOException, AWTExceptionrn rn client=new Socket(server_ip,port); //建立套接并初始化 图象发送流rn client.setSendBufferSize(1024);//设置发送缓冲rn impv=new ImageProvider();rnrn rnpublic void run()rn rn int i=0;rn OutputStream out=null;rn JPEGImageEncoder encoder=null;//压缩为JEPGrn rn try rn out = client.getOutputStream();rn encoder = JPEGCodec.createJPEGEncoder (out) ; rn catch (IOException e1) rn rn e1.printStackTrace();rn rn while(true)rn image=impv.CopyScreen();//此处是获取BufferedImage对象rn tryrnrn encoder.encode(image); //提示的这个地方出错rn rn Thread.sleep(Parameter.IMAGE_get_time);rn catch(IOException e)rn i++; rn tools.print("无法写入对象~"+i);rn e.printStackTrace();rn if(i==10)break;rn rn catch(InterruptedException sd)rn tools.print("INTERRUPTED~");rn rn rn rnrnrn只要程序不断获发送JPG流,可能在一分多钟就会抛出异常,实在搞不懂错在哪?rnrnjava.io.IOException: reading encoded JPEG Stream rn at sun.awt.image.codec.JPEGImageEncoderImpl.writeJPEGStream(Native Method)rn at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:472)rn at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:228)rn at SendImageThread.run(SendImageThread.java:47)rnrnrn
java.io.IOException: Stream closed(在线等)
TOMCAT日志报以上错误。rn代码如下rn[code=HTML]rnrn<%@ page language="java" contentType="text/html; charset=GBK" import="">rnrnrn rn rn rnrn<%rn String id = request.getParameter("id")==null?"":request.getParameter("id").trim();rn for(int i=0;i");rn out.print("alert('您要的网页不存在,请与网站管理员联系!');");rn out.print("history.go(-1);");rn out.print("");rn out.close();//是不是我在这里用了关闭才导致那个错误的。rn rn rn CompanyManagerImpl manager = new CompanyManagerImpl();rn CompanyModel model = manager.getCompanyInfoListById(id);rn if(model==null)rn out.print(" ");rn out.close();rn rn ShengManagerImpl shengManager = new ShengManagerImpl();rn ShiManagerImpl shiManager = new ShiManagerImpl();rn String shengId=model.getShengId()+"";rn String shiId = model.getShiId()+"";rn String shengName = shengManager.getShengNameById(shengId);rn String shiName = shiManager.getShiNameById(shiId);rn%>rnrn rn rn rn rn rn[/code]
java.io.IOException: End of IO Stream Read
最近工作涉及到与服务器通信问题,使用Jsch来进行SSH连接时,报这个异常rnrnjava.io.IOException: End of IO Stream Read.求大神帮助啊
What does binary stream mean?
#include rn#include rn#include rn#include rnrnvoid main()rnrn using namespace std;rn copy( istream_iterator( ifstream("sample.txt",ios_base::in | ios_base::binary) ),rn istream_iterator(),rn ostream_iterator( cout ) );rnrn//为什么把换行符过滤掉了?rnrn//sample.txtrn//hellorn//worldrnrn//output:rn//helloworld
打包签名-key Store
签名详解
java多线程报错 java.io.IOException: Stream closed
虽然程序可以正确的讲读取到的信息输出到文本文件 但是报错:java.io.IOException: Stream closed n不知道是什么原因 菜鸟请各位帮忙看一下n代码如下:npackage test;nnimport java.io.FileReader;nimport java.io.FileWriter;nimport java.io.IOException;nimport java.util.Scanner;nimport java.util.concurrent.ExecutorService;nimport java.util.concurrent.Executors;nnnpublic class Test implements Runnablen String lineString;n public Test(String line)n this.lineString = line;n n static FileWriter writer;n static FileReader reader;n public static void main(String[] args) throws IOException n try n reader = new FileReader("/Users/tcredit-0002/Desktop/car.txt");n Scanner scanner = new Scanner(reader);n String lineString;n writer = new FileWriter("/Users/tcredit-0002/Desktop/hebei.txt");n // TODO Auto-generated method stubn ExecutorService pool = Executors.newFixedThreadPool(3);n while(scanner.hasNext())n lineString = scanner.nextLine();n pool.execute(new Test(lineString));n n scanner.close();n writer.close();n catch (Exception e) n // TODO Auto-generated catch blockn e.printStackTrace();n n n n nn @Overriden public void run() n try n writeResult(lineString);n catch (InterruptedException e) n // TODO Auto-generated catch blockn e.printStackTrace();n n n n public static synchronized void writeResult(String lineString) throws InterruptedExceptionn try n writer.write(lineString+"\r\n");n writer.flush();n System.out.println(lineString);n catch (IOException e) n // TODO Auto-generated catch blockn e.printStackTrace();n n n n nnn
java.io.IOException: reading encoded JPEG Stream (在线等)
这是我在TOMCAT日志里找到的错误,是验证码用的。rn这是它的错误代码rn[code=HTML]rnjava.io.IOException: reading encoded JPEG Stream rn at sun.awt.image.codec.JPEGImageEncoderImpl.writeJPEGStream(Native Method)rn at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:472)rn at sun.awt.image.codec.JPEGImageEncoderImpl.encode(JPEGImageEncoderImpl.java:228)rn at org.apache.jsp.pages.random_jsp._jspService(random_jsp.java:107)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)rn at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)rn at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)rn at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)rn at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)rn at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)rn at java.lang.Thread.run(Thread.java:595)rnrnrn[/code]
axis客户端出现.ConfigurationException: java.io.IOException: Stream closed
使用axis客户端发送xml消息,出现org.apache.axis.ConfigurationException: java.io.IOException: Stream closed.rn代码如下:rnrnHttpUrlWebClient.sendMobilMessage方法rn[code=java]rnpublic String sendMobilMessage(List flagList)rn rn if(!isSendMessage(flagList))rn return null;rn rn String sentSOAPMsg = null;rn try rn String xmlInfo = messageServiceInfo.getXmlInfo();rn xmlInfo = xmlInfo.replace("#1", "one");rn String flag = System.currentTimeMillis()+"";rn flag = flag.substring(flag.length()-8);rn xmlInfo = xmlInfo.replace("#2", flag);rn xmlInfo = xmlInfo.replace("#3", "调用:["+httpUrlStatusInfo.getUrl()+"]异常!");rn logger.warn("服务调用异常信息:"+xmlInfo);rn logger.warn("开始调用短信服务进行通知.... ");rn InnerAdapterImpl innerAdapterImpl = SmsService.getInnerAdapterImpl(messageServiceInfo);rn sentSOAPMsg = innerAdapterImpl.process("SMS_SEND_MESSAGE_REMEDY", "POMS", xmlInfo);rn logger.warn("短信服务调用结束:"+sentSOAPMsg);rn return sentSOAPMsg;rn catch (Exception e) rn logger.error("短信服务发送异常:"+e.getMessage());rn e.printStackTrace();rn rn return null;rn rn rn[/code]rnrn此处为axis生成的代码rn[code=java]rn/**rn * InnerAdapterImpl.javarn *rn * This file was auto-generated from WSDLrn * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.rn */rnrnrnrnpublic interface InnerAdapterImpl extends java.rmi.Remote rn public java.lang.String process(java.lang.String operation, java.lang.String systemName, java.lang.String xmlData) throws java.rmi.RemoteException;rnrn[/code]rnrnrnSoapUtil类的相关代码rn[code=java]rnpublic class SoapUtil rn rn public static Call addSoapHandle(Call call)rn String sid = UUID.randomUUID().toString();rn SoapRepHandle rep = new SoapRepHandle(sid);rn SoapReqHandle req = new SoapReqHandle(sid , call.getTargetEndpointAddress());rn call.setClientHandlers(req, rep);rn //System.out.println("已添加handle");rn return call;rn rn[/code]rnrnrn报错信息如下:rn[code=text]rn2018-03-03 18:00:47 WARN HttpUrlWebClient:188 [pool-6-thread-6] - 服务调用异常信息:1371902928171247544调用:[http://192.168.4.25:8063/addrServer]异常!rn2018-03-03 18:00:47 WARN HttpUrlWebClient:189 [pool-6-thread-6] - 开始调用短信服务进行通知.... rn2018-03-03 18:00:47 FATAL InternalException:88 [pool-6-thread-6] - Exception:rnorg.apache.axis.ConfigurationException: java.io.IOException: Stream closedrnjava.io.IOException: Stream closedrn at java.util.zip.InflaterInputStream.ensureOpen(InflaterInputStream.java:67)rn at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:121)rn at java.io.FilterInputStream.read(FilterInputStream.java:83)rn at com.sun.org.apache.xerces.internal.impl.XMLEntityManager$RewindableInputStream.read(XMLEntityManager.java:2889)rn at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:670)rn at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:189)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:812)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)rn at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)rn at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)rn at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:347)rn at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)rn at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:388)rn at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)rn at org.apache.axis.AxisEngine.init(AxisEngine.java:172)rn at org.apache.axis.AxisEngine.(AxisEngine.java:156)rn at org.apache.axis.client.AxisClient.(AxisClient.java:52)rn at org.apache.axis.client.Service.getAxisClient(Service.java:104)rn at org.apache.axis.client.Call.setSOAPService(Call.java:2910)rn at org.apache.axis.client.Call.setClientHandlers(Call.java:2924)rn at com.gpdi.common.util.SoapUtil.addSoapHandle(SoapUtil.java:34)rn at com.gpdi.gx.adapter.InnerAdapterSoapBindingStub.createCall(InnerAdapterSoapBindingStub.java:113)rn at com.gpdi.gx.adapter.InnerAdapterSoapBindingStub.process(InnerAdapterSoapBindingStub.java:127)rn at com.gpdi.gx.HttpUrlWebClient.sendMobilMessage(HttpUrlWebClient.java:191)rn at com.gpdi.gx.HttpUrlWebClient.check(HttpUrlWebClient.java:48)rn at com.gpdi.gx.HttpUrlStatusMonitor$1.run(HttpUrlStatusMonitor.java:83)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rnrnorg.apache.axis.ConfigurationException: java.io.IOException: Stream closedrnjava.io.IOException: Stream closedrn at java.util.zip.InflaterInputStream.ensureOpen(InflaterInputStream.java:67)rn at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:121)rn at java.io.FilterInputStream.read(FilterInputStream.java:83)rn at com.sun.org.apache.xerces.internal.impl.XMLEntityManager$RewindableInputStream.read(XMLEntityManager.java:2889)rn at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:670)rn at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:189)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:812)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)rn at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)rn at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)rn at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:347)rn at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)rn at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:388)rn at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)rn at org.apache.axis.AxisEngine.init(AxisEngine.java:172)rn at org.apache.axis.AxisEngine.(AxisEngine.java:156)rn at org.apache.axis.client.AxisClient.(AxisClient.java:52)rn at org.apache.axis.client.Service.getAxisClient(Service.java:104)rn at org.apache.axis.client.Call.setSOAPService(Call.java:2910)rn at org.apache.axis.client.Call.setClientHandlers(Call.java:2924)rn at com.gpdi.common.util.SoapUtil.addSoapHandle(SoapUtil.java:34)rn at com.gpdi.gx.adapter.InnerAdapterSoapBindingStub.createCall(InnerAdapterSoapBindingStub.java:113)rn at com.gpdi.gx.adapter.InnerAdapterSoapBindingStub.process(InnerAdapterSoapBindingStub.java:127)rn at com.gpdi.gx.HttpUrlWebClient.sendMobilMessage(HttpUrlWebClient.java:191)rn at com.gpdi.gx.HttpUrlWebClient.check(HttpUrlWebClient.java:48)rn at com.gpdi.gx.HttpUrlStatusMonitor$1.run(HttpUrlStatusMonitor.java:83)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rnrn at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:188)rn at org.apache.axis.AxisEngine.init(AxisEngine.java:172)rn at org.apache.axis.AxisEngine.(AxisEngine.java:156)rn at org.apache.axis.client.AxisClient.(AxisClient.java:52)rn at org.apache.axis.client.Service.getAxisClient(Service.java:104)rn at org.apache.axis.client.Call.setSOAPService(Call.java:2910)rn at org.apache.axis.client.Call.setClientHandlers(Call.java:2924)rn at com.gpdi.common.util.SoapUtil.addSoapHandle(SoapUtil.java:34)rn at com.gpdi.gx.adapter.InnerAdapterSoapBindingStub.createCall(InnerAdapterSoapBindingStub.java:113)rn at com.gpdi.gx.adapter.InnerAdapterSoapBindingStub.process(InnerAdapterSoapBindingStub.java:127)rn at com.gpdi.gx.HttpUrlWebClient.sendMobilMessage(HttpUrlWebClient.java:191)rn at com.gpdi.gx.HttpUrlWebClient.check(HttpUrlWebClient.java:48)rn at com.gpdi.gx.HttpUrlStatusMonitor$1.run(HttpUrlStatusMonitor.java:83)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rnrn at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:188)rn at org.apache.axis.AxisEngine.init(AxisEngine.java:172)rn at org.apache.axis.AxisEngine.(AxisEngine.java:156)rn at org.apache.axis.client.AxisClient.(AxisClient.java:52)rn at org.apache.axis.client.Service.getAxisClient(Service.java:104)rn at org.apache.axis.client.Call.setSOAPService(Call.java:2910)rn at org.apache.axis.client.Call.setClientHandlers(Call.java:2924)rn at com.gpdi.common.util.SoapUtil.addSoapHandle(SoapUtil.java:34)rn at com.gpdi.gx.adapter.InnerAdapterSoapBindingStub.createCall(InnerAdapterSoapBindingStub.java:113)rn at com.gpdi.gx.adapter.InnerAdapterSoapBindingStub.process(InnerAdapterSoapBindingStub.java:127)rn at com.gpdi.gx.HttpUrlWebClient.sendMobilMessage(HttpUrlWebClient.java:191)rn at com.gpdi.gx.HttpUrlWebClient.check(HttpUrlWebClient.java:48)rn at com.gpdi.gx.HttpUrlStatusMonitor$1.run(HttpUrlStatusMonitor.java:83)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rn2018-03-03 18:00:47 ERROR HttpUrlWebClient:195 [pool-6-thread-6] - 短信服务发送异常:Failure trying to get the Call object; nested exception is: rn org.apache.axis.InternalException: org.apache.axis.ConfigurationException: java.io.IOException: Stream closedrnjava.io.IOException: Stream closedrn[/code]rnrn貌似并不是自己编写的代码方面的问题,google百度过,相关的问答不多,有说多线程运行导致的,最接近的就是有个问答用cxf客户端也出现了类似我这个问题,链接如下:http://bbs.csdn.net/topics/390750221 但我用的不是cxf。请问各位大神有否遇上过类似的问题,解决方法是怎样的?在此先行感谢。
does not name a type?
//以下为类Arn#includerntypedef enumrn int a;rn int b;rndef_t;rnclass Arnrn;rn//以下为类Brn#includernclass A;rnclass Brn def_t def;rn;rnrn为什么报def_t未定义啊?rn
does not contain a definition
页面上 rn有这样一个Listrnrn在.cs文件里为什么报does not contain a definition这个list这样的错啊?
PKCS 12.7z
PKCS#12 个人信息交换语法标准 本标准描述了个人身份标识信息传递语法,包括私钥、证书、各种形式的秘密数据 及其扩展。支持本标准的计算机、应用程序、浏览器、因特网服务等将允许用户导入、 导出,并使用一套统一的个人身份标识信息。 本标准支持用户信息以机密、完整的方式直接传递。大部分能够保证机密性和完整 性的安全手段,需要源平台和目标平台都拥有用于数字签名和加密的密钥对,本标准同 时支持基于口令的机密性和和完整性保护方法,可以用于不能提供可信密钥对的环境。 软硬件实现都应受本标准约束。硬件实现在防止篡改的tokens 中提供物理上的安全保 障,比如智能卡和PCMCIA 设备。 本标准可以看作是在构建在PKCS #8 的基础之上的,包含了他的基本内容,但是 增加了补充的标识信息、私钥,并且通过非对称密钥方式的机密性和完整性保护方法提 供了更高层次的安全。
生成key store path的方式
使用JDK自带工具KeyTool 生成自签发证书!第一步:为服务器生成证书命令:keytool-genkey-alias tomcat(别名)-keypass 123456(别名密码)-keyalg RSA(算法)-keysize 1024(密钥长度)-validity 3650(有效期,天单位)-keystore tomcat.keystore(指定生成证书的位置和证书名称)-storepass
A simple store procedure
Who can explain the following sql statement:rnsp_test;1 param1, param2rnparam1, param2 are the parameters of the store procedure sp_test.rnrn
Extjs4 Store B删除Store A
我想请教一个问题就是关Store的,我有两个store,一个是A,另外一个是B,A和B用的是同一个model,A里面的数据比B少,B中包含A的全部,我现在是想利用A去删除B中和A相同的数据,rnrn我就是这样删的,还有我试过拿两个store中的model出来比对是true的,但就是B不会remove这数据rnrnA。each(function(model)rn B。remove(model);rn);
生成PKCS12证书,以及解析PKCS12证书
生成证书请查看: http://blog.csdn.net/u010129119/article/details/53419581生成PKCS12证书:openssl pkcs12 -export -chain -CAfile RootCA.pem -in server.pem -inkey serverkey.pem -out server.p12 -passout pass:123 解析PKC
java.io.IOException
请高手看下这个问题怎么解决rnorg.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet jsp threw exceptionrnjava.io.IOExceptionrn at org.apache.coyote.http11.InternalAprOutputBuffer.flushBuffer(InternalAprOutputBuffer.java:696)rn at org.apache.coyote.http11.InternalAprOutputBuffer.flush(InternalAprOutputBuffer.java:284)rn at org.apache.coyote.http11.Http11AprProcessor.action(Http11AprProcessor.java:1016)rn at org.apache.coyote.Response.action(Response.java:183)rn at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:314)rn at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:288)rn at org.apache.catalina.connector.CoyoteOutputStream.flush(CoyoteOutputStream.java:98)rn at javax.imageio.stream.FileCacheImageOutputStream.close(FileCacheImageOutputStream.java:213)rn at javax.imageio.ImageIO.write(ImageIO.java:1567)rn at org.apache.jsp.image_jsp._jspService(image_jsp.java:147)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:389)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)rn at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:861)rn at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)rn at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1584)rn at java.lang.Thread.run(Thread.java:619)rn
if the parameter is a[] in a function,what does it mean?
3ks
jemeter服务器代理Could not initialise key store java.io.IOException: >> 非法选项: -ext
2015/03/16 16:02:59 WARN - jmeter.protocol.http.proxy.ProxyControl: Could not open/read key store E:\Jmeter\apache-jmeter-2.13\apache-jmeter-2.13\bin\proxyserver.jks (系统找不到指定的文件。) rn2015/03/16 16:02:59 INFO - jmeter.protocol.http.proxy.ProxyControl: Creating Proxy CA in E:\Jmeter\apache-jmeter-2.13\apache-jmeter-2.13\bin\proxyserver.jks rn2015/03/16 16:03:00 ERROR - jmeter.protocol.http.proxy.ProxyControl: Could not initialise key store java.io.IOException: >> 非法选项: -extrn尝试 keytool -help <
term does not evaluate to a function
程序最后出现一个错误,不晓得怎么解决,请各位大大指点,多谢rn...\stlport-4.6.2\stlport\stl\_hashtable.h(557) : error C2064: term does not evaluate to a functionrn...\stlport-4.6.2\stlport\stl\_hashtable.h(556) : while compiling class-template member function 'unsigned int __thiscall _STL::hashtable,double,struct _STL::hash,struct _STL::_Selrnect1st >,struct _STL::equal_to,class _STL::allocator > >::_M_bkt_num_key(const double &,unsigned int) const'rnrn在_hashtable.h是指向这段代码的:rn size_type _M_bkt_num_key(const key_type& __key, size_t __n) constrn rn return _M_hash(__key) % __n;rn rnrn我用VC6+STLport
string does not name a type
[code=C/C++]rn//extern_CPP.hrn#ifndef EXTERN_CPP_Hrn#define EXTERN_CPP_Hrn#include rnclass FileSystemrnrn string filename;//错误提示:string does not name a typernpublic:rn FileSystem(string _filename);//错误提示:expected ')' before "_filename"rn void printFileName();rn;rn#endif // EXTERN_CPP_Hrnrn//extern_CPP.cpprn#include "extern_CPP.h"rn#include rn#include rn#include rnusing namespace std;rnrnFileSystem::FileSystem(string _filename):filename(_filename)rnrnvoid FileSystem::printFileName()rnrn cout<
does not contain a definition问题
俺一直都是这样的在做三层结构的代码,在业务层的类里定义方法,在UI层里调用,一直都是很好的,今天不知道为什么,在业务层的类里定义新的方法(PUBLIC),在UI层里调用,竟然提示Error 14 'xxx.BLL.Gateway.xxxGateway' does not contain a definition for 'getone' and no extension method 'GetAllUser' accepting a first argument of type 'xxx.BLL.Gateway.xxxGateway' could be found (are you missing a using directive or an assembly reference?),旧的方法调用就没事,新的方法,无论多简单的方法都不行,各位老大,见多识广,帮帮小弟吧!rn
does not contain a definition for 'DataGridView'
我用C#做一个WinForm程序时,下面代码的红色部分报如题所示的错误,错误部分代码如下:rnprivate void button2_Click(object sender, EventArgs e)rn rn splitContainer1.Panel2.Controls.Clear();rn DataGridView ls = new DataGridView();rn ls.Location = new Point(89, 53);rn ls.Width = 480;rn ls.Height = 460;rn splitContainer1.Panel2.Controls.Add(ls);//以上,清除Panel2中控件,添加DataGridView控件rnrn string strCoon = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=TSDRSmartBoard.mdb";rn conn = new OleDbConnection(strCoon);rn string strSql = "select * from Content_PicTable";rn da = new OleDbDataAdapter(strSql, conn);rn ds = new DataSet();rn da.Fill(ds);rn dt = ds.Tables[0];rn this.[color=#FF0000]DataGridView[/color].DataSource = dt; rn rn求各路高手解答,谢谢。
c++ does not refer to a value
![图片说明](https://img-ask.csdn.net/upload/201508/16/1439730617_985144.png)nnnn``` cppn #ifndef __seven____5__n#define __seven____5__nn#include n#include nusing namespace std;nnclass B1npublic:n B1(int a)n cout << a << " b1"<< endl;n n;nnclass B2npublic:n B2(int b)n cout << b << " b2"<< endl;n n;nnnclass B3npublic:n B3()n cout << " b3"<< endl;n n;nnclass C: public B2, public B1, public B3npublic:n C(int a, int b, int c):B1(a), B2(b), mb2(a), mb1(b)n n cout << c << " c3"<< endl;n n nprivate:n B1 mb1;n B2 mb2:n B3 mb3;n;nn#endifnn```nnnnn不知道为何会有这个错误啊,哪位大哥帮忙解答一下
'SHDocvw' : does not exist or is not a namespace?
[code=C/C++]#import "C:\\WINDOWS\\system32\\shdocvw.dll" rename ("tagREADYSTATE","tagIEREADYSTATE")rn//#import rnusing namespace SHDocvw;[/code]rnrnrn在VC6 MFC Dialog 以上的代码提示 error C2871: 'SHDocvw' : does not exist or is not a namespacernrn请问如何解决 谢谢
does not return a result set
存储过程如下rnrn/*rn发票核对,业务部导出已经开出发票的记录交给销售分公司的功能rnhyc2011-1-18rnrnexec up_expInvoice_Mainselect '深圳销售分公司(一部)','','','','',1,'2011-3-1','2011-3-12','hyc'rn*/rnCREATE proc up_expInvoice_Mainselectrn(rn@company varchar(200),--销售分公司rn@khbh varchar(200)=null,--客户编号rn@khdm varchar(200)=null,--客户代码rn@khmc varchar(200)=null,--客户名称rn@nkxh varchar(200)=null,--纽扣型号rn@dateflag bit,--使用日期标记rn@ckrq1 varchar(200),--出库日期rn@ckrq2 varchar(200),rn@userid varchar(200)=nullrn)rnasrnbeginrn declare @sql varchar(8000)rn set @sql=''rnif @company<>''rnbeginrn set @sql=@sql + 'rnselect a.fCustNo into #khdm /*得到该销售分公司的所有客户代码*/rnfrom GCS..tb_custtable a join GCS..tb_ConsigneeTable b on a.fConUnitNo=b.fIDrnwhere b.fConUnitName=''' + @company + ''''rn[color=#FF0000]-----------加入以下圈着的代码,delphi前台调用该存储过程就出does not return a result set的错误[/color]rn set @sql=@sql + 'delete from t_zfdtmp where userid=''' + @userid + '''rninsert into t_zfdtmp(company,khmc,khdm,kdrq,amount,isaudited,audituser,audittime,remark,userid)rnselect company,khmc,khdm,kdrq,amount,isaudited,audituser,audittime,remark,''' +@userid+'''rnfrom t_zhengfudan where khdm in (select fCustNo from #khdm)'rn--判断时间是否为空,加上时间条件rnif @dateflag=1 rn set @sql=@sql + ' and kdrq>=''' + @ckrq1 + ''' and kdrq<''' + @ckrq2 + ''''rnrnrnrn[color=#FF0000]----------------------------------------------------------注释掉该代码就delphi就能正常执行rnexec up_expInvoice_Mainselect '深圳销售分公司(一部)','','','','',1,'2011-3-1','2011-3-12','hyc'rn直接在查询分析器里可以返回记录集[/color]rnrnendrnrnrn set @sql=@sql + 'rnrn select t.*,t.ckje + t.jj as hjje from t_IssueInvoiceMainBAK t where 1=1'rnif @company<>''rn set @sql=@sql + 'rn and khdm in (select fCustNo from #khdm)'rnif @khdm<>'' rn set @sql=@sql + 'rn and khdm like ''' + @khdm + '%'''rnrnif @khmc<>''rn set @sql=@sql + 'rn and khmc like ''' + @khmc + '%''' rnrnif @khbh<>''rn set @sql=@sql + 'rn and khbh like ''' + @khbh + '%'''rnrnif @nkxh<>''rn set @sql=@sql + 'rn and nkxh like ''' + @nkxh + '%'''rnrnif @dateflag=1rn set @sql=@sql + 'rn and ckrq>=''' + @ckrq1 +''' and ckrq<''' + @ckrq2 + ''''rnprint(@sql)rnexec(@sql)rnendrnGOrn
报错:does not name a type
代码中两个类要交叉引用:rn[code=c]rn#ifndef ITEMSET_Hrn#define ITEMSET_Hrnrn#include rn#include rn#include "ItemSorter.h"rnrnusing namespace std;rnrnnamespace Arnrn namespace Brn rn class ItemSetrn rn public:rn typedef vector::size_type size_type;rn typedef vector::iterator iterator;rnrn rn private:rn vector items;rn ItemSorter sorter;rn ;rn rnrnrn#endifrn[/code]rnrn[code=c]rn#ifndef ITEMSORTER_Hrn#define ITEMSORTER_Hrnrn#include "ItemSet.h"rnrnnamespace Arnrn namespace Brn rn templatern class ItemSorterrn rn public:rn typedef typename T::iterator targetIter;rn public:rn ItemSorter();rn public:rn void sort(targetIter begin, targetIter end)rn rn rn rn ;rn rnrnrn#endifrn[/code]rnrn编译时,报错:rn[code=text]rnIn file included from ItemSorter.h:4:0:rnItemSet.h:23:4: error: ‘ItemSorter’ does not name a typern ItemSorter sorter;rn[/code]rnrn我是想采用模板的方式进行交叉引用。
A Real-time Analytical Data Store
A Real-time Analytical Data Store
How to store a font object??
在程序中,允许用户对一个RichTextBox的字体进行设置.期望这次设置可以被保存起来,下次使用的时候便不需要再次设置.我使用注册表来完成这项工作,但似乎效果不佳:
org.hibernate.MappingException: Dialect does not support identity key generation
用ExtJs做界面的,但是报这个错rnorg.hibernate.MappingException: Dialect does not support identity key generationrn可是我的.hbm.xml里的主键产生方式都是assigned的,哪里来的identity ,ctrl+H在这个workspace里都没有搜出identity 这个字符串,大家说一下有可能哪里出错rn补充:用的是oracle数据库,单表查询成功,这一个不成功的是有外键!
关于Dialect does not support identity key generation
我用的是HIBERNATE2.1,数剧库是SQLSERVER2000,rnrn rn net.sf.hibernate.dialect.SQLSeverDialectrnrn为什么也会有Dialect does not support identity key generation这个ERROR?
Android Studio创建与修改 默认key store 以及自定义key store
在使用Android Studio时候我们要知道app包有两个版本分为 debug测试版与release正式版。下面我们来介绍如何使用Android Studio创建一个新的keystore,并发布我们的apk第一步: Build ---&amp;gt;&amp;gt; Generate Signed APK第二步:Create New第三步:填写相关信息,里面内容什么含义自行Google第四步:输入密码第五步:...
end of stream was detected on a read
import java.sql.*;rnpublic class Selectrnpublic static void main(String args[])rnResultSet result;rntryrnConnection con;rnClass.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");rncon = DriverManager.getConnection("jdbc:microsoft:sqlserver://localhost:1433;databaseName=onLineTest","sa","1422");rnStatement stat = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);rnresult = stat.executeQuery("select * from Teacher");rnwhile(result.next())rnrnSystem.out.println(result.getString(1));rnrnrncatch(Exception e)rnrnSystem.out.println("Error"+e);rnrnrnrn我在将JAVA和SQL Server 2000连接时出现了“end of stream was detected on a read”这个问题,前几天,我在做的时候JAVA和SQL Server 2000连接都还成功,数据也调出来了,不知怎的,就这几天连接忽然出现问题。我在网上也查找了这个问题的解法,可是都不太清楚,最终我还是没连接起来,如果通过ODBC和SQL Server 2000连接能连接成功,但如果直接连接就会出现这个问题!rn 我很多软件都装成功了:rn JDK 1.5rn SQL Server 2000rn Tomcat 5rn SQL2000-KB884525-SP4-x86-CHSrn SQL Server jdbc 驱动rn 还有端口号也是跟SQL Server 2000端口号一样(1433)rn ClassPath、TomcatHome、JAVA_HOME等环境变量都没问题。rn rn rn麻烦哪位高手,帮我看看大概是什么问题?非常感谢!
Extjs store根据key获取对应的value
  var index = store.findExact('key',val); if(index==-1){return val;} return store.getAt(index).get('value');                    
自己动手写一个key value store
一涉及到persistent, 哪怕只是最基本的需求,很多人都会依赖数据库,或是其他现成的库或工具。确实,对于文件,大部分人很少直接打交道,或者只是诸如整体反序列化/序列化、按行读取、append new line等有限的操作。 一个persistent store最基本的问题是如何组织数据,也就是access method, 大致有: 1)队列(定长记录 or 不定长记录): kaf
"cartoonify" a webcamera's stream
A simple program that uses Laplacian edge detection and bilateral filters in OpenCV to "cartoonify" a webcamera's stream.
A/PSERVER KEY?
可能是无意之间按了"工程选项"里的"A/PSERVER专用","A/P与设计通用"的按钮,A/PSERVER KEY的SN就没了! KEY现在坏掉了,请问是怎么回事?
相关热词 c#检测非法字符 c#双屏截图 c#中怎么关闭线程 c# 显示服务器上的图片 api嵌入窗口 c# c# 控制网页 c# encrypt c#微信网页版登录 c# login 居中 c# 考试软件