Migration failure: Aborting migration: Timeout to receive migration response has expired - java

I am novice to JADE ,while trying to send mobile agent to remote side i am getting an error MIGRATION FAILURE .Even after searching on web i couldn't figure out what is causing such an error .Please sort this out .
This is how i am trying to send mobile agent
AID remoteAMS = new AID("ams#192.168.2.7:12345/JADE", AID.ISGUID);
remoteAMS.addAddresses("http://vishnu-PC:7778/acc");
PlatformID destination = new PlatformID(remoteAMS);
agent.doMove(destination);

Hey after searching out myself as community didn't help i found out myself the following way:-
IPMS version required was 1.2 for JADE 4.3.2
And the the following command was to be set using cmd for the platform where i wanted to send the mobile agent
-services jade.core.mobility.AgentMobilityService;jade.core.migration.InterPlatformMobilityService -accept-foreign-agents true

Related

HTTP ERROR: 404 solr not running

Yesterday if was opening http://my-ip:3000/solr then the home page is opening of Solr.
But today I restarted VM after that is showing me like that.
HTTP ERROR: 404
Problem accessing /solr. Reason:
Not Found
Powered by Jetty://
If I run this URL http://my-ip:3000 then it shows me
Error 404 - Not Found.
No context on this server matched or handled this request.
Contexts known to this server are:
Powered by Jetty:// Java Web Server
I checked Jetty and it is running fine.
Now I'm confused whats not running. I'm new to Solr. Please help me?
Solr page is now opening on this URL http://my-ip:3000/solr
And showing me 4.4
I killed java process then it starts working
You may need going to the Solr directory: cd solr-6.2.0/ and launching it: bin/solr start The Solr admin UI will run on the port 8983 by default: http://localhost:8983/solr/. However, the support for deploying Solr 5.0 and newer on Jetty is unsuported, so you might consider another solution, without Jetty.

Error : "org.apache.axis2.AxisFault: Transport error: 403 Error: Forbidden"

In Eclipse,
"org.apache.axis2.AxisFault: Transport error: 403 Error: Forbidden"
Error occured while trying to check out a project from svn.
I colud not achieve this error and therefore I checked out the project from terminal using "svn -co" command.
But, the funny side is that, when I try to run the application from within Eclipse, I've faced w/ same error again right after I entered my credentials (username and passwd) and pressed "Login" button. The response was Invalid username/password on the JFrame, but credentials was not wrong.
This happens only in Eclipse. I can access SVN through web browser with same credentials.
And I set proxies same as web browser.
I am not able to overcome this situation furthermore.
As to give info, I am on a virtual machine(MAC OS X Lion) through win7
Please provide some solutions to me asap.
Thanks.
Here is the full stack-trace :
org.apache.axis2.AxisFault: Transport error: 403 Error: Tunnel or SSL Forbidden
at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:310)
~[axis2-transport-http-1.6.2.jar:na]
at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:194)
~[axis2-transport-http-1.6.2.jar:na]
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
~[axis2-transport-http-1.6.2.jar:na]
atorg.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:404)
~[axis2-transport-http-1.6.2.jar:na]
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:231)
~[axis2-transport-http-1.6.2.jar:na]
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
~[axis2-1.6.2.jar:na]
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)
~[axis2-1.6.2.jar:na]
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
~[axis2-1.6.2.jar:na]
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
~[axis2-1.6.2.jar:na]
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:555)
~[axis2-1.6.2.jar:na]
at org.apache.rahas.client.STSClient.requestSecurityToken(STSClient.java:154)
~[rampart-trust-1.6.2.jar:1.6.2]
at tr.org.abc.sts.client.ESBSTSClient.issueToken(ESBSTSClient.java:103)
[ServiceClient-1.1.0.7-SNAPSHOT.jar:na]
at tr.org.abc.sts.client.ESBSTSClient.validateUser(ESBSTSClient.java:92)
[ServiceClient-1.1.0.7-SNAPSHOT.jar:na]
I see this post is from a while ago. Not sure if you have resolved it yet.
I had a similar situation today with the same error via Eclipse, but it was on an app calling a SOAP WS endpoint through SSL, instead of SVN.
On further debugging, I found that was indeed the problem - null or wrong credentials. I would suggest you look back into your login credentials, SVN connectivity and other environmental issues with a notion that your credentials aren't reaching the SVN server.
"org.apache.axis2.AxisFault: Transport error: 403 Error: Forbidden"
Error occured while trying to check out a project from svn.
Are you trying to checkout a project from SVN server using Axis2?
From Wikipedia:
Apache HTTP Server as network server, WebDAV/Delta-V for protocol.
There is also an independent server process called svnserve that uses
a custom protocol over TCP/IP.
Apache Axis2 is designed for working with Web Services / SOAP / WSDL engine (client, server) is not intended for WebDAV services.
If you only want to checkout a project from a WebDAV SVN server in eclipse you can use Subversive with SVNKit. If you are developing a SVN client to perform operations like checkout you can use a Java library like SVNKit or JSVN, both have an implementation of authenticators to login and work with SVN servers.

SignalR java: client-test-integration-android : InvalidHttpStatusCodeException

I am trying to run the signalR self-host example server ( http://www.asp.net/signalr/overview/deployment/tutorial-signalr-self-host ) with the android test integration (provided with the signalr official java client). I have tested that the self-host server is accessible by clients written in C# from another machine in the local network (I changed localhost to * on the server). However, I have not been successful yet in connection from android. I get the following error:
Critical: AutomaticTransport - Error:
microsoft.aspnet.signalr.client.http.InvalidHttpStatusCodeException:
Invalid status code: 500
The full log can be seen here:
http://pastebin.com/fMPabbN1
Am I missing something? It does not look like a compilation or IP configuration error. If I don't run the server and run the tests, I get socketTimeOut, which is expected.
I ran the "Basic Connection Flow - Auto" test.
Thanks!
Adding to my answer in case someone else runs into it. It was a crappy mistake on my part, jumped into java client without understanding signalr properly! The Hub class on the server and the Hub proxy name has to be the same. So on the server side the class:
public class MessageHub : Hub
And on the client side
HubProxy hub = connection.createHubProxy( “MessageHub” );
And voila!

Java Salesforce Integration Error

I'm trying to connect to salesforce from a java application. I was earlier getting a login error as follows which was resolved by setting the appropriate proxy settings.
com.sforce.ws.ConnectionException: Failed to send request to https://login.salesforce.com/services/Soap/c/29.0
Now, I'm getting the following error:
com.sforce.ws.ConnectionException: Failed to send request to https://ap1.salesforce.com/services/Soap/m/29.0/00D90000000q0ZR
at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:121)
at com.sforce.soap.metadata.MetadataConnection.describeMetadata(MetadataConnection.java:281)
at integration.IntegrationClass.describeMetadata(IntegrationClass.java:80)
at integration.IntegrationClass.main(IntegrationClass.java:26)
Caused by: java.net.ConnectException: Connection refused: connect
Any ideas on how to resolve this error? Thanks!
UPDATE: I tried the code at my home (free from the restrictions of the office firewalls et al :) ) and found that the code ran successfully. Any ideas about changes that I should make to do the same at the company. As I already said, I added the config.setProxy(host, port) which allowed me to successfully log in, but not access the application. I have also enabled proxy from eclipse using Preferences -> General -> Network Connections. What am I missing?
Thanks a lot for your help. Cheers!
Ok, I got the solution and it's kinda silly, but since I didn't spot it anywhere else inspite of seeing similar questions, I'm going to post the solution.
The ConnectorConfig config = new ConnectorConfig(); is used multiple times; in my case, it is first used to login using new EnterpriseConnection(config)).login(username, password); and next to obtain a metadata connection using new MetadataConnection(config);. Since I'm creating 2 ConnectorConfig objects, I would need to use the setProxy method on both, which I...forgot. Hope this solution helps other people having the same problem.
Cheers!

IWAB0014E Unexpected exception occurred while creating web service

I'm trying to create a web service, as I am new to web service development I followed the following post.
I am using Ecplise Helios,Windows 7 32 bit,Tomcat v6.0
There are three steps:
1.Create Dynamic Web project.
2. Create Web Service Provider Java Class.
3.Create a Web Service.
At point 3.create a Web service I am getting two error:
1.Several ports (8080, 8009) required by Tomcat v6.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).
This error has been resolved using one of the community post.
2.IWAB0014E Unexpected exception occurred.
The char '0x0' after 'return code: 400
Cycle Detected
Cycle Detected
Description: Your request is prohibited because it would cause a cycle.
' is not a valid XML character.
java.lang.IllegalArgumentException: The char '0x0' after 'return code: 400
<HEAD><TITLE>Cycle Detected</TITLE></HEAD>
<BODY BGCOLOR="white" FGCOLOR="black"><H1>Cycle Detected</H1><HR>
<FONT FACE="Helvetica,Arial"><B>
Description: Your request is prohibited because it would cause a cycle.</B></FONT>
This error is some what similar to this post but the error code returned is different in my case it is "400"
Any tips on how to resolve this would be greatly appreciated.
This is happening because of improper setup of Axis2.
Steps:
Download Axis2 : Link--> http://ws.apache.org/axis2/download.cgi
Point the Axis2 runtime dir in eclipse : Menu--> Windows--> Preference --> Web Services--> Axis2 Preferences
Follow this link for more details: http://www.eclipse.org/webtools/community/tutorials/BottomUpAxis2WebService/bu_tutorial.html

Categories