i'm working in a kofax application connected with oracle database.
i found an error as
ERROR markview.viewer.MvViewer
org.springframework.remoting.RemoteAccessException: Could not access HTTP invoker remote service at [ias9:opmn:ormi://uhmvtst.uhhs.com:6003:markview_tst4/mvas/remote/EnterpriseService]; nested exception is java.net.MalformedURLException: unknown protocol: ias9
at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.convertHttpInvokerAccessException(HttpInvokerClientInterceptor.java:211)
i'm getting as connection failed to open. could any one help me to solve this issue.
The Spring HTTP invoker is for HTTP. It's not going to work with that URL you gave it (ias9:opmn:ormi://uhmvtst.uhhs.com:6003:markview_tst4/mvas/remote/EnterpriseService)
Related
I have a java web application hosted on aws ec2 linux instance. I bought a domain from amazon's Route 53 service and enabled the SSL from ACM.
I am able to access the application using domain name e.g https://www.example.com.
The problem comes when inside the application there is an API call using Spring Rest Template. Getting the following error.
There was an unexpected error (type=Internal Server Error, status=500).
I/O error on GET request for "https://www.example.com/portal-war/api/get/something/id22222":
Connection refused (Connection refused); nested exception is java.net.ConnectException: Connection refused (Connection refused)
If I access the same api https://www.example.com/portal-war/api/get/something/id22222 outside the application (e.g. in browser or postman) , its working perfectly.
Please help me out to fix this issue!
I am trying to create a connection pool and trying to consume the Datasource remotely using tomee. I am getting an Exception when i try to do this.
I have defined the DataSource resource in tomee.xml. Then I am trying to access this resource remotely using standard boiler plate code for getting the initialContext (props). I tried for a sample resource like, javax.jms.Queue which works fine, gives no error. but when i try to consume the DataSource resource, getting an exception at the client side. When tomee is started, there is no error in the logs. I can see status 200 in the localhost access log for every request to consume the DataSource resource. I did a research and i read somewhere, that this is a bug. Has anyone done this before ? Thanks in advance.
below is the exception i am getting at the client side.
Exception in thread "main" java.lang.ClassCastException:
org.apache.openejb.client.ThrowableArtifact cannot be cast to
java.lang.Error at
org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:294)
URL used to connect to the server remotely,
http:localhost:8080/demo/tomee/ejb
When i define this resources on the server.xml and contex.xml, and try to access it locally, it works fine. Any help is appreciated.
While trying to execute a REST call using restTemplate.postForEntity of spring framework i am getting the below error from weblogic
org.springframework.web.client.ResourceAccessException : I/O Error on POST Request
.
.
Caused By : Java.io.IOException : An established connection was aborted by the software in your host machine
Same REST Call is working from normal java main method.Method call from Java Main Method was also giving the same exception but its able to connect to the https url after adding the below two lines
System.setProperty("javax.net.ssl.keyStore","jks");
System.setProperty("javax.net.ssl.keyStorePassword","pass");
If adding the above lines resolved the issue in normal java project, what is the difference with weblogic?
How do i debug the certificate issue when code is deployed in weblogic server?
I'm using IntelliJ IDEA to implement the Spring Guide for consuming REST services
https://spring.io/guides/gs/consuming-rest/
When I run the Application class I receive the following error
Exception in thread "main" org.springframework.web.client.ResourceAccessException:
I/O error on GET request for "https://gturnquist-quoters.cfapps.io/api/random":
gturnquist-quoters.cfapps.io;
nested exception is
java.net.UnknownHostException: gturnquist-quoters.cfapps.io
The URL itself (https://gturnquist-quoters.cfapps.io/api/random) opens fine in a browser and my HTTP Proxy settings in IntelliJ can connect to the site without any issues. Why would an UnknownHostException be thrown here?
Hey I know this is a bit late, but here is what I had to do to resolve this issue. Even if you are using system proxies, for whatever reason, using this type of GET request requires you to build out a proxy to use in the call, like so.
Example Image
I am using qpid broker(0.28) and qpid JMS client to communicate to the broker. I want to use amqp1.0 protocol and when I try the example given here, using a connection url as amqp://guest:guest#localhost:5672?clientid=test, I get error as it is not able to connect to the qpid host
Caught exception: Unknown hostname localhostjavax.jms.JMSException: Unknown hostname localhost
at org.apache.qpid.amqp_1_0.jms.impl.SessionImpl.(SessionImpl.java:97)
at org.apache.qpid.amqp_1_0.jms.impl.ConnectionImpl.createSession(ConnectionImpl.java:231)
at org.apache.qpid.amqp_1_0.jms.impl.ConnectionImpl.createSession(ConnectionImpl.java:210)
at org.apache.qpid.amqp_1_0.jms.impl.ConnectionImpl.createSession(ConnectionImpl.java:40)
When I change my connection url to amqp://guest:guest#localhost:5672?clientid=test&remote-host=default I get an error as
Caused by: org.apache.qpid.amqp_1_0.client.Sender$SenderCreationException: Peer did not create remote endpoint for link, target: ping
at org.apache.qpid.amqp_1_0.client.Sender.(Sender.java:185)
at org.apache.qpid.amqp_1_0.client.Sender.(Sender.java:113)
at org.apache.qpid.amqp_1_0.client.Sender.(Sender.java:106)
at org.apache.qpid.amqp_1_0.client.Sender.(Sender.java:92)
at org.apache.qpid.amqp_1_0.client.Sender.(Sender.java:78)
at org.apache.qpid.amqp_1_0.client.Sender.(Sender.java:72)
at org.apache.qpid.amqp_1_0.client.Session$1.(Session.java:90)
at org.apache.qpid.amqp_1_0.client.Session.createSender(Session.java:89)
Can someone please help in understanding what exactly is happening? What wrong am I doing?