Skip to content
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

SingleResourceAdapter.uploadFile throws SocketException #279

Open
bill-okara opened this issue Feb 4, 2017 · 0 comments
Open

SingleResourceAdapter.uploadFile throws SocketException #279

bill-okara opened this issue Feb 4, 2017 · 0 comments

Comments

@bill-okara
Copy link

bill-okara commented Feb 4, 2017

Hi,

I have a
ClientSemanticLayerDataSource (uri='/test/reporting'), with a schema file at
ClientFile (uri='/test/reporting/testReporting1_Domain_files/testReporting1.xml'),

when i tried to do a uploadFile on resource
SingleResourceAdapter adapter = session.resourcesService()
.resource('/test/reporting/testReporting1_Domain_files')
.uploadFile(newSchemaFile, ClientFile.FileType.xml, "schema", "schema update")

I got the following errors.

Q:

  1. Is this a bug? or just usage error?
  2. if it's usage error, which api should be used to replace the schema file for the ClientSemanticLayerDataSource?

NOTE: this happens after upgraded to jasperserver v6.3.

P.S. I tried to use the createOrUpdate on the existing schema ClientFile resource ( setContent(newSchemaContent)), but that corrupted the schema (the content got from the schema file resource (downloadBinary() are all gibberish after the createOrUpdate).


javax.ws.rs.ProcessingException: java.net.SocketException: Connection reset
at org.glassfish.jersey.client.internal.HttpUrlConnector.apply(HttpUrlConnector.java:287)
at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:255)
at org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:684)
at org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:681)
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:444)
at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:681)
at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:437)
at org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:343)
at com.jaspersoft.jasperserver.jaxrs.client.core.JerseyRequest.executeRequest(JerseyRequest.java:185)
at com.jaspersoft.jasperserver.jaxrs.client.core.JerseyRequest.post(JerseyRequest.java:155)
at com.jaspersoft.jasperserver.jaxrs.client.apiadapters.resources.SingleResourceAdapter.uploadFile(SingleResourceAdapter.java:226)

Thanks!
Bill

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant