Exception while decoding UTF-8 encoded stream

java.io.UTFDataFormatException
java.io.ObjectInputStream$BlockDataInputStream.readUTFSpan(ObjectInputStream.java(Compiled Code))
java.io.ObjectInputStream$BlockDataInputStream.readUTFBody(ObjectInputStream.java(Compiled Code))
java.io.ObjectInputStream$BlockDataInputStream.readUTF(ObjectInputStream.java:2737)
java.io.ObjectInputStream.readUTF(ObjectInputStream.java:1029)
java.io.ObjectStreamClass.readNonProxy(ObjectStreamClass.java:606)
can anybody tell what is possible reasons for getting such exception while decoding?

Encoding code
try {
encodedOs = MimeUtility.encode(bos, "base64");
ObjectOutputStream oos = new ObjectOutputStream(encodedOs);
oos.writeObject(inputData);
oos.flush();
oos.close();
} catch (IOException ioExcep) {
ioExcep.printStackTrace();
} catch (MessagingException msgExcep) {
msgExcep.printStackTrace();
return baos.toString("UTF-8");
decoding code
BufferedInputStream bis1 = new BufferedInputStream
(new ByteArrayInputStream(inputData.getBytes()));
InputStream decIns = MimeUtility.decode(bis1, "base64");
ObjectInputStream ois = new ObjectInputStream(decIns);
object = ois.readObject();
ois.close();

Similar Messages

  • Exception while unmarshalling UTF-8 encoded XML String, using JAXB.

    hi folks. First of all, thank you for contributing to my queries as of now.
    Problem statement.
    - This happens when i try to unmarshall a webservice response, which is nothing but a simple UTF-8 encoded XML string in an soap envelope.
    - 0xae is the register character: ®.
    - My next step was to ensure that my code works without this character. So I removed all occurances from my XML. It worked just fine...
    - So what do you guys suggest me to get rid of this problem?
    - Any suggestion will be treated as valuable resource.
    - Is there some kind of encoding setting with jaxb ?
    An invalid XML character (Unicode: 0xae) was found in the element content of the document.
    org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0xae) was found in the element content of the document.
         at weblogic.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1273)
         at weblogic.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:603)
         at weblogic.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1319)
         at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:396)
         at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:1119)
         at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)
         at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:133)
         at com.sun.xml.bind.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:139)
         at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:129)
         at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:166)
         at com.hp.wwopsit.econfigure.helper.JaxbUtils.xmlStringToJaxbObject(JaxbUtils.java:66)
         at com.hp.wwopsit.econfigure.core.transformation.IPCAdapterMapper.x2oLoadConfig(IPCAdapterMapper.java:376)
         at com.hp.wwopsit.econfigure.core.adapter.IPCAdapter.loadConfiguration(IPCAdapter.java:144)
         at com.hp.wwopsit.econfigure.core.adapter.IPCAdapter.main(IPCAdapter.java:291)
    --------------- linked to ------------------
    javax.xml.bind.UnmarshalException
    - with linked exception:
    [org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0xae) was found in the element content of the document.]
         at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:284)
         at com.sun.xml.bind.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:143)
         at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:129)
         at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:166)
         at com.hp.wwopsit.econfigure.helper.JaxbUtils.xmlStringToJaxbObject(JaxbUtils.java:66)
         at com.hp.wwopsit.econfigure.core.transformation.IPCAdapterMapper.x2oLoadConfig(IPCAdapterMapper.java:376)
         at com.hp.wwopsit.econfigure.core.adapter.IPCAdapter.loadConfiguration(IPCAdapter.java:144)
         at com.hp.wwopsit.econfigure.core.adapter.IPCAdapter.main(IPCAdapter.java:291)
    ***Jaxb Exception while converting xml file to object. Possible cause, Invalid schema or unrecognized elements in input XML. Actuall exception message:javax.xml.bind.UnmarshalException
    - with linked exception:
    [org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0xae) was found in the element content of the document.]
    End..
    Output completed (44 sec consumed) - Normal Termination

    This is how the XML looks like ..
    <?xml version="1.0" encoding="UTF-8" ?>
    - <configresponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <csticShortText>processor</csticShortText>
    - <csticValues>
    - <csticValue id="024" selected="false">
    <desc>Pentium� 4 1.7GHz/400MHz</desc>
    </configresponse>

  • Exception while capute and transmit media stream

    Hi all,
    I've got a problem and will thank to anyone who help kindly.
    I'm developing audio/video conferencing software using JMF (point to point). All seems fine, but when application works more than 40-50 min JVM crashes and I'll get such exceptions list:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x165F1013
    Function=[Unknown.]
    Library=C:\WINNT\system32\jmdaud.dll
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.
    Current Java thread:
         at com.sun.media.renderer.audio.DirectAudioRenderer.nGetSamplesPlayed(Native Method)
         at com.sun.media.renderer.audio.DirectAudioRenderer.access$900(DirectAudioRenderer.java:33)
         at com.sun.media.renderer.audio.DirectAudioRenderer$DirectAudioOutput.getMediaNanoseconds(DirectAudioRenderer.java:579)
         at com.sun.media.renderer.audio.AudioRenderer.getMediaNanoseconds(AudioRenderer.java:441)
         at com.sun.media.PlaybackEngine$SlaveClock.getMediaNanoseconds(PlaybackEngine.java:2032)
         at com.sun.media.BasicController.getMediaNanoseconds(BasicController.java:642)
         at com.sun.media.MediaPlayer.getMediaNanoseconds(MediaPlayer.java:85)
         at com.sun.media.BasicPlayer.getDuration(BasicPlayer.java:313)
         at com.sun.media.ui.ProgressSlider.run(ProgressSlider.java:228)
         at java.lang.Thread.run(Unknown Source)
    Dynamic libraries:
    0x00400000 - 0x00419000      C:\Program Files\Internet Explorer\iexplore.exe
    0x77F80000 - 0x77FFB000      C:\WINNT\system32\ntdll.dll
    0x78000000 - 0x78046000      C:\WINNT\system32\msvcrt.dll
    0x77E80000 - 0x77F32000      C:\WINNT\system32\KERNEL32.dll
    0x77E10000 - 0x77E6F000      C:\WINNT\system32\USER32.dll
    0x77F40000 - 0x77F79000      C:\WINNT\system32\GDI32.dll
    0x70BD0000 - 0x70C35000      C:\WINNT\system32\SHLWAPI.dll
    0x77DB0000 - 0x77E0B000      C:\WINNT\system32\ADVAPI32.dll
    0x770F0000 - 0x7715D000      C:\WINNT\system32\RPCRT4.dll
    0x71000000 - 0x71149000      C:\WINNT\System32\SHDOCVW.dll
    0x71710000 - 0x71794000      C:\WINNT\system32\comctl32.dll
    0x77560000 - 0x777A0000      C:\WINNT\system32\SHELL32.dll
    0x77A50000 - 0x77B3C000      C:\WINNT\system32\ole32.dll
    0x10000000 - 0x10005000      C:\Program Files\ICQPlus\VDETECT.DLL
    0x6E380000 - 0x6E386000      C:\WINNT\System32\INDICDLL.dll
    0x75E00000 - 0x75E1A000      C:\WINNT\System32\IMM32.dll
    0x71160000 - 0x7125D000      C:\WINNT\System32\BROWSEUI.dll
    0x71960000 - 0x71972000      C:\WINNT\System32\browselc.dll
    0x68C10000 - 0x68C95000      C:\WINNT\System32\CLBCATQ.DLL
    0x779B0000 - 0x77A4B000      C:\WINNT\system32\OLEAUT32.dll
    0x77820000 - 0x7785C000      C:\WINNT\System32\cscui.dll
    0x77070000 - 0x77093000      C:\WINNT\System32\CSCDLL.DLL
    0x00D50000 - 0x00E3D000      C:\Program Files\TortoiseCVS\TrtseShl.dll
    0x76AE0000 - 0x76B1D000      C:\WINNT\system32\comdlg32.dll
    0x780C0000 - 0x78121000      C:\WINNT\System32\MSVCP60.dll
    0x70200000 - 0x70295000      C:\WINNT\system32\WININET.dll
    0x773F0000 - 0x77466000      C:\WINNT\system32\CRYPT32.dll
    0x773E0000 - 0x773F0000      C:\WINNT\system32\MSASN1.dll
    0x01270000 - 0x012E3000      c:\winnt\googletoolbar.dll
    0x74FE0000 - 0x74FE9000      C:\WINNT\System32\WSOCK32.dll
    0x74FC0000 - 0x74FD3000      C:\WINNT\System32\WS2_32.DLL
    0x74FB0000 - 0x74FB8000      C:\WINNT\System32\WS2HELP.DLL
    0x77860000 - 0x778EE000      C:\WINNT\System32\SETUPAPI.dll
    0x77C10000 - 0x77C6D000      C:\WINNT\System32\USERENV.DLL
    0x702B0000 - 0x7032A000      C:\WINNT\system32\urlmon.dll
    0x777F0000 - 0x777F7000      C:\WINNT\system32\VERSION.dll
    0x75950000 - 0x75956000      C:\WINNT\system32\LZ32.DLL
    0x768D0000 - 0x768FB000      C:\WINNT\System32\WINTRUST.dll
    0x77920000 - 0x77943000      C:\WINNT\system32\IMAGEHLP.dll
    0x77490000 - 0x774C2000      C:\WINNT\System32\RASAPI32.DLL
    0x77470000 - 0x77481000      C:\WINNT\System32\rasman.dll
    0x774E0000 - 0x77502000      C:\WINNT\System32\TAPI32.dll
    0x77800000 - 0x7780E000      C:\WINNT\System32\RTUTILS.DLL
    0x75A50000 - 0x75A55000      C:\WINNT\System32\sensapi.dll
    0x75100000 - 0x7514F000      C:\WINNT\System32\netapi32.dll
    0x77BE0000 - 0x77BEF000      C:\WINNT\System32\Secur32.dll
    0x75150000 - 0x75156000      C:\WINNT\System32\NETRAP.dll
    0x750E0000 - 0x750F0000      C:\WINNT\System32\SAMLIB.dll
    0x77950000 - 0x77979000      C:\WINNT\system32\WLDAP32.dll
    0x77980000 - 0x779A4000      C:\WINNT\System32\DNSAPI.dll
    0x01590000 - 0x01598000      C:\Program Files\Adobe\Acrobat 5.0\Reader\ActiveX\AcroIEHelper.ocx
    0x50110000 - 0x50155000      C:\Program Files\Common Files\ReGet Shared\Catcher.dll
    0x718C0000 - 0x71944000      C:\WINNT\System32\shdoclc.dll
    0x70440000 - 0x704CF000      C:\WINNT\System32\mlang.dll
    0x70C50000 - 0x70EFC000      C:\WINNT\System32\mshtml.dll
    0x02B70000 - 0x02B84000      C:\Program Files\Common Files\ReGet Shared\CatchOp.dll
    0x02DA0000 - 0x02F57000      C:\WINNT\System32\msi.dll
    0x75A60000 - 0x75A88000      C:\WINNT\System32\MSLS31.DLL
    0x32520000 - 0x32532000      C:\Program Files\Microsoft Office\Office10\msohev.dll
    0x6D7E0000 - 0x6D7EF000      C:\Program Files\Java\j2re1.4.1_01\bin\npjpi141_01.dll
    0x6D740000 - 0x6D752000      C:\Program Files\Java\j2re1.4.1_01\bin\jpiexp32.dll
    0x77810000 - 0x7781C000      C:\WINNT\System32\rnr20.dll
    0x772F0000 - 0x77303000      C:\WINNT\System32\iphlpapi.dll
    0x774D0000 - 0x774D5000      C:\WINNT\System32\ICMP.DLL
    0x772D0000 - 0x772E7000      C:\WINNT\System32\MPRAPI.DLL
    0x77360000 - 0x7738F000      C:\WINNT\System32\ACTIVEDS.DLL
    0x77330000 - 0x77352000      C:\WINNT\System32\ADSLDPC.DLL
    0x77310000 - 0x77329000      C:\WINNT\System32\DHCPCSVC.DLL
    0x777B0000 - 0x777B8000      C:\WINNT\System32\winrnr.dll
    0x6D780000 - 0x6D794000      C:\Program Files\Java\j2re1.4.1_01\bin\jpishare.dll
    0x6D330000 - 0x6D45A000      C:\PROGRA~1\Java\J2RE14~1.1_0\bin\client\jvm.dll
    0x77520000 - 0x77551000      C:\WINNT\System32\WINMM.dll
    0x6D1D0000 - 0x6D1D7000      C:\PROGRA~1\Java\J2RE14~1.1_0\bin\hpi.dll
    0x6D300000 - 0x6D30D000      C:\PROGRA~1\Java\J2RE14~1.1_0\bin\verify.dll
    0x6D210000 - 0x6D229000      C:\PROGRA~1\Java\J2RE14~1.1_0\bin\java.dll
    0x6D320000 - 0x6D32D000      C:\PROGRA~1\Java\J2RE14~1.1_0\bin\zip.dll
    0x6D000000 - 0x6D0FB000      C:\Program Files\Java\j2re1.4.1_01\bin\awt.dll
    0x777D0000 - 0x777EE000      C:\WINNT\System32\WINSPOOL.DRV
    0x75020000 - 0x75030000      C:\WINNT\system32\MPR.dll
    0x6D180000 - 0x6D1D0000      C:\Program Files\Java\j2re1.4.1_01\bin\fontmanager.dll
    0x72790000 - 0x727D6000      C:\WINNT\System32\ddraw.dll
    0x72830000 - 0x72836000      C:\WINNT\System32\DCIMAN32.dll
    0x72D20000 - 0x72D93000      C:\WINNT\System32\D3DIM.DLL
    0x6D6E0000 - 0x6D6F1000      C:\Program Files\Java\j2re1.4.1_01\bin\jpicom32.dll
    0x6D2D0000 - 0x6D2DE000      C:\Program Files\Java\j2re1.4.1_01\bin\net.dll
    0x777C0000 - 0x777C5000      C:\WINNT\System32\rasadhlp.dll
    0x74F60000 - 0x74F7F000      C:\WINNT\system32\msafd.dll
    0x74FA0000 - 0x74FA7000      C:\WINNT\System32\wshtcpip.dll
    0x6D130000 - 0x6D152000      C:\Program Files\Java\j2re1.4.1_01\bin\dcpr.dll
    0x12920000 - 0x12935000      C:\WINNT\system32\jmutil.dll
    0x6D2A0000 - 0x6D2C1000      C:\Program Files\Java\j2re1.4.1_01\bin\jsound.dll
    0x77510000 - 0x77519000      C:\WINNT\System32\wdmaud.drv
    0x773B0000 - 0x773B8000      C:\WINNT\System32\msacm32.drv
    0x773C0000 - 0x773D3000      C:\WINNT\System32\MSACM32.dll
    0x160C0000 - 0x160CD000      C:\WINNT\system32\jmacm.dll
    0x74F20000 - 0x74F27000      C:\WINNT\System32\imaadp32.acm
    0x75CE0000 - 0x75CE6000      C:\WINNT\System32\msadp32.acm
    0x74F00000 - 0x74F05000      C:\WINNT\System32\msg711.acm
    0x74ED0000 - 0x74ED9000      C:\WINNT\System32\msgsm32.acm
    0x74EC0000 - 0x74EC4000      C:\WINNT\System32\tssoft32.acm
    0x669A0000 - 0x669A7000      C:\WINNT\System32\tsd32.dll
    0x74F10000 - 0x74F1B000      C:\WINNT\System32\lhacm.acm
    0x74EE0000 - 0x74EFD000      C:\WINNT\System32\msg723.acm
    0x64730000 - 0x64769000      C:\WINNT\System32\iac25_32.ax
    0x165F0000 - 0x165FC000      C:\WINNT\system32\jmdaud.dll
    0x75540000 - 0x7558D000      C:\WINNT\System32\DSOUND.dll
    0x16720000 - 0x1672E000      C:\WINNT\system32\jmgsm.dll
    0x6CDD0000 - 0x6CDD4000      C:\WINNT\System32\ksuser.dll
    0x1A240000 - 0x1A24D000      C:\WINNT\system32\jmvfw.dll
    0x74820000 - 0x74833000      C:\WINNT\System32\AVICAP32.dll
    0x6A800000 - 0x6A820000      C:\WINNT\System32\MSVFW32.dll
    0x726F0000 - 0x726FF000      C:\WINNT\System32\devenum.dll
    0x645C0000 - 0x645DC000      C:\WINNT\System32\ksproxy.ax
    0x64560000 - 0x64576000      C:\WINNT\System32\kswdmcap.ax
    0x6C290000 - 0x6C382000      C:\WINNT\System32\MFC42.DLL
    0x6C120000 - 0x6C12E000      C:\WINNT\System32\MFC42LOC.DLL
    0x68E70000 - 0x68E9C000      C:\WINNT\System32\qcap.dll
    0x68CA0000 - 0x68D97000      C:\WINNT\System32\quartz.dll
    0x645B0000 - 0x645B5000      C:\WINNT\System32\ksqmf.ax
    0x1AEA0000 - 0x1AEAB000      C:\WINNT\system32\jmvcm.dll
    0x1AFC0000 - 0x1AFCE000      C:\WINNT\system32\jmcvid.dll
    0x1B0E0000 - 0x1B0FB000      C:\WINNT\system32\jmh263enc.dll
    0x66210000 - 0x6621F000      C:\WINNT\System32\vfwwdm32.dll
    0x270C0000 - 0x270CC000      C:\Program Files\ABBYY Lingvo\LvHook.dll
    0x72990000 - 0x729BD000      C:\WINNT\system32\DBGHELP.dll
    0x68F80000 - 0x68F8B000      C:\WINNT\System32\PSAPI.DLL
    Local Time = Fri Jul 25 17:13:50 2003
    Elapsed Time = 1767
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.1_01-b01 mixed mode)
    Does anyone knows what it may be? The system runs under Win XP nd 2000.
    Sincerely, Thor

    Hi,
    Sorry not to be able to contribute directly , but I write to bring this topic upfront again, as I have recently encountered the same problem.
    I am designing a Music management tool which deals with big mp3 databases. I use JMF to playback mp3s. In the context of my application, it crashes pretty quickly (I'm not talking about 30 minutes like Thor, rather like 2 or 3) after accessing around 10 songs.
    (after all 10 songs * a mean duration of 3 minutes = 30 mn, don't know if this is relevant).
    Apparently, the problem occurs when the renderer attempts to update the progress bar in the player (the "remaining time" thingy).
    If anyone has any idea about this...
    (by the way, it's running on a Windows 2000)
    *********** LOG *****************
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x10731013
    Function=[Unknown.]
    Library=C:\WINNT\system32\jmdaud.dll
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.
    Current Java thread:
    at com.sun.media.renderer.audio.DirectAudioRenderer.nGetSamplesPlayed(Na
    tive Method)
    at com.sun.media.renderer.audio.DirectAudioRenderer.access$10(DirectAudi
    oRenderer.java:336)
    at com.sun.media.renderer.audio.DirectAudioRenderer$DirectAudioOutput.ge
    tMediaNanoseconds(DirectAudioRenderer.java:603)
    at com.sun.media.renderer.audio.AudioRenderer.getMediaNanoseconds(AudioR
    enderer.java:464)
    at com.sun.media.renderer.audio.AudioRenderer.getMediaTime(AudioRenderer
    .java:459)
    at com.sun.media.PlaybackEngine$SlaveClock.getMediaTime(PlaybackEngine.j
    ava:2052)
    at com.sun.media.BasicController.getMediaTime(BasicController.java:686)
    at com.sun.media.MediaPlayer.getMediaTime(MediaPlayer.java:98)
    at MyPackage.PlayerGui.run(PlayerGui.java:913)
    at java.lang.Thread.run(Unknown Source)
    Local Time = Fri Aug 29 16:05:40 2003
    Elapsed Time = 833
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.1_01-b01 mixed mode)
    # An error report file has been saved as hs_err_pid134448.log.
    # Please refer to the file for further information.
    Thanks in advance,
    Jean-Julien Aucouturier

  • XML stream utf-8 encoding

    Hi folks,
    I'm trying to establish a CSTRING XML stream with utf-8 encoding. I've only managed to do this in XSTRING so far.
    If i use this coding, i get a binary output.
      DATA: gt_result TYPE TABLE OF string,
             l_result type string.
      constants: encoding type string value 'UTF-8'.
      data:  g_ixml type ref to if_ixml.
      data:  g_stream_factory type ref to IF_IXML_STREAM_FACTORY.
      data:  g_encoding type ref to if_ixml_encoding.
      g_ixml = cl_ixml=>create( ).
      g_stream_factory = g_ixml->CREATE_STREAM_FACTORY( ).
      g_encoding = g_ixml->create_encoding( character_set = 'utf-8'
                                            byte_order = 0 ).
      data:  resstream type ref to if_ixml_ostream.
      resstream = g_stream_factory->create_ostream_cstring( l_result ).
      call method resstream->set_encoding
        EXPORTING
          encoding = g_encoding.
    * XML Transformieren
      CALL TRANSFORMATION id_indent
        SOURCE     itab = it_Itab
        RESULT XML resstream.
    * Temporär, XML File erzeugen
      refresh gt_result.
      APPEND l_result TO gt_result.
      CALL METHOD cl_gui_frontend_services=>gui_download
        EXPORTING
          filename         = 'c:test.xml'
        CHANGING
          data_tab         = gt_result
        EXCEPTIONS
          file_write_error = 1.
    Without this expression :
    g_encoding = g_ixml->create_encoding(
                 character_set = 'utf-8' byte_order = 0 ).
    I get a cstring stream, but in utf-16.
    My question now is, how do I manage to get a utf-8 encoded stream in cstring?
    Thanks for your help.
    Cheers
    Daniel

    This is the solution:
    METHOD TRANSFORM_XML.
      TYPE-POOLS TRUXS.
    *********************** XML ***********************************
      DATA: GT_RESULT TYPE TABLE OF STRING,
             L_RESULT TYPE ETXML_LINE_STR.
      CONSTANTS:  ENCODING     TYPE STRING VALUE 'UTF-8'.
      DATA:  G_IXML TYPE REF TO IF_IXML.
      DATA:  G_STREAM_FACTORY TYPE REF TO IF_IXML_STREAM_FACTORY.
      DATA:  G_ENCODING TYPE REF TO IF_IXML_ENCODING.
      G_IXML = CL_IXML=>CREATE( ).
      G_STREAM_FACTORY = G_IXML->CREATE_STREAM_FACTORY( ).
      G_ENCODING = G_IXML->CREATE_ENCODING( CHARACTER_SET = ENCODING
                                            BYTE_ORDER = 0 ).
      DATA:  RESSTREAM TYPE REF TO IF_IXML_OSTREAM.
      RESSTREAM = G_STREAM_FACTORY->CREATE_OSTREAM_XSTRING( L_RESULT ).
      CALL METHOD RESSTREAM->SET_ENCODING
        EXPORTING
          ENCODING = G_ENCODING.
    * XML Transformieren
      CALL TRANSFORMATION ID_INDENT
        SOURCE     ITAB = IT_ITAB
        RESULT XML RESSTREAM.
    * XString to String
      CALL FUNCTION 'ECATT_CONV_XSTRING_TO_STRING'
        EXPORTING
          IM_XSTRING  = L_RESULT
          IM_ENCODING = 'UTF-8'
        IMPORTING
          EX_STRING   = E_XML.
    * Temporär, XML File erzeugen
      refresh gt_result.
      APPEND e_xml TO gt_result.
      CALL METHOD cl_gui_frontend_services=>gui_download
        EXPORTING
          filename         = 'c:test.xml'
        CHANGING
          data_tab         = gt_result
        EXCEPTIONS
          file_write_error = 1.
    ENDMETHOD.
    How can I give the 10 points to myself?
    Cheers
    Daniel

  • Error: [env:ClienT:caught exception while handling request]

    failure when calling to the service Web
    1. I INTRODUCE DIRECTION WSDL URL And SOON PULSE TO SHOW METODOS
    2. And IT INDICATES The METODOS To ME AVAILABLE FOR THIS SERVICE WEB
    3. LATER IT SHOWS THE PARAMETERS TO ME THAT NEEDS TO MAKE THE CALL TO THE PREVIOUS METODO
    4. I INTRODUCE THE VALUE OF THE PARAMETER AND WHEN I TEST THE TEST RESULTS IS THE FOLLOWING ERROR:
    [env:Client : caught exception while handling request: unexpected encoding style: expected=, actual=http://xml.apache.org/xml-soap/literalxml]

    failure when calling to the service Web
    1. I INTRODUCE DIRECTION WSDL URL And SOON PULSE TO SHOW METODOS
    2. And IT INDICATES The METODOS To ME AVAILABLE FOR THIS SERVICE WEB
    3. LATER IT SHOWS THE PARAMETERS TO ME THAT NEEDS TO MAKE THE CALL TO THE PREVIOUS METODO
    4. I INTRODUCE THE VALUE OF THE PARAMETER AND WHEN I TEST THE TEST RESULTS IS THE FOLLOWING ERROR:
    [env:Client : caught exception while handling request: unexpected encoding style: expected=, actual=http://xml.apache.org/xml-soap/literalxml]

  • The following error occurred while performing a repository action. Error - [PCSF_10007] Cannot connect to repository [dev_repo] because \n[[REP_61082] AdminConsole's code page (UTF-8 encoding of Unicode) is not one-way compatible to repository dev_repo's

    Can some one help me out here ?

    Hello Experts, Am facing the below error in console page.Can someone help out here ? The following error occurred while performing a repository action. Error - [PCSF_10007] Cannot connect to repository [dev_repo] because \n[[REP_61082] AdminConsole's code page (UTF-8 encoding of Unicode) is not one-way compatible to repository dev_repo's code page (MS Windows Latin 1 (ANSI), superset of Latin1). Failed to connect to repository service [dev_repo].].  Below my environment variables in .bash_profile LANG=en_US.utf8; export LANGLC_ALL=en_US.utf8; export LC_ALLINFA_CODEPAGENAME=UTF-8; export INFA_CODEPAGENAME Thanks,Ahmed.

  • Parsing a UTF-8 encoded XML Blob object

    Hi,
    I am having a really strange problem, I am fetching a database BLOB object containing the XMLs and then parsing the XMLs. The XMLs are having some UTF-8 Encoded characters and when I am reading the XML from the BLOB, these characters lose their encoding, I had tried doing several things, but there is no means I am able to retain their UTF encoding. The characters causing real problem are mainly double qoutes, inverted commas, and apostrophe. I am attaching the piece of code below and you can see certain things I had ended up doing. What else can I try, I am using JAXP parser but I dont think that changing the parser may help because, here I am storing the XML file as I get from the database and on the very first stage it gets corrupted and I have to retain the UTF encoding. I tried to get the encoding info from the xml and it tells me cp1252 encoding, where did this come into picture and I couldn't try it retaining back to UTF -8
    Here in the temp.xml itself gets corrupted. I had spend some 3 days on this issue. Help needed!!!
    ResultSet rs = null;
        Statement stmt = null;
        Connection connection = null;
        InputStream inputStream = null;
        long cifElementId = -1;
        //Blob xmlData = null;
        BLOB xmlData=null;
        String xmlText = null;
        RubricBean rubricBean = null;
        ArrayList arrayBean = new ArrayList();
          rs = stmt.executeQuery(strQuery);
         // Iterate till result set has data
          while (rs.next()) {
            rubricBean = new RubricBean();
            cifElementId = rs.getLong("CIF_ELEMENT_ID");
                    // get xml data which is in Blob format
            xmlData = (oracle.sql.BLOB)rs.getBlob("XML");
            // Read Input stream from blob data
             inputStream =(InputStream)xmlData.getBinaryStream(); 
            // Reading the inputstream of data into an array of bytes.
            byte[] bytes = new byte[(int)xmlData.length()];
             inputStream.read(bytes);  
           // Get the String object from byte array
             xmlText = new String(bytes);
           // xmlText=new String(szTemp.getBytes("UTF-8"));
            //xmlText = convertToUTF(xmlText);
            File file = new File("C:\\temp.xml");
            file.createNewFile();
            // Write to temp file
            java.io.BufferedWriter out = new java.io.BufferedWriter(new java.io.FileWriter(file));
            out.write(xmlText);
            out.close();

    What the code you posted is doing:
    // Read Input stream from blob data
    inputStream =(InputStream)xmlData.getBinaryStream();Here you have a stream containing binary octets which encode some text in UTF-8.
    // Reading the inputstream of data into an
    into an array of bytes.
    byte[] bytes = new byte[(int)xmlData.length()];
    inputStream.read(bytes);Here you are reading between zero and xmlData.length() octets into a byte array. read(bytes[]) returns the number of bytes read, which may be less than the size of the array, and you don't check it.
    xmlText = new String(bytes);Here you are creating a string with the data in the byte array, using the platform's default character encoding.
    Since you mention cp1252, I'm guessing your platform is windows
    // xmlText=new new String(szTemp.getBytes("UTF-8"));I don't know what szTemp is, but xmlText = new String(bytes, "UTF-8"); would create a string from the UTF-8 encoded characters; but you don't need to create a string here anyway.
    //xmlText = convertToUTF(xmlText);
    File file = new File("C:\\temp.xml");
    file.createNewFile();
    // Write to temp file
    java.io.BufferedWriter out = new java.io.BufferedWriter(new java.io.FileWriter(file));This creates a Writer to write to the file using the platform's default character encoding, ie cp1252.
    out.write(xmlText);This writes the string to out using cp1252.
    So you have created a string treating UTF-8 as cp1252, then written that string to a file as cp1252, which is to be read as UTF-8. So it gets mis-decoded twice.
    As the data is already UTF-8 encoded, and you want the output, just write the binary data to the output file without trying to convert it to a string and then back again:// not tested, as I don't have your Oracle classes
    final InputStream inputStream = new BufferedInputStream((InputStream)xmlData.getBinaryStream());
    final int length = xmlData.length();
    final int BUFFER_SIZE = 1024;                  // these two can be
    final byte[] buffer = new byte[BUFFER_SIZE];   // allocated outside the method
    final OutputStream out = new BufferedOutputStream(new FileOutputStream(file));
    for (int count = 0; count < length; ) {
       final int bytesRead = inputStream.read(buffer, 0, Math.min(BUFFER_SIZE, (length - count));
       out.write(buffer, 0, bytesRead);
       count += bytesRead;
    }Pete

  • Message mapping : UDF parameter string type versus default UTF-8 encoding

    Hi,
    I'm facing an issue with character encoding when using an UDF to transform into base64 encoding.
    While thinking about the subject, I'm not 100% sure if it's possible to get it to work corerctly :
    Given :
    -The input XML is encoded UTF-8 ( with a special characeter )
    -The UDF is generated with java parameter type 'string' ( = set of 16bit unicode characters )
    Doubts :
    -What is supposed to happen when a node content ( of message encoded in UTF-8 ) is used as input for the UDF string type parameter  ? Is the node content decoded/encoded correctly by PI automatically ( at input/output versus the internal 16bit unicode character string ) ?
    ( I would assume yes )
    -Is the default charset of the underlying JVM relevant ? Or does pi always use explicit charsets when encoding/decoding ?
    ( I would assume it's not relevant )
    The UDF java code considers the string as a array of chars while processing them. It uses methods .length and .charat on the input string.
    The result is that I have a ISO-8859 encoded string ! ( after decoding it back from the base64 ) 
    What could cause this ?
    regards
    Dirk
    PS If I simply use default functions ( concat etc..) then the resulting xml stays correctly encoded...

    Hi,
    But that would mean that an UTF-8 encoded byte array would be passed unconverted to the UTF-16 unicode string parameter ?
    Shouldn't that trigger an exception ?
    I'm going to make some tests and see if it enlights my knowledge ( empirical )
    Keep you updated,
    thanks
    dirk

  • JAXB Exception while

    Hi,
    Greetings.
    I don't know if this is a correct forum to place this query. Kindly bear with me.
    I am having some special characters in an XML which i parse using JAXB and store in the DB (Oracle). Current implementation is using ISO-8859-1.
    Using this encoding some special characters like 'µ' gets converted to '?' on retrieval from DB. Hence wrongly displayed in Java Webstart based Client.
    I have problem only while retrieval from DB. 'µ' gets stored properly in DB on insert.
    I tried using 'UTF-8' encoding in the XML, but i get the following exception.
    javax.xml.stream.XMLStreamException
    javax.xml.stream.XMLStreamException
         at com.bea.xml.stream.MXParser.fillBuf(MXParser.java:3223)
         at com.bea.xml.stream.MXParser.more(MXParser.java:3238)
         at com.bea.xml.stream.MXParser.parseProlog(MXParser.java:1739)
         at com.bea.xml.stream.MXParser.nextImpl(MXParser.java:1717)
         at com.bea.xml.stream.MXParser.next(MXParser.java:1180)
         at com.bea.xml.stream.MXParser.setInput(MXParser.java:703)
         at com.bea.xml.stream.MXParserFactory.createXMLStreamReader(MXParserFactory.java:220)
         at com.bea.xml.stream.MXParserFactory.createXMLStreamReader(MXParserFactory.java:36)
    I have the code snippet for Unmarshalling:
    initJaxBContext();
         Unmarshaller u = jc.createUnmarshaller();      
    //u.setProperty("jaxb.encoding", "ISO-8859-1");
    obj = u.unmarshal(input_stream);
    I have the code snippet for Marshalling:
    Marshaller m = getMarshaller();
    m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
    os = new ByteArrayOutputStream();
    m.marshal(obj, os);
    xml_output = os.toString();
    I have the following clarifications:
    1. Can someone tell me what is the default encoding used by the JAXB?
    2. Does the Java Webstart supports utf-8? If no, is there any work around?
    3. Will explicitly setting the encoding to UTF-8 help to avoid the above excpetion?
    Thanks in advance,
    paskal

    Hi,
    Thanks for your reply.
    I checked in my Oracle DB. My charset is set to "UTF-8". Still the issue is happening :-(
    Does anyone has answer for any of these questions below:
    1. Can someone tell me what is the default encoding used by the JAXB?
    2. Does the Java Webstart supports utf-8? If no, is there any work around?
    3. Will explicitly setting the encoding to UTF-8 help to avoid the above exception?
    Any help in this regard will be greatly appreciated.
    regards,
    Paskal

  • Exception while opening content editor

    Hi all,
    we are getting following exception while opening content editor
    <Aug 1, 2011 2:56:04 PM IST> <Error> <HTTP> <BEA-101017> <[ServletContext@14211416[app:Oracle Universal Content Management - Content Server module:/ path: spec-version:2.5], request: weblogic.servlet.internal.ServletRequestImpl@94562a[
    GET /cs/resources/wcm/3rdparty/fckeditor/editor/sans-serif;font-size:%20123.1%;color:%20 HTTP/1.1
    User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0.1) Gecko/20100101 Firefox/5.0.1
    Accept: text/css,*/*;q=0.1
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip, deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Connection: keep-alive
    Referer: http://localhost:16200/cs/resources/wcm/3rdparty/fckeditor/editor/fckeditor.html?InstanceName=SSFCKeditor04365057354602540618&Toolbar=Default
    Cookie: IdcLocale=English-US; fpc10001965722562=vkltub4t|g92AoFmLaa|fses10001965722562=|djlHNRiLaa|vkltub4t|fvis10001965722562=Zj1odHRwJTNBJTJGJTJGbG9jYWxob3N0JTNBMTYyMDAlMkZiYWNreWFyZCUyRmluZGV4Lmh0bSZiPSh1bnRpdGxlZCk=|0|0|0|T|8M8Y88Y8M1|0; IntradocAuth=Internet; oracle.uix=0^^GMT+5:30; JSE
    ]] Root cause of ServletException.
    java.io.CharConversionException: Bad URL
    at intradoc.common.StringUtils.decodeUrlEncodedBytes(StringUtils.java:1277)
    at intradoc.common.StringUtils.decodeUrlEncodedString(StringUtils.java:1217)
    at intradoc.idcwls.IdcServletRequestUtils.decodeUri(IdcServletRequestUtils.java:1805)
    at intradoc.idcwls.IdcServletRequestUtils.fixupLowerCaseUri(IdcServletRequestUtils.java:1822)
    at intradoc.idcwls.IdcServletRequestUtils.processFilterEvent(IdcServletRequestUtils.java:1409)
    Truncated. see log file for complete stacktrace
    >
    please help
    ~Hari

    Found the problem. One of my team mates have added a comment line in one of the facades data control xml. <!-- -->

  • Getting following exception while running coherence tutorial using JDev

    Hi,
    I am getting following exception while running the Oracle Coherence tutorial in Jdeveloper, but unfortunately I'm not able to figure out what's wrong with my configuration.
    Any help will be highly appreciated,
    D:\OracleSOA\Middleware\jdk160_24\bin\javaw.exe -client -classpath C:\JDeveloper\mywork\KnowledgeSOA\.adf;C:\JDeveloper\mywork\KnowledgeSOA\JPA\classes;D:\OracleSOA\Middleware\modules\com.oracle.toplink_1.0.0.0_11-1-1-5-0.jar;D:\OracleSOA\Middleware\modules\org.eclipse.persistence_1.1.0.0_2-1.jar;D:\OracleSOA\Middleware\modules\com.bea.core.antlr.runtime_2.7.7.jar;D:\OracleSOA\Middleware\modules\javax.persistence_1.0.0.0_2-0-0.jar;D:\OracleSOA\Middleware\oracle_common\modules\oracle.xdk_11.1.0\xmlparserv2.jar;D:\OracleSOA\Middleware\oracle_common\modules\oracle.xdk_11.1.0\xml.jar;D:\OracleSOA\Middleware\modules\javax.jsf_1.1.0.0_1-2.jar;D:\OracleSOA\Middleware\modules\javax.ejb_3.0.1.jar;D:\OracleSOA\Middleware\modules\javax.enterprise.deploy_1.2.jar;D:\OracleSOA\Middleware\modules\javax.interceptor_1.0.jar;D:\OracleSOA\Middleware\modules\javax.jms_1.1.1.jar;D:\OracleSOA\Middleware\modules\javax.jsp_1.2.0.0_2-1.jar;D:\OracleSOA\Middleware\modules\javax.jws_2.0.jar;D:\OracleSOA\Middleware\modules\javax.activation_1.1.0.0_1-1.jar;D:\OracleSOA\Middleware\modules\javax.mail_1.1.0.0_1-4-1.jar;D:\OracleSOA\Middleware\modules\javax.xml.soap_1.3.1.0.jar;D:\OracleSOA\Middleware\modules\javax.xml.rpc_1.2.1.jar;D:\OracleSOA\Middleware\modules\javax.xml.ws_2.1.1.jar;D:\OracleSOA\Middleware\modules\javax.management.j2ee_1.0.jar;D:\OracleSOA\Middleware\modules\javax.resource_1.5.1.jar;D:\OracleSOA\Middleware\modules\javax.servlet_1.0.0.0_2-5.jar;D:\OracleSOA\Middleware\modules\javax.transaction_1.0.0.0_1-1.jar;D:\OracleSOA\Middleware\modules\javax.xml.stream_1.1.1.0.jar;D:\OracleSOA\Middleware\modules\javax.security.jacc_1.0.0.0_1-1.jar;D:\OracleSOA\Middleware\modules\javax.xml.registry_1.0.0.0_1-0.jar;D:\OracleSOA\Middleware\jdeveloper\ide\macros\..\..\..\oracle_common\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar;D:\OracleSOA\Middleware\jdeveloper\ide\macros\..\..\..\oracle_common\modules\oracle.nlsrtl_11.1.0\orai18n.jar;D:\OracleSOA\Middleware\oracle_common\modules\oracle.odl_11.1.1\ojdl.jar;D:\OracleSOA\Middleware\oracle_common\modules\oracle.dms_11.1.1\dms.jar;D:\Coherence\toplink\jlib\eclipselink.jar;D:\Coherence\coherence-java-3.7.1.0b27797\coherence\lib\coherence.jar;D:\Oracle\Middleware\modules\javax.persistence_1.0.0.0_1-0-2.jar;D:\Coherence\coherence-java-3.7.1.0b27797\coherence\lib\coherence-jpa.jar;D:\Coherence\ojdbc5.jar;D:\Coherence\toplink\jlib\toplink.jar -Djavax.net.ssl.trustStore=D:\OracleSOA\Middleware\wlserver_10.3\server\lib\DemoTrust.jks -Dhttp.proxyHost=proxymlz.samba.com -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts=scms.*|*.contoso.com|ldrps.*|col.wls.*|desu*|tdlintra.*|10.8.*|10.10.*|*.corp.samba.com|ckcexch1*|whoexch1*|lhoexch1*|ehoexch1*|cmzexch2*|choexch2*|cdcstg2.*|itr2.samba.com|itr.samba.com|*.session.rservices.com|cold.samba.com|sims.samba.com|intranet.samba.com|localhost|localhost.localdomain|127.0.0.1|::1|crgmz01bssu-006.corp.samba.com|crgmz01bssu-006 -Dhttps.proxyHost=proxymlz.samba.com -Dhttps.proxyPort=80 -Dhttps.nonProxyHosts=scms.*|*.contoso.com|ldrps.*|col.wls.*|desu*|tdlintra.*|10.8.*|10.10.*|*.corp.samba.com|ckcexch1*|whoexch1*|lhoexch1*|ehoexch1*|cmzexch2*|choexch2*|cdcstg2.*|itr2.samba.com|itr.samba.com|*.session.rservices.com|cold.samba.com|sims.samba.com|intranet.samba.com|localhost|localhost.localdomain|127.0.0.1|::1|crgmz01bssu-006.corp.samba.com|crgmz01bssu-006 -Dtangosol.coherence.cacheconfig=C:\JDeveloper\mywork\KnowledgeSOA\JPA\jpa-cache-config.xml -Dtangosol.coherence.distributed.localstorage=false -Dtangosol.coherence.log.level=3 com.samba.coherence.RunEmployee
    2012-08-12 13:36:48.447/0.265 Oracle Coherence 3.7.1.0 <Info> (thread=main, member=n/a): Loaded operational configuration from "jar:file:/D:/Coherence/coherence-java-3.7.1.0b27797/coherence/lib/coherence.jar!/tangosol-coherence.xml"
    2012-08-12 13:36:48.479/0.297 Oracle Coherence 3.7.1.0 <Info> (thread=main, member=n/a): Loaded operational overrides from "jar:file:/D:/Coherence/coherence-java-3.7.1.0b27797/coherence/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
    Oracle Coherence Version 3.7.1.0 Build 27797
    Grid Edition: Development mode
    Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
    2012-08-12 13:36:48.603/0.421 Oracle Coherence GE 3.7.1.0 <Info> (thread=main, member=n/a): Loaded cache configuration from "file:/C:/JDeveloper/mywork/KnowledgeSOA/JPA/jpa-cache-config.xml"; this document does not refer to any schema definition and has not been validated.
    2012-08-12 13:36:49.290/1.108 Oracle Coherence GE 3.7.1.0 <Info> (thread=Cluster, member=n/a): This Member(Id=3, Timestamp=2012-08-12 13:36:49.118, Address=10.10.51.150:8090, MachineId=30889, Location=site:,machine:crgmz01bssu-006,process:4816, Role=SambaCoherenceRunEmployee, Edition=Grid Edition, Mode=Development, CpuCount=4, SocketCount=4) joined cluster "cluster:0xFCDB" with senior Member(Id=1, Timestamp=2012-08-12 13:31:01.774, Address=10.10.51.150:8088, MachineId=30889, Location=site:,machine:crgmz01bssu-006,process:4812, Role=CoherenceServer, Edition=Grid Edition, Mode=Development, CpuCount=4, SocketCount=4)
    2012-08-12 13:36:49.305/1.123 Oracle Coherence GE 3.7.1.0 <Info> (thread=main, member=n/a): Started cluster Name=cluster:0xFCDB
    Group{Address=224.3.7.0, Port=37000, TTL=4}
    MasterMemberSet(
    ThisMember=Member(Id=3, Timestamp=2012-08-12 13:36:49.118, Address=10.10.51.150:8090, MachineId=30889, Location=site:,machine:crgmz01bssu-006,process:4816, Role=SambaCoherenceRunEmployee)
    OldestMember=Member(Id=1, Timestamp=2012-08-12 13:31:01.774, Address=10.10.51.150:8088, MachineId=30889, Location=site:,machine:crgmz01bssu-006,process:4812, Role=CoherenceServer)
    ActualMemberSet=MemberSet(Size=2
    Member(Id=1, Timestamp=2012-08-12 13:31:01.774, Address=10.10.51.150:8088, MachineId=30889, Location=site:,machine:crgmz01bssu-006,process:4812, Role=CoherenceServer)
    Member(Id=3, Timestamp=2012-08-12 13:36:49.118, Address=10.10.51.150:8090, MachineId=30889, Location=site:,machine:crgmz01bssu-006,process:4816, Role=SambaCoherenceRunEmployee)
    MemberId|ServiceVersion|ServiceJoined|MemberState
    1|3.7.1|2012-08-12 13:31:01.774|JOINED,
    3|3.7.1|2012-08-12 13:36:49.305|JOINED
    RecycleMillis=1200000
    RecycleSet=MemberSet(Size=0
    TcpRing{Connections=[1]}
    IpMonitor{AddressListSize=0}
    Exception in thread "main" (Wrapped) java.io.InvalidClassException: org.eclipse.persistence.indirection.IndirectList; local class incompatible: stream classdesc serialVersionUID = 4038061360325736360, local class serialVersionUID = -494763524358427112
         at com.tangosol.util.ExternalizableHelper.fromBinary(ExternalizableHelper.java:266)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ConverterFromBinary.convert(PartitionedCache.CDB:4)
         at com.tangosol.util.ConverterCollections$ConverterMap.get(ConverterCollections.java:1655)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ViewMap.get(PartitionedCache.CDB:1)
         at com.tangosol.coherence.component.util.SafeNamedCache.get(SafeNamedCache.CDB:1)
         at com.samba.coherence.RunEmployee.main(RunEmployee.java:17)
    Caused by: java.io.InvalidClassException: org.eclipse.persistence.indirection.IndirectList; local class incompatible: stream classdesc serialVersionUID = 4038061360325736360, local class serialVersionUID = -494763524358427112
         at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
         at com.tangosol.util.ExternalizableHelper.readSerializable(ExternalizableHelper.java:2217)
         at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2348)
         at com.tangosol.util.ExternalizableHelper.deserializeInternal(ExternalizableHelper.java:2746)
         at com.tangosol.util.ExternalizableHelper.fromBinary(ExternalizableHelper.java:262)
         ... 5 more
    Process exited with exit code 1.
    My Cache-Config file
    <?xml version="1.0" encoding="windows-1252" ?>
    <cache-config>
    <caching-scheme-mapping>
    <cache-mapping>
    <!-- Set the name of the cache to be the entity name -->
    <cache-name>Employees</cache-name>
    <!-- Configure this cache to use the scheme defined below -->
    <scheme-name>jpa-distributed</scheme-name>
    </cache-mapping>
    </caching-scheme-mapping>
    <caching-schemes>
    <distributed-scheme>
    <scheme-name>jpa-distributed</scheme-name>
    <service-name>JpaDistributedCache</service-name>
    <backing-map-scheme>
    <read-write-backing-map-scheme>
    <!--
    Define the cache scheme
    -->
    <internal-cache-scheme>
    <local-scheme/>
    </internal-cache-scheme>
    <cachestore-scheme>
    <class-scheme>
    <class-name>com.tangosol.coherence.jpa.JpaCacheStore</class-name>
    <init-params>
    <!--
    This param is the entity name
    This param is the fully qualified entity class
    This param should match the value of the
    persistence unit name in persistence.xml
    -->
    <init-param>
    <param-type>java.lang.String</param-type>
    <param-value>{cache-name}</param-value>
    </init-param>
    <init-param>
    <param-type>java.lang.String</param-type>
    <param-value>com.samba.coherence.{cache-name}</param-value>
    </init-param>
    <init-param>
    <param-type>java.lang.String</param-type>
    <param-value>JPA</param-value>
    </init-param>
    </init-params>
    </class-scheme>
    </cachestore-scheme>
    </read-write-backing-map-scheme>
    </backing-map-scheme>
    <autostart>true</autostart>
    </distributed-scheme>
    </caching-schemes>
    </cache-config>
    cache-server.cmd
    @echo off
    @rem This will start a cache server
    setlocal
    :config
    @rem specify the Coherence installation directory
    set coherence_home=D:\Coherence\coherence-java-3.7.1.0b27797\coherence
    @rem specify the JVM heap size
    set memory=512m
    :start
    if not exist "%coherence_home%\lib\coherence.jar" goto instructions
    if "%java_home%"=="" (set java_exec=java) else (set java_exec=%java_home%\bin\java)
    :launch
    if "%1"=="-jmx" (
         set jmxproperties=-Dcom.sun.management.jmxremote -Dtangosol.coherence.management=all -Dtangosol.coherence.management.remote=true
         shift
    set java_opts=-Xms%memory% -Xmx%memory% %jmxproperties% -Dtangosol.coherence.cacheconfig=C:\JDeveloper\mywork\KnowledgeSOA\JPA\jpa-cache-config.xml
    %java_exec% -server -showversion %java_opts% -cp "%coherence_home%\lib\coherence.jar;C:\JDeveloper\mywork\KnowledgeSOA\JPA\classes;D:\Coherence\coherence-java-3.7.1.0b27797\coherence\lib\coherence-jpa.jar;D:\Coherence\ojdbc5.jar;D:\Coherence\toplink\jlib\eclipselink.jar;D:\Oracle\Middleware\modules\javax.persistence_1.0.0.0_1-0-2.jar" com.tangosol.net.DefaultCacheServer %1
    goto exit
    :instructions
    echo Usage:
    echo ^<coherence_home^>\bin\cache-server.cmd
    goto exit
    :exit
    endlocal
    @echo on
    Many Thanks in Advance
    Zia

    Hi Zia,
    The error is...
    Caused by: java.io.InvalidClassException: org.eclipse.persistence.indirection.IndirectList; local class incompatible: stream classdesc serialVersionUID = 4038061360325736360, local class serialVersionUID = -494763524358427112
    ...which means you have two different versions of org.eclipse.persistence.indirection.IndirectList, one on the server and one in the client (JDeveloper). As these classes have different serialVersionUID values then Java throws an exception when deserializing as they are probably not compatible.
    I don't know much about the Eclipse stuff but from looking at your post I can only assume one version of the class is in D:\Coherence\toplink\jlib\eclipselink.jar on the Coherence server side and the other is in JDevloper in D:\OracleSOA\Middleware\modules\org.eclipse.persistence_1.1.0.0_2-1.jar as these are the only jar file containing "eclipse" that I can see on the classpaths.
    JK

  • Exception while invoking webservices using Dynamic client without WSDL

    Hi All,
    I am getting the below exception while invoking webservices using Dynamic client without WSDL.
    javax.xml.rpc.soap.SOAPFaultException: Exception during processing: java.lang.RuntimeException: Missing license file for: WebLogic Platform 8.1 (see Fault Detail for stacktrace)
    at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:313)
    at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:558)
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:411)
    at atthi.webservice.TestWSWithWSDL.main(TestWSWithWSDL.java:41)
    Exception in thread "main"
    Please find my source file below....
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.Call;
    import javax.xml.rpc.ParameterMode;
    import javax.xml.namespace.QName;
    public class TestWSWithoutWSDL {
    public static void main(String[] args) {
    try{
    String address = "<WSDL's SOAP Address>";
    String namespaceURI = "<namespaceURI>";
    String serviceName = "<serviceName>";
    String portName = "<portName>";
    String ENCODING_STYLE_PROPERTY = "javax.xml.rpc.encodingstyle.namespace.uri";
    String URI_ENCODING = "http://schemas.xmlsoap.org/soap/encoding/";
    String agencyID = "AGN00533";
    String fileName = "testWS";
    String xmlString = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><web-services>Sample Application</web-services>";
    System.setProperty( "javax.xml.rpc.ServiceFactory", "weblogic.webservice.core.rpc.ServiceFactoryImpl");
    ServiceFactory factory = ServiceFactory.newInstance();
    * Create an instance of the Service with the given service QName
    Service service = factory.createService(new QName(serviceName));
    Call call = service.createCall(new QName(portName));
    call.setTargetEndpointAddress(address);
    call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
    call.setProperty(Call.SOAPACTION_URI_PROPERTY, "");
    call.setProperty(ENCODING_STYLE_PROPERTY, URI_ENCODING);
    QName stringQName = new QName("http://www.w3.org/2001/XMLSchema", "string");
    * Set operation name to invoke.
    call.setOperationName(new QName(namespaceURI,"<operationName>"));
    * Add parameters definitions in the call object.
    call.addParameter("string", stringQName, String.class, ParameterMode.IN);
    call.addParameter("string0", stringQName, String.class, ParameterMode.IN);
    call.addParameter("string1", stringQName, String.class, ParameterMode.IN);
    * Set definition of the return type.
    call.setReturnType(stringQName);
    Object[] inParams = new Object[3];
    inParams[0] = new String(agencyID);
    inParams[1] = new String(fileName);
    inParams[2] = new String(xmlString);
    String result = ((String)call.invoke(inParams)).toString();
    System.out.println(result);
    }catch (Exception e){
    e.printStackTrace();
    Please give your suggestions for the above said exception....
    Thanks & Regards....

    Hi All,
    I am getting the below exception while invoking webservices using Dynamic client without WSDL.
    javax.xml.rpc.soap.SOAPFaultException: Exception during processing: java.lang.RuntimeException: Missing license file for: WebLogic Platform 8.1 (see Fault Detail for stacktrace)
    at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:313)
    at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:558)
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:411)
    at atthi.webservice.TestWSWithWSDL.main(TestWSWithWSDL.java:41)
    Exception in thread "main"
    Please find my source file below....
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.Call;
    import javax.xml.rpc.ParameterMode;
    import javax.xml.namespace.QName;
    public class TestWSWithoutWSDL {
    public static void main(String[] args) {
    try{
    String address = "<WSDL's SOAP Address>";
    String namespaceURI = "<namespaceURI>";
    String serviceName = "<serviceName>";
    String portName = "<portName>";
    String ENCODING_STYLE_PROPERTY = "javax.xml.rpc.encodingstyle.namespace.uri";
    String URI_ENCODING = "http://schemas.xmlsoap.org/soap/encoding/";
    String agencyID = "AGN00533";
    String fileName = "testWS";
    String xmlString = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><web-services>Sample Application</web-services>";
    System.setProperty( "javax.xml.rpc.ServiceFactory", "weblogic.webservice.core.rpc.ServiceFactoryImpl");
    ServiceFactory factory = ServiceFactory.newInstance();
    * Create an instance of the Service with the given service QName
    Service service = factory.createService(new QName(serviceName));
    Call call = service.createCall(new QName(portName));
    call.setTargetEndpointAddress(address);
    call.setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
    call.setProperty(Call.SOAPACTION_URI_PROPERTY, "");
    call.setProperty(ENCODING_STYLE_PROPERTY, URI_ENCODING);
    QName stringQName = new QName("http://www.w3.org/2001/XMLSchema", "string");
    * Set operation name to invoke.
    call.setOperationName(new QName(namespaceURI,"<operationName>"));
    * Add parameters definitions in the call object.
    call.addParameter("string", stringQName, String.class, ParameterMode.IN);
    call.addParameter("string0", stringQName, String.class, ParameterMode.IN);
    call.addParameter("string1", stringQName, String.class, ParameterMode.IN);
    * Set definition of the return type.
    call.setReturnType(stringQName);
    Object[] inParams = new Object[3];
    inParams[0] = new String(agencyID);
    inParams[1] = new String(fileName);
    inParams[2] = new String(xmlString);
    String result = ((String)call.invoke(inParams)).toString();
    System.out.println(result);
    }catch (Exception e){
    e.printStackTrace();
    Please give your suggestions for the above said exception....
    Thanks & Regards....

  • Exception while lookup connectionFactory

    Dear all,
              I am working with Weblogic81SP2 on AIX52 machine. I got strange exception while lookup ConnectionFactory. Same package deployed with Weblogic81SP2 on Solaris without problem. Please help!
              Thanks,
              -Ken
              2004-08-26 08:27:23,955 [Thread-33] ERROR ConnectionFactory: javax.naming.NamingException [Root exception is java.rmi.RemoteException: weblogic.jms.frontend.FEConnectionFactory]
              javax.naming.NamingException. Root exception is java.rmi.RemoteException: weblogic.jms.frontend.FEConnectionFactory
              at weblogic.jndi.internal.WLEventContextImpl.copyObject(WLEventContextImpl.java(Compiled Code))
              at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:237)
              at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:336)
              at javax.naming.InitialContext.lookup(InitialContext.java:361)

    Thanks guys!
              here is the config.xml
              <?xml version="1.0" encoding="UTF-8"?>
              <Domain ConfigurationVersion="8.1.2.0" Name="aix_64">
              <Server JavaCompiler="/usr/java14_64/bin/javac" ListenAddress=""
              ListenPort="7168" Name="myserver" NativeIOEnabled="true"
              ReliableDeliveryPolicy="RMDefaultPolicy" ServerVersion="8.1.2.0">
              <SSL Enabled="false" HostnameVerificationIgnored="false"
              IdentityAndTrustLocations="KeyStores" Name="myserver"/>
              <IIOP DefaultMinorVersion="2" Name="myserver"/>
              </Server>
              <ExecuteQueue Name="default" ThreadCount="30"/>
              <JMSFileStore Directory="rmfilestore" Name="FileStore"/>
              <WSReliableDeliveryPolicy DefaultRetryCount="10"
              DefaultTimeToLive="60000" Name="RMDefaultPolicy" Store="FileStore"/>
              <Security Name="aix_64" PasswordPolicy="wl_default_password_policy"
              Realm="wl_default_realm" RealmSetup="true"/>
              <EmbeddedLDAP
              Credential="{3DES}" Name="aix_64"/>
              <SecurityConfiguration
              Credential="{3DES}"
              Name="aix_64" RealmBootStrapVersion="1"/>
              <Realm FileRealm="wl_default_file_realm" Name="wl_default_realm"/>
              <FileRealm Name="wl_default_file_realm"/>
              <PasswordPolicy Name="wl_default_password_policy"/>
              <JMSServer Name="WSStoreForwardInternalJMSServermyserver"
              Store="FileStore" Targets="myserver">
              <JMSQueue CreationTime="1089406587348"
              JNDIName="jms.internal.queue.WSStoreForwardQueue"
              JNDINameReplicated="false" Name="WSInternaljms.internal.queue.WSStoreForwardQueuemyserver"/>
              <JMSQueue CreationTime="1089406587895"
              JNDIName="jms.internal.queue.WSDupsEliminationHistoryQueue"
              JNDINameReplicated="false" Name="WSInternaljms.internal.queue.WSDupsEliminationHistoryQueuemyserver"/>
              </JMSServer>
              <JDBCConnectionPool CapacityIncrement="2"
              DriverName="weblogic.jdbcx.oracle.OracleDataSource"
              InitialCapacity="10" MaxCapacity="150" Name="wpConnectionPool"
              Password="{3DES}"
              Properties="user=abc;portNumber=5004;SID=TestDB;serverName=shoshone"
              RemoveInfectedConnectionsEnabled="true"
              SupportsLocalTransaction="true" Targets="myserver"
              TestConnectionsOnRelease="false" TestConnectionsOnReserve="true"
              TestTableName="Test" URL="jdbc:bea:oracle://shoshone:5004"/>
              <JDBCTxDataSource JNDIName="weblogic.jdbc.jts.WPDS"
              Name="wpDataSource" PoolName="wpConnectionPool" Targets="myserver"/>
              <JMSConnectionFactory JNDIName="jms/wpConnectionFactory"
              Name="wpConnectionFactory" Targets="myserver" XAConnectionFactoryEnabled="true"/>
              <JMSServer Name="wpJMSServer" Targets="myserver">
              <JMSQueue CreationTime="1091458620832"
              JNDIName="queue/wpServAutoActQueue" Name="wpServAutoActQueue"/>
              <JMSQueue CreationTime="1091458680382"
              JNDIName="queue/wpUtilQueue" Name="wpUtilQueue"/>
              </JMSServer>
              <Application Name="_appsdir_wpServerPlus_ear"
              Path="/users/bea_aix/user_projects/domains/aix_64/applications/wpServerPlus.ear"
              StagedTargets="myserver" StagingMode="stage" TwoPhase="true">
              <EJBComponent Name="wpServer.jar" Targets="myserver" URI="wpServer.jar"/>
              <WebAppComponent Name="wpMonitor" Targets="myserver" URI="wpMonitor.war"/>
              <WebAppComponent Name="wp" Targets="myserver" URI="wpClientServlet.war"/>
              <WebAppComponent Name="wpServices" Targets="myserver" URI="wpServices.war"/>
              <WebAppComponent Name="wpConsole" Targets="myserver" URI="wpConsole.war"/>
              <EJBComponent Name="WFInterf.jar" Targets="myserver" URI="WFInterf.jar"/>
              <EJBComponent Name="opcenterejb.jar" Targets="myserver" URI="opcenterejb.jar"/>
              <WebAppComponent Name="opCenterProxy" Targets="myserver" URI="opcenterproxy.war"/>
              </Application>
              </Domain>

  • New-AzureDeployment - Error while copying content to a stream

    Hi All,
    I am trying to deploy a packages using the Azure Powershell Cmdlets.
    Each time I try to deploy a particular package, I get the following error message..
    New-AzureDeployment : Error while copying content to a stream.
    At line:1 char:1
    + New-AzureDeployment -DoNotStart -ServiceName $strStagingCCPDeploymentServiceName ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [New-AzureDeployment], HttpRequestException
        + FullyQualifiedErrorId : System.Net.Http.HttpRequestException,Microsoft.WindowsAzure.Commands.ServiceManagement.HostedServices.NewAzureDeploymentCommand
    Looking at the inner exception I am getting
    Unable to read data from the transport connection: The connection was closed.
    The package itself is only 80mb and uploads to my blob storage successfully however when it tries to deploy using my config file the error occurs.  The same config file works fine if I use the Azure Website to deploy the package, rather than the cmdlets
    and I can deploy other packages successfully using PowerShell and using Visual Studio.
    Thank you for any help you can provide.

    Hi,
    This seems to be a network issue, but it's quite strange as you can deploy the package from Visual Studio. Could you please try it on another machine (in another network environment if possible)? Also, can you try
    to write a program and call the management API (http://msdn.microsoft.com/en-us/library/windowsazure/ee460813.aspx) to deploy it?
    Best Regards,
    Ming Xu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • OC4J_10.1.3 (Exception while calling a webservice from another webservice)

    I have the following situation --
    1. I have two WebServices A and B deployed onto OC4J_10.1.3
    They both work when I test them using the test service
    2. My real need is to call webservice A from B. So I created a proxy for A using JDEV
    and deployed into OC4J. Now when I use the test service and call methods on B as before it does not work. I get the following exceptions when I try to instantiate the stub.
    WebServiceASoapHttpPortClient myPort = new WebServiceASoapHttpPortClient();
    SEVERE: caught exception while handling request: java.lang.NoSuchMethodError: oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<init>(Ljavax/xml
    /namespace/QName;ZZLjavax/xml/namespace/QName;Ljava/lang/String;Z)V java.lang.NoSuchMethodError: oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<init>(Ljavax/xml/namespace/QName;ZZLjavax/xml/namespace/QName;Ljava/lang/Stri
    ng;Z)V
    It seems as though OC4J is not able to find LiteralFragmentSerializer methods. But wsclient.jar must be available on OC4J's CLASSPATH.
    My webservice is very simple and the encoding is SOAP1.1 (Document/Literal).
    Any insights ?
    Thanks very much.
    --venkat                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Have you tried downloading and installing wsclient_extended.jar instead of wsclient.jar?

Maybe you are looking for

  • F4 help for a field in alv grid

    hello friends,                     i want to make one of the fields of my alv grid as editable and i want f4 help option also available for it, can v do it, if yes how??? pls explain through code               thanks

  • Unicode text in PDF

    I have gone through some threads about japanese/chinease text in PDF. my application creates PDF files. In my application text is stored in UNICODE form. currently the text (for Tj) is convered to char* which is locale dependant. I need to store text

  • Date range in report output

    Hi Abaper, I have a requirment to display range of date in report output . I have fixed output to 7 days. when ever i input date range 7 days its display fine but when i input 3 days the report output date is display upto 3 is fine but in 5th to 7th

  • IPad 2 sound problems

    I no longer get sounds ( alerts, keyboard, FaceTime rings,etc.). I have voice, so the overall sound works. Any ideas?

  • Oracle10g Installation problem Solaris 10

    I have tried to install Oracle 10G on Solaris 10 but it failed at Starting Database Control, So for fresh installation I have uninstalled Oracle and by mistake removed the oraInventory directory also. Now when I run ./runInstaller getting the followi