Cannot publish jobs and routes to Nexus repository

Six Stars

Cannot publish jobs and routes to Nexus repository

I have Nexus connected. In the studio and in the TAC, I can reach it from my browsher or Administration center.
However I can't really publish jobs and routes there from the studio as I am getting this error:
java.lang.reflect.InvocationTargetException
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:479)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:374)
    at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1059)
    at org.talend.designer.publish.di.wizards.PublishJobWizard.publishToRepository(PublishJobWizard.java:70)
    at org.talend.designer.publish.di.wizards.AbstractPublishWizard.performFinish(AbstractPublishWizard.java:120)
    at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:853)
    at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:438)
    at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:619)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:832)
    at org.eclipse.jface.window.Window.open(Window.java:808)
    at org.talend.designer.publish.di.actions.AbstractPublishAction.doRun(AbstractPublishAction.java:118)
    at org.talend.repository.ui.actions.AContextualAction$2.run(AContextualAction.java:632)
    at org.talend.repository.RepositoryWorkUnit.executeRun(RepositoryWorkUnit.java:99)
    at org.talend.core.repository.model.AbstractRepositoryFactory.executeRepositoryWorkUnit(AbstractRepositoryFactory.java:258)
    at org.talend.repository.localprovider.model.LocalRepositoryFactory.executeRepositoryWorkUnit(LocalRepositoryFactory.java:3257)
    at org.talend.repository.svnprovider.SvnRepositoryFactory.executeRepositoryWorkUnit(SvnRepositoryFactory.java:334)
    at org.talend.repository.remoteprovider.RemoteRepositoryFactory.executeRepositoryWorkUnit(RemoteRepositoryFactory.java:765)
    at org.talend.core.repository.model.ProxyRepositoryFactory.executeRepositoryWorkUnit(ProxyRepositoryFactory.java:2053)
    at org.talend.repository.ui.actions.AContextualAction.run(AContextualAction.java:641)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:519)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
    at org.talend.rcp.intro.Application.start(Application.java:208)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
Caused by: java.lang.RuntimeException: org.apache.cxf.interceptor.Fault: .Problem with writing the request message, class : class java.security.DigestInputStream, ContentType : application/xml.
    at org.apache.cxf.jaxrs.client.WebClient.doResponse(WebClient.java:1084)
    at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:1043)
    at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:857)
    at org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:831)
    at org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:296)
    at org.apache.cxf.jaxrs.client.WebClient.put(WebClient.java:314)
    at org.talend.designer.publish.di.model.UploadableModel.upload(UploadableModel.java:165)
    at org.talend.designer.publish.di.model.UploadableModel.uploadContent(UploadableModel.java:129)
    at org.talend.designer.publish.di.model.UploadableModel.uploadContent(UploadableModel.java:81)
    at org.talend.designer.publish.di.model.UploadableBundleModel.upload(UploadableBundleModel.java:18)
    at org.talend.designer.publish.di.model.UploadableFeaturesModel.upload(UploadableFeaturesModel.java:19)
    at org.talend.designer.publish.di.wizards.actions.WizardDeployHelper.deployJob(WizardDeployHelper.java:38)
    at org.talend.designer.publish.di.wizards.actions.PublishJobWizardAction.process(PublishJobWizardAction.java:97)
    at org.talend.designer.publish.core.actions.AbstractPublishJobAction.exportJobForOSGI(AbstractPublishJobAction.java:139)
    at org.talend.designer.publish.core.actions.AbstractPublishJobAction.run(AbstractPublishJobAction.java:101)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:466)
    ... 55 more
Caused by: org.apache.cxf.interceptor.Fault: .Problem with writing the request message, class : class java.security.DigestInputStream, ContentType : application/xml.
    at org.apache.cxf.jaxrs.client.WebClient$BodyWriter.doWriteBody(WebClient.java:1165)
    at org.apache.cxf.jaxrs.client.AbstractClient$AbstractBodyWriter.handleMessage(AbstractClient.java:1041)
    at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
    at org.apache.cxf.jaxrs.client.AbstractClient.doRunInterceptorChain(AbstractClient.java:633)
    at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:1042)
    ... 69 more
Caused by: javax.ws.rs.client.ClientException: .Problem with writing the request message, class : class java.security.DigestInputStream, ContentType : application/xml.
    at org.apache.cxf.jaxrs.client.AbstractClient.reportMessageHandlerProblem(AbstractClient.java:761)
    at org.apache.cxf.jaxrs.client.AbstractClient.writeBody(AbstractClient.java:448)
    at org.apache.cxf.jaxrs.client.WebClient$BodyWriter.doWriteBody(WebClient.java:1160)
    ... 73 more
Caused by: java.io.IOException: Error writing request body to server
    at sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.checkError(HttpURLConnection.java:3479)
    at sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.write(HttpURLConnection.java:3462)
    at org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputStream.java:51)
    at org.apache.cxf.io.AbstractThresholdOutputStream.write(AbstractThresholdOutputStream.java:69)
    at org.apache.cxf.helpers.IOUtils.copy(IOUtils.java:160)
    at org.apache.cxf.helpers.IOUtils.copy(IOUtils.java:104)
    at org.apache.cxf.helpers.IOUtils.copyAndCloseInput(IOUtils.java:110)
    at org.apache.cxf.jaxrs.provider.BinaryDataProvider.copyInputToOutput(BinaryDataProvider.java:136)
    at org.apache.cxf.jaxrs.provider.BinaryDataProvider.writeTo(BinaryDataProvider.java:100)
    at org.apache.cxf.jaxrs.utils.JAXRSUtils.writeMessageBody(JAXRSUtils.java:1317)
    at org.apache.cxf.jaxrs.client.AbstractClient.writeBody(AbstractClient.java:434)
    ... 74 more

However when I go and check the repository it actually has some files written but it is only metadata:
Please does anyone know how to solve this problem?
Seventeen Stars

Re: Cannot publish jobs and routes to Nexus repository

You have to setup the Nexus connection for the studio in the Preferences. They are per default not correct and assumes, the Nexus is local on your workstation.
Could you publish to the Nexus using the Publisher in the TAC?
Six Stars

Re: Cannot publish jobs and routes to Nexus repository

Hello, thank you for the reply. Yes I have set up Nexus in the Talend studio preferences as well as TAC. Yes it publishes with no problems from TAC.
Seventeen Stars

Re: Cannot publish jobs and routes to Nexus repository

Well in this case I would encourage you to open a support ticket. As a owner of a subscription version of Talend you have support.