<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    成功捷徑,貴在堅持
    人為善,福雖未至禍已遠離; 人為惡,禍雖未至福已遠離
    axis版本1.4 axis 與.net webservice串接
    AxisFault
     faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
     faultSubcode:
     faultString: Server was unable to read request. ---&gt; There is an error in XML document (1, 602). ---&gt; Input string was not in a correct format.
     faultActor:
     faultNode:
     faultDetail:
        {http://xml.apache.org/axis/}stackTrace:Server was unable to read request. ---&gt; There is an error in XML document (1, 602). ---&gt; Input string was not in a correct format.
        at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
        at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
        at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
        at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
        at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
        at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
        at org.apache.axis.client.Call.invoke(Call.java:2767)
        at org.apache.axis.client.Call.invoke(Call.java:2443)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)
        at com.e104.an9.test.TestAxisWSClient.main(TestAxisWSClient.java:46)

        {http://xml.apache.org/axis/}hostname:locey_zhang

    Server was unable to read request. ---> There is an error in XML document (1, 602). ---> Input string was not in a correct format.
        at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
        at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
        at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
        at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
        at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
        at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
        at org.apache.axis.client.Call.invoke(Call.java:2767)
        at org.apache.axis.client.Call.invoke(Call.java:2443)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)
        at com.e104.an9.test.TestAxisWSClient.main(TestAxisWSClient.java:46)

    解決方法:call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP12_CONSTANTS);


    posted @ 2010-10-15 10:48 選寶網an9 閱讀(1622) | 評論 (1)編輯 收藏

    搜索webeditor會有問題,但搜索web editor正常,中間加一個空格就可以了。不知道是不是我瀏覽器的問題。有興趣的朋友可以試一下。
    posted @ 2010-04-15 16:07 選寶網an9 閱讀(630) | 評論 (0)編輯 收藏
    當Kaspersky反廣告開啟的時候有些網頁經常報這個錯。關閉 Kaspersky反廣告功能就解決了。
    posted @ 2009-11-02 15:32 選寶網an9 閱讀(674) | 評論 (0)編輯 收藏
    原文來自: http://www.techfaq360.com/viewFreshers.jsp?tutorialId=840
    getCurrentSession() :
    The "current session" refers to a hibernate Session bound by hibernate behind the scenes, to the transaction scope.
    A Session is opened when getCurrentSession() is called for the first time and closed when the transaction ends.
    It is also flushed automatically before the transaction commits. You can call getCurrentSession() as often and anywhere you want as long as the transaction runs.
    To enable this strategy in your hibernate configuration:

    set hibernate.transaction.manager_lookup_class to a lookup strategy for your JEE container
    set hibernate.transaction.factory_class to org.hibernate.transaction.JTATransactionFactory

    Only the Session that you obtained with sf.getCurrentSession() is flushed and closed automatically.

    Example :
    try {
    UserTransaction tx = (UserTransaction)new InitialContext()
    .lookup("java:comp/UserTransaction");

    tx.begin();

    // Do some work
    sf.getCurrentSession().createQuery(...);
    sf.getCurrentSession().persist(...);

    tx.commit();
    }
    catch (RuntimeException e) {
    tx.rollback();
    throw e; // or display error message
    }

    openSession() :
    If you decide to use manage the Session yourself the go for sf.openSession() , you have to flush() and close() it.
    It does not flush and close() automatically.
    Example :
    UserTransaction tx = (UserTransaction)new InitialContext()
    .lookup("java:comp/UserTransaction");

    Session session = factory.openSession();

    try {
    tx.begin();

    // Do some work
    session.createQuery(...);
    session.persist(...);

    session.flush(); // Extra work you need to do

    tx.commit();
    }
    catch (RuntimeException e) {
    tx.rollback();
    throw e; // or display error message
    }
    finally {
    session.close(); // Extra work you need to do
    }
    posted @ 2008-07-25 10:32 選寶網an9 閱讀(1494) | 評論 (0)編輯 收藏
    主站蜘蛛池模板: 亚洲中文字幕无码爆乳| 亚洲视频在线一区| 亚洲人av高清无码| 免费A级毛片无码无遮挡内射| 亚洲AV一宅男色影视| 成人电影在线免费观看| 综合亚洲伊人午夜网 | 亚洲综合一区无码精品| 69影院毛片免费观看视频在线| 亚洲人成在线影院| 永久免费在线观看视频| 亚洲一区二区三区在线网站 | 久久亚洲精品无码gv| 国产成人A在线观看视频免费| 亚洲精品国产啊女成拍色拍| 亚洲丁香婷婷综合久久| 女人被男人躁的女爽免费视频 | 国产偷伦视频免费观看| 久久久久无码专区亚洲av| 久久www免费人成精品香蕉| 亚洲毛片αv无线播放一区| 美女内射无套日韩免费播放| 国产成人精品日本亚洲11| 国产精品免费看香蕉| 免费无遮挡无码永久视频| 最近中文字幕mv免费高清在线| 亚洲在成人网在线看| 免费观看四虎精品国产永久| 91免费福利视频| 99亚洲精品高清一二区| 午夜小视频免费观看| 国产精品内射视频免费| 亚洲成av人片在线看片| 国产免费人成视频在线观看| a级毛片免费在线观看| 亚洲中文字幕无码一去台湾| 免费人成视网站在线观看不卡| 国产一级片免费看| 亚洲乱亚洲乱妇24p| 国产国拍亚洲精品mv在线观看| 国产在线a免费观看|