Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

35 views
Skip to first unread message

marc_dauncey

unread,
Feb 28, 2007, 10:12:49 AM2/28/07
to
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.getRequestSchemaDefinition(XmlAccessReader.java:280)
at com.ibm.wps.command.xml.XmlUtils.getEngine(XmlUtils.java:145)
at com.ibm.wps.command.xml.XmlCommand.execute(XmlCommand.java:154)
at com.ibm.wps.command.xml.XmlCommandServlet.processInternal(XmlCommandServlet.java:272)
at com.ibm.wps.command.xml.XmlCommandServlet.process(XmlCommandServlet.java:260)
at com.ibm.wps.command.xml.XmlCommandServlet.doPost(XmlCommandServlet.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.service(ServletWrapper.java:1282)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:673)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:89)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1897)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:84)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
Caused by: 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 com.ibm.wps.command.xml.XmlAccessReader.appendBuffer(XmlAccessReader.java:298)
at com.ibm.wps.command.xml.XmlAccessReader.getRequestSchemaDefinition(XmlAccessReader.java:214)
... 22 more


And here is the script:

<?xml version="1.0" encoding="UTF-8"?>
<request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PortalConfig_1.3.1.xsd" type="update" create-oids="true">
<portal action="locate">
<!-- As jsr168 portlets don't have a uid defined in the portlet.xml use "projectname.war.webmod" as uid value -->
<web-app action="update" active='true' uid="deploytest.war.webmod">
<url>file:///c:/deploy/deploytest.war</url>
<portlet-app action="update" active="true" uid="deploytest.war">
<portlet action="update" active="true" name="deploytest" />
</portlet-app>
</web-app>
</portal>
</request>


Many thanks if anyone could shed some light!

Marc

jonas.v...@mindspot.se

unread,
Feb 28, 2007, 10:48:11 AM2/28/07
to
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/infocenter/wpdoc/v6r0/topic/com.ibm.wp.ent.doc/wps/adxmlchg.html

/Jonas V

Giovanni Leonetti

unread,
Feb 28, 2007, 11:32:36 AM2/28/07
to
On Feb 28, 4:12 pm, marc_dauncey <marc_daun...@yahoo.com> wrote:
> 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.getRequestSchemaDefinition(XmlAcces­sReader.java:280)

> at com.ibm.wps.command.xml.XmlUtils.getEngine(XmlUtils.java:145)
> at com.ibm.wps.command.xml.XmlCommand.execute(XmlCommand.java:154)
> at com.ibm.wps.command.xml.XmlCommandServlet.processInternal(XmlCommandServlet­.java:272)
> at com.ibm.wps.command.xml.XmlCommandServlet.process(XmlCommandServlet.java:26­0)
> at com.ibm.wps.command.xml.XmlCommandServlet.doPost(XmlCommandServlet.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.service(ServletWrapper.java:­1282)
> at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper­.java:673)
> at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServ­letWrapper.java:89)

> at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1897)
> at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:84)
> at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(H­ttpInboundLink.java:472)
> at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(H­ttpInboundLink.java:411)
> at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.­java:288)
> at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscrimi­naters(NewConnectionInitialReadCallback.java:207)
> at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewCo­nnectionInitialReadCallback.java:109)
> at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManag­er.java:566)
> at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.jav­a:619)
> at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.jav­a:952)
> at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.ja­va:1039)

> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
> Caused by: 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 com.ibm.wps.command.xml.XmlAccessReader.appendBuffer(XmlAccessReader.java:2­98)
> at com.ibm.wps.command.xml.XmlAccessReader.getRequestSchemaDefinition(XmlAcces­sReader.java:214)

> ... 22 more
>
> And here is the script:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PortalConfig_1.3.1.xsd" type="update" create-oids="true">
> <portal action="locate">
> <!-- As jsr168 portlets don't have a uid defined in the portlet.xml use "projectname.war.webmod" as uid value -->
> <web-app action="update" active='true' uid="deploytest.war.webmod">
> <url>file:///c:/deploy/deploytest.war</url>
> <portlet-app action="update" active="true" uid="deploytest.war">
> <portlet action="update" active="true" name="deploytest" />
> </portlet-app>
> </web-app>
> </portal>
> </request>
>
> Many thanks if anyone could shed some light!
>
> Marc

What is the <portlet-app id=" ">
in portlet.xml ?

Regards,

Giovanni

marc_dauncey

unread,
Feb 28, 2007, 1:14:04 PM2/28/07
to
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

0 new messages