Message Body reader for a class not found

Issue #4 new
Gopinath Vasalamarri created an issue

Hi,

Followed the online presentation on ZAPI and was trying out a test using TestNG ( running thru maven ). I see the following exception which results in a build failure:

Failed to execute goal com.thed.zapi:zapi-maven-plugin:0.1:zapi (default) on project my-automation: Execution default of goal com.thed.zapi:zapi-maven-plugin:0.1:zapi failed: A message body reader for Java class com.thed.zapi.rest.vo.GenericResponseVO, and Java type class com.thed.zapi.rest.vo.GenericResponseVO, and MIME media type text/html; charset=iso-8859-1 was not found -> [Help 1]

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.thed.zapi:zapi-maven-plugin:0.1:zapi (default) on project my-automation: Execution default of goal com.thed.zapi:zapi-maven-plugin:0.1:zapi failed: A message body reader for Java class com.thed.zapi.rest.vo.GenericResponseVO, and Java type class com.thed.zapi.rest.vo.GenericResponseVO, and MIME media type text/html; charset=iso-8859-1 was not found at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default of goal com.thed.zapi:zapi-maven-plugin:0.1:zapi failed: A message body reader for Java class com.thed.zapi.rest.vo.GenericResponseVO, and Java type class com.thed.zapi.rest.vo.GenericResponseVO, and MIME media type text/html; charset=iso-8859-1 was not found at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more Caused by: com.sun.jersey.api.client.ClientHandlerException: A message body reader for Java class com.thed.zapi.rest.vo.GenericResponseVO, and Java type class com.thed.zapi.rest.vo.GenericResponseVO, and MIME media type text/html; charset=iso-8859-1 was not found at com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:630) at com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:604) at com.thed.zapi.rest.generated.ZapiRestClient$Cycle.postJson(ZapiRestClient.java:1166) at com.thed.zapi.rest.ZapiRestHelper.createCycle(ZapiRestHelper.java:81) at com.thed.zapi.mojo.AbstractZapiReportMojo.executeReport(AbstractZapiReportMojo.java:209) at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:190) at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:99) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)

Comments (1)

  1. Log in to comment