Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert tip

    Check if you didn't set RequestProperty Content-Type to the wrong type or if you're trying to send the wrong file to the server.

Solutions on the web

via Oracle Community by 4678e81d-546f-44b7-a38c-de40716c0c0a, 1 year ago
java.lang.reflect.InvocationTargetException
java.io.IOException: Server returned HTTP response code: 401 for URL:
http://localhost:8080/cs/ContentServer?pagename=OpenMarket/Xcelerate/PrologActions/Publish/csdt/CSElementSave	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)	at com.fatwire.csdt.util.CSDPUtil.callCS(CSDPUtil.java:80)	at com.fatwire.csdt.util.WizardUtil.saveCSElement(WizardUtil.java:122)	at com.fatwire.csdt.wizards.CSElementWizard$1.run(CSElementWizard.java:181)	at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)	at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)	at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1008)	at com.fatwire.csdt.wizards.CSElementWizard.performFinish(CSElementWizard.java:73)	at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:811)	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:430)	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)	at org.eclipse.jface.window.Window.open(Window.java:801)	at com.fatwire.csdt.toolbar.actions.CSElementCreateAction.run(CSElementCreateAction.java:30)	at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)	at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)	at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452)	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)	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:369)	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)	at java.lang.reflect.Method.invoke(Unknown Source)	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)	at org.eclipse.equinox.launcher.Main.run(Main.java:1408)