Skip to main content

[JIRA] Commented: (FABAN-11) Driver fails under JDK 7

  • From: "yaominchen (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [JIRA] Commented: (FABAN-11) Driver fails under JDK 7
  • Date: Tue, 22 Apr 2014 22:12:49 +0000 (UTC)
  • Auto-submitted: auto-generated


    [ 
https://java.net/jira/browse/FABAN-11?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=374715#action_374715
 ] 

yaominchen commented on FABAN-11:
---------------------------------

James worked on JDK8 as well. In addition to applying the patch from Scott, 
he had to make the following
change.

diff --git a/stage/master/bin/startup.sh b/stage/master/bin/startup.sh
index 3df8378..be635ba 100755
--- a/stage/master/bin/startup.sh
+++ b/stage/master/bin/startup.sh
@@ -25,6 +25,7 @@ case $JAVA_VERSION in
     1.5*);;
     1.6*);;
     1.7*);;
+    1.8*);;
     *) echo "Java version is ${JAVA_VERSION}. Faban needs 1.5 or later." >&2
        echo "Please install the appropriate JDK and set JAVA_HOME 
accordingly." >&2
        exit 1;;

He was able to run the web101 benchmark with Faban and different versions
of JDKs to verify the patch. He will check in the code shortly.


> Driver fails under JDK 7
> ------------------------
>
>                 Key: FABAN-11
>                 URL: https://java.net/jira/browse/FABAN-11
>             Project: faban
>          Issue Type: Bug
>            Reporter: Scott Oaks
>            Assignee: jamesxcheng
>
> Running a driver with JDK 7 yields this error:
> java.lang.NoSuchMethodError: 
> sun.net.www.http.KeepAliveCache.get(Ljava/net/URL;Ljava/lang/Object;)Ljava/lang/Object;
>         at 
> com.sun.faban.driver.transport.sunhttp.HttpClient.New(HttpClient.java:87)
>         at 
> com.sun.faban.driver.transport.sunhttp.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:99)
>         at 
> com.sun.faban.driver.transport.sunhttp.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:41)
>         at 
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:928)
>         at 
> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:846)
>         at 
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1296)
>         at 
> java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
>         at 
> com.sun.faban.driver.transport.sunhttp.SunHttpTransport.readURL(SunHttpTransport.java:177)
>         at 
> com.sun.faban.driver.transport.sunhttp.SunHttpTransport.readURL(SunHttpTransport.java:191)
>         at 
> com.sun.faban.driver.transport.sunhttp.SunHttpTransport.readURL(SunHttpTransport.java:217)
>         at 
> com.sun.faban.driver.HttpTransport.readURL(HttpTransport.java:190)
> This is the peril of using unsupported classes...though the Sun Transport 
> is still lighter weight than the Apache Transport.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[JIRA] Commented: (FABAN-11) Driver fails under JDK 7

Scott Oaks (JIRA) 04/16/2014

<Possible follow-up(s)>

[JIRA] Commented: (FABAN-11) Driver fails under JDK 7

yaominchen (JIRA) 04/22/2014

[JIRA] Commented: (FABAN-11) Driver fails under JDK 7

jamesxcheng (JIRA) 04/23/2014
 
 
Close
loading
Please Confirm
Close