I have worked with ws4j api and using in my JAVA program and while using this API in my program it returns classNotFound Exception
I followed this program :
https://www.programcreek.com/2014/01/calculate-words-similarity-using-wordnet-in-java/
Here is my Stack Trace :
> Caused by: java.lang.NoClassDefFoundError:
> edu/cmu/lti/lexical_db/ILexicalDatabase at
> java.lang.Class.getDeclaredMethods0(Native Method) at
> java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at
> java.lang.Class.getDeclaredMethods(Class.java:1975) at
> org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:467)
> at
> org.springframework.web.method.HandlerMethodSelector.selectMethods(HandlerMethodSelector.java:58)
> at
> org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.detectHandlerMethods(AbstractHandlerMethodMapping.java:139)
> at
> org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.initHandlerMethods(AbstractHandlerMethodMapping.java:109)
> at
> org.springframework.web.servlet.handler.AbstractHandlerMethodMapping.afterPropertiesSet(AbstractHandlerMethodMapping.java:89)
> at
> org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping.afterPropertiesSet(RequestMappingHandlerMapping.java:163)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1612)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1549)
> ... 30 more Caused by: java.lang.ClassNotFoundException:
> edu.cmu.lti.lexical_db.ILexicalDatabase at
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1332)
> at
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1166)
> ... 41 more
>
> Jan 30, 2018 6:12:55 PM org.apache.catalina.core.StandardContext
> loadOnStartup SEVERE: Servlet [appServlet] in web application
> [/SpringRestExample] threw load() exception
> java.lang.ClassNotFoundException:
> edu.cmu.lti.lexical_db.ILexicalDatabase
I am using :
JAVA 8
Maven 3
jawjaw-1.0.2.jar
ws4j-1.0.1.jar
Spring 4
Related
Could you please help with the following deployment on the JBOSS application server.
Versions:
JBOSS EAP 7.3
Axis2 1.7.8
Issue:
I am trying to deploy Axis2.war on the application server by adding some AAR files in the Axis2.war file. Specifically I have placed a list of new AAR services in the directory axis2.war/WEB-INF/services. The AAR service names have also been included in the services.list file.
Axis2.war application gets deployed succesfully but the AAR services are turned to faulty services. The AAR files are JAVA compiled services provided by an official software distributor, meaning that I can change only the app server configuration, not the classes.
Logs:
When checking the logs the following errors are shown:
> [INFO] The xxxx.aar service, which is not valid, caused java.lang.NoClassDefFoundError:
> org/springframework/context/support/ClassPathXmlApplicationContext
> at com.xxxxx.services.integrationlandscape.IntegrationLandscapeServiceSpringContext.loadServiceContext(IntegrationLandscapeServiceSpringContext.java:27)
> at com.xxxxxx.services.integrationlandscape.IntegrationLandscapeServiceSpringInit.startUp(IntegrationLandscapeServiceSpringInit.java:17)
> at org.apache.axis2.deployment.ServiceBuilder.startupServiceLifecycle(ServiceBuilder.java:942)
> at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:444)
> at org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(ServiceGroupBuilder.java:101)
> at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:117)
> at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:232)
> at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:154)
> at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:149)
> at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:585)
> at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:164)
> at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:377)
> at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
> at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:136)
> at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:289)
> at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:95)
> at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:620)
> at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:471)
> at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)
> at org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:78)
> at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103)
> at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:305)
> at io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:145)
> at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:585)
> at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:556)
> at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
> at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
> at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
> at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:598)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:97)
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:78)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
> at java.lang.Thread.run(Thread.java:750)
> at org.jboss.threads.JBossThread.run(JBossThread.java:485) Caused by: java.lang.ClassNotFoundException: Class Not found :
> org.springframework.context.support.ClassPathXmlApplicationContext
> at org.apache.axis2.deployment.DeploymentClassLoader.findClass(DeploymentClassLoader.java:96)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
> at org.apache.axis2.deployment.DeploymentClassLoader.loadClass(DeploymentClassLoader.java:277)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
> ... 43 more [INFO] org.apache.axis2.deployment.DeploymentException:
> java.lang.NoClassDefFoundError:
> org/springframework/context/support/ClassPathXmlApplicationContext
It seems that the compiled class IntegrationLandscapeServiceSpringContext attempts to initiate another class which is not defined in the classpath. It is possible that there is some missing configuration for the Axis2.war file to integrate well with Spring. Could you please elaborate if this is the case and how it can be resolved by reconfiguring the application server's settings?
Thank you.
Install4j allows users to select a JDK for automatic download with the json property:
<jreBundles jdkProviderId="Liberica" release="OpenJDK 11.0.6+10">
On my desktop I can dry run just fine and also fetch the jdk from the bellsoft-
However when I run dry run on my server I get the following error and the jdk cannot be fetched. I can download it in the browser online from the website without issues but not with the Install4j GUI.
> Creating JRE bundle:
> Finding JDK release OpenJDK 11.0.6+10 [windows-amd64]
> Downloading bellsoft-jdk11.0.6%2B10-windows-amd64.zip
>
> Build failed.
>
> Cause: java.net.SocketTimeoutException
> Read timed out Stack trace:
>
> com.exe4j.a.d: javax.net.ssl.SSLException: Read timed out at
> com.install4j.b.o.b(ejt:237) at com.install4j.gui.b.run(ejt:100)
> Caused by: javax.net.ssl.SSLException: Read timed out at
> java.base/sun.security.ssl.Alert.createSSLException(Alert.java:127)
> at
> java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:321)
> at
> java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:264)
> at
> java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:259)
> at
> java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:137)
> at
> java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1152)
> at
> java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1063)
> at
> java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:402)
> at
> java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:567)
> at
> java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
> at
> java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:163)
> at
> com.install4j.runtime.installer.helper.content.HttpRequestHandler.getURLConnection(HttpRequestHandler.java:288)
> at
> com.install4j.runtime.installer.helper.content.HttpRequestHandler.connect(HttpRequestHandler.java:135)
> at
> com.install4j.runtime.installer.helper.content.Downloader.connect(Downloader.java:155)
> at
> com.install4j.runtime.installer.helper.content.Downloader.connect(Downloader.java:24)
> at
> com.install4j.runtime.installer.helper.content.HttpRequestHandler.connect(HttpRequestHandler.java:128)
> at
> com.install4j.runtime.installer.helper.content.Downloader.connect(Downloader.java:150)
> at com.install4j.jdk.h.a(ejt:282) at com.install4j.jdk.h.a(ejt:19)
> at com.install4j.jdk.j.a(ejt:153) at
> com.install4j.jdk.j.invoke(ejt:19) at
> com.install4j.jdk.aa$a.a(ejt:18) at com.install4j.jdk.ak.a(ejt:61)
> at com.install4j.jdk.h.b(ejt:140) at com.install4j.jdk.h.a(ejt:97)
> at com.install4j.b.i.a(ejt:35) at com.install4j.b.c.h(ejt:942) at
> com.install4j.b.c.a(ejt:909) at com.install4j.b.c.W(ejt:890) at
> com.install4j.b.o.a(ejt:490) at com.install4j.b.o.b(ejt:166) ... 1
> more Caused by: java.net.SocketTimeoutException: Read timed out at
> java.base/java.net.SocketInputStream.socketRead0(Native Method) at
> java.base/java.net.SocketInputStream.socketRead(SocketInputStream.java:115)
> at
> java.base/java.net.SocketInputStream.read(SocketInputStream.java:168)
> at
> java.base/java.net.SocketInputStream.read(SocketInputStream.java:140)
> at
> java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:448)
> at
> java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:165)
> at
> java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:108)
> ... 27 more
If the build sever cannot make a connection to the server of the JDK provider, you can avoid the JRE bundle creation by transferring the relevant directories in
$HOME/.install4j/jres/generated
from your development machine to the build machine, then no download is required. This assumes that you have run the build for all media files on your development machine, so that all JRE bundles have been generated.
> org.apache.pig.backend.executionengine.ExecException: ERROR 4010:
> Cannot find hadoop configurations in classpath (neither
> hadoop-site.xml nor core-site.xml was found in the classpath). If you
> plan to use local mode, please put -x local option in command line at
> org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.getExecConf(HExecutionEngine.java:157)
> at
> org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.init(HExecutionEngine.java:194)
> at
> org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.init(HExecutionEngine.java:111)
> at org.apache.pig.impl.PigContext.connect(PigContext.java:310) at
> org.apache.pig.PigServer.<init>(PigServer.java:232) at
> org.apache.pig.PigServer.<init>(PigServer.java:220) at
> org.apache.pig.PigServer.<init>(PigServer.java:193) at
> org.apache.pig.PigServer.<init>(PigServer.java:185) at
> org.apache.zeppelin.pig.PigInterpreter.open(PigInterpreter.java:61) at
> org.apache.zeppelin.interpreter.LazyOpenInterpreter.open(LazyOpenInterpreter.java:69)
> at
> org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:617)
> at org.apache.zeppelin.scheduler.Job.run(Job.java:188) at
> org.apache.zeppelin.scheduler.FIFOScheduler$1.run(FIFOScheduler.java:140)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266) at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
I have tried run a pig script on apache Zeppelin but it gives me this error.I have checked all the configurations and settings but unable to resolve this.
Please check the doc here. https://zeppelin.apache.org/docs/0.8.0/interpreter/pig.html
Most likely you set execution mode as mapreduce, but didn't configure HADOOP_CONF_DIR
I am a little confused. Can someone please help with the below doubt
I am writing an ant script which will compile a java code and deploy the files. Please note that in the javac tag i have added an attribute debug="on". As per the docs leagle values for debug are true or false (not on and off).
As far as i know, debug will links Java code back to the line number, the variable name in the source, and the name of the source itself (using debuglevel attribute).
Out of curiocity i added debug="on" and thought that i will receive "Unknown source" in the stack trade instead of line number but instead i am receiving correct stack trace with line number.
Questin: is my understanding of debug attribut uncorrect. If yes, can you please help me with it?
Pasted below is the edited stack trade. i am getting the same for both debug=true and debug=on.
> javax.naming.CommunicationException: Failed to connect to server
> localhost:1099 [Root exception is
> javax.naming.ServiceUnavailableException: Failed to connect to server
> localhost:1099 [Root exception is java.net.ConnectException:
> Connection refused: connect]] at
> org.jnp.interfaces.NamingContext.getServer(NamingContext.java:216) at
> org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1116) at
> org.jnp.interfaces.NamingContext.lookup(NamingContext.java:478) at
> org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471) at
> javax.naming.InitialContext.lookup(InitialContext.java:392) at
> com.XXXXX.products.fi.mbs.server.someclass2.<init>(someclass2.java:85)
> at
> com.XXXXX.products.eurorepo.server.someclass1.<init>(someclass1.java:21)
> at
> com.XXXXX.products.eurorepo.server.boot.someclass3.registerFactories(someclass3.java:136)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597) at
> com.XXXXX.products.common.someclass4.callMethod(someclass4.java:154)
> at
> com.XXXXX.products.server.someclass5.callMethod(someclass5.java:118)
> at
> com.XXXXX.products.common.someclass4.callMethod(someclass4.java:141)
> at
> com.XXXXX.products.server.someclass5.registerFactories(someclass5.java:48)
> at com.XXXXX.cs.yyy.yyyServer.init(yyyServer.java:292) at
> com.XXXXX.cs.yyy.yyyServer.<init>(yyyServer.java:135) at
> com.XXXXX.cs.yyy.yyyServer.bootyyyServer(yyyServer.java:494) at
> com.XXXXX.cs.yyy.yyyServer.main(yyyServer.java:691) at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597) at
> com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
> Caused by: javax.naming.ServiceUnavailableException: Failed to connect
> to server localhost:1099 [Root exception is java.net.ConnectException:
> Connection refused: connect] at
> org.jnp.interfaces.NamingContext.getServer(NamingContext.java:191)
> ... 24 more Caused by: java.net.ConnectException: Connection refused:
> connect at java.net.PlainSocketImpl.socketConnect(Native Method) at
> java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) at
> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200) at
> java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at
> java.net.Socket.connect(Socket.java:529) at
> java.net.Socket.connect(Socket.java:478) at
> java.net.Socket.<init>(Socket.java:375) at
> java.net.Socket.<init>(Socket.java:276) at
> org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:69)
> at
> org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:62)
> at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:187)
Well thanks to a post in stackoverflow and this i figured out the answer. Yes, ON/OFF can be interchanged with true/false.
I am trying to build cordova's android application with gradle. This command is executed by cordova emulate android:
platforms/android/gradlew cdvBuildDebug -b platforms/android/build.gradle -PcdvBuildArch=x86 -Dorg.gradle.daemon=true
This is complete output of that command:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve net.sf.proguard:proguard-gradle:5.1.
Required by:
:android:unspecified > com.android.tools.build:gradle:1.0.0
> Failure initializing default system SSL context
> Could not resolve org.bouncycastle:bcprov-jdk15on:1.48.
Required by:
:android:unspecified > com.android.tools.build:gradle:1.0.0 > com.android.tools.build:builder:1.0.0
> Failure initializing default system SSL context
> Could not resolve com.squareup:javawriter:2.5.0.
Required by:
:android:unspecified > com.android.tools.build:gradle:1.0.0 > com.android.tools.build:builder:1.0.0
> Failure initializing default system SSL context
> Could not resolve org.bouncycastle:bcpkix-jdk15on:1.48.
Required by:
:android:unspecified > com.android.tools.build:gradle:1.0.0 > com.android.tools.build:builder:1.0.0
> Failure initializing default system SSL context
> Could not resolve com.google.guava:guava:17.0.
Required by:
:android:unspecified > com.android.tools.build:gradle:1.0.0 > com.android.tools.build:builder:1.0.0 > com.android.tools:common:24.0.0
> Failure initializing default system SSL context
> Could not resolve net.sf.kxml:kxml2:2.3.0.
Required by:
:android:unspecified > com.android.tools.build:gradle:1.0.0 > com.android.tools.build:builder:1.0.0 > com.android.tools.ddms:ddmlib:24.0.0
:android:unspecified > com.android.tools.build:gradle:1.0.0 > com.android.tools.build:builder:1.0.0 > com.android.tools.build:manifest-merger:24.0.0
:android:unspecified > com.android.tools.build:gradle:1.0.0 > com.android.tools.build:builder:1.0.0 > com.android.tools:sdklib:24.0.0 > com.android.tools.layoutlib:layoutlib-api:24.0.0
> Failure initializing default system SSL context
> Could not resolve org.apache.httpcomponents:httpclient:4.1.1.
Required by:
:android:unspecified > com.android.tools.build:gradle:1.0.0 > com.android.tools.build:builder:1.0.0 > com.android.tools:sdklib:24.0.0
> Failure initializing default system SSL context
> Could not resolve org.apache.httpcomponents:httpmime:4.1.
Required by:
:android:unspecified > com.android.tools.build:gradle:1.0.0 > com.android.tools.build:builder:1.0.0 > com.android.tools:sdklib:24.0.0
> Failure initializing default system SSL context
> Could not resolve org.apache.commons:commons-compress:1.8.1.
Required by:
:android:unspecified > com.android.tools.build:gradle:1.0.0 > com.android.tools.build:builder:1.0.0 > com.android.tools:sdklib:24.0.0
> Failure initializing default system SSL context
> Could not resolve org.ow2.asm:asm-analysis:4.0.
Required by:
:android:unspecified > com.android.tools.build:gradle:1.0.0 > com.android.tools.lint:lint:24.0.0 > com.android.tools.lint:lint-checks:24.0.0
> Failure initializing default system SSL context
> Could not resolve org.ow2.asm:asm:4.0.
Required by:
:android:unspecified > com.android.tools.build:gradle:1.0.0 > com.android.tools.lint:lint:24.0.0 > com.android.tools.lint:lint-checks:24.0.0 > com.android.tools.lint:lint-api:24.0.0
> Failure initializing default system SSL context
> Could not resolve com.android.tools.external.lombok:lombok-ast:0.2.2.
Required by:
:android:unspecified > com.android.tools.build:gradle:1.0.0 > com.android.tools.lint:lint:24.0.0 > com.android.tools.lint:lint-checks:24.0.0 > com.android.tools.lint:lint-api:24.0.0
> Failure initializing default system SSL context
> Could not resolve org.ow2.asm:asm-tree:4.0.
Required by:
:android:unspecified > com.android.tools.build:gradle:1.0.0 > com.android.tools.lint:lint:24.0.0 > com.android.tools.lint:lint-checks:24.0.0 > com.android.tools.lint:lint-api:24.0.0
> Failure initializing default system SSL context
* Try:
Run with --info or --debug option to get more log output.
* Exception is:
org.gradle.api.ProjectConfigurationException: A problem occurred configuring root project 'android'.
at org.gradle.configuration.project.LifecycleProjectEvaluator.addConfigurationFailure(LifecycleProjectEvaluator.java:91)
at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:61)
at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:504)
at org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:83)
at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:42)
at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:35)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:129)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:106)
at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:86)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:80)
at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33)
at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:36)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:47)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:34)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:119)
at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:35)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:119)
at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:24)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:119)
at org.gradle.launcher.daemon.server.exec.StartStopIfBuildAndStop.execute(StartStopIfBuildAndStop.java:33)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:119)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:71)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:69)
at org.gradle.util.Swapper.swap(Swapper.java:38)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:69)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:119)
at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:34)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:119)
at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:70)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:34)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:119)
at org.gradle.launcher.daemon.server.exec.DaemonHygieneAction.execute(DaemonHygieneAction.java:39)
at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExecution.java:119)
at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:46)
at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:246)
at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)
Caused by: org.gradle.api.artifacts.ResolveException: Could not resolve all dependencies for configuration ':classpath'.
at org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration.rethrowFailure(DefaultLenientConfiguration.java:52)
at org.gradle.api.internal.artifacts.ivyservice.DefaultResolvedConfiguration.rethrowFailure(DefaultResolvedConfiguration.java:36)
at org.gradle.api.internal.artifacts.ivyservice.SelfResolvingDependencyResolver$FilesAggregatingResolvedConfiguration.rethrowFailure(SelfResolvingDependencyResolver.java:110)
at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingArtifactDependencyResolver$ErrorHandlingResolvedConfiguration.rethrowFailure(ErrorHandlingArtifactDependencyResolver.java:180)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:444)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.getFiles(DefaultConfiguration.java:205)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration_Decorated.getFiles(Unknown Source)
at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.defineScriptHandlerClassScope(DefaultPluginRequestApplicator.java:142)
at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.applyPlugins(DefaultPluginRequestApplicator.java:60)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:131)
at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:39)
at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:26)
at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:34)
at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:59)
... 37 more
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve net.sf.proguard:proguard-gradle:5.1.
Required by:
:android:unspecified > com.android.tools.build:gradle:1.0.0
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainDependencyResolver.resolve(RepositoryChainDependencyResolver.java:81)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainAdapter.resolve(RepositoryChainAdapter.java:69)
at org.gradle.api.internal.artifacts.ivyservice.clientmodule.ClientModuleResolver.resolve(ClientModuleResolver.java:44)
at org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder$ModuleVersionResolveState.resolve(DependencyGraphBuilder.java:577)
at org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder$ModuleVersionResolveState.getMetaData(DependencyGraphBuilder.java:587)
at org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder$DependencyEdge.calculateTargetConfigurations(DependencyGraphBuilder.java:272)
at org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder$DependencyEdge.attachToTargetConfigurations(DependencyGraphBuilder.java:246)
at org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder.traverseGraph(DependencyGraphBuilder.java:156)
at org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder.resolveDependencyGraph(DependencyGraphBuilder.java:94)
at org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder.resolve(DependencyGraphBuilder.java:84)
at org.gradle.api.internal.artifacts.ivyservice.resolveengine.DefaultDependencyResolver$1.execute(DefaultDependencyResolver.java:122)
at org.gradle.api.internal.artifacts.ivyservice.resolveengine.DefaultDependencyResolver$1.execute(DefaultDependencyResolver.java:88)
at org.gradle.internal.Transformers$4.transform(Transformers.java:136)
at org.gradle.api.internal.artifacts.ivyservice.DefaultIvyContextManager.withIvy(DefaultIvyContextManager.java:61)
at org.gradle.api.internal.artifacts.ivyservice.DefaultIvyContextManager.withIvy(DefaultIvyContextManager.java:39)
at org.gradle.api.internal.artifacts.ivyservice.resolveengine.DefaultDependencyResolver.resolve(DefaultDependencyResolver.java:88)
at org.gradle.api.internal.artifacts.ivyservice.CacheLockingArtifactDependencyResolver$1.run(CacheLockingArtifactDependencyResolver.java:42)
at org.gradle.internal.Factories$1.create(Factories.java:22)
at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:187)
at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:175)
at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(DefaultPersistentDirectoryStore.java:106)
at org.gradle.cache.internal.DefaultCacheFactory$ReferenceTrackingCache.useCache(DefaultCacheFactory.java:187)
at org.gradle.api.internal.artifacts.ivyservice.DefaultCacheLockingManager.useCache(DefaultCacheLockingManager.java:64)
at org.gradle.api.internal.artifacts.ivyservice.CacheLockingArtifactDependencyResolver.resolve(CacheLockingArtifactDependencyResolver.java:40)
at org.gradle.api.internal.artifacts.ivyservice.SelfResolvingDependencyResolver.resolve(SelfResolvingDependencyResolver.java:45)
at org.gradle.api.internal.artifacts.ivyservice.ShortcircuitEmptyConfigsArtifactDependencyResolver.resolve(ShortcircuitEmptyConfigsArtifactDependencyResolver.java:55)
at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingArtifactDependencyResolver.resolve(ErrorHandlingArtifactDependencyResolver.java:47)
at org.gradle.api.internal.artifacts.ivyservice.DefaultConfigurationResolver.resolve(DefaultConfigurationResolver.java:46)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.resolveNow(DefaultConfiguration.java:250)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.getResolvedConfiguration(DefaultConfiguration.java:240)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration_Decorated.getResolvedConfiguration(Unknown Source)
at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$ConfigurationFileCollection.getFiles(DefaultConfiguration.java:442)
... 46 more
Caused by: org.apache.http.conn.ssl.SSLInitializationException: Failure initializing default system SSL context
at org.apache.http.conn.ssl.SSLSocketFactory.createSystemSSLContext(SSLSocketFactory.java:368)
at org.apache.http.conn.ssl.SSLSocketFactory.getSystemSocketFactory(SSLSocketFactory.java:204)
at org.apache.http.impl.conn.SchemeRegistryFactory.createSystemDefault(SchemeRegistryFactory.java:82)
at org.apache.http.impl.client.SystemDefaultHttpClient.createClientConnectionManager(SystemDefaultHttpClient.java:118)
at org.apache.http.impl.client.AbstractHttpClient.getConnectionManager(AbstractHttpClient.java:466)
at org.apache.http.impl.client.AbstractHttpClient.createHttpContext(AbstractHttpClient.java:286)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:851)
at org.apache.http.impl.client.DecompressingHttpClient.execute(DecompressingHttpClient.java:137)
at org.apache.http.impl.client.DecompressingHttpClient.execute(DecompressingHttpClient.java:118)
at org.gradle.internal.resource.transport.http.HttpClientHelper.performHttpRequest(HttpClientHelper.java:111)
at org.gradle.internal.resource.transport.http.HttpClientHelper.executeGetOrHead(HttpClientHelper.java:87)
at org.gradle.internal.resource.transport.http.HttpClientHelper.performRequest(HttpClientHelper.java:78)
at org.gradle.internal.resource.transport.http.HttpClientHelper.performRawGet(HttpClientHelper.java:66)
at org.gradle.internal.resource.transport.http.HttpClientHelper.performGet(HttpClientHelper.java:70)
at org.gradle.internal.resource.transport.http.HttpResourceAccessor.getResource(HttpResourceAccessor.java:53)
at org.gradle.internal.resource.transport.http.HttpResourceAccessor.getResource(HttpResourceAccessor.java:36)
at org.gradle.internal.resource.transfer.ProgressLoggingExternalResourceAccessor.getResource(ProgressLoggingExternalResourceAccessor.java:39)
at org.gradle.internal.resource.transfer.DefaultCacheAwareExternalResourceAccessor.getResource(DefaultCacheAwareExternalResourceAccessor.java:72)
at org.gradle.api.internal.artifacts.repositories.resolver.DefaultExternalResourceArtifactResolver.downloadStaticResource(DefaultExternalResourceArtifactResolver.java:91)
at org.gradle.api.internal.artifacts.repositories.resolver.DefaultExternalResourceArtifactResolver.resolveMetaDataArtifact(DefaultExternalResourceArtifactResolver.java:57)
at org.gradle.api.internal.artifacts.repositories.resolver.ExternalResourceResolver.parseMetaDataFromArtifact(ExternalResourceResolver.java:162)
at org.gradle.api.internal.artifacts.repositories.resolver.ExternalResourceResolver.resolveStaticDependency(ExternalResourceResolver.java:141)
at org.gradle.api.internal.artifacts.repositories.resolver.MavenResolver.doResolveComponentMetaData(MavenResolver.java:82)
at org.gradle.api.internal.artifacts.repositories.resolver.ExternalResourceResolver$RemoteRepositoryAccess.resolveComponentMetaData(ExternalResourceResolver.java:391)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CacheLockReleasingModuleComponentsRepository$LockReleasingRepositoryAccess$2.run(CacheLockReleasingModuleComponentsRepository.java:65)
at org.gradle.internal.Factories$1.create(Factories.java:22)
at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAccess.java:237)
at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAccess.java:308)
at org.gradle.cache.internal.DefaultPersistentDirectoryStore.longRunningOperation(DefaultPersistentDirectoryStore.java:114)
at org.gradle.cache.internal.DefaultCacheFactory$ReferenceTrackingCache.longRunningOperation(DefaultCacheFactory.java:179)
at org.gradle.api.internal.artifacts.ivyservice.DefaultCacheLockingManager.longRunningOperation(DefaultCacheLockingManager.java:56)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CacheLockReleasingModuleComponentsRepository$LockReleasingRepositoryAccess.resolveComponentMetaData(CacheLockReleasingModuleComponentsRepository.java:63)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleComponentRepository$ResolveAndCacheRepositoryAccess.resolveComponentMetaData(CachingModuleComponentRepository.java:284)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.BaseModuleComponentRepositoryAccess.resolveComponentMetaData(BaseModuleComponentRepositoryAccess.java:38)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.memcache.InMemoryCachedModuleComponentRepository$CachedAccess.resolveComponentMetaData(InMemoryCachedModuleComponentRepository.java:70)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.ComponentMetaDataResolveState.process(ComponentMetaDataResolveState.java:70)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.ComponentMetaDataResolveState.resolve(ComponentMetaDataResolveState.java:62)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainDependencyResolver.findBestMatch(RepositoryChainDependencyResolver.java:114)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainDependencyResolver.findBestMatch(RepositoryChainDependencyResolver.java:97)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainDependencyResolver.resolve(RepositoryChainDependencyResolver.java:70)
... 77 more
Caused by: java.io.FileNotFoundException: /usr/lib/jvm/java-7-oracle/lib/security/cacerts (Нет такого файла или каталога)
at org.apache.http.conn.ssl.SSLSocketFactory.createSystemSSLContext(SSLSocketFactory.java:279)
at org.apache.http.conn.ssl.SSLSocketFactory.createSystemSSLContext(SSLSocketFactory.java:366)
... 116 more
BUILD FAILED
Total time: 0.778 secs
Origin of error is:
Caused by: java.io.FileNotFoundException: /usr/lib/jvm/java-7-oracle/lib/security/cacerts (Нет такого файла или каталога)
at org.apache.http.conn.ssl.SSLSocketFactory.createSystemSSLContext(SSLSocketFactory.java:279)
at org.apache.http.conn.ssl.SSLSocketFactory.createSystemSSLContext(SSLSocketFactory.java:366)
... 116 more
Actually, wrong directory scanned for cacerts file, it should be
/usr/lib/jvm/java-7-oracle/jre/lib/security/cacerts
Why wrong directory scanned?
sudo ln -sf /usr/lib/jvm/java-7-oracle/jre/lib/security /usr/lib/jvm/java-7-oracle/lib/security
For new openjdk installations you could also run just run :
sudo /var/lib/dpkg/info/ca-certificates-java.postinst configure
known to work on