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

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

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

    成功捷徑,貴在堅(jiān)持
    人為善,福雖未至禍已遠(yuǎn)離; 人為惡,禍雖未至福已遠(yuǎn)離
    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 選寶網(wǎng)an9 閱讀(1632) | 評(píng)論 (1)編輯 收藏

    搜索webeditor會(huì)有問(wèn)題,但搜索web editor正常,中間加一個(gè)空格就可以了。不知道是不是我瀏覽器的問(wèn)題。有興趣的朋友可以試一下。
    posted @ 2010-04-15 16:07 選寶網(wǎng)an9 閱讀(642) | 評(píng)論 (0)編輯 收藏
    當(dāng)Kaspersky反廣告開啟的時(shí)候有些網(wǎng)頁(yè)經(jīng)常報(bào)這個(gè)錯(cuò)。關(guān)閉 Kaspersky反廣告功能就解決了。
    posted @ 2009-11-02 15:32 選寶網(wǎng)an9 閱讀(676) | 評(píng)論 (0)編輯 收藏
    原文來(lái)自: 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 選寶網(wǎng)an9 閱讀(1505) | 評(píng)論 (0)編輯 收藏
    主站蜘蛛池模板: 999久久久免费精品国产| 亚洲视频在线观看免费| 精品国产免费人成网站| 中文在线免费视频| 精品无码人妻一区二区免费蜜桃 | 成年免费大片黄在线观看com| 尤物视频在线免费观看| 最近免费中文字幕中文高清| 99精品在线免费观看| 18禁成年无码免费网站无遮挡| 国产大片免费观看中文字幕| 亚洲一区二区三区偷拍女厕| 337p日本欧洲亚洲大胆艺术| 亚洲一卡一卡二新区无人区| 丰满少妇作爱视频免费观看| 特级精品毛片免费观看| 好大好深好猛好爽视频免费| JLZZJLZZ亚洲乱熟无码| 亚洲视频在线一区| 亚洲丶国产丶欧美一区二区三区| 国产免费播放一区二区| 精品无码免费专区毛片| 免费又黄又硬又爽大片| 亚洲成AV人片在线观看| 亚洲人成人网站18禁| 中文字幕无码毛片免费看| 成熟女人特级毛片www免费| 中文字幕亚洲一区| 久久精品国产亚洲av麻豆图片 | a级毛片免费完整视频| 国产成人午夜精品免费视频| 亚洲精品亚洲人成在线观看下载 | 亚洲精品精华液一区二区 | 久久久www成人免费毛片| 亚洲午夜精品一级在线播放放| 亚洲国产成人无码av在线播放| 日韩毛片免费一二三| 999在线视频精品免费播放观看| 久久久精品国产亚洲成人满18免费网站 | 免费在线观看视频网站| 日韩亚洲国产综合久久久|