One Star

Issue with Publishing job into Artifact Nexus Repository from Studio

Hi there,
I am facing below error while publishing the esb job into Artifact Nexus repository. I am using Talend Data Services enterprise edition. I have checked the port used by the service and there is not firewall blocking the port. Will appreciate, if somebody help to resolve this.
java.lang.reflect.InvocationTargetException
at org.talend.designer.publish.wizards.actions.PublishJobWizardAction.run(PublishJobWizardAction.java:85)
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 org.talend.designer.publish.wizards.PublishJobWizard.publishToRepository(PublishJobWizard.java:50)
at org.talend.designer.publish.wizards.AbstractPublishWizard.performFinish(AbstractPublishWizard.java:125)
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 org.talend.designer.publish.actions.PublishJobAction.doRun(PublishJobAction.java:92)
at org.talend.repository.ui.actions.AContextualAction$2.run(AContextualAction.java:593)
at org.talend.repository.RepositoryWorkUnit.executeRun(RepositoryWorkUnit.java:84)
at org.talend.core.repository.model.AbstractRepositoryFactory.executeRepositoryWorkUnit(AbstractRepositoryFactory.java:217)
at org.talend.repository.localprovider.model.LocalRepositoryFactory.executeRepositoryWorkUnit(LocalRepositoryFactory.java:3046)
at org.talend.repository.svnprovider.SvnRepositoryFactory.executeRepositoryWorkUnit(SvnRepositoryFactory.java:395)
at org.talend.repository.remoteprovider.RemoteRepositoryFactory.executeRepositoryWorkUnit(RemoteRepositoryFactory.java:639)
at org.talend.core.repository.model.ProxyRepositoryFactory.executeRepositoryWorkUnit(ProxyRepositoryFactory.java:1916)
at org.talend.repository.ui.actions.AContextualAction.run(AContextualAction.java:602)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
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$5.handleEvent(ActionContributionItem.java:411)
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.talend.rcp.intro.Application.start(Application.java:127)
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:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
Caused by: org.apache.http.conn.HttpHostConnectException: Connection to http://localhost:8084 refused
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:190)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:640)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784)
at org.talend.designer.publish.core.models.UploadableModel.uploadContent(UploadableModel.java:98)
at org.talend.designer.publish.core.models.UploadableModel.uploadContent(UploadableModel.java:85)
at org.talend.designer.publish.core.models.BundleModel.uploadBundle(BundleModel.java:71)
at org.talend.designer.publish.core.models.BundleModel.upload(BundleModel.java:40)
at org.talend.designer.publish.core.UploadAction.deployBundle(UploadAction.java:99)
at org.talend.designer.publish.core.UploadAction.deployJob(UploadAction.java:73)
at org.talend.designer.publish.core.UploadAction.deployJob(UploadAction.java:30)
at org.talend.designer.publish.wizards.WizardDeployHelper.deployJob(WizardDeployHelper.java:115)
at org.talend.designer.publish.wizards.actions.PublishJobWizardAction.run(PublishJobWizardAction.java:81)
... 53 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:127)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
... 68 more

11 REPLIES
Moderator

Re: Issue with Publishing job into Artifact Nexus Repository from Studio

Hi,
I am facing below error while publishing the esb job into Artifact Nexus repository. I am using Talend Data Services enterprise edition. I have checked the port used by the service and there is not firewall blocking the port

The link http://localhost:8084 is OK with you when you access it directly?
Make sure
1: start-nexus.bat
2: open studio,windows-->preference-->talend-->artifact repository,add the nexus url to artifact repository.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Issue with Publishing job into Artifact Nexus Repository from Studio

Hello Sabrina,
Yes the link is showing up in the browser and in karaf.
1.) Nexus repository is running. I can login into the repository. Where can I find start-nexus.bat?
2.) Nexus Release and Snapshot links are in plan in the preferences. As the publishing was working earlier and stopped working recently. Do we have any other way to deploy the code into TAC, if this doesn't work?
Thanks
Moderator

Re: Issue with Publishing job into Artifact Nexus Repository from Studio

Hi,
1.) Nexus repository is running. I can login into the repository. Where can I find start-nexus.bat?

It unnecessary to run start-nexus.bat which is located in < nexus installation path>\bin\jsw\windows-x86-64(first run install-nexus.bat,then run start-nexus.bat), if the Nexus repository is running.
2.) Nexus Release and Snapshot links are in plan in the preferences. As the publishing was working earlier and stopped working recently. Do we have any other way to deploy the code into TAC, if this doesn't work?

It is working before? Is there a good response when you restart nexus studio?
You can use Talend-Artifact-Repository to deploy, see the document TalendHelpCenter:Talend+Artifact+Repository.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Issue with Publishing job into Artifact Nexus Repository from Studio

Hello Sabrina,
Now, the error has gone but nothing is coming in the Nexus repository. I have included the screenshot of Nexusrepository and Studio Artifact config page for your further reference in my main post. Will it help to restart the Nexus repository ?
Moderator

Re: Issue with Publishing job into Artifact Nexus Repository from Studio

Hi,
Now, the error has gone but nothing is coming in the Nexus repository. I have included the screenshot of Nexus repository and Studio Artifact config page for your further reference in my main post. Will it help to restart the Nexus repository ?

That will be great to post your screenshot of Nexusrepository and Studio Artifact config page into forum. So far, can't disgose the issue. I suspect something wrong with Nexus repository when it is running. You can have a try to restart when this issue repro.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Issue with Publishing job into Artifact Nexus Repository from Studio

Hello Sabrina,
I restarted the Nexus repository and the issues is resolved now, but now the TAC is giving the below error when I am trying to deploy the job. Please assist, I have uploaded the TAC screenshot in my first post.
I am trying to deploy the ESB service job on TAC, but getting the below error. The job is running fine on studio and karaf but TAC is giving issue when I am trying to deploy. Will appreciate, if somebody can help in finding the root cause of this issue.
Error: deployment of feature 'ProcessWO-feature' might have failed: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException -- For more information see your log file
Operation failed: Open quote is expected for attribute "{1}" associated with an element type "xmlns:soapenv". -- For more information see your log file
Save failed: org.xml.sax.SAXParseException; lineNumber: 7; columnNumber: 65; Open quote is expected for attribute "{1}" associated with an element type "xmlns:soapenv". -- For more information see your log file
Moderator

Re: Issue with Publishing job into Artifact Nexus Repository from Studio

Hi,
Could you please give us the TAC error log info which is located in \apache-tomcat-6.0.35\logs.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Issue with Publishing job into Artifact Nexus Repository from Studio

1
One Star

Re: Issue with Publishing job into Artifact Nexus Repository from Studio

Hello Sabrina,
I found my logs at this path \Talend\5.2.2\tac\apache-tomcat\logs, but this seems not having any TAC related logs as these logs doesn't have any error messages that I raised above and also that's showing on TAC. The only log with today's timestamp I found is "localhost.2013-09-13" and I see catalina log file for yesterday with the name "catalina.2013-09-11". I am including the screenshot of TAC error message which is showing on clientlog tab on TAC, do you know where does TAC source this log from?
localhost.2013-09-13
=============
Sep 13, 2013 10:51:25 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet ServiceActivityService threw exception
java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:69)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
at java.net.Socket.connect(Socket.java:579)
at java.net.Socket.connect(Socket.java:528)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)
at sun.net.www.http.HttpClient.(HttpClient.java:203)
at sun.net.www.http.HttpClient.New(HttpClient.java:290)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:995)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849)
at org.talend.gwtadministrator.server.esbinfra.sam.ServiceActivityServlet.proxy(ServiceActivityServlet.java:113)
at org.talend.gwtadministrator.server.esbinfra.sam.ServiceActivityServlet.doGet(ServiceActivityServlet.java:82)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675)
at java.lang.Thread.run(Thread.java:722)
catalina.2013-09-11
=============
Sep 11, 2013 8:13:59 AM GenericConenctor RequestHandler-connectionException
WARNING: java.net.SocketException: Connection reset
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:189)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2291)
at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2584)
at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2594)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1316)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
at com.sun.jmx.remote.socket.SocketConnection.readMessage(SocketConnection.java:211)
at com.sun.jmx.remote.generic.ClientSynchroMessageConnectionImpl$MessageReader.run(ClientSynchroMessageConnectionImpl.java:401)
at com.sun.jmx.remote.opt.util.ThreadService$ThreadServiceJob.run(ThreadService.java:208)
at com.sun.jmx.remote.opt.util.JobExecutor.run(JobExecutor.java:59)
Sep 11, 2013 8:14:00 AM ClientCommunicatorAdmin restart
WARNING: Failed to restart: java.net.ConnectException: Connection refused: connect
Sep 11, 2013 8:14:01 AM ClientIntermediary close
INFO: java.io.IOException: The connection is not currently established.
java.io.IOException: The connection is not currently established.
at com.sun.jmx.remote.generic.ClientSynchroMessageConnectionImpl.checkState(ClientSynchroMessageConnectionImpl.java:577)
at com.sun.jmx.remote.generic.ClientSynchroMessageConnectionImpl.sendOneWay(ClientSynchroMessageConnectionImpl.java:162)
at javax.management.remote.generic.GenericConnector.close(GenericConnector.java:260)
at javax.management.remote.generic.GenericConnector.close(GenericConnector.java:231)
at javax.management.remote.generic.ClientIntermediary$GenericClientCommunicatorAdmin.doStop(ClientIntermediary.java:839)
at com.sun.jmx.remote.opt.internal.ClientCommunicatorAdmin.restart(ClientCommunicatorAdmin.java:133)
at com.sun.jmx.remote.opt.internal.ClientCommunicatorAdmin.gotIOException(ClientCommunicatorAdmin.java:34)
at javax.management.remote.generic.GenericConnector$RequestHandler.connectionException(GenericConnector.java:667)
at com.sun.jmx.remote.generic.ClientSynchroMessageConnectionImpl$MessageReader.run(ClientSynchroMessageConnectionImpl.java:408)
at com.sun.jmx.remote.opt.util.ThreadService$ThreadServiceJob.run(ThreadService.java:208)
at com.sun.jmx.remote.opt.util.JobExecutor.run(JobExecutor.java:59)
Sep 11, 2013 8:59:58 AM GenericConenctor RequestHandler-connectionException
WARNING: java.net.SocketException: Connection reset
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:189)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2291)
at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2584)
at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2594)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1316)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
at com.sun.jmx.remote.socket.SocketConnection.readMessage(SocketConnection.java:211)
at com.sun.jmx.remote.generic.ClientSynchroMessageConnectionImpl$MessageReader.run(ClientSynchroMessageConnectionImpl.java:401)
at com.sun.jmx.remote.opt.util.ThreadService$ThreadServiceJob.run(ThreadService.java:208)
at com.sun.jmx.remote.opt.util.JobExecutor.run(JobExecutor.java:59)
Sep 11, 2013 9:00:00 AM ClientCommunicatorAdmin restart
WARNING: Failed to restart: java.net.ConnectException: Connection refused: connect
Sep 11, 2013 9:00:01 AM ClientIntermediary close
INFO: java.io.IOException: The connection is not currently established.
java.io.IOException: The connection is not currently established.
at com.sun.jmx.remote.generic.ClientSynchroMessageConnectionImpl.checkState(ClientSynchroMessageConnectionImpl.java:577)
at com.sun.jmx.remote.generic.ClientSynchroMessageConnectionImpl.sendOneWay(ClientSynchroMessageConnectionImpl.java:162)
at javax.management.remote.generic.GenericConnector.close(GenericConnector.java:260)
at javax.management.remote.generic.GenericConnector.close(GenericConnector.java:231)
at javax.management.remote.generic.ClientIntermediary$GenericClientCommunicatorAdmin.doStop(ClientIntermediary.java:839)
at com.sun.jmx.remote.opt.internal.ClientCommunicatorAdmin.restart(ClientCommunicatorAdmin.java:133)
at com.sun.jmx.remote.opt.internal.ClientCommunicatorAdmin.gotIOException(ClientCommunicatorAdmin.java:34)
at javax.management.remote.generic.GenericConnector$RequestHandler.connectionException(GenericConnector.java:667)
at com.sun.jmx.remote.generic.ClientSynchroMessageConnectionImpl$MessageReader.run(ClientSynchroMessageConnectionImpl.java:408)
at com.sun.jmx.remote.opt.util.ThreadService$ThreadServiceJob.run(ThreadService.java:208)
at com.sun.jmx.remote.opt.util.JobExecutor.run(JobExecutor.java:59)
Moderator

Re: Issue with Publishing job into Artifact Nexus Repository from Studio

Hi,
Due to you are using Talend Enterprise Subscription Version, would you mind opening a ticket on talend support portal, our colleagues from support team will schedule a webex with you on your issue.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Issue with Publishing job into Artifact Nexus Repository from Studio

Hi,
This error comes because of context. If we put xml element in context at that time karaf shows fatal error but talend did not show any kind of error. Check context. Hard code the xml element in jobs then you will find everything fine in your services.
Regards,
Sanjay