File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The server sent HTTP status code 400: Bad Request error getting when accessing web service in eclips

 
selvi sibi
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Iam trying to access share point web service in java... The web service produces output when accessing through netbeans. but when accessing the jar created from netbeans in eclipse generating
"The server sent HTTP status code 400: Bad Request ". We can access the same web service in main method of the class in eclipse, but it is not geeting in plugin project.
The error got is as follows

com.sun.xml.internal.ws.client.ClientTransportException: The server sent HTTP status code 400: Bad Request
com.sun.xml.internal.ws.client.ClientTransportException: The server sent HTTP status code 400: Bad Request
at com.sun.xml.internal.ws.transport.http.client.HttpClientTransport.checkResponseCode(HttpClientTransport.java:217)
at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:149)
at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:86)
at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Fiber.java:593)
at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Fiber.java:552)
at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Fiber.java:537)
at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Fiber.java:434)
at com.sun.xml.internal.ws.client.Stub.process(Stub.java:247)
at com.sun.xml.internal.ws.client.sei.SEIStub.doProcess(SEIStub.java:132)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:242)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:222)
at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:115)
at $Proxy29.getListCollection(Unknown Source)
at sharepointaccess.Manager.getDocuments(Manager.java:106)
at sharepointaccess.SharePointAccessCls.getDocuments(SharePointAccessCls.java:49)
at com.snapps.dragndroptest.views.DragnDropView.createModel(DragnDropView.java:535)
at com.snapps.dragndroptest.views.DragnDropView.createPartControl(DragnDropView.java:269)
at com.ibm.rcp.ui.internal.shelf.ShelfViewReference.createPartHelper(ShelfViewReference.java:341)
at com.ibm.rcp.ui.internal.shelf.ShelfViewReference.createPart(ShelfViewReference.java:210)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)
at com.ibm.rcp.ui.shelf.ShelfPage.activatePart(ShelfPage.java:2141)
at com.ibm.rcp.ui.shelf.ShelfPage.access$13(ShelfPage.java:2132)
at com.ibm.rcp.ui.shelf.ShelfPage$15.handleEvent(ShelfPage.java:2411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:770)
at com.ibm.rcp.swt.swidgets.SViewForm.internalSetMaximized(SViewForm.java:803)
at com.ibm.rcp.swt.swidgets.SViewStack.updateExpandedStates(SViewStack.java:732)
at com.ibm.rcp.swt.swidgets.SViewStack.setCollapsed(SViewStack.java:688)
at com.ibm.rcp.swt.swidgets.SViewStack$5.handleEvent(SViewStack.java:391)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:770)
at com.ibm.rcp.swt.swidgets.SViewForm.internalSetCollapsed(SViewForm.java:762)
at com.ibm.rcp.swt.swidgets.SViewForm.setCollapsed(SViewForm.java:743)
at com.ibm.rcp.ui.internal.presentations.ShelfStackPresentation.restoreState(ShelfStackPresentation.java:226)
at com.ibm.rcp.ui.internal.presentations.ShelfStackPresentation.addPart(ShelfStackPresentation.java:164)
at com.ibm.rcp.ui.shelf.ShelfPage.createViewForm(ShelfPage.java:2264)
at com.ibm.rcp.ui.shelf.ShelfPage.addShelfView(ShelfPage.java:1898)
at com.ibm.rcp.ui.shelf.ShelfPage.init(ShelfPage.java:1335)
at com.ibm.rcp.ui.shelf.ShelfPage.access$44(ShelfPage.java:1290)
at com.ibm.rcp.ui.shelf.ShelfPage$3$2.runInUIThread(ShelfPage.java:604)
at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:94)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3885)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3506)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
at com.ibm.rcp.personality.framework.internal.RCPWorkbenchAdvisor.openWindows(RCPWorkbenchAdvisor.java:827)
at org.eclipse.ui.internal.Workbench$27.runWithException(Workbench.java:1363)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:179)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4342)
at org.eclipse.ui.internal.StartupThreading.runWithoutExceptions(StartupThreading.java:94)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:1358)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2314)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at com.ibm.rcp.personality.framework.internal.RCPApplication.run(RCPApplication.java:67)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:574)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:195)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)

Please help me
 
nisha ks
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
selvi sibi wrote:Iam trying to access share point web service in java... The web service produces output when accessing through netbeans. but when accessing the jar created from netbeans in eclipse generating
"The server sent HTTP status code 400: Bad Request ". We can access the same web service in main method of the class in eclipse, but it is not geeting in plugin project.
The error got is as follows

com.sun.xml.internal.ws.client.ClientTransportException: The server sent HTTP status code 400: Bad Request
com.sun.xml.internal.ws.client.ClientTransportException: The server sent HTTP status code 400: Bad Request
at com.sun.xml.internal.ws.transport.http.client.HttpClientTransport.checkResponseCode(HttpClientTransport.java:217)
at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:149)
at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:86)
at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Fiber.java:593)
at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Fiber.java:552)
at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Fiber.java:537)
at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Fiber.java:434)
at com.sun.xml.internal.ws.client.Stub.process(Stub.java:247)
at com.sun.xml.internal.ws.client.sei.SEIStub.doProcess(SEIStub.java:132)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:242)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:222)
at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:115)
at $Proxy29.getListCollection(Unknown Source)
at sharepointaccess.Manager.getDocuments(Manager.java:106)
at sharepointaccess.SharePointAccessCls.getDocuments(SharePointAccessCls.java:49)
at com.snapps.dragndroptest.views.DragnDropView.createModel(DragnDropView.java:535)
at com.snapps.dragndroptest.views.DragnDropView.createPartControl(DragnDropView.java:269)
at com.ibm.rcp.ui.internal.shelf.ShelfViewReference.createPartHelper(ShelfViewReference.java:341)
at com.ibm.rcp.ui.internal.shelf.ShelfViewReference.createPart(ShelfViewReference.java:210)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)
at com.ibm.rcp.ui.shelf.ShelfPage.activatePart(ShelfPage.java:2141)
at com.ibm.rcp.ui.shelf.ShelfPage.access$13(ShelfPage.java:2132)
at com.ibm.rcp.ui.shelf.ShelfPage$15.handleEvent(ShelfPage.java:2411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:770)
at com.ibm.rcp.swt.swidgets.SViewForm.internalSetMaximized(SViewForm.java:803)
at com.ibm.rcp.swt.swidgets.SViewStack.updateExpandedStates(SViewStack.java:732)
at com.ibm.rcp.swt.swidgets.SViewStack.setCollapsed(SViewStack.java:688)
at com.ibm.rcp.swt.swidgets.SViewStack$5.handleEvent(SViewStack.java:391)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:770)
at com.ibm.rcp.swt.swidgets.SViewForm.internalSetCollapsed(SViewForm.java:762)
at com.ibm.rcp.swt.swidgets.SViewForm.setCollapsed(SViewForm.java:743)
at com.ibm.rcp.ui.internal.presentations.ShelfStackPresentation.restoreState(ShelfStackPresentation.java:226)
at com.ibm.rcp.ui.internal.presentations.ShelfStackPresentation.addPart(ShelfStackPresentation.java:164)
at com.ibm.rcp.ui.shelf.ShelfPage.createViewForm(ShelfPage.java:2264)
at com.ibm.rcp.ui.shelf.ShelfPage.addShelfView(ShelfPage.java:1898)
at com.ibm.rcp.ui.shelf.ShelfPage.init(ShelfPage.java:1335)
at com.ibm.rcp.ui.shelf.ShelfPage.access$44(ShelfPage.java:1290)
at com.ibm.rcp.ui.shelf.ShelfPage$3$2.runInUIThread(ShelfPage.java:604)
at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:94)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3885)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3506)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
at com.ibm.rcp.personality.framework.internal.RCPWorkbenchAdvisor.openWindows(RCPWorkbenchAdvisor.java:827)
at org.eclipse.ui.internal.Workbench$27.runWithException(Workbench.java:1363)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:179)
at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4342)
at org.eclipse.ui.internal.StartupThreading.runWithoutExceptions(StartupThreading.java:94)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:1358)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2314)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at com.ibm.rcp.personality.framework.internal.RCPApplication.run(RCPApplication.java:67)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:574)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:195)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)

Please help me








I am also stuck with the same problem
please help with a solution...
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic