Hi,

I'm trying to run the FileService[1] sample in the WSO2 DSS. When I try to
upload an image through the provided client I'm getting following an
IOException [2]


​
[1] - https://docs.wso2.com/display/DSS322/File+App+Service+Sample

[2] - Stack trace

>  [java] java.io.IOException: Server returned HTTP response code: 500 for
> URL:
> http://localhost:9763/services/samples/FileService.HTTPEndpoint/checkFileExists?fileName=abc.jpg
>      [java] at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1615)
>      [java] at
> org.wso2.carbon.dataservices.samples.FileServiceApp.contactURL(FileServiceApp.java:251)
>      [java] at
> org.wso2.carbon.dataservices.samples.FileServiceApp.checkFileExists(FileServiceApp.java:320)
>      [java] at
> org.wso2.carbon.dataservices.samples.FileServiceApp.actionPerformed(FileServiceApp.java:399)
>      [java] at
> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
>      [java] at
> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
>      [java] at
> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
>      [java] at
> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
>      [java] at
> javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
>      [java] at java.awt.Component.processMouseEvent(Component.java:6505)
>      [java] at
> javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
>      [java] at java.awt.Component.processEvent(Component.java:6270)
>      [java] at java.awt.Container.processEvent(Container.java:2229)
>      [java] at java.awt.Component.dispatchEventImpl(Component.java:4861)
>      [java] at java.awt.Container.dispatchEventImpl(Container.java:2287)
>      [java] at java.awt.Component.dispatchEvent(Component.java:4687)
>      [java] at
> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
>      [java] at
> java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
>      [java] at
> java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
>      [java] at java.awt.Container.dispatchEventImpl(Container.java:2273)
>      [java] at java.awt.Component.dispatchEvent(Component.java:4687)
>      [java] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:723)
>      [java] at java.awt.EventQueue.access$200(EventQueue.java:103)
>      [java] at java.awt.EventQueue$3.run(EventQueue.java:682)
>      [java] at java.awt.EventQueue$3.run(EventQueue.java:680)
>      [java] at java.security.AccessController.doPrivileged(Native Method)
>      [java] at
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
>      [java] at
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
>      [java] at java.awt.EventQueue$4.run(EventQueue.java:696)
>      [java] at java.awt.EventQueue$4.run(EventQueue.java:694)
>      [java] at java.security.AccessController.doPrivileged(Native Method)
>      [java] at
> java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
>      [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:693)
>      [java] at
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
>      [java] at
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
>      [java] at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
>      [java] at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
>      [java] at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
>      [java] at
> java.awt.EventDispatchThread.run(EventDispatchThread.java:97)


Any help to solve this would be nice.

Thanks and Best Regards
-- 
Thusitha Dayaratne
Software Engineer | WSO2 Inc

Email    [email protected]
Mobile  +94712756809
Blog      alokayasoya.blogspot.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to