I am working on a Java web service client development . I am using STS tool and Maven apache cxf plugin , Java 1.8. While executing it , I am getting following error for JaxWsClientProxy:
javax.xml.ws.soap.SOAPFaultException: Response message did not contain proper response data.
Expected: {<targetNameSpace>}ServerResponseMessage
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:161)
at com.sun.proxy.$Proxy40.createdEndDeviceControls(Unknown Source)
In my pom.xml I have only added the cxf-spring-boot-starter-jaxws for version 3.2.4 dependency.
Can someone please let me know what is the reason for this error . The method createdEndDeviceControls exists in the corresponding Port
Please Help .
Best Regards,
Sudeshna Bhattacharya
Related
We are trying to upgrade one of our application from spring boot 1.5 to spring boot 2.3 (tried 2.6 also). We have made the necessary changes in pom and application.yml. This works fine in local . but, we we are trying to deploy this to dev/stage then deployment is failing( we are using concourse pipeline to deploy). To make sure we tried deploying the previous package(spring boot 1.5) it works fine. we are not seeing any error in our output logs other than the below one. we are just seeing the below error repeatedly and deployment fails. Any help would be highly appreciated. Just to highlight we are using Java 11. Thank you.
Error in output logs:
E0422 19:09:35.020452 4210 throttler_api.cc:71] GRPC: src/core/lib/security/transport/handshake.c:128 Security han
dshake failed: {"created":"#1650654575.020440344","description":"Handshake failed","file":"src/core/lib/security/tr
ansport/handshake.c","file_line":264,"tsi_code":10,"tsi_error":"TSI_PROTOCOL_FAILURE"}
E0422 19:11:35.020635 4210 throttler_api.cc:71] GRPC: src/core/lib/tsi/ssl_transport_security.c:945 Handshake fail
ed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify faile
d.
I get this error while executing the AWS Tetxtract API .
Exception in thread "main" java.lang.NoSuchMethodError:
com.amazonaws.client.AwsSyncClientParams.getAdvancedConfig()Lcom/amazonaws/client/builder/AdvancedConfig;
at
com.amazonaws.services.textract.AmazonTextractClient.(AmazonTextractClient.java:149)
at
com.amazonaws.services.textract.AmazonTextractClient.(AmazonTextractClient.java:133)
at
com.amazonaws.services.textract.AmazonTextractClientBuilder.build(AmazonTextractClientBuilder.java:61)
at
com.amazonaws.services.textract.AmazonTextractClientBuilder.build(AmazonTextractClientBuilder.java:27)
at
com.amazonaws.client.builder.AwsSyncClientBuilder.build(AwsSyncClientBuilder.java:46)
at
com.tr.fundamental.s3FileUploader.AnalyzeDocument.main(AnalyzeDocument.java:177)
I have downloaded the latest Textract jar and included in my build path .
I do not get any compilation error ,but when i run i get this error at this point
// Call AnalyzeDocument
EndpointConfiguration endpoint = new EndpointConfiguration("https://textract.us-east-1.amazonaws.com", "us-east-1");
AmazonTextract client = AmazonTextractClientBuilder.standard().withEndpointConfiguration(endpoint).build();
My credential and all are correct and able to connect to S3 as well.
I am not sure what i am missing .
Please help
A possible issue is that you are using difference artefact versions your aws libraries.
In case you are using Maven, have a look on:
https://stackoverflow.com/a/55330900/2353294
Ok let me answer my question .
So using Default client solved my issue .
EndpointConfiguration endpoint = new EndpointConfiguration("https://textract.us-east-1.amazonaws.com", "us-east-1");
AmazonTextract client = AmazonTextractClientBuilder.defaultClient();
This is happening due to version mismatch of aws sdk and textract. Keep same version, it would start working
I was also getting the same issue, I have degraded the version and the issue get resolved.
It happens due to version mismatch.
I have started using IVONA TTS and AWS is a dependancy of it, so I have also imported that to the project. My problem is that when running even the sample Java application I get the following error:
Exception in thread "main" java.lang.NoSuchMethodError: com.amazonaws.auth.AWS4Signer.presignRequest(Lcom/amazonaws/Request;Lcom/amazonaws/auth/AWSCredentials;Ljava/util/Date;)V
at com.ivona.services.tts.IvonaSpeechCloudClient.prepareRequest(IvonaSpeechCloudClient.java:292)
at com.ivona.services.tts.IvonaSpeechCloudClient.prepareRequestForGetUrl(IvonaSpeechCloudClient.java:270)
at com.ivona.services.tts.IvonaSpeechCloudClient.getCreateSpeechUrl(IvonaSpeechCloudClient.java:159)
at filetest.TextToSpeech.main(TextToSpeech.java:49)
TextToSpeech.java:49 being:
System.out.println("Requested URL: " + speechCloud.getCreateSpeechUrl(createSpeechRequest));
I'm using AWS version 1.10.12 (latest), but I've also tried several other previous versions only to get the same error. I've checked the class file "AWS4Signer", and the method "presignRequest" does exist, so I'm confused as to why I'm getting this error. If needed, here is the sample I used.
I'll be happy to add any more information if required. Any help would be greatly appreciated.
Your error is NoSuchMethod - I suspect that there is a version mismatch. Check from Ivona which version of AWS you need to use. According to Ivona's pom.xml it is 1.9.19.
I wrote a simple web service program but I can not test it on glassfish 4.0 web server .
When I Test Web service I see this message :
Make sure the service has been deployed successfully, and the server is running.
I can see it in list of deployed web services on glassfish web server .
and I add this file to \jdk1.8.0\jre\lib to fix the problem.
jaxp.properties
javax.xml.accessExternalSchema = All
But it doesn't work
Also I see this error in url of tester page :
lineNumber: 52; columnNumber: 88; schema_reference: Failed to read schema document 'xjc.xsd', because 'bundle' access is not allowed due to restriction set by the accessExternalSchema property.
Thanks in advance
This worked for me:
From NetBeans IDE 8, deploy your web application in order to start GlassFish (right-click on your web project and choose Deploy)
Open the GlassFish console on your browser (http://localhost:4848/common/index.jsf if you are working locally with default configuration)
Create a new JVM option with value: -Djavax.xml.accessExternalSchema=all (I recomend you to read https://javaee.github.io/glassfish/doc/4.0/administration-guide.pdf at page 119). Don't forget to save it.
Restart GlassFish (by clicking on the message near upper left corner)
That must be enough... so, try to test your web service again.
I don't know where GlassFish is saving that change...
Sorry for my english :)
This is answer :
https://netbeans.org/kb/docs/websvc/jax-ws.html#extschema
You should configure IDE and Glassfish server directly .
With special thanks to Pablo
I am attempting to create/deploy an application onto the Redhat OpenShift Express platform, and am attempting to do this via eclipse using the JBoss OpenShift plugins.
I am following the instructions here: https://www.redhat.com/openshift/community/blogs/getting-started-with-the-openshift-eclipse-plug-in-for-java-applications-on-the-cloud
But when entering my user credentials I get an error preventing me getting any further:
Could not check user credentials: Could not unmarshall response "
{"data":
{"user_info":
{"env_vars":null,
"max_gears":5,
"system_ssh_keys":null,
"uuid":"5a81de3405fe4ac6b5718dbb8540736f",
"rhc_domain":"rhcloud.com",
"rhlogin":"robert.hinds#accenture.com",
"ssh_keys":
{"laptop":{"type":"ssh-rsa","key":"AAAAB3NzaC1yc2EAAAABIwAAAQEAw5GIjtI+B42SBv2kmV32OHI5tCBO7JWmlhF7w9dNy2Tp7MNtK8nE7nLUKYyXSZRzK0i4azPuMDDmmJ4jFpcyAwRdzBM43xZLo/6MlMFneT3t66ukNMNOgYptiRH7Zy8Tmjquwu2dXpui77tRQaEpq4Ms/JxHvanD+YMDNTXlrv8gIDwOjhtetuyeKbf/sr+UK1Bit8eDTgai01UmjXm+u/0Hi1tD6oG/GwNviQKb/2gmrmEs0uPhcJ9Olzrn67Gyu7c2PFOjTEvOXMQHjSUrVp905t8SzffiJ7uWzVnvufrweC5gXlR/v1tp3FrFgRcZVmZX6QlhyOiy5Tr1cLD8pw=="}},
"consumed_gears":0,
"vip":false,
"namespace":"star",
"ssh_key":null,
"ssh_type":null
},
"app_info":{}
},
"api_c":["placeholder"],
"messages":"",
"broker_c":["namespace","rhlogin","ssh","app_uuid","debug","alter","cartridge","cart_type","action","app_name","api"],
"exit_code":0,
"debug":"",
"api":"1.1.3",
"result":""
}
has anyone come across this previously? I am on Win7 Eclipse Indigo on JDK7
Update:
I get this problem using the following versions/steps
Using Eclipse: Eclipse Java EE IDE for Web Developers. Version: Indigo Service Release 2 Build id: 20120216-1857
Installed the OpenShift express tools from the JBoss software update site here: http://download.jboss.org/jbosstools/updates/development/indigo/ today (the current version that is downloaded today!)
Then simply file > new > openshift aplication, then enter my username and password (created today with OpenShift Express) and I get the error.
hope thats helpful - will wait for the update to the software.
this is a "known" issue in the sense that you're not the first that reported this:
https://issues.jboss.org/browse/JBIDE-11431
The "interesting" part is that unmarshalling the response fails because of the following 2 properties with null values:
"ssh_key":null,
"ssh_type":null
This error occurrs since OpenShift added support for several keys. We fixed the unmarhslling issue but still dont know how to reproduce it. If you can we'd be very happy to get your instructions.
The fixed version of our client plugin will make it to our nightly update site in a few days. Stay tuned!