Forum Discussion

Gordon_McNair's avatar
Gordon_McNair
Contributor
15 years ago

Maven problem when JDK has unrestricted security policy jars

Hi,

We are using the maven plugin to execute suites of tests. When we moved on to a new Linux machine we started to get "read time out" errors. After some investigation we discovered that when we installed the unrestricted security policy jars in the JDK the problem arose. Switching back to the restricted policy jars causes the problem to go away.

Have you seen this problem before? We would like to be able to use the maven plugin with a JDK that has unrestricted security policy.

Thanks,
Gordon.

3 Replies

  • Hi Gordon,

    I haven't seen this before; is the base JDK version the same as the restricted one? Which version is it?

    regards!

    /Ole
    eviware.com
  • Hello,

    The base version is the same - we are just switching from restricted to unrestricted by copying in the policy jars that are provided for java.

    We're working with 1.6.0_20 at the moment. We also saw the behaviour on 1.6.0_13 but at the time we hadn't determined what the problem was and we upgraded to 1.6.0_20

    The sequence in the test set leading up to the failure seems to be:
    - do a test step that returns a HTTP error
    - do another test step and it fails with the communications error
    - all comms fail after this

    If we change the set of tests we can move the failure to the next point in the set of tests where the above sequence happens.

    Here is the stack trace we see (first occurence). All communications fail with the same error once the problem starts.

    09:14:32,369 INFO [SoapUIProTestCaseRunner] running step [Save Card PUT - REST]
    09:14:42,372 ERROR [WsdlSubmit] Exception in request: java.net.SocketTimeoutException: Read timed out
    09:14:42,373 ERROR [SoapUI] An error occured [Read timed out], see error log for details
    java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:129)
    at com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputRecord.java:293)
    at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:331)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:789)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1120)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:623)
    at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59)
    at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
    at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
    at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:506)
    at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
    at com.eviware.soapui.impl.wsdl.submit.transports.http.support.methods.ExtendedPutMethod.writeRequest(ExtendedPutMethod.java:101)
    at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:187)
    at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:122)
    at com.eviware.soapui.impl.wsdl.WsdlSubmit.submitRequest(WsdlSubmit.java:75)
    at com.eviware.soapui.impl.rest.RestRequest.submit(RestRequest.java:208)
    at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep.run(RestTestRequestStep.java:778)
    at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runTestStep(WsdlTestCaseRunner.java:206)
    at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.internalRun(WsdlTestCaseRunner.java:137)
    at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.internalRun(WsdlTestCaseRunner.java:39)
    at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:139)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)



    Thanks for looking at this,
    Gordon.
  • Is there any news or information on this yet?

    Or is there any additional information you need?

    Thanks,
    Gordon.