you have multiple things going on :) First, you are correct, the java.lang.NoClassDefFoundError: java.nio.charset.StandardCharsets is the root cause of your issue. Unfortunately, we switched to using StandardCharsets in many many places on Jetty 9. So this will be a tough one to avoid.
That specific test error you are seeing from jetty-client is one we know about, its a persistent issue on building in OSX, we've been working to understand that error, but as-yet have no fix for it. (feel free to set it to @Ignore) The main builds of Jetty are all done on Linux machines, so we tend not so see these kinds of errors. (Of the active Jetty developers, all of us are using Linux). At the turn of the new year, we have been addressing these kinds of OS specific build errors (if you check master you'll see that we are almost done going through the Windows build/test errors). -- Joakim Erdfelt <[email protected]> webtide.com <http://www.webtide.com/> - intalio.com/jetty Expert advice, services and support from from the Jetty & CometD experts eclipse.org/jetty - cometd.org On Wed, Jan 15, 2014 at 8:54 PM, Ken OKABE <[email protected]> wrote: > Hi, > I've removed > @Deprecated > public final static Charset __UTF8_CHARSET= > StandardCharsets.UTF_8; > > deprecated lines from source: > org.eclipse.jetty.util. > StringUtil.java > > and try to recompile with > mvn clean install > but, test failures > > > Failed tests: > > testRequestWithContentWithRenegotiationInMiddleOfContentWhenRenegotiationIsForbidden(org.eclipse.jetty.client.ssl.SslBytesServerTest) > > Tests run: 348, Failures: 1, Errors: 0, Skipped: 2 > > Heap > PSYoungGen total 334848K, used 214841K [0x00000007eaa80000, > 0x0000000800000000, 0x0000000800000000) > eden space 320512K, 66% used > [0x00000007eaa80000,0x00000007f7bee638,0x00000007fe380000) > from space 14336K, 2% used > [0x00000007fe380000,0x00000007fe3e0000,0x00000007ff180000) > to space 13824K, 0% used > [0x00000007ff280000,0x00000007ff280000,0x0000000800000000) > ParOldGen total 699392K, used 13101K [0x00000007bff80000, > 0x00000007eaa80000, 0x00000007eaa80000) > object space 699392K, 1% used > [0x00000007bff80000,0x00000007c0c4b420,0x00000007eaa80000) > PSPermGen total 21504K, used 14503K [0x00000007bad80000, > 0x00000007bc280000, 0x00000007bff80000) > object space 21504K, 67% used > [0x00000007bad80000,0x00000007bbba9ce8,0x00000007bc280000) > [INFO] > ------------------------------------------------------------------------ > [INFO] Reactor Summary: > [INFO] > [INFO] Jetty :: Project .................................. SUCCESS [4.404s] > [INFO] Jetty :: Utilities ................................ SUCCESS > [1:25.843s] > [INFO] Jetty :: Http Utility ............................. SUCCESS [6.565s] > [INFO] Jetty :: IO Utility ............................... SUCCESS > [54.685s] > [INFO] Jetty :: XML utilities ............................ SUCCESS [4.229s] > [INFO] Jetty :: JMX Management ........................... SUCCESS [9.488s] > [INFO] Jetty :: Server Core .............................. SUCCESS > [2:57.835s] > [INFO] Jetty :: Security ................................. SUCCESS > [16.153s] > [INFO] Jetty :: Servlet Handling ......................... SUCCESS > [13.954s] > [INFO] Jetty :: Webapp Application Support ............... SUCCESS [6.086s] > [INFO] Jetty :: JNDI Naming .............................. SUCCESS [3.285s] > [INFO] Jetty :: Plus ..................................... SUCCESS [4.280s] > [INFO] Jetty :: Servlet Annotations ...................... SUCCESS [5.272s] > [INFO] Jetty :: Ant Plugin ............................... SUCCESS [8.715s] > [INFO] Jetty :: Continuation ............................. SUCCESS [1.516s] > [INFO] Jetty :: SPDY :: Parent ........................... SUCCESS [0.039s] > [INFO] Jetty :: SPDY :: Core ............................. SUCCESS > [15.602s] > [INFO] Jetty :: SPDY :: Client Binding ................... SUCCESS [1.559s] > [INFO] Jetty :: SPDY :: Server Binding ................... SUCCESS > [37.613s] > [INFO] Jetty :: SPDY :: HTTP Common ...................... SUCCESS [1.057s] > [INFO] Jetty :: Asynchronous HTTP Client ................. FAILURE > [3:11.510s] > [INFO] Jetty :: Utility Servlets and Filters ............. SKIPPED > [INFO] Jetty :: Start .................................... SKIPPED > > > I've tried > jetty-9.1.1.v20140108 > jetty-9.1.0.v20131115 > and the latest git > https://github.com/eclipse/jetty.project > > and every source fails. Is this normal for jetty project? > Anyway, it seems no valid output for jar files, and some target > jar.file imported to my own AndroidStudio project crashes app. > > Any thought? Thanks. > > On Thu, Jan 16, 2014 at 11:07 AM, Ken OKABE <[email protected]> wrote: > > PS. > > > > I investigated the souce > > > > org.eclipse.jetty.util. > > StringUtil.<clinit>(StringUtil.java:57) > > > > and is actually > > > > @Deprecated > > public final static Charset __UTF8_CHARSET=StandardCharsets.UTF_8; > > > > so, I delete these deprecated lines from the sourcecode, and now try > > to rebuild jar package(will research how to from now), > > then will see the result... > > > > > > On Thu, Jan 16, 2014 at 10:28 AM, Ken OKABE <[email protected]> wrote: > >> PS. > >> running on Genymotion Emulator Android 4.3, > >> here is the similar, but different logcat. > >> > >> I noticed that > >> java.lang.NoClassDefFoundError > >> actually occurs on > >> org.eclipse.jetty.util.StringUtil.<clinit>(StringUtil.java:57) > >> > >> > >> > >> 01-16 01:22:28.004 1255-1255/? W/dalvikvm﹕ Exception > >> Ljava/lang/NoClassDefFoundError; thrown while initializing > >> Lorg/eclipse/jetty/util/StringUtil; > >> 01-16 01:22:28.004 1255-1255/? W/System.err﹕ > >> java.lang.NoClassDefFoundError: java.nio.charset.StandardCharsets > >> 01-16 01:22:28.004 1255-1255/? W/System.err﹕ at > >> org.eclipse.jetty.util.StringUtil.<clinit>(StringUtil.java:57) > >> 01-16 01:22:28.004 1255-1255/? W/System.err﹕ at > >> > org.eclipse.jetty.websocket.client.WebSocketClient.connect(WebSocketClient.java:146) > >> 01-16 01:22:28.004 1255-1255/? W/System.err﹕ at > >> > org.eclipse.jetty.websocket.client.WebSocketClient.connect(WebSocketClient.java:130) > >> 01-16 01:22:28.004 1255-1255/? W/System.err﹕ at > >> com.example.app.MainActivity.onCreate(MainActivity.java:40) > >> 01-16 01:22:28.004 1255-1255/? W/System.err﹕ at > >> android.app.Activity.performCreate(Activity.java:5133) > >> 01-16 01:22:28.004 1255-1255/? W/System.err﹕ at > >> > android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) > >> 01-16 01:22:28.004 1255-1255/? W/System.err﹕ at > >> > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175) > >> 01-16 01:22:28.004 1255-1255/? W/System.err﹕ at > >> > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261) > >> 01-16 01:22:28.004 1255-1255/? W/System.err﹕ at > >> android.app.ActivityThread.access$600(ActivityThread.java:141) > >> 01-16 01:22:28.004 1255-1255/? W/System.err﹕ at > >> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256) > >> 01-16 01:22:28.004 1255-1255/? W/System.err﹕ at > >> android.os.Handler.dispatchMessage(Handler.java:99) > >> 01-16 01:22:28.004 1255-1255/? W/System.err﹕ at > >> android.os.Looper.loop(Looper.java:137) > >> 01-16 01:22:28.004 1255-1255/? W/System.err﹕ at > >> android.app.ActivityThread.main(ActivityThread.java:5103) > >> 01-16 01:22:28.004 1255-1255/? W/System.err﹕ at > >> java.lang.reflect.Method.invokeNative(Native Method) > >> 01-16 01:22:28.004 1255-1255/? W/System.err﹕ at > >> java.lang.reflect.Method.invoke(Method.java:525) > >> 01-16 01:22:28.004 1255-1255/? W/System.err﹕ at > >> > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737) > >> 01-16 01:22:28.004 1255-1255/? W/System.err﹕ at > >> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) > >> 01-16 01:22:28.004 1255-1255/? W/System.err﹕ at > >> dalvik.system.NativeStart.main(Native Method) > >> 01-16 01:22:28.004 1255-1255/? > >> D/org.eclipse.jetty.util.component.AbstractLifeCycle﹕ stopping > >> org.eclipse.jetty.websocket.client.WebSocketClient@529a7a00 > >> 01-16 01:22:28.004 1255-1255/? > >> D/org.eclipse.jetty.websocket.client.WebSocketClient﹕ Stopping > >> org.eclipse.jetty.websocket.client.WebSocketClient@529a7a00 > >> 01-16 01:22:28.004 1255-1255/? > >> D/org.eclipse.jetty.util.component.AbstractLifeCycle﹕ stopping > >> org.eclipse.jetty.util.thread.ScheduledExecutorScheduler@52791994 > >> 01-16 01:22:28.004 1255-1255/? > >> D/org.eclipse.jetty.util.component.AbstractLifeCycle﹕ STOPPED > >> org.eclipse.jetty.util.thread.ScheduledExecutorScheduler@52791994 > >> 01-16 01:22:28.004 1255-1255/? > >> I/org.eclipse.jetty.websocket.client.WebSocketClient﹕ Stopped > >> org.eclipse.jetty.websocket.client.WebSocketClient@529a7a00 > >> 01-16 01:22:28.004 1255-1255/? > >> D/org.eclipse.jetty.util.component.AbstractLifeCycle﹕ STOPPED > >> org.eclipse.jetty.websocket.client.WebSocketClient@529a7a00 > _______________________________________________ > jetty-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/jetty-users >
_______________________________________________ jetty-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/jetty-users
