Jump to content

Using the java API for data source (createOrUpdate) I get VersionNotMatchException - what does this mean ?


Recommended Posts

I'm upgrading from 7.8.0 to 9.0.0.   Because our production is completely containerized - we take this approach:

  • Upgrade in the 7.8.0 postgres container to a new database
  • export the resource using the cmdline export tool
  • bring up a 9.0.0 postgres 12 database
  • import the exported file from above

When I try to update a data source I get this exception - what does it mean and how to fix it ?
 

com.jaspersoft.jasperserver.jaxrs.client.core.exceptions.VersionNotMatchException: Update failed: versions not match
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
	at com.jaspersoft.jasperserver.jaxrs.client.core.exceptions.handling.DefaultErrorHandler.handleBodyError(DefaultErrorHandler.java:94)
	at com.jaspersoft.jasperserver.jaxrs.client.core.exceptions.handling.DefaultErrorHandler.handleError(DefaultErrorHandler.java:66)
	at com.jaspersoft.jasperserver.jaxrs.client.core.JerseyRequest.executeRequest(JerseyRequest.java:217)
	at com.jaspersoft.jasperserver.jaxrs.client.core.JerseyRequest.put(JerseyRequest.java:159)
	at com.jaspersoft.jasperserver.jaxrs.client.apiadapters.resources.SingleResourceAdapter.createOrUpdate(SingleResourceAdapter.java:152)

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...