Portal 6 XMLAccess deploy portlet script issue -sun.io.MalformedInputException - Websphere

This is a discussion on Portal 6 XMLAccess deploy portlet script issue -sun.io.MalformedInputException - Websphere ; Hi everyone, I have a problem with an XMLAccess script I am trying to use to deploy a custom portlet to a WebSphere Portal 6.0.0.1 server. Essentially XMLAccess is having problems parsing what I assume is the XMLAccess script and ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: Portal 6 XMLAccess deploy portlet script issue -sun.io.MalformedInputException

  1. Portal 6 XMLAccess deploy portlet script issue -sun.io.MalformedInputException

    Hi everyone, I have a problem with an XMLAccess script I am trying to use to deploy a custom portlet to a WebSphere Portal 6.0.0.1 server. Essentially XMLAccess is having problems parsing what I assume is the XMLAccess script and throws a sun.io.MalformedInputException.

    Am I right in thinking this could be a file format or locale issue?

    Heres the stack trace:

    [28/02/07 14:40:48:066 GMT] 00000036 XmlCommandSer E com.ibm.wps.command.xml.XmlCommandServlet doPost EJPFB0002E: Exception occurred.
    com.ibm.wps.command.CommandFailedException: EJPFB0005E: An unexpected exception occurred.
    WrappedException is: com.ibm.wps.command.xml.XmlCommandException: EJPXA0001E: An error occurred while processing the XML configuration request. unknown
    StackTrace of the WrappedException:
    com.ibm.wps.command.xml.XmlCommandException: EJPXA0001E: An error occurred while processing the XML configuration request. unknown
    at com.ibm.wps.command.xml.XmlAccessReader.getRequest SchemaDefinition(XmlAccessReader.java:280)
    at com.ibm.wps.command.xml.XmlUtils.getEngine(XmlUtil s.java:145)
    at com.ibm.wps.command.xml.XmlCommand.execute(XmlComm and.java:154)
    at com.ibm.wps.command.xml.XmlCommandServlet.processI nternal(XmlCommandServlet.java:272)
    at com.ibm.wps.command.xml.XmlCommandServlet.process( XmlCommandServlet.java:260)
    at com.ibm.wps.command.xml.XmlCommandServlet.doPost(X mlCommandServlet.java:214)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:856)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java:1282)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.java:673)
    at com.ibm.ws.webcontainer.servlet.CacheServletWrappe r.handleRequest(CacheServletWrapper.java:89)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest (WebContainer.java:1897)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.read y(WCChannelLink.java:84)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleDiscrimination(HttpInboundLink.java:472)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleNewInformation(HttpInboundLink.java:411)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.ready(HttpInboundLink.java:288)
    at com.ibm.ws.tcp.channel.impl.NewConnectionInitialRe adCallback.sendToDiscriminaters(NewConnectionIniti alReadCallback.java:207)
    at com.ibm.ws.tcp.channel.impl.NewConnectionInitialRe adCallback.complete(NewConnectionInitialReadCallba ck.java:109)
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.reque stComplete(WorkQueueManager.java:566)
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attem ptIO(WorkQueueManager.java:619)
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.worke rRun(WorkQueueManager.java:952)
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worke r.run(WorkQueueManager.java:1039)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava(Compiled Code))
    Caused by: sun.io.MalformedInputException
    at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java( Compiled Code))
    at sun.nio.cs.StreamDecoder$ConverterSD.convertInto(S treamDecoder.java(Inlined Compiled Code))
    at sun.nio.cs.StreamDecoder$ConverterSD.implRead(Stre amDecoder.java(Compiled Code))
    at sun.nio.cs.StreamDecoder.read(StreamDecoder.java(C ompiled Code))
    at java.io.InputStreamReader.read(InputStreamReader.j ava(Compiled Code))
    at com.ibm.wps.command.xml.XmlAccessReader.appendBuff er(XmlAccessReader.java:298)
    at com.ibm.wps.command.xml.XmlAccessReader.getRequest SchemaDefinition(XmlAccessReader.java:214)
    ... 22 more


    And here is the script:






    file:///c:/deploy/deploytest.war








    Many thanks if anyone could shed some light!

    Marc

  2. Re: Portal 6 XMLAccess deploy portlet script issue -sun.io.MalformedInputException

    The only obvious problem I see is that you're using an old xsd-file as namespace.
    You should use PortalConfig_1.4.0.1.xsd for WPS 6.0.0.1 but I guess that PortalConfig_1.4.xsd would work as well.

    Here's a reference link for you:
    http://publib.boulder.ibm.com/infoce.../adxmlchg.html

    /Jonas V

  3. Re: Portal 6 XMLAccess deploy portlet script issue - sun.io.MalformedInputException

    On Feb 28, 4:12 pm, marc_dauncey wrote:
    > Hi everyone, I have a problem with an XMLAccess script I am trying to useto deploy a custom portlet to a WebSphere Portal 6.0.0.1 server. Essentially XMLAccess is having problems parsing what I assume is the XMLAccess script and throws a sun.io.MalformedInputException.
    >
    > Am I right in thinking this could be a file format or locale issue?
    >
    > Heres the stack trace:
    >
    > [28/02/07 14:40:48:066 GMT] 00000036 XmlCommandSer E com.ibm.wps.command.xml.XmlCommandServlet doPost EJPFB0002E: Exception occurred.
    > com.ibm.wps.command.CommandFailedException: EJPFB0005E: An unexpected exception occurred.
    > WrappedException is: com.ibm.wps.command.xml.XmlCommandException: EJPXA0001E: An error occurred while processing the XML configuration request. unknown
    > StackTrace of the WrappedException:
    > com.ibm.wps.command.xml.XmlCommandException: EJPXA0001E: An error occurred while processing the XML configuration request. unknown
    > at com.ibm.wps.command.xml.XmlAccessReader.getRequest SchemaDefinition(XmlAcces*sReader.java:280)
    > at com.ibm.wps.command.xml.XmlUtils.getEngine(XmlUtil s.java:145)
    > at com.ibm.wps.command.xml.XmlCommand.execute(XmlComm and.java:154)
    > at com.ibm.wps.command.xml.XmlCommandServlet.processI nternal(XmlCommandServlet*.java:272)
    > at com.ibm.wps.command.xml.XmlCommandServlet.process( XmlCommandServlet.java:26*0)
    > at com.ibm.wps.command.xml.XmlCommandServlet.doPost(X mlCommandServlet.java:214*)
    > at javax.servlet.http.HttpServlet.service(HttpServlet .java:763)
    > at javax.servlet.http.HttpServlet.service(HttpServlet .java:856)
    > at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java:*1282)
    > at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper*.java:673)
    > at com.ibm.ws.webcontainer.servlet.CacheServletWrappe r.handleRequest(CacheServ*letWrapper.java:89)
    > at com.ibm.ws.webcontainer.WebContainer.handleRequest (WebContainer.java:1897)
    > at com.ibm.ws.webcontainer.channel.WCChannelLink.read y(WCChannelLink.java:84)
    > at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleDiscrimination(H*ttpInboundLink.java:472)
    > at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleNewInformation(H*ttpInboundLink.java:411)
    > at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.ready(HttpInboundLink.*java:288)
    > at com.ibm.ws.tcp.channel.impl.NewConnectionInitialRe adCallback.sendToDiscrimi*naters(NewConnectionInit ialReadCallback.java:207)
    > at com.ibm.ws.tcp.channel.impl.NewConnectionInitialRe adCallback.complete(NewCo*nnectionInitialReadCallb ack.java:109)
    > at com.ibm.ws.tcp.channel.impl.WorkQueueManager.reque stComplete(WorkQueueManag*er.java:566)
    > at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attem ptIO(WorkQueueManager.jav*a:619)
    > at com.ibm.ws.tcp.channel.impl.WorkQueueManager.worke rRun(WorkQueueManager.jav*a:952)
    > at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worke r.run(WorkQueueManager.ja*va:1039)
    > at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava(CompiledCode))
    > Caused by: sun.io.MalformedInputException
    > at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java( Compiled Code))
    > at sun.nio.cs.StreamDecoder$ConverterSD.convertInto(S treamDecoder..java(Inlined Compiled Code))
    > at sun.nio.cs.StreamDecoder$ConverterSD.implRead(Stre amDecoder.java(Compiled Code))
    > at sun.nio.cs.StreamDecoder.read(StreamDecoder.java(C ompiled Code))
    > at java.io.InputStreamReader.read(InputStreamReader.j ava(CompiledCode))
    > at com.ibm.wps.command.xml.XmlAccessReader.appendBuff er(XmlAccessReader.java:2*98)
    > at com.ibm.wps.command.xml.XmlAccessReader.getRequest SchemaDefinition(XmlAcces*sReader.java:214)
    > ... 22 more
    >
    > And here is the script:
    >
    >
    >
    >
    >
    >
    > file:///c:/deploy/deploytest.war
    >
    >
    >

    >

    >

    >

    >
    > Many thanks if anyone could shed some light!
    >
    > Marc


    What is the
    in portlet.xml ?

    Regards,

    Giovanni


  4. Re: Portal 6 XMLAccess deploy portlet script issue -sun.io.MalformedInputException

    Thank you, changed that as per your message.

    Still having the same problem - got to be something specific to my portal server, as I think I've eliminated all the obvious things, such as removing trailing spaces and saving files as UTF-8 UNIX format.

    When my colleague runs the script from the same war, XMLAccess script and batch file, it works right away. I'm wondering whether I need to patch my portal server. I recently brought it up to 6.0.0.1 which appeared to be successful. Theres nothing specific in the logs apart from that stack trace.

    Marc

+ Reply to Thread