Sun.io.MalformedInputException

I am trying to open a java source code in Oracle JDeveloper 9.0.3.1 and am receiving this exception!
What does this mean?
I am able to open the same java source code in any other normal text editor!
Is this a JDeveloper bug?
sun.io.MalformedInputException
     int sun.io.ByteToCharUTF8.convert(byte[], int, int, char[], int, int)
          ByteToCharUTF8.java:152
     int java.io.InputStreamReader.convertInto(char[], int, int)
          InputStreamReader.java:137
     int java.io.InputStreamReader.fill(char[], int, int)
          InputStreamReader.java:186
     int java.io.InputStreamReader.read(char[], int, int)
          InputStreamReader.java:249
     void oracle.javatools.buffer.UnsynchronizedReader.fillBuffer()
          UnsynchronizedReader.java:162
     int oracle.javatools.buffer.UnsynchronizedReader.read()
          UnsynchronizedReader.java:85
     char[] oracle.javatools.buffer.AbstractTextBuffer.normalizeEOL(java.io.Reader, boolean)
          AbstractTextBuffer.java:1408
     void oracle.javatools.buffer.AbstractTextBuffer.read(java.io.Reader)
          AbstractTextBuffer.java:1261
     void oracle.ide.model.TextNode.loadURLContentIntoBuffer()
          TextNode.java:507
     void oracle.ide.model.TextNode.reopen()
          TextNode.java:218
     void oracle.ide.model.TextNode.open()
          TextNode.java:150
     oracle.javatools.buffer.TextBuffer oracle.ide.model.TextNode.acquireTextBuffer()
          TextNode.java:375
     void oracle.jdeveloper.ceditor.CodeEditor.initializeEditor(oracle.ide.addin.Context)
          CodeEditor.java:1238
     void oracle.jdeveloper.ceditor.CodeEditor.setContext(oracle.ide.addin.Context)
          CodeEditor.java:786
     oracle.ide.editor.Editor oracle.ideimpl.editor.EditorManagerImpl.createEditor(java.lang.Class, oracle.ide.addin.Context)
          EditorManagerImpl.java:1357
     oracle.ide.editor.Editor oracle.ideimpl.editor.EditorManagerImpl.openEditorInFrame(java.lang.Class, oracle.ide.addin.Context)
          EditorManagerImpl.java:646
     oracle.ide.editor.Editor oracle.ideimpl.editor.EditorManagerImpl.openDefaultEditorInFrame(oracle.ide.addin.Context)
          EditorManagerImpl.java:622
     boolean oracle.ideimpl.editor.EditorManagerImpl.handleDefaultAction(oracle.ide.addin.Context)
          EditorManagerImpl.java:2243
     boolean oracle.ide.ContextMenu.fireDefaultAction(oracle.ide.addin.Context)
          ContextMenu.java:343
     void oracle.ideimpl.explorer.BaseTreeExplorer.fireDefaultAction(java.awt.event.InputEvent)
          BaseTreeExplorer.java:1202
     void oracle.ideimpl.explorer.BaseTreeExplorer.dblClicked(java.awt.event.MouseEvent)
          BaseTreeExplorer.java:1448
     void oracle.ideimpl.explorer.BaseTreeExplorer.mouseReleased(java.awt.event.MouseEvent)
          BaseTreeExplorer.java:1469
     void oracle.ideimpl.explorer.CustomTree.processMouseEvent(java.awt.event.MouseEvent)
          CustomTree.java:171
     void java.awt.Component.processEvent(java.awt.AWTEvent)
          Component.java:3544
     void java.awt.Container.processEvent(java.awt.AWTEvent)
          Container.java:1164
     void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
          Component.java:2593
     void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
          Container.java:1213
     void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
          Component.java:2497
     void java.awt.LightweightDispatcher.retargetMouseEvent(java.awt.Component, int, java.awt.event.MouseEvent)
          Container.java:2451
     boolean java.awt.LightweightDispatcher.processMouseEvent(java.awt.event.MouseEvent)
          Container.java:2216
     boolean java.awt.LightweightDispatcher.dispatchEvent(java.awt.AWTEvent)
          Container.java:2125
     void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
          Container.java:1200
     void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
          Window.java:922
     void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
          Component.java:2497
     void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
          EventQueue.java:339
     boolean java.awt.EventDispatchThread.pumpOneEventForHierarchy(java.awt.Component)
          EventDispatchThread.java:131
     void java.awt.EventDispatchThread.pumpEventsForHierarchy(java.awt.Conditional, java.awt.Component)
          EventDispatchThread.java:98
     void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
          EventDispatchThread.java:93
     void java.awt.EventDispatchThread.run()
          EventDispatchThread.java:85
Thanks in advance!

sun.io.MalformedInputException
This exception appears when running the follwing code:
inputReader is obtained from a document that is tranfered via FTP to IFS.
This error appears only when running on a Solaris platform (I tested with a windows platform and it work fine).
Oracle version is 9i, IFS1.1
Thanx This is how I obtain the Reader. This class is an Ifs Agent that respond to create events.
public void processEvent(IfsEvent event) throws IfsException{
Long objectId = event.getId();
PublicObject po = getSession().getPublicObject(objectId);
Document doc = (Document)po.getResolvedPublicObject();
BufferedReader br = new BufferedReader(doc.getContentReader());
someClass.readDocument(br);
public boolean readDocument(Reader inputReader){
FolderPathResolver resolver = new FolderPathResolver(ifsSession);
BufferedReader bufferReader=new BufferedReader(inputReader);
String line = "";
StringBuffer file = new StringBuffer(1024);
while ((line = bufferReader.readLine()) != null){
file.append(line);
I think that is something related to Reader but I don't know what....

Similar Messages

  • JMS adapter :MQ series : sun.io.MalformedInputException

    Hi
    we are using SAP XI to read file from
    MQ Queues.we are getting error in our sender communication channel :
    Error converting Message : sun.io.MalformedInputException
    failed to get message from MQ queue  Code : MQJMS2002.
    till now steps taken :-
    - content coversion parameters heve been cross checked.
    - we have checked the data format utf-8 or 16.
    - cache refreshin XI
    - checked the source file format  from the respective team.
    - tested  other interface JMS channel, with no issues in JMS driver.
    - checked the MQ error code list for code MQJMS2002 type
    we have gone some similar threads avaliable in sdn with respective answers...   but  issue still un resolved...
    [JMS Error MalformedInputException]
    i had used these following parameters in Module Configuration
    Transform.Class
    TransformContentType
    xml.conversionType
    xml.documentName
    xml.documentNamespace
    xml.fieldNames
    xml.fieldSeparator
    xml.processFieldNames
    xml.structureTitle
    xml.endSeparator
    and Module Key : PlainToXML
    Regards,
    Ashutosh R

    Thx Chidambaram
    I am working on the point which , you have given, but one thing
    we discovered that some time the file from MQ queue is readed
    sucessfully,but later it is failing with the same error......
    and this is random...
    we are putting the same file  both readed/failed  ....
    we activated the OS level traces and found out the error details...
    #1.5#00145E9C5A91028D00000000000CC0D200044B85AFFE21CB#1208937462243#com.sap.aii.af.service.jms.WorkerImpl##com.sap.aii.af.service.jms.WorkerImpl.onException(JMSException jmsException)#J2EE_GUEST#0####f36e7330110a11dd8eb600145e9c5a91#Thread[Thread-585,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Path##Java###Entering method with ()#1#javax.jms.JMSException: MQJMS2002: failed to get message from MQ queue#
    #1.5#00145E9C5A91028D00000001000CC0D200044B85AFFE2261#1208937462243#com.sap.aii.af.service.jms.WorkerImpl##com.sap.aii.af.service.jms.WorkerImpl.onException(JMSException jmsException)#J2EE_GUEST#0####f36e7330110a11dd8eb600145e9c5a91#Thread[Thread-585,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Debug#1#/Applications/ExchangeInfrastructure/AdapterFramework/Services/JMS_ROOT#Plain###onException() was called in this worker instance: com.sap.aii.af.service.jms.WorkerJMSReceiver@735cdff5#
    #1.5#00145E9C5A91028D00000002000CC0D200044B85AFFE22C9#1208937462244#com.sap.aii.af.service.jms.WorkerImpl##com.sap.aii.af.service.jms.WorkerImpl.onException(JMSException jmsException)#J2EE_GUEST#0####f36e7330110a11dd8eb600145e9c5a91#Thread[Thread-585,5,SAPEngine_Application_Thread[impl:3]_Group*  ##0#0#Warning#1#/Applications/ExchangeInfrastructure/AdapterFramework/Services/JMS_ROOT#Java###JMS Connection Error (Provider ErrorCode: )#1#MQJMS2002 #1.5#00145E9C5A91028D00000004000CC0D200044B85AFFE2395#1208937462244#com.sap.aii.af.service.jms.WorkerImpl##com.sap.aii.af.service.jms.WorkerImpl.onException(JMSException jmsException)#J2EE_GUEST#0####f36e7330110a11dd8eb600145e9c5a91#Thread[Thread-585,5,SAPEngine_Application_Thread[impl:3]_Group]##0#0#Debug#1#/Applications/ExchangeInfrastructure/AdapterFramework/Services/JMS_ROOT#Java###Reconnect delay is set to milliseconds (-1 = switched off)#1#1000#
    Any clue from the trace..
    Regards,
    Ashutosh
    Edited by: ashutosh rawat on Apr 25, 2008 8:19 AM

  • Problems with FTP receiver adapter - sun.io.MalformedInputException

    Hi,
    I have to put ascii-files from our XI in germany to a FTP-server in the usa. If I use binary/binary for both options in the adapter config, the files on the target ftp are not usable (only @@@@ appear). If I use text/text (with- or without specifying the codepage) I get in the adapter-monitoring the error
    sun.io.MalformedInputException
    Has anyone got an idea ?
    Thanks a lot !
    werner

    Hi,
    Here is a some external thread talking about the same.
    Re: Smartform and Idoc
    http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,5754,00.html
    It may be useful.
    Regards,
    moorthy

  • Sun.io.MalformedInputException (content conversion)

    Hi
    In my content conversion the flat files have a line separator as ‘ . It gives me an exception
    " Conversion of file content to XML failed at position 0: sun.io.MalformedInputException"
    but when i change the ‘ to ' it works without any error. Did anybody face this issue ?

    my mistake

  • Error converting Message: 'sun.io.MalformedInputException';nested exception

    Hi All,
            I am using a File to mail scenario, My test file is getting picked up, but is not reflecting in SXMB_MONI and in runtime workbench it is showing like this
    Retry 14. Message initiation failed: Transform: failed to execute the transformation: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'sun.io.MalformedInputException'; nested exception caused by: sun.io.MalformedInputException.
    Can anybody help me out? In the module tab I am using it is an UTF-8, I have checked using US-ASCII, UTF-16, It is showing me the same error.
    Edited by: uday kumar on Mar 10, 2009 9:32 AM

    Hi Uday,
    Please see this explaination from help.sap.com. Hope it will help you to understand the problem.
    File Type
    Specify the document data type.
    ○       Binary
    ○       Text
    Under File Encoding, specify a code page.
    The default setting is to use the system code page that is specific to the configuration of the installed operating system. The file content is converted to the UTF-8 code page before it is sent.
    Permitted values for the code page are the existing Charsets of the Java runtime. According to the SUN specification for the Java runtime, at least the following standard character sets must be supported:
    US-ASCII
    Seven-bit ASCII, also known as ISO646-US, or Basic Latin block of the Unicode character set
    ISO-8859-1
    ISO character set for Western European languages (Latin Alphabet No. 1), also known as ISO-LATIN-1
    UTF-8
    8-bit Unicode character format
    UTF-16BE
    16-bit Unicode character format, big-endian byte order
    UTF-16LE
    16-bit Unicode character format, little-endian byte order
    UTF-16
    16-bit Unicode character format, byte order
    Check which other character sets are supported in the documentation for your Java runtime implementation.
    XML text documents generally contain their own code page description and should be treated as Binary data type.
    go with the Binary File type option if don't require any content encoding in your scenario.
    regards
    Ashwin
    Edited by: ashwin dhakne on Mar 10, 2009 3:22 PM

  • Sun.io.MalformedInputException - wow

    Anybody seen one of these before?
    sun.io.MalformedInputException
      at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java)
      at java.io.InputStreamReader.convertInto(InputStreamReader.java:127)
      at java.io.InputStreamReader.fill(InputStreamReader.java:176)
      at java.io.InputStreamReader.read(InputStreamReader.java:256)
      at java.io.BufferedReader.fill(BufferedReader.java:158)
      at java.io.BufferedReader.read1(BufferedReader.java:206)
      at java.io.BufferedReader.read(BufferedReader.java:280)
      at RecordReader.readRecord
      at Interpreter.interpret
      at NessDataManager.loadWas reading in a .csv file and it stopped rather abruptly with the above. Searched google for sun.io or sun api and not getting much.
    any help appreciated.
    m

    InputStreamReader converts bytes to chars (unicode) using a specified charset . I think the default is UTF-8 unless specified. It looks like the format of your inputfile does not match the UTF-8 format. You can specfiy the encoding when you create the InputStreamReader. Check the available constructors in the javadoc:
    http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStreamReader.html

  • Exception sun.io.MalformedInputException: Reversed byte-order mark

    Hi,
    I came across exception sun.io.MalformedInputException when tried to render a MIME message. How to handle / resolve this exception
    Any help would be greatle appreciated
    Thanks,
    Amit
    Message was edited by:
    amitsutar

    JDK 1.4 (at least) and newer seem to support that charset.
    If you don't think they're supporting it correctly, I would need
    more data, preferrably including a reproducible test case.
    You can easily write a program that uses that charset and
    writes data to a file, which you can compare with the data
    you have, or send that file as a mail attachment and see if
    JavaMail can read it.

  • Where is sun.io.MalformedInputException

    where can i find the class?
    in which java file or jar?

    So, sounds like you have a character encoding problem.you are right.
    I'm trying to transplant my development environment from windows 2000 to Red Hat linux 9. There may be some problems in Chinese character encoding standard. How can I set the encoding standard?
    Thank you

  • Sender Mail adapter encounters MalformedInputException

    I have a sender mail adapter that processes the attached .csv file.  All is working fine.  I use FCC in module to convert the attachment and pass to an IDOC adapter for processing in SAP system.
    My problem is sometimes the sender mail CC fails with ...........
    exception caught during processing mail message[1]; com.sap.aii.af.mp.module.ModuleException: Transform: failed to execute the transformation: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'sun.io.MalformedInputException'; nested exception caused by: sun.io.MalformedInputException caused by: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'sun.io.MalformedInputException'; nested exception caused by: sun.io.MalformedInputException
    It only fails with some files.  At the moment when we test we FORWARD the email to our email account.  If I detach the failed email attachment and attach it to a NEW email it will then work.
    So why does it not work when forwarding emails?  But it works when I attach the same file to a new email and send?
    Other threads for this error seem to point to encoding.  But how do I know which to use.  I currently use the following in my module config:
    Transfer.ContentType     application/octet-stream;charset="ISO-8859-1"

    I have this in my configuration:
    localejbs/AF_Modules/PayloadSwapBean   on local
    TRANSFORM
    localejbs/AF_Modules/MessageTransformBean   on local
    txtxml
    TRANSFORM   swap.keyName   payload-name
    TRANSFORM   swap.keyValue   MailAttachment-1
    txtxml   Transfer.ContentType   application/octet-stream;charset="ISO-8859-1"
    txtxml   Transform.Class   com.sap.aii.messaging.adapter.Conversion
    txtxml   Transform.ContentDescription   MailAttachment-1
    txtxml   Transform.ContentDisposition   attachment;filename="MailAttachment-1.bin"
    txtxml   xml.conversionType   SimplePlain2XML
    txtxml   xml.documentName   MT_BCD_INVOICES
    txtxml   xml.documentNamespace   urn://federalmogul.com/BCDTRAVEL/FINGLOBCD001/00
    txtxml   xml.fieldNames   COST_CENTRE,EMPLOYEE_ID,PRODUCT_GROUP,COMP_CODE,BCD_ACCOUNT,INVOICE_DATE,TRAVELER_NAME,TRAVELER_FIRST_NAME,INVOICE_NO,AMOUNT_EXCL_VAT,CURRENCY1,AMOUNT_VAT,CURRENCY2,AMOUNT_DOC_CURRENCY,CURRENCY3
    txtxml   xml.fieldSeparator   ;
    txtxml   xml.lastFieldsOptional   YES
    txtxml   xml.processFieldNames  fromConfiguration
    txtxml   xml.structureTitle   RECORDSET

  • MalformedInputException Error in Adapter module for SFTP channel

    Dear All,
    I am using MessageTransformBean in adapter module for Plain to XML conversion. The channel works fine in all the cases but when I recieve     "  ì " or few more special characters in the file my channel does not pick file and show below error.
    Error: com.aedaptive.adapter.sftp.SFTPException : Aborting processing: com.sap.aii.af.mp.module.ModuleException: Transform: failed to execute the transformation: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'sun.io.MalformedInputException'; nested exception caused by: sun.io.MalformedInputException caused by: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'sun.io.MalformedInputException'; nested exception caused by: sun.io.MalformedInputException
    I am using below parameter value in adapter module.
    Transform.Class : com.sap.aii.messaging.adapter.Conversion
    Transform.ContentType : text/xml;charset=ISO-8859-1
    Please help me if any of you have faces such error in your developments.
    Avanish

    Hi Grzegorg,
    I have tried using UTF-8 encoding in my channel but this doesn't work. Communication cahnnel is still giving same problem.
    Error: com.aedaptive.adapter.sftp.SFTPException : Aborting processing: com.sap.aii.af.mp.module.ModuleException: Transform: failed to execute the transformation: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'sun.io.MalformedInputException'; nested exception caused by: sun.io.MalformedInputException caused by: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'sun.io.MalformedInputException'; nested exception caused by: sun.io.MalformedInputException
    The file which we are trying to process have character  Ì and as far as my serach is concerned i think this belongs to charset ISO-8859-1.
    Any more suggestion Guys to solve this problem.
    Thanks and Regards
    Avanish

  • Error Message: Conversion of file content to XML failed at position 0: sun.

    Hi Experts,
    i strugle with a File 2 IDOC Scenario.
    In the sender communication channel monitoring I get the error message:
    Conversion of file content to XML failed at position 0: sun.io.MalformedInputException
    Unfortunately I am not getting any further information and I do not know where the file-adapters problem is.
    Tthe .fieldSeparator = # . Can this be the problem, that the file-adapter-engine can not handle # within file conversion? I also tried it with .fieldSeparator = '#' . But the error message is the same.
    I am glad for any hints.
    Thank you for your help in advance.
    Regards,
    Udo

    Hi Udo,
    The error is due to wrong intput.
    putting # might be a reson.
    You Can try (,) or a space as a field separater.
    Can you test this once.
    Have to defined the field separated?
    Regards,
    Sumit Gupta

  • JMS Error MalformedInputException

    Hello,
    I am getting the error bellow in a jms adapter.
    com.sap.aii.adapter.jms.api.channel.filter.MessageFilterException: Error converting Message: sun.io.MalformedInputException: TransformException: Error converting Message: 'sun.io.MalformedInputException' at com.sap.aii.adapter.jms.core.channel.filter.SendToModuleProcessorFilter.filter(SendToModuleProcessorFilter.java:94) ...
    I have double checked the jms configuration and it looks like in <b>version 7.0</b>:
    localejbs/SAP XI JMS Adapter/ConvertJMSMessageToBinary        ReceiveMsg
    localejbs/SAP XI JMS Adapter/ConvertBinaryToXMBMessage        ConvertMsg
    localejbs/AF_Modules/MessageTransformBean                            Plain2XML
    localejbs/CallSapAdapter                                                            0
    I checked in the module configuration table that the fields and lengths are matched and I also checked that the sample file format is saved as utf before putting it in the queue as the declaration in this table (text/xml;charset=utf-8)
    Does anybody solved this problem before?
    Thank you for your time.

    Hello Yaghya Nana,
    I need to do a conversion into xml fomat because after this step the incoming message is mapped to another structure via graphical mapping.
    To set up the channel I have used the doc https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bfc7d12f891
    the inbound structure of mygraphical mapping is identical to the page four.
    I think that the problem is in the file but I don´t know what else can I check.
    Thank you for your quick answer

  • KM Content Edit Online Error: MalformedInputException

    When I tried to use the "Edit Online" for one of the html file that I created using MS Word (then Save As web page-html) in KM content folder.
    It appears as the following error:
    [code]
    sun.io.MalformedInputException
            at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java(Compiled Code))
            at sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java(Inlined Compiled Code))
            at sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java(Compiled Code))
            at sun.nio.cs.StreamDecoder.read(StreamDecoder.java(Compiled Code))
            at java.io.InputStreamReader.read(InputStreamReader.java(Compiled Code))
            at java.io.BufferedReader.fill(BufferedReader.java(Compiled Code))
            at java.io.BufferedReader.readLine(BufferedReader.java(Compiled Code))
            at java.io.BufferedReader.readLine(BufferedReader.java(Compiled Code))
            at com.sapportals.wcm.control.edit.ResourceHtmlEditorControl.getContent(ResourceHtmlEditorControl.java:1032)
            at com.sapportals.wcm.control.edit.ResourceHtmlEditorControl.renderContent(ResourceHtmlEditorControl.java:1247)
            at com.sapportals.wcm.control.edit.ResourceHtmlEditorControl.render(ResourceHtmlEditorControl.java:440)
            at com.sapportals.wcm.control.edit.ResourceEditOnlineDescisionControl.render(ResourceEditOnlineDescisionControl.java:196)
            at com.sapportals.wdf.layout.HorizontalLayout.renderControls(HorizontalLayout.java(Compiled Code))
            at com.sapportals.wdf.stack.Pane.render(Pane.java(Compiled Code))
            at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java(Inlined Compiled Code))
            at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java(Compiled Code))
            at com.sapportals.wdf.stack.Pane.render(Pane.java(Compiled Code))
            at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java(Inlined Compiled Code))
            at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java(Compiled Code))
            at com.sapportals.wdf.stack.Pane.render(Pane.java(Compiled Code))
            at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java(Inlined Compiled Code))
            at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java(Compiled Code))
            at com.sapportals.wdf.stack.Pane.render(Pane.java(Compiled Code))
            at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java(Inlined Compiled Code))
            at com.sapportals.wdf.WdfCompositeController.internalRender(WdfCompositeController.java(Compiled Code))
            at com.sapportals.wdf.WdfCompositeController.buildComposition(WdfCompositeController.java(Compiled Code))
            at com.sapportals.htmlb.AbstractCompositeComponent.preRender(AbstractCompositeComponent.java(Compiled Code))
            at com.sapportals.htmlb.Container.preRender(Container.java(Compiled Code))
            at com.sapportals.htmlb.Container.preRender(Container.java(Compiled Code))
            at com.sapportals.htmlb.Container.preRender(Container.java(Inlined Compiled Code))
            at com.sapportals.portal.htmlb.PrtContext.render(PrtContext.java(Compiled Code))
            at com.sapportals.htmlb.page.DynPage.doOutput(DynPage.java(Compiled Code))
            at com.sapportals.wcm.portal.component.base.KMControllerDynPage.doOutput(KMControllerDynPage.java(Compiled Code))
            at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java(Compiled Code))
            at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java(Compiled Code))
            at com.sapportals.wcm.portal.component.base.ControllerComponent.doContent(ControllerComponent.java(Compiled Code))
            at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java(Compiled Code))
            at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java(Compiled Code))
            at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java(Compiled Code))
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java(Compiled Code))
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java(Compiled Code))
            at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java(Compiled Code))
            at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java(Compiled Code))
            at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java(Compiled Code))
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java(Compiled Code))
            at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java(Compiled Code))
            at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java(Compiled Code))
            at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java(Compiled Code))
            at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java(Compiled Code))
            at java.security.AccessController.doPrivileged1(Native Method)
            at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
            at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java(Compiled Code))
            at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
            at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java(Compiled Code))
            at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java(Compiled Code))
            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java(Compiled Code))
            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java(Inlined Compiled Code))
            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java(Compiled Code))
            at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java(Compiled Code))
            at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java(Compiled Code))
            at com.sap.engine.services.httpserver.server.Client.handle(Client.java(Inlined Compiled Code))
            at com.sap.engine.services.httpserver.server.Processor.request(Processor.java(Compiled Code))
            at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java(Compiled Code))
            at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java(Compiled Code))
            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java(Compiled Code))
            at java.security.AccessController.doPrivileged1(Native Method)
            at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java(Compiled Code))
            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java(Compiled Code))
    [/code]
    I understand that it is related to the Unicode type of the file. In this case, how do I fix the problem and allow the file to be able to edit online or locally?
    Thanks,
    Kent

    HTML from word and other code generators doesn't work fine with online HTML editor.
    Only HTML files created using the Online HTML editor will work fine.
    Check help documentation http://help.sap.com/saphelp_nw04s/helpdata/en/e6/62f8cb7afd764e9600360257202bc1/content.htm
    "You can use the HTML editor to create or change texts with simple formatting online. This is a ‘what you see is what you get’ editor."
    You have to used edit locally in your case.
    Regards,
    Prasanna Krishnamurthy

  • MalformedInputException

    Dear Fellows,
    when I try to run the following code it throughs an Exception
    (sun.io.MalformedInputException: Missing byte-order mark)
    //Code starts here
    import java.io.*;
    public class TestClass {
    public static void main(String args[]){
    File file = new File("res/test1.txt");
    try{
         BufferedReader inbound = new BufferedReader(new InputStreamReader(new FileInputStream(file), "Unicode"));
         int b = inbound.read();
         System.out.println(b);
    }catch(Exception ex){
         System.out.println(ex);
    //Code ends here
    The file test1.txt has the following data inside the "";
    "� �H,*I��,.���*K�7��s/�/-(f7dg�M�KLO�M�+agg�p�w� �([/   "
    I will be very much greate ful if some body could help me.

    BufferedReader inbound = new BufferedReader(newInputStreamReader(new FileInputStream(file),
    "Unicode"));
    Try to use "UnicodeLittle" or "UnicodeBig" instead of
    "Unicode".Thanks. Its working fine&#9786;

  • Exception: com.sun.media.jai.util.ServiceConfigurationError

    I've developed an applet that uses javax.media.jai. API. When it's compiled and ran through Microsoft's IIS and from the command line it works fine. The final place for this applet, though, is on a Linux server. When it's compiled and ran from the shell it runs fine. But through Apache i get this error.
    com.sun.media.jai.util.ServiceConfigurationError: javax.media.jai.OperationRegistrySpi: : sun.io.MalformedInputException
         at com.sun.media.jai.util.Service.fail(Service.java:127)
         at com.sun.media.jai.util.Service.parse(Service.java:206)
    I know that the problem line is:
    PlanarImage im = (PlanarImage)JAI.create ("AWTImage", pb);
    Also, that both servers JSDK's and JRE's were installed correctly.
    And, that the needed registerFile.jai is located in the right place.
    I've been stumped by this for a week and can't find info on the com.sun.media.jai.util.ServiceConfigurationError class or javax.media.jai.OperationRegistrySpi class.

    Hi ,
    I am getting the similar error -
    I have an applet which displays a tiff image and allows the user to magnify , rotate , invert , zoom or print the displayed image . The applet uses JAI 1.1 API and jre plugin -1.3.0_0.1. It works fine when loaded in IE but with netscape (version 4.5/6.0) it throws the exception :-
    com.sun.media.jai.util.ServiceConfigurationError: javax.media.jai.OperationRegistrySpi: https://xyz/javatiffviewer/META-INF/services/javax.media.jai.OperationRegistrySpi:1: Illegal configuration-file syntax
         at com.sun.media.jai.util.Service.fail(Service.java:127)
         at com.sun.media.jai.util.Service.fail(Service.java:133)
         at com.sun.media.jai.util.Service.parseLine(Service.java:155)
         at com.sun.media.jai.util.Service.parse(Service.java:204)
         at com.sun.media.jai.util.Service.access$100(Service.java:118)
         at com.sun.media.jai.util.Service$LazyIterator.hasNext(Service.java:255)
         at javax.media.jai.OperationRegistry.registerServices(OperationRegistry.java:2031)
         at javax.media.jai.ThreadSafeOperationRegistry.registerServices(ThreadSafeOperationRegistry.java:620)
         at javax.media.jai.OperationRegistry.initializeRegistry(OperationRegistry.java:371)
         at javax.media.jai.JAI.<clinit>(JAI.java:382)
         at javax.media.jai.OpImage.<init>(OpImage.java:230)
         at javax.media.jai.PointOpImage.<init>(PointOpImage.java:374)
         at javax.media.jai.PointOpImage.<init>(PointOpImage.java:404)
         at javax.media.jai.NullOpImage.<init>(NullOpImage.java:108)
         at javax.media.jai.NullOpImage.<init>(NullOpImage.java:156)
         at TiffApplet.CReadImage.separateImages(CReadImage.java:185)
         at TiffApplet.CReadImage.checkForNoOfImages(CReadImage.java:149)
         at TiffApplet.CReadImage.<init>(CReadImage.java:68)
         at TiffApplet.CTIFFViewer.showImage(CTIFFViewer.java:259)
         at TiffApplet.CTIFFViewer.start(CTIFFViewer.java:191)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Can you please, suggest a solution .
    Thanks ,
    Navneet

Maybe you are looking for