Vaadin:7 runtime error at login (Caused by: java.lang.NoSuchFieldError: DEF

running on Linux iqloud.in:/home/dipak/dev/edulabs/iQloudClienV7 .

caused by: java.lang.NoSuchFieldError: DEF_CONTENT_CHARSET
at org.apache.http.impl.client.DefaultHttpClient.setDefaultHttpParams(DefaultHttpClient.java:175)
at org.apache.http.impl.client.DefaultHttpClient.createHttpParams(DefaultHttpClient.java:158)
at org.apache.http.impl.client.AbstractHttpClient.getParams(AbstractHttpClient.java:448)
at org.apache.http.impl.client.AbstractHttpClient.createClientConnectionManager(AbstractHttpClient.java:309)
at org.apache.http.impl.client.AbstractHttpClient.getConnectionManager(AbstractHttpClient.java:466)
at in.iqloud.client.service.remote.RemoteDataService.postRequest(RemoteDataService.java:206)
at in.iqloud.client.service.SecurityService.validateUser(SecurityService.java:42)
at in.iqloud.client.ClientUI.authenticate(ClientUI.java:83)
at in.iqloud.client.view.LoginView$1.buttonClick(LoginView.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:508)
… 34 more

Thanks!

It looks like you have several versions of that class on the classpath. One has the field DEF_CONTENT_CHARSET, and another one doesn’t. Check for duplicate JARs.

Check your jdk software…


Java training