Error unmarshaling return header nested exception is

I got the following error when running gradlew test : e: java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is: java.io.EOFException at sun.rmi.transport.StreamRemoteCa...
e: java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is: 
    java.io.EOFException
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:236)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:161)
    at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:227)
    at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:179)
    at com.sun.proxy.$Proxy112.clearJarCache(Unknown Source)
    at org.jetbrains.kotlin.compilerRunner.GradleCompilerRunner.compileWithDaemon(GradleKotlinCompilerRunner.kt:216)
    at org.jetbrains.kotlin.compilerRunner.GradleCompilerRunner.compileWithDaemonOrFallback(GradleKotlinCompilerRunner.kt:156)
    at org.jetbrains.kotlin.compilerRunner.GradleCompilerRunner.compileWithDaemonOrFallback(GradleKotlinCompilerRunner.kt:52)
    at org.jetbrains.kotlin.compilerRunner.KotlinCompilerRunner.runCompiler(KotlinCompilerRunner.kt:127)
    at org.jetbrains.kotlin.compilerRunner.GradleCompilerRunner.runJvmCompiler(GradleKotlinCompilerRunner.kt:107)
    at org.jetbrains.kotlin.gradle.tasks.KotlinCompile.callCompiler$kotlin_gradle_plugin(Tasks.kt:326)
    at org.jetbrains.kotlin.gradle.tasks.KotlinCompile.callCompiler$kotlin_gradle_plugin(Tasks.kt:231)
    at org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile.execute(Tasks.kt:203)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
    at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.java:179)
    at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:135)
    at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:122)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:121)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:110)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
    at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62)
    at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:97)
    at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:87)

Hi,

I have written rmi code for implementing callbacks. but while registering the client object witht he server i am getting the exceptions
java.rmi.UnmarshalException: Error unmarshaling return header; nested exception
is:
java.io.EOFException
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
203)

following is the code

Server code
package rmistock;

import java.rmi.*;
import java.rmi.server.*;
import java.rmi.registry.LocateRegistry;
import java.util.*;

public class StockInfoImpl extends UnicastRemoteObject implements StockInfo, Runnable
{

private Vector clients = new Vector();

public StockInfoImpl() throws RemoteException { }

public void run()
{

int counter = 0;
while (true)
{

for (Enumeration e = clients.elements() ; e.hasMoreElements() ;)
{

// send an updated price for all stocks to each client
StockUpdate client = (StockUpdate) e.nextElement();
try
{
client.update(«deepak», «» + counter);
counter++;
}
catch (RemoteException ex)
{
System.out.println(«update to client » + client + » failed.»);
try
{
unregister(client);
}
catch (RemoteException rex)
{
System.err.println(«Big trouble.»);
rex.printStackTrace();
System.exit(3);
}
}
}
// sleep for 5 second
try
{
Thread.sleep(5000);
}
catch (InterruptedException iex)
{
iex.printStackTrace();
}
}
}

public synchronized void register(StockUpdate o) throws RemoteException
{

if (!(clients.contains(o)))
{
clients.addElement(o);
System.out.println(«Registered new client » + o);
}
}

public synchronized void unregister(StockUpdate o) throws RemoteException
{
if (clients.removeElement(o))
{
System.out.println(«Unregistered client » + o);
}
else
{
System.out.println(«unregister: client » + o + «wasn’t registered.»);
}
}

public static void main(String args[])
{
System.setSecurityManager(new RMISecurityManager());
StockInfoImpl sii = null;
try
{
//LocateRegistry.createRegistry(5001);
sii = new StockInfoImpl();
Naming.rebind(«//192.168.52.102:5001/rmistock.StockInfo», sii);
}
catch (Exception e)
{
e.printStackTrace();
}
try
{
System.out.println(«StockInfoImpl registered and ready»);
Thread updateThread = new Thread(sii, «StockInfoUpdate»);
updateThread.start();
}
catch (Exception e)
{
e.printStackTrace();
}
}
}

Client code

package rmistock;

import java.net.URL;
import java.rmi.*;
import java.rmi.server.*;
import java.util.*;
import java.io.*;

public class StockWatchText implements StockUpdate, Serializable
{
public static void main(String args[])
{
String host = «192.168.52.102»;
StockInfo stockInfo = null;
/*
if (args.length > 0)
{
host = args[0];
}
*/
StockWatchText swt = new StockWatchText();
try
{
UnicastRemoteObject.exportObject(swt);
}
catch(Exception ex)
{
System.out.println(«error is here deepak test1 nn»);
ex.printStackTrace();
}
String serverName = «//» + host + «:» + «5001» + «/rmistock.StockInfo»;
try
{
stockInfo = (StockInfo)Naming.lookup(serverName);
}
catch(Exception ex)
{
System.out.println(«error is here deepak test2 nn»);
ex.printStackTrace();
}
try
{
stockInfo.register(swt);
}
catch (Exception e)
{

System.out.println(«error is here deepak test3 nn»);
e.printStackTrace();
System.exit(2);
}
}

public synchronized void update(String symbol, String price) throws RemoteException
{
System.out.println(symbol + «: » + price);
}
}

Содержание

  1. RemoteException java.rmi.UnmarshalException: error unmarshalling return [duplicate]
  2. 5 Answers 5
  3. Android Kotlin compilation always fails #2945
  4. Comments
  5. Location
  6. java.rmi.ConnectException: Connection refused to host and java.rmi.UnmarshalException: Error unmarshaling return header;
  7. Error: System.PublishingTools.GPServer: java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is: java.net.SocketException: Connection reset
  8. Error Message
  9. Cause
  10. Solution or Workaround
  11. Related Information
  12. Error unmarshaling return header; nested exception

RemoteException java.rmi.UnmarshalException: error unmarshalling return [duplicate]

I’m running the program here on 2 JVMs on diff physical machines. I get the error

I’ve even tried running it on the same machine(unchanged program) and it works but it doesnt work on diff machines. Can someone pls help me out?

@beny23- Thanks but I still end up with this error:

How can the client side have a copy of CalculatorImpl_stub?

5 Answers 5

I had this problem because I had different package names in client and server code:

I changed the name of client-side package and set it as the name of server-side package:

and the problem went away.

I had a working RMI Client and Server for my Java class. I decided to place these into their own packages rather than running as a default package.

After I placed them in their own Packages the java.rmi.UnmarshalException: error unmarshalling return; nested exception is: java.lang.ClassNotFoundException: error started happening on connection,.

I put the programs back into the default package and it all started working again.

I realize that there is probably a technical reason for this, but this worked for me!

It sounds like your not using a security manager:

Have you got a policy file ( my.policy ):

and run your program using

There are three cases.

If you get the error when binding to the Registry, the Registry doesn’t have access to that class on its classpath or via the codebase feature.

If you get the error when looking up the Registry, your client doesn’t have access to that class on its classpath or via the codebase feature.

If you are using the codebase feature, that in turn can be caused by the Registry having access to that class on its classpath, which causes it not to use the codebase, which causes loss of the codebase annotation, so your client doesn’t know to use the codebase for that class.

If you aren’t using the codebase feature, ignore the previous paragraph 😉

Источник

Android Kotlin compilation always fails #2945

When circle-ci builds the android application it always fails with this error:

Current CI configuration:

This builds successfully for me locally, but I can not seem to get circle-ci to do the same.

Location

When running build through Circle CI.

The text was updated successfully, but these errors were encountered:

Hi @niccorder, thanks for filing an issue!

It looks like your issue might be similar to one posted on the CircleCI discuss forum — it sounds like you could be running out of memory. Another user posted some success after bumping their version of Kotlin (although, this was in Oct 2017.)

Let me know if the linked thread helps, and if not we can try and figure something out!

I am having the same issue, I tried a lot of variation with heap size and disable parallel executions and everything I could think of or I found on the net. Any update on this. (I use the latest Kotlin version: 1.3.21)

Same for me, my builds keep on failing no matter which configuration I try. Any news?
It’s quite annoying as we can’t release any build. We would prefer to avoid that but we might need to drop CircleCI if there is no solution on the way.

@drazisil can you help out with this question?

We no longer update the -alpha images, so perhaps updating to one of the support tags would help https://hub.docker.com/r/circleci/android/

Hey @drazisil,
Thanks for your feedback.

I’m already using the latest Kotlin version (1.3.21) so I guess that’s not the origin of the problem.
I just tried using android-28 (instead of android-28-alpha ) Docker image and the problem still persists. It keeps on failing every single time, even though I’m using the —no-daemon flag.

It’s very possibly something outside our control, but can you please open a ticket at support.circleci.com so we can take a look?

Following up — This is what fixed it for me a while back.

If I remember correctly the problem is that kapt runs into permission errors when trying to use the cache across build flavors/types. The permission error has something to do with the docker setup in this Docker image.

I did not look into this further once I found this workaround from the link above.

Hi, this has been a tough one to debug, in the end the following line from a CircleCI android orb fixed it for me:

GRADLE_OPTS: -Xmx1536m -XX:+HeapDumpOnOutOfMemoryError -Dorg.gradle.caching=true -Dorg.gradle.configureondemand=true -Dkotlin.compiler.execution.strategy=in-process -Dkotlin.incremental=false

My gradle.properties is pretty default:

Other project dependencies worth mentioning:

  • API Level 28 ( circleci/android:api-28 )
  • Gradle 4.10.2
  • Android Gradle plugin 3.3.2
  • Kotlin 1.3.21

That did it for me. Thanks a lot @fefranca !

For a lot of people, it seems adding the GRADLE_OPTS line helped resolve their unmarshaling error. For me, that line actually broke all of my unit tests before getting to the command that causes the unmarshaling error. For our build, our gradle memory was used up after running all of our unit tests. The solution was to clear the gradle cache after all of the unit tests ran, but before building and pushing to the store. We added the command rm -fr

/.gradle/daemon/ to our travis file, and that resolved the unmarshaling error for us.

In android/gradle.properties file

I have set below memory tweaking configuration and it is working.

Источник

java.rmi.ConnectException: Connection refused to host and java.rmi.UnmarshalException: Error unmarshaling return header;

I’ve been learning about RMI and I started with the Hello World program, which I got to work, and then began using other sample programs which all worked. (well there were errors, but I debugged them with the help of google/stackoverflow). and now I began writing my own project, which is basically a Traveling Salesman implementation that offloads the intense computation to a server.

Everything was working fine, when suddenly all my server RMI implementations broke. ie. when I run computeEngine from Eclipse as an RMI application (I use the RMI plugin), I get either the error:

I have 4-5 different RMI applications that were all working and then all of a sudden the «ComputeEngine.java» file which I run on the server started returning one of these 2 errors for every single one of my applications.

Note: since I am testing these applications, I use «localhost» as my server hostname. In otherwords, the server and the client are the same machine.

Things I have tried:

  1. I have checked my etc/hosts/ file and found that 127.0.0.1 is set as localhost. I also created a new machine entitled «virtualmachine» and used my public IP address. Both did not work.
  2. I have double and triple checked my server.policy and client.policy files, and both seem to be fine.
  3. I have tried running the RMI application from terminal (instead of using the RMI plugin from eclipse) and I get the same errors
  4. I quit all java processes and reran everything making sure I started the server first (other threads suggested that these errors come from running the client first)
  5. I’ve portscanned myself and port 1099 (the default rmi port) says «LISTEN» when I run my server (even though the server is returning an exception).
  6. I’ve tried changing java.rmi.server.hostname, but nothing has seemed to help so far.

I’m not understanding how I’m not getting connection to host when I am running both the server and client on the same computer.

I preemptively apologize from being sucky at RMI and Java and missing some likely obvious solution.

Should I include any source code from what I have been trying to run?

Источник

Error Message

In ArcGIS Server, publishing a service returns the following error message:

Cause

The ArcGIS Server account does not have the appropriate permissions to access the required folders. This commonly occurs in environments that apply group policies through an Active Directory, which can automatically revoke account privileges based on the policy configured.

Solution or Workaround

  • Option A: Add the ArcGIS Server account under the Administrator group in Windows. The following Microsoft TechNet document describes how to do this: How to Add a Computer Account to a Group.
  • Option B: Ensure that appropriate permissions are granted to the ArcGIS Server account. For more information on the required permissions, refer to the following web help page: ArcGIS for Server: What permissions do I need to grant to the ArcGIS Server account?
  • Option C: Repair the ArcGIS for Server installation and reapply the ArcGIS Server service account’s permissions.
  1. Click Windows Start >Control Panel.
  2. From the Control Panel window, click Programs and Features.
  3. In the Uninstall or change a program window, click ArcGIS for Server and select the Uninstall/Change button.

  1. In the ArcGIS for Server Setup window, select the Repair option and follow the instructions in the wizard.
  2. Once the ArcGIS for Server repair is completed, run the Configure ArcGIS Server Account wizard to reapply the ArcGIS Server service account’s permissions. The following ArcGIS for Server document describes how to do this in detail: Changing the ArcGIS Server account.

Last Published: 8/1/2017

Article ID: 000014195

Software: ArcGIS GeoEvent Server 10.4.1, 10.4 ArcGIS Server 10.4.1, 10.4 ArcGIS Image Server 10.4.1, 10.4

Download the Esri Support App on your phone to receive notifications when new content is available for Esri products you use

Download the Esri Support App on your phone to receive notifications when new content is available for Esri products you use

Источник

I have written rmi code for implementing callbacks. but while registering the client object witht he server i am getting the exceptions
java.rmi.UnmarshalException: Error unmarshaling return header; nested exception
is:
java.io.EOFException
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
203)

following is the code

Server code
package rmistock;

import java.rmi.*;
import java.rmi.server.*;
import java.rmi.registry.LocateRegistry;
import java.util.*;

public class StockInfoImpl extends UnicastRemoteObject implements StockInfo, Runnable
<

private Vector clients = new Vector();

public StockInfoImpl() throws RemoteException

public void run()
<

int counter = 0;
while (true)
<

for (Enumeration e = clients.elements() ; e.hasMoreElements()
<

// send an updated price for all stocks to each client
StockUpdate client = (StockUpdate) e.nextElement();
try
<
client.update(«deepak», «» + counter);
counter++;
>
catch (RemoteException ex)
<
System.out.println(«update to client » + client + » failed.»);
try
<
unregister(client);
>
catch (RemoteException rex)
<
System.err.println(«Big trouble.»);
rex.printStackTrace();
System.exit(3);
>
>
>
// sleep for 5 second
try
<
Thread.sleep(5000);
>
catch (InterruptedException iex)
<
iex.printStackTrace();
>
>
>

public synchronized void register(StockUpdate o) throws RemoteException
<

Источник

Error Message

In ArcGIS Server, publishing a service returns the following error message:

Error:   
System.PublishingTools.GPServer: java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is: java.net.SocketException: Connection reset

Cause

The ArcGIS Server account does not have the appropriate permissions to access the required folders. This commonly occurs in environments that apply group policies through an Active Directory, which can automatically revoke account privileges based on the policy configured.

 

Solution or Workaround

Warning:   
It is recommended that users backup their data before proceeding. If necessary, consult with the organization's IT administrator before making the following changes.
  • Option A: Add the ArcGIS Server account under the Administrator group in Windows. The following Microsoft TechNet document describes how to do this: How to Add a Computer Account to a Group.
     
  • Option B: Ensure that appropriate permissions are granted to the ArcGIS Server account. For more information on the required permissions, refer to the following web help page: ArcGIS for Server: What permissions do I need to grant to the ArcGIS Server account?
     
  • Option C: Repair the ArcGIS for Server installation and reapply the ArcGIS Server service account’s permissions.
  1. Click Windows Start > Control Panel.
  2. From the Control Panel window, click Programs and Features.
  3. In the Uninstall or change a program window, click ArcGIS for Server and select the Uninstall/Change button.

Control panel options when repairing installation.

  1. In the ArcGIS for Server Setup window, select the Repair option and follow the instructions in the wizard.
  2. Once the ArcGIS for Server repair is completed, run the Configure ArcGIS Server Account wizard to reapply the ArcGIS Server service account’s permissions. The following ArcGIS for Server document describes how to do this in detail: Changing the ArcGIS Server account.
    Note:
    Another method to repair the ArcGIS for Server installation is to rerun the ArcGIS for Server installation file.
    

Related Information

  • ArcGIS Server: How ArcGIS Server security works

Last Published: 8/1/2017

Article ID: 000014195

Software: ArcGIS GeoEvent Server 10.4.1, 10.4 ArcGIS Server 10.4.1, 10.4 ArcGIS Image Server 10.4.1, 10.4

Фон

У меня есть локальный сервер PostgreSQL на моей машине, который содержит изрядное количество данных о страховании автомобилей и мотоциклов, которые мне нужно подготовить для статистического анализа. Я выполняю довольно сложный запрос, включающий несколько объединений в 3 разных таблицах, одна из которых имеет ~ 100 миллионов строк, а две другие — около 30 тысяч строк. Во всех таблицах <15 столбцов. Обратите внимание, что этот запрос фактически заключен в оператор COPY TO, потому что я хочу вывести результат в файл CSV для последующего импорта и анализа в R.

Моя машина — это 64-битная машина с Windows 10 Pro с 6 ядрами и 32 ГБ оперативной памяти. Я запускаю свои запросы Postgres в DataGrip (потому что графический интерфейс мне нравится больше, чем PGAdmin). Сразу скажу, что я новичок в СУБД. Версия Postgres — 13.3.

Проблема

Этот большой запрос, который составляет ~ 100 строк кода, требует много времени для выполнения, что в вакууме нормально — у меня есть время подождать. Я протестировал запрос на небольшом фиктивном наборе данных, поэтому знаю, что он работает. Но когда я запустил его на «реальных» данных, он проработал два часа ровно , а затем выплюнул эту ошибку:

[Date] completed in 2 h 0 m 0 s 15 ms
[Date] Error unmarshaling return header; nested exception is:
[Date]  java.net.SocketException: Connection reset

Я поискал упоминания об этом сообщении об ошибке в SO и в Google и нашел их. Но во всех случаях, которые я видел, пользователи сталкивались с этим на серверах Postgres в Интернете (например, Amazon Redshift), а не на своих локальных машинах, как у меня (это пример).

Возможно, это немного расплывчато. Я счастлив опубликовать анонимную версию запроса для проверки (господин знает, что ее, вероятно, можно было бы оптимизировать для более быстрой работы), но опять же, я почти уверен, что проблема здесь не в самом запросе. (Допускаю, что могу ошибаться в этом.)

О чем я думаю

Я чувствую, читая другие похожие сообщения, что это связано с каким-то тайм-аутом на моей стороне сервера, но я не уверен, почему это могло произойти, если запрос все еще выполняется (т.е. если сервер все еще просят сделать вещи).

Любые идеи?

Troubleshooting

Problem

Under certain circumstances, when starting up Maximo in WebSphere, these errors will be written to the SystemOut.log. The stack trace following the error has information that can be used to determine what is causing the startup error.

Symptom

In WebSphere console, Maximo server shows as started, but users cannot log in.

SystemOut.log shows the following at startup:

[4/14/15 12:58:47:661 UTC] 0000001a SystemOut     O 14 Apr 2015 12:58:47:660 [INFO] [MXServer] [] BMXAA6348I — The SECURITY service is starting.
[4/14/15 12:58:47:699 UTC] 0000001a SystemOut     O 14 Apr 2015 12:58:47:699 [INFO] [MXServer] [] BMXAA6348I — The SIGNATURE service is starting.
[4/14/15 12:58:48:752 UTC] 0000001a SystemOut     O 14 Apr 2015 12:58:48:752 [INFO] [MXServer] [] class com.ibm.tsd.pmsurvey.app.SurveyService SurveyService INFO In SurveyService ctor
[4/14/15 12:59:21:733 UTC] 0000001a SystemOut     O 14 Apr 2015 12:59:21:730 [FATAL] [MXServer] [] BMXAA6473E — The MXSERVER server could not be started. Check the log file for other errors to determine the cause.
java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is:
java.net.SocketException: Connection reset

[4/14/15 12:59:21:735 UTC] 0000001a SystemOut     O 14 Apr 2015 12:59:21:733 [ERROR] [MXServer] [] BMXAA6538E — Failed to initialize MAXIMO business object services.
java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is:
java.net.SocketException: Connection reset

or it might throw a different error code:

13 Apr 2015 10:37:04:974 [FATAL] BMXAA6466E — The registry could not be bound.
java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is:
java.io.EOFException

java.lang.RuntimeException: java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is:
java.io.EOFException

Cause

The Remote Method Invocation (RMI) registry port is held by hung java process.

Diagnosing The Problem

The problem is with availability of the Remote Method Invocation (RMI) registry port. In this case, while the starting MXServer web application server has found an available RMI registry port at port 13400, it cannot connect to it.

To determine what process is using port 13400, in Windows, start an elevated command prompt. Run the following command

netstat -p TCP -o -n -a | find «13400»

Here it shows that the process ID is 7464.

Start Task Manager. On the Processes tab, make sure that Show processes from all users is checked. Under View, select Select Columns… Check the box next to PID (Process Identifier) and click OK.

Here it shows that PID 7464 is held by java.exe. You can’t tell from Task Manager what this java process is doing. You can find out the command line used to start this java process by running Windows Management Instrumentation Command-line (wimc) in a command prompt:

wmic process where processid=<pid> get commandline

In this case, replace processid with the one that you found in your environment. Below is the end of the result querying PID 7464:

It shows that it is running the Maximo web application server called MXO75WS.

In WebSphere Integrated Solutions Console, under Servers, expand Server Types. Click on WebSphere application servers. On the right side, you will see your Maximo servers.

In this example, while Windows shows that the java process for MXO75WS is still active, WebSphere is reporting its status as stopped. You will probably not be able to log into the stopped server.

Resolving The Problem

To fix this problem, you can restart the server running WebSphere, but it may not be practicable to do so if you have other servers running at the same time. Instead, as MXO75WS is not actually running, kill the processid. In Windows Server, you can do this from the Task Manager. Right click on the java.exe at the PID (7464 in this case) and select End Process Tree.

From the command prompt, run

netstat -p TCP -o -n -a | find «13400»

again to see if 13400 is still being held. If it is available, shut down the application server that is unable to start up and restart it. It should now create the RMI registry port at 13400. You can also restart the «hung» application server.

This kind of error, while rare, can occur under the following conditions:

  • Multiple Maximo web application servers are running on a single WebSphere instance
  • The RMI Registry war is not running or has not been installed
  • Two or more servers have mxe.registry.port set to 13400 in the <SMP_HOME>maximoapplicationsmaximopropertiesmaximo.properties file
  • The Maximo server that bound the RMI connection at port 13400 is running as a process, but not shows as not started in the WAS console

The resolution provided above will fix the startup error in this particular case. Troubleshooting why the «hung» application server stopped working is a separate problem and is not addressed here.


Preventing the problem

To prevent this from reoccurring, separate the RMI Registry functionality from being tied to any specific Maximo web application server instance. On any WebSphere instance that is hosting more than one Maximo application server, deploy the RMI Registry war for WebSphere Application Server following this technote.

The same errors can arise using Oracle WebLogic as your web application server. Instructions on deploying the RMI Registry war in WebLogic 9.2 or later may be found here.


Other Maximo RMI-related startup error technotes

BMXAA6466E — The registry could not be found
Maximo won’t start following reboot, rmi port taken

[{«Product»:{«code»:»SSLKT6″,»label»:»IBM Maximo Asset Management»},»Business Unit»:{«code»:»BU059″,»label»:»IBM Software w/o TPS»},»Component»:»—«,»Platform»:[{«code»:»PF025″,»label»:»Platform Independent»}],»Version»:»Version Independent»,»Edition»:»»,»Line of Business»:{«code»:»LOB59″,»label»:»Sustainability Software»}},{«Product»:{«code»:»SSLKT6″,»label»:»IBM Maximo Asset Management»},»Business Unit»:{«code»:»BU059″,»label»:»IBM Software w/o TPS»},»Component»:»System Related»,»Platform»:[{«code»:»PF025″,»label»:»Platform Independent»}],»Version»:»Version Independent»,»Edition»:»»,»Line of Business»:{«code»:»LOB59″,»label»:»Sustainability Software»}},{«Product»:{«code»:»SSWT9A»,»label»:»IBM Control Desk»},»Business Unit»:{«code»:»BU053″,»label»:»Cloud & Data Platform»},»Component»:» «,»Platform»:[{«code»:»PF002″,»label»:»AIX»},{«code»:»PF010″,»label»:»HP-UX»},{«code»:»PF016″,»label»:»Linux»},{«code»:»PF027″,»label»:»Solaris»},{«code»:»PF033″,»label»:»Windows»}],»Version»:»7.5;7.5.1;7.5.1.1;7.5.1.2;7.5.3;7.6.0;7.6.0.1″,»Edition»:»»,»Line of Business»:{«code»:»LOB59″,»label»:»Sustainability Software»}}]

I have created some espresso UI tests. The tests are working fine locally(emulator and real device). But when I am trying to run the UI test on CircleCI. I am getting this error log

Task :app:compileFossDebugAndroidTestKotlin
Compilation with Kotlin compile daemon was not successful
java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is:

Unable to clear jar cache after compilation, maybe daemon is already down: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection refused (Connection refused)
Could not connect to kotlin daemon. Using fallback strategy.

Picked up JAVA_TOOL_OPTIONS: -Xms512m

Task :app:compileFossDebugAndroidTestKotlin FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:compileFossDebugAndroidTestKotlin’.

More detail regarding error log is available here

Here is my config.yml file for circleci with run-ui-tests job

run-ui-tests:
    docker:
      - image: circleci/[email protected]:5cdc8626cc6f13efe5ed982cdcdb432b0472f8740fed8743a6461e025ad6cdfc
    environment:
      JVM_OPTS: -Xmx2048m
      GRADLE_OPTS: -Xmx1536m -XX:+HeapDumpOnOutOfMemoryError -Dorg.gradle.caching=true -Dorg.gradle.configureondemand=true -Dkotlin.compiler.execution.strategy=in-process -Dkotlin.incremental=false
    steps:
      - checkout
      - run:
          name: ANDROID_HOME
          command: echo "sdk.dir="$ANDROID_HOME > local.properties
      - run:
          name: restore files from ENV
          command: |
            echo $ROCKET_JKS_BASE64 | base64 --decode > Rocket.jks
            echo $ROCKET_PLAY_JSON | base64 --decode > app/rocket-chat.json
      - run:
          name: checkout Rocket.Chat.Kotlin.SDK
          command: git clone https://github.com/RocketChat/Rocket.Chat.Kotlin.SDK.git ../Rocket.Chat.Kotlin.SDK
      - restore_cache:
          key: kotlin-sdk-{{ .Revision }}
      - restore_cache:
          key: jars-{{ checksum "build.gradle" }}-{{ checksum  "app/build.gradle" }}
      - run:
          name: Accept licenses
          command: yes | sdkmanager --licenses || true
      - run:
          name: Download Dependencies
          command: ./gradlew androidDependencies
      - save_cache:
          paths:
            - ~/.gradle
          key: jars-{{ checksum "build.gradle" }}-{{ checksum  "app/build.gradle" }}
      - run:
          name: Setup emulator
          command: sdkmanager "system-images;android-22;default;armeabi-v7a" && echo "no" | avdmanager create avd -n test -k "system-images;android-22;default;armeabi-v7a"
      - run:
          name: Launch emulator
          command: export LD_LIBRARY_PATH=${ANDROID_HOME}/emulator/lib64:${ANDROID_HOME}/emulator/lib64/qt/lib && emulator64-arm -avd test -noaudio -no-boot-anim -no-window -accel auto -verbose
          background: true
      - run:
          name: Wait emulator
          command: |
            # wait for it to have booted
            circle-android wait-for-boot
            # unlock the emulator screen
            sleep 30
            adb shell input keyevent 82
      - run:
          name: Run EspressoTests
          command: ./gradlew connectedAndroidTest
      - store_artifacts:
          path: app/build/reports
          destination: reports
      - store_test_results:
          path: app/build/test-results

gradle.properties

android.enableJetifier=true
android.useAndroidX=true
org.gradle.jvmargs=-Xmx1536m

Other Configuration

compileSdk version           : 28
targetSdk version            : 28
kotlin version               : '1.3.31'

The project is having 2 flavors: foss and play
and 2 build types: debug and release

I have tried all possible solution but none is working. Any help will be appreciated. Thanks

Понравилась статья? Поделить с друзьями:
  • Error unmarshaling json
  • Error unmappable character for encoding utf8
  • Error unmappable character 0x98 for encoding windows 1251 javadoc
  • Error unmappable character 0x98 for encoding windows 1251 gradle
  • Error unmappable character 0x81 for encoding windows 1252