OWSM Error Connecting to the Polite Database: "jdbc:polite4@localhost:1531:orawsm " "java.net.SocketException: Connection reset by peer: socket write error" (Doc ID 1096919.1)

Last updated on JULY 28, 2017

Applies to:

Oracle Web Services Manager - Version: 10.1.3.1 to 10.1.3.4 - Release: AS10gR3 to AS10gR3
Information in this document applies to any platform.

Symptoms


When attempting to start the OWSM on Windows, the following error occurs in the logs:

ConnectionPoolManager gateway.foundationservice intialized with url=jdbc:polite4@localhost:1531:orawsm driver=oracle.lite.poljdbc.POLJDBCDriver user=system maxConn=5
Feb 16, 2010 4:01:19 AM org.apache.axis.Message writeTo
SEVERE: java.io.IOException:
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
at sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:410)
at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152)
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213)
at java.io.BufferedWriter.flush(BufferedWriter.java:236)
at org.apache.axis.Message.writeTo(Message.java:441)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:466)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:122)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:2248)
at org.apache.axis.client.Call.invoke(Call.java:2171)
at org.apache.axis.client.Call.invoke(Call.java:1691)
at com.cfluent.policymanager.sdk.client.soap.RegistrationServiceStub.getPolicies(RegistrationServiceStub.java:282)
at com.cfluent.policymanager.sdk.client.soap.SoapComponentConfigurator.getPolicies(SoapComponentConfigurator.java:171)
at com.cfluent.agent.configuration.PolicySetWatchdog.getPolicySetFromPolicyManager(PolicySetWatchdog.java:166)
at com.cfluent.agent.configuration.PolicySetWatchdog.pollFromPolicyManager(PolicySetWatchdog.java:205)
at com.cfluent.agent.configuration.PolicySetWatchdog.run(PolicySetWatchdog.java:77)
10/02/16 04:01:25 Error while connecting to Database
10/02/16 04:01:25 Exception: Gateway engine failed to start
10/02/16 04:01:25 javax.servlet.ServletException: Gateway engine failed to start
10/02/16 04:01:25 at com.cfluent.gateway.util.InitServlet.initGatewayEngine(InitServlet.java:96)
10/02/16 04:01:25 at com.cfluent.gateway.util.InitServlet.handleInit(InitServlet.java:24)
10/02/16 04:01:25 at com.cfluent.common.servlet.BaseServlet.init(BaseServlet.java:39)
10/02/16 04:01:25 at javax.servlet.GenericServlet.init(GenericServlet.java:256)
10/02/16 04:01:25 at com.cfluent.common.servlet.BaseServlet.init(BaseServlet.java:72)
10/02/16 04:01:25 at com.cfluent.common.servlet.BaseInitServlet.init(BaseInitServlet.java:30)
...
10/02/16 04:01:25 The above exception is caused by
10/02/16 04:01:25 null
10/02/16 04:01:25 java.lang.NullPointerException
10/02/16 04:01:25 at com.cfluent.gateway.crouter.da.FoundationServiceAccessor.addFoundationService(FoundationServiceAccessor.java:46)
10/02/16 04:01:25 at com.cfluent.gateway.Engine.initDefaultContentRouter(Engine.java:139)
10/02/16 04:01:25 at com.cfluent.gateway.Engine.start(Engine.java:78)
10/02/16 04:01:25 at com.cfluent.gateway.util.InitServlet.initGatewayEngine(InitServlet.java:93)
10/02/16 04:01:25 at com.cfluent.gateway.util.InitServlet.handleInit(InitServlet.java:24)
10/02/16 04:01:25 at com.cfluent.common.servlet.BaseServlet.init(BaseServlet.java:39)
10/02/16 04:01:25 at javax.servlet.GenericServlet.init(GenericServlet.java:256)
10/02/16 04:01:25 at com.cfluent.common.servlet.BaseServlet.init(BaseServlet.java:72)
10/02/16 04:01:25 at com.cfluent.common.servlet.BaseInitServlet.init(BaseInitServlet.java:30)
...
10/02/16 04:01:25 Exception: Gateway engine failed to start


Executing this command you can check if the Polite process is or not started:
%ORACLE_HOME%\Mobile\SDK\bin\olsv2040.exe /query


The OliteService reports the following status:
The service is stopped

The current status of Oracle Lite Multiuser Service:
Current State : SERVICE_STOPPED
Acceptable Control Code : (0x0)

The configuration of Oracle Lite Multiuser Service:
Service Type : (0x10) SERVICE_WIN32_OWN_PROCESS
Start Type : SERVICE_AUTO_START
Error Control : SERVICE_ERROR_NORMAL
Binary path : E:\oracle\product\10.1.3.3\OracleAS_1\Mobile\Sdk\BIN\olsv2040.exe
Display name : Oracle Lite Multiuser Service
Start Name : LocalSystem

Installed Service startup Parameters:
port = 1531
wdir = \%WINDIR%\system32


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms