HTTP status 500 for wso2 carbon application - java

I tried this tutorial and after entering with admin as in step 8, I got the error as follows:
HTTP Status 500 - Exception while making the decision : org.apache.axis2.AxisFault: Connection refused: connect
org.wso2.carbon.identity.entitlement.filter.exception.EntitlementFilterException: Exception while making the decision : org.apache.axis2.AxisFault: Connection refused: connect
org.wso2.carbon.identity.entitlement.filter.EntitlementFilter.doFilter(EntitlementFilter.java:191)

1)
Is your WSO2 Server running against loclahost only or is it just running on his IP adres? Looks like you are not able to contact the server through this IP and/or port number.
2)
Are there any proxies defined? If so, try to disable them.

Related

How to use spring rest template with SSL enabled domain

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!

Failed to connect remote VM. Connection timed out(Failed to connect remote VM. Connection timed out)

Launch error: Failed to connect to remote VM. Connection timed out
Project -SDK
Connection type - Standard (Socket Attach)
Host: IP address of the SAP server
Port: 8080
There is nowhere like enough information in your question to identify the actual cause of your problem (or the fix), but problems like this typically occur because:
you are using the wrong hostname or IP address when connecting to the server
the server is off
a firewall is blocking your access to the server
there is something wrong with the network.
Hope this will give you some ideas about what to look for.

Problem: curl: (7) Failed to connect to localhost port 1080: Connection refused

I have a problem to send requests to the backend of my project, I already tried deactivating the firewall and proxy but did not get results.
As far as I can see, there is a port through which my request passes first and it doesn't let me get to the backend.
I already tested with cURL by console and Postman but there was no result. By console I get this error:
curl: (7) Failed to connect to localhost port 1080: Connection refused
The project is made in Java with Spring and I use webservices.
Here is an example of my request:
curl http://localhost:9081/auth/login/
And this is the result request
curl: (7) Failed to connect to localhost port 1080: Connection refused
What can i do?
Check if you have env variable HTTP_PROXY set. In My case, after removing the the environment variable.. 'curl' command executed successfully.

Java RMI - Lookup Success , but method call fails - Onpremise Vs AWS

I have a java code which makes connection to a Java RMI server - lookup followed by method invocation.
Both machine are under the same firewall in onpremise and works as expected.
When my client/java moved to AWS, the RMI server is still running in on-premise.. But here in this case, it fails with below error..
Lookup success, method call failed..
Lookup for Remote Object Successful.
ErrorMessage:startupFunction : RemoteException Caught.. Connection refused to host: XXXXX ; nested exception is:
java.net.ConnectException: Connection timed out
PS : I see similiar issue in this post, but nothing seems to work in my case
You need to export your remote object on a fixed port, and open that port in your firewall.
Fixed this by adding the port used by RMI Method.. We ran the request from on-premise and in the RMI host we ran netstat and captured the port list.. This way we could figure out the port and enabled in Security group in AWS.. thanks all for your help..

Unknown hostname exception when trying to connect to qpid host

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?

Categories

Resources