OutOfMemoryError: unable to create new native thread

1
0
-1

Hi.

Today I have an error with a connector that always worked fine. This is the error :

2015-04-24 15:01:18 org.bonitasoft.engine.execution.work.FailureHandlingBonitaWork
AVERTISSEMENT: THREAD_ID=376 | HOSTNAME=W28323 | TENANT_ID=1 | The work [ExecuteConnectorOfActivity: flowNodeInstanceId = 14, connectorDefinitionName = verificationPlaceIFS] failed. The failure will be handled.
2015-04-24 15:01:18 org.bonitasoft.engine.execution.work.FailureHandlingBonitaWork
AVERTISSEMENT: THREAD_ID=376 | HOSTNAME=W28323 | TENANT_ID=1 | org.bonitasoft.engine.core.connector.exception.SConnectorException : "PROCESS_DEFINITION_ID=5274772544279115010 | PROCESS_NAME=Processus Refresh - Config | PROCESS_VERSION=1.2 | PROCESS_INSTANCE_ID=2 | ROOT_PROCESS_INSTANCE_ID=1 | FLOW_NODE_DEFINITION_ID=-7673858123878913097 | FLOW_NODE_INSTANCE_ID=14 | FLOW_NODE_NAME=Calculer place sur IFS | CONNECTOR_DEFINITION_IMPLEMENTATION_CLASS_NAME=verificationPlaceIFS | CONNECTOR_INSTANCE_ID=8 | org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: unable to create new native thread"

Do you have any idea why I have this error today when it was working fine yesterday ?

EDIT : Another information, my connector user the java library Jcifs. Maybe this is a reason.

Comments

Submitted by yannick.lombardi on Fri, 04/24/2015 - 15:50

I confirm this is a problem with jcifs. The solution is to set the JVM option : -Djcifs.resolveOrder=DNS -Djcifs.smb.client.dfs.disabled=true

So I add this in my code :

        System.setProperty("jcifs.resolveOrder","DNS");
        System.setProperty("jcifs.smb.client.dfs.disabled","true");

Now it works again but I don't understand why it was working untill yesterday and today I have this error.

No answers yet.
Notifications