-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in Jenkins build. javax.ws.rs.ProcessingException: Error reading entity from input stream #520
Comments
The issue is in bw6-plugin-maven-2.7.1\Source\bw6-maven-plugin\src\main\java\com\tibco\bw\maven\plugin\admin\client\RemoteDeployer.java in the function call
this is the function: private void checkApplicationState(final String domainName, final String appSpaceName, final String appName, final String version, final Application.ApplicationRuntimeStates state) throws ClientException, InterruptedException{ the bolded line is where it is breaking. I commented the function call and rebuilt the jar like like this: cd C:\bw6-plugin-maven-2.7.1\Source\bw6-maven-plugin\src\main I then replaced the jar at C:\tibco6\bw\6.6\maven\plugins\bw6-maven-plugin with the above jar. I am getting this error now when I open a project. How should I correctly build the jar ? Description Resource Path Location Type
|
@aalapargekartibco We are looking into the deployment error issue. To build the maven plugin, please follow below steps -
<!-- <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<keyname>2719D0D948730CAA</keyname>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin> -->
|
@vpawar-ai I am getting this error when I do the mvn claen install: Failed to execute goal org.apache.maven.plugins:maven-plugin-plugin:3.5:descriptor (default-descriptor) on project bw6-maven-plugin: Error extracting plugin descriptor: 'No mojo definitions were found for plugin: com.tibco.plugins:bw6-maven-plugin. These are the detailed steps that I did:
That is when I am getting this error |
@aalapargekartibco Please do not use |
@vpawar-ai I did this:
Am I missing any step ? |
Fixed in 2.8.0 |
@vpawar-ai - verified, thanks. |
I am using Jenkins to build Tibco 6 EAR and deploy to appspace. Jenkins refers the pom file created by the maven plugin. Everything works but in the end of the build I get this error mentioned below. It feels like when maven runs the bwadmin command to deploy and start the application, Jenkins is trying to read the logs of the bwadmin and is not able to. This might not be an issue with the plugin and might be a jenkins issue but sharing here in case anyone can assist.
javax.ws.rs.ProcessingException: Error reading entity from input stream
Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of java.util.LinkedHashMap<java.lang.Object,java.lang.Object> out of START_ARRAY token
at [Source: (org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream); line: 227, column: 25] (through reference chain: com.tibco.bw.maven.plugin.admin.dto.Application["instances"]->java.util.ArrayList[0]->com.tibco.bw.maven.plugin.admin.dto.AppInstance["endpoints"]->java.util.ArrayList[0]->com.tibco.bw.maven.plugin.admin.dto.Endpoint["properties"])
This is the complete log:
[INFO] Uploading the Archive file -> SimpleRest6xAS_5.0.0.ear
[INFO] Deploying the Application with name -> SimpleRest6xAS with Profile -> stage.substvar
[ERROR]
javax.ws.rs.ProcessingException: Error reading entity from input stream.
at org.glassfish.jersey.message.internal.InboundMessageContext.readEntity (InboundMessageContext.java:868)
at org.glassfish.jersey.message.internal.InboundMessageContext.readEntity (InboundMessageContext.java:785)
at org.glassfish.jersey.client.ClientResponse.readEntity (ClientResponse.java:326)
at org.glassfish.jersey.client.InboundJaxrsResponse$1.call (InboundJaxrsResponse.java:115)
at org.glassfish.jersey.internal.Errors.process (Errors.java:315)
at org.glassfish.jersey.internal.Errors.process (Errors.java:297)
at org.glassfish.jersey.internal.Errors.process (Errors.java:228)
at org.glassfish.jersey.process.internal.RequestScope.runInScope (RequestScope.java:419)
at org.glassfish.jersey.client.InboundJaxrsResponse.runInScopeIfPossible (InboundJaxrsResponse.java:267)
at org.glassfish.jersey.client.InboundJaxrsResponse.readEntity (InboundJaxrsResponse.java:112)
at com.tibco.bw.maven.plugin.admin.client.RemoteDeployer.checkApplicationState (RemoteDeployer.java:540)
at com.tibco.bw.maven.plugin.admin.client.RemoteDeployer.addAndDeployApplication (RemoteDeployer.java:327)
at com.tibco.bw.maven.plugin.application.BWEARInstallerMojo.execute (BWEARInstallerMojo.java:228)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.jvnet.hudson.maven3.launcher.Maven35Launcher.main (Maven35Launcher.java:130)
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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at jenkins.maven3.agent.Maven35Main.launch (Maven35Main.java:178)
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 hudson.maven.Maven3Builder.call (Maven3Builder.java:139)
at hudson.maven.Maven3Builder.call (Maven3Builder.java:70)
at hudson.remoting.UserRequest.perform (UserRequest.java:211)
at hudson.remoting.UserRequest.perform (UserRequest.java:54)
at hudson.remoting.Request$2.run (Request.java:375)
at hudson.remoting.InterceptingExecutorService$1.call (InterceptingExecutorService.java:73)
at java.util.concurrent.FutureTask.run (Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker (Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (Unknown Source)
at java.lang.Thread.run (Unknown Source)
Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of java.util.LinkedHashMap<java.lang.Object,java.lang.Object> out of START_ARRAY token
at [Source: (org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream); line: 227, column: 25] (through reference chain: com.tibco.bw.maven.plugin.admin.dto.Application["instances"]->java.util.ArrayList[0]->com.tibco.bw.maven.plugin.admin.dto.AppInstance["endpoints"]->java.util.ArrayList[0]->com.tibco.bw.maven.plugin.admin.dto.Endpoint["properties"])
at com.fasterxml.jackson.databind.exc.MismatchedInputException.from (MismatchedInputException.java:59)
at com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch (DeserializationContext.java:1442)
at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken (DeserializationContext.java:1216)
at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken (DeserializationContext.java:1126)
at com.fasterxml.jackson.databind.deser.std.StdDeserializer._deserializeFromEmpty (StdDeserializer.java:626)
at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize (MapDeserializer.java:360)
at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize (MapDeserializer.java:29)
at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet (MethodProperty.java:129)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize (BeanDeserializer.java:288)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize (BeanDeserializer.java:151)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize (CollectionDeserializer.java:286)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize (CollectionDeserializer.java:245)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize (CollectionDeserializer.java:27)
at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet (MethodProperty.java:129)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize (BeanDeserializer.java:288)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize (BeanDeserializer.java:151)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize (CollectionDeserializer.java:286)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize (CollectionDeserializer.java:245)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize (CollectionDeserializer.java:27)
at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet (FieldProperty.java:138)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize (BeanDeserializer.java:288)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize (BeanDeserializer.java:151)
at com.fasterxml.jackson.databind.ObjectReader._bind (ObjectReader.java:1682)
at com.fasterxml.jackson.databind.ObjectReader.readValue (ObjectReader.java:977)
at com.fasterxml.jackson.jaxrs.base.ProviderBase.readFrom (ProviderBase.java:814)
at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$TerminalReaderInterceptor.invokeReadFrom (ReaderInterceptorExecutor.java:266)
at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$TerminalReaderInterceptor.aroundReadFrom (ReaderInterceptorExecutor.java:236)
at org.glassfish.jersey.message.internal.ReaderInterceptorExecutor.proceed (ReaderInterceptorExecutor.java:156)
at org.glassfish.jersey.message.internal.MessageBodyFactory.readFrom (MessageBodyFactory.java:1085)
at org.glassfish.jersey.message.internal.InboundMessageContext.readEntity (InboundMessageContext.java:853)
at org.glassfish.jersey.message.internal.InboundMessageContext.readEntity (InboundMessageContext.java:785)
at org.glassfish.jersey.client.ClientResponse.readEntity (ClientResponse.java:326)
at org.glassfish.jersey.client.InboundJaxrsResponse$1.call (InboundJaxrsResponse.java:115)
at org.glassfish.jersey.internal.Errors.process (Errors.java:315)
at org.glassfish.jersey.internal.Errors.process (Errors.java:297)
at org.glassfish.jersey.internal.Errors.process (Errors.java:228)
at org.glassfish.jersey.process.internal.RequestScope.runInScope (RequestScope.java:419)
at org.glassfish.jersey.client.InboundJaxrsResponse.runInScopeIfPossible (InboundJaxrsResponse.java:267)
at org.glassfish.jersey.client.InboundJaxrsResponse.readEntity (InboundJaxrsResponse.java:112)
at com.tibco.bw.maven.plugin.admin.client.RemoteDeployer.checkApplicationState (RemoteDeployer.java:540)
at com.tibco.bw.maven.plugin.admin.client.RemoteDeployer.addAndDeployApplication (RemoteDeployer.java:327)
at com.tibco.bw.maven.plugin.application.BWEARInstallerMojo.execute (BWEARInstallerMojo.java:228)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.jvnet.hudson.maven3.launcher.Maven35Launcher.main (Maven35Launcher.java:130)
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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at jenkins.maven3.agent.Maven35Main.launch (Maven35Main.java:178)
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 hudson.maven.Maven3Builder.call (Maven3Builder.java:139)
at hudson.maven.Maven3Builder.call (Maven3Builder.java:70)
at hudson.remoting.UserRequest.perform (UserRequest.java:211)
at hudson.remoting.UserRequest.perform (UserRequest.java:54)
at hudson.remoting.Request$2.run (Request.java:375)
at hudson.remoting.InterceptingExecutorService$1.call (InterceptingExecutorService.java:73)
at java.util.concurrent.FutureTask.run (Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker (Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (Unknown Source)
at java.lang.Thread.run (Unknown Source)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for SimpleRest6xAS.parent 5.0.0-SNAPSHOT:
[INFO]
[INFO] SimpleRest6xAS.parent .............................. SUCCESS [ 0.284 s]
[INFO] SimpleRest6xAS.module .............................. SUCCESS [ 0.726 s]
[INFO] SimpleRest6xAS ..................................... FAILURE [ 16.538 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20.023 s
[INFO] Finished at: 2020-11-17T07:17:15-05:00
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
[ERROR] Failed to execute goal com.tibco.plugins:bw6-maven-plugin:2.7.1:bwinstall (default-bwinstall) on project SimpleRest6xAS: Failed to deploy BW Application: Error reading entity from input stream. Cannot deserialize instance of java.util.LinkedHashMap<java.lang.Object,java.lang.Object> out of START_ARRAY token
[ERROR] at [Source: (org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream); line: 227, column: 25] (through reference chain: com.tibco.bw.maven.plugin.admin.dto.Application["instances"]->java.util.ArrayList[0]->com.tibco.bw.maven.plugin.admin.dto.AppInstance["endpoints"]->java.util.ArrayList[0]->com.tibco.bw.maven.plugin.admin.dto.Endpoint["properties"])
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :SimpleRest6xAS
The text was updated successfully, but these errors were encountered: