install4j fails to download JDK archives from well-known OpenJDK providers - java

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.

Related

I am getting the following error While adding cloud firestore to my flutter app

Here is the error I'm getting:
Launching lib\main.dart on RMX2189 in debug mode...
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring project ':cloud_firestore'.
Could not resolve all artifacts for configuration ':cloud_firestore:classpath'.
Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.32.
Required by:
project :cloud_firestore > com.android.tools.build:gradle:7.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools:sdk-common:30.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools:repository:30.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.build:aaptcompiler:7.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.analytics-library:shared:30.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.lint:lint-model:30.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > androidx.databinding:databinding-compiler-common:7.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.utp:android-test-plugin-host-retention-proto:30.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.build:builder:7.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.build:builder-model:7.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.build:gradle-api:7.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools:sdk-common:30.0.2 > com.android.tools:common:30.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.build:builder:7.0.2 > com.android.tools.analytics-library:tracker:30.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.build:builder:7.0.2 > com.android.tools.build:manifest-merger:30.0.2
> Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.32.
> Could not get resource 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4.32/kotlin-stdlib-jdk8-1.4.32.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4.32/kotlin-stdlib-jdk8-1.4.32.pom'.
> Remote host terminated the handshake
Could not resolve io.grpc:grpc-core:1.21.1.
Required by:
project :cloud_firestore > com.android.tools.build:gradle:7.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:30.0.2
> Could not resolve io.grpc:grpc-core:1.21.1.
> Could not get resource 'https://repo.maven.apache.org/maven2/io/grpc/grpc-core/1.21.1/grpc-core-1.21.1.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/io/grpc/grpc-core/1.21.1/grpc-core-1.21.1.pom'.
> Remote host terminated the handshake
Could not resolve io.grpc:grpc-netty:1.21.1.
Required by:
project :cloud_firestore > com.android.tools.build:gradle:7.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:30.0.2
> Could not resolve io.grpc:grpc-netty:1.21.1.
> Could not get resource 'https://repo.maven.apache.org/maven2/io/grpc/grpc-netty/1.21.1/grpc-netty-1.21.1.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/io/grpc/grpc-netty/1.21.1/grpc-netty-1.21.1.pom'.
> Remote host terminated the handshake
Could not resolve io.grpc:grpc-protobuf:1.21.1.
Required by:
project :cloud_firestore > com.android.tools.build:gradle:7.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:30.0.2
> Could not resolve io.grpc:grpc-protobuf:1.21.1.
> Could not get resource 'https://repo.maven.apache.org/maven2/io/grpc/grpc-protobuf/1.21.1/grpc-protobuf-1.21.1.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/io/grpc/grpc-protobuf/1.21.1/grpc-protobuf-1.21.1.pom'.
> Remote host terminated the handshake
Could not resolve io.grpc:grpc-stub:1.21.1.
Required by:
project :cloud_firestore > com.android.tools.build:gradle:7.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:30.0.2
> Could not resolve io.grpc:grpc-stub:1.21.1.
> Could not get resource 'https://repo.maven.apache.org/maven2/io/grpc/grpc-stub/1.21.1/grpc-stub-1.21.1.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/io/grpc/grpc-stub/1.21.1/grpc-stub-1.21.1.pom'.
> Remote host terminated the handshake
Could not resolve com.google.guava:guava:30.1-jre.
Required by:
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools:sdk-common:30.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.build:aaptcompiler:7.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.analytics-library:crash:30.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.analytics-library:shared:30.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > androidx.databinding:databinding-compiler-common:7.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.build:builder-test-api:7.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:30.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.build:bundletool:1.6.0
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.build:gradle-api:7.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools:sdk-common:30.0.2 > com.android.tools:common:30.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.build:builder:7.0.2 > com.android.tools.analytics-library:tracker:30.0.2
> Could not resolve com.google.guava:guava:30.1-jre.
> Could not get resource 'https://repo.maven.apache.org/maven2/com/google/guava/guava/30.1-jre/guava-30.1-jre.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/com/google/guava/guava/30.1-jre/guava-30.1-jre.pom'.
> Remote host terminated the handshake
Could not resolve org.apache.commons:commons-compress:1.20.
Required by:
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools:sdklib:30.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools:repository:30.0.2
> Could not resolve org.apache.commons:commons-compress:1.20.
> Could not get resource 'https://repo.maven.apache.org/maven2/org/apache/commons/commons-compress/1.20/commons-compress-1.20.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/org/apache/commons/commons-compress/1.20/commons-compress-1.20.pom'.
> Remote host terminated the handshake
Could not resolve com.google.guava:guava:30.1-jre.
Required by:
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.google.protobuf:protobuf-java-util:3.10.0
> Could not resolve com.google.guava:guava:30.1-jre.
> Could not get resource 'https://repo.maven.apache.org/maven2/com/google/guava/guava/30.1-jre/guava-30.1-jre.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/com/google/guava/guava/30.1-jre/guava-30.1-jre.pom'.
> Remote host terminated the handshake
Could not resolve com.google.guava:guava:30.1-jre.
Required by:
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools:repository:30.0.2 > com.google.jimfs:jimfs:1.1
> Could not resolve com.google.guava:guava:30.1-jre.
> Could not get resource 'https://repo.maven.apache.org/maven2/com/google/guava/guava/30.1-jre/guava-30.1-jre.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/com/google/guava/guava/30.1-jre/guava-30.1-jre.pom'.
> Remote host terminated the handshake
Could not resolve com.google.guava:guava:30.1-jre.
Required by:
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.build:builder:7.0.2 > com.android.tools.build:apkzlib:7.0.2
> Could not resolve com.google.guava:guava:30.1-jre.
> Could not get resource 'https://repo.maven.apache.org/maven2/com/google/guava/guava/30.1-jre/guava-30.1-jre.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/com/google/guava/guava/30.1-jre/guava-30.1-jre.pom'.
> Remote host terminated the handshake
Failed to notify project evaluation listener.
Could not get unknown property 'android' for project ':cloud_firestore' of type org.gradle.api.Project.
Could not find method implementation() for arguments [project ':firebase_core'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Could not get unknown property 'android' for project ':cloud_firestore' of type org.gradle.api.Project.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 29s
[!] Gradle threw an error while downloading artifacts from the network. Retrying to download...
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring project ':cloud_firestore'.
Could not resolve all artifacts for configuration ':cloud_firestore:classpath'.
Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.32.
Required by:
project :cloud_firestore > com.android.tools.build:gradle:7.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools:sdk-common:30.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools:repository:30.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.build:aaptcompiler:7.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.analytics-library:shared:30.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.lint:lint-model:30.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > androidx.databinding:databinding-compiler-common:7.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.utp:android-test-plugin-host-retention-proto:30.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.build:builder:7.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.build:builder-model:7.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.build:gradle-api:7.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools:sdk-common:30.0.2 > com.android.tools:common:30.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.build:builder:7.0.2 > com.android.tools.analytics-library:tracker:30.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.build:builder:7.0.2 > com.android.tools.build:manifest-merger:30.0.2
> Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.32.
> Could not get resource 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4.32/kotlin-stdlib-jdk8-1.4.32.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4.32/kotlin-stdlib-jdk8-1.4.32.pom'.
> Remote host terminated the handshake
Could not resolve io.grpc:grpc-core:1.21.1.
Required by:
project :cloud_firestore > com.android.tools.build:gradle:7.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:30.0.2
> Could not resolve io.grpc:grpc-core:1.21.1.
> Could not get resource 'https://repo.maven.apache.org/maven2/io/grpc/grpc-core/1.21.1/grpc-core-1.21.1.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/io/grpc/grpc-core/1.21.1/grpc-core-1.21.1.pom'.
> Remote host terminated the handshake
Could not resolve io.grpc:grpc-netty:1.21.1.
Required by:
project :cloud_firestore > com.android.tools.build:gradle:7.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:30.0.2
> Could not resolve io.grpc:grpc-netty:1.21.1.
> Could not get resource 'https://repo.maven.apache.org/maven2/io/grpc/grpc-netty/1.21.1/grpc-netty-1.21.1.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/io/grpc/grpc-netty/1.21.1/grpc-netty-1.21.1.pom'.
> Remote host terminated the handshake
Could not resolve io.grpc:grpc-protobuf:1.21.1.
Required by:
project :cloud_firestore > com.android.tools.build:gradle:7.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:30.0.2
> Could not resolve io.grpc:grpc-protobuf:1.21.1.
> Could not get resource 'https://repo.maven.apache.org/maven2/io/grpc/grpc-protobuf/1.21.1/grpc-protobuf-1.21.1.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/io/grpc/grpc-protobuf/1.21.1/grpc-protobuf-1.21.1.pom'.
> Remote host terminated the handshake
Could not resolve io.grpc:grpc-stub:1.21.1.
Required by:
project :cloud_firestore > com.android.tools.build:gradle:7.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:30.0.2
> Could not resolve io.grpc:grpc-stub:1.21.1.
> Could not get resource 'https://repo.maven.apache.org/maven2/io/grpc/grpc-stub/1.21.1/grpc-stub-1.21.1.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/io/grpc/grpc-stub/1.21.1/grpc-stub-1.21.1.pom'.
> Remote host terminated the handshake
Could not resolve com.google.guava:guava:30.1-jre.
Required by:
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools:sdk-common:30.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.build:aaptcompiler:7.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.analytics-library:crash:30.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.analytics-library:shared:30.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > androidx.databinding:databinding-compiler-common:7.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.build:builder-test-api:7.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:30.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.build:bundletool:1.6.0
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.build:gradle-api:7.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools:sdk-common:30.0.2 > com.android.tools:common:30.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.build:builder:7.0.2 > com.android.tools.analytics-library:tracker:30.0.2
> Could not resolve com.google.guava:guava:30.1-jre.
> Could not get resource 'https://repo.maven.apache.org/maven2/com/google/guava/guava/30.1-jre/guava-30.1-jre.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/com/google/guava/guava/30.1-jre/guava-30.1-jre.pom'.
> Remote host terminated the handshake
Could not resolve org.apache.commons:commons-compress:1.20.
Required by:
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools:sdklib:30.0.2
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools:repository:30.0.2
> Could not resolve org.apache.commons:commons-compress:1.20.
> Could not get resource 'https://repo.maven.apache.org/maven2/org/apache/commons/commons-compress/1.20/commons-compress-1.20.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/org/apache/commons/commons-compress/1.20/commons-compress-1.20.pom'.
> Remote host terminated the handshake
Could not resolve com.google.guava:guava:30.1-jre.
Required by:
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.google.protobuf:protobuf-java-util:3.10.0
> Could not resolve com.google.guava:guava:30.1-jre.
> Could not get resource 'https://repo.maven.apache.org/maven2/com/google/guava/guava/30.1-jre/guava-30.1-jre.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/com/google/guava/guava/30.1-jre/guava-30.1-jre.pom'.
> Remote host terminated the handshake
Could not resolve com.google.guava:guava:30.1-jre.
Required by:
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools:repository:30.0.2 > com.google.jimfs:jimfs:1.1
> Could not resolve com.google.guava:guava:30.1-jre.
> Could not get resource 'https://repo.maven.apache.org/maven2/com/google/guava/guava/30.1-jre/guava-30.1-jre.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/com/google/guava/guava/30.1-jre/guava-30.1-jre.pom'.
> Remote host terminated the handshake
Could not resolve com.google.guava:guava:30.1-jre.
Required by:
project :cloud_firestore > com.android.tools.build:gradle:7.0.2 > com.android.tools.build:builder:7.0.2 > com.android.tools.build:apkzlib:7.0.2
> Could not resolve com.google.guava:guava:30.1-jre.
> Could not get resource 'https://repo.maven.apache.org/maven2/com/google/guava/guava/30.1-jre/guava-30.1-jre.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/com/google/guava/guava/30.1-jre/guava-30.1-jre.pom'.
> Remote host terminated the handshake
Failed to notify project evaluation listener.
Could not get unknown property 'android' for project ':cloud_firestore' of type org.gradle.api.Project.
Could not find method implementation() for arguments [project ':firebase_core'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Could not get unknown property 'android' for project ':cloud_firestore' of type org.gradle.api.Project.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 24s
[!] Gradle threw an error while downloading artifacts from the network. Retrying to download...
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

Deploy AAR services using AXIS2 on JBOSS application server

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.

Could not resolve all dependencies for configuration :classpath'

I'm trying to create a mod for Minecraft 1.7.10 and I am currently at setting up gradlew and other apps.
When, I run this command: .\gradlew setupDecompWorkspace I have this error:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'Forge src'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve org.eclipse.equinox:common:[3.2.0,4.0.0).
Required by:
:Forge src:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:jobs:3.5.300-v20130429-1813
:Forge src:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:contenttype:3.4.200-v20130326-1255
:Forge src:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.equinox:preferences:3.5.100-v20130422-1538
> Failed to list versions for org.eclipse.equinox:common.
> Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/equinox/common/maven-metadata.xml.
> Could not GET 'http://repo1.maven.org/maven2/org/eclipse/equinox/common/maven-metadata.xml'. Received status code 501 from server: HTTPS Required
> Could not resolve org.eclipse.equinox:preferences:[3.2.0,4.0.0).
Required by:
:Forge src:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:contenttype:3.4.200-v20130326-1255
> Failed to list versions for org.eclipse.equinox:preferences.
> Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/equinox/preferences/maven-metadata.xml.
> Could not GET 'http://repo1.maven.org/maven2/org/eclipse/equinox/preferences/maven-metadata.xml'. Received status code 501 from server: HTTPS Required
> Could not resolve org.eclipse.equinox:registry:[3.2.0,4.0.0).
Required by:
:Forge src:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:contenttype:3.4.200-v20130326-1255
> Failed to list versions for org.eclipse.equinox:registry.
> Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/equinox/registry/maven-metadata.xml.
> Could not GET 'http://repo1.maven.org/maven2/org/eclipse/equinox/registry/maven-metadata.xml'. Received status code 501 from server: HTTPS Required
> Could not resolve org.eclipse.core.runtime:compatibility:[3.1.0,4.0.0).
Required by:
:Forge src:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:resources:3.2.1-R32x_v20060914
> Failed to list versions for org.eclipse.core.runtime:compatibility.
> Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/core/runtime/compatibility/maven-metadata.xml.
> Could not GET 'http://repo1.maven.org/maven2/org/eclipse/core/runtime/compatibility/maven-metadata.xml'. Received status code 501 from server: HTTPS Required
> Could not resolve org.eclipse.core:expressions:[3.1.0,4.0.0).
Required by:
:Forge src:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:resources:3.2.1-R32x_v20060914
> Failed to list versions for org.eclipse.core:expressions.
> Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/core/expressions/maven-metadata.xml.
> Could not GET 'http://repo1.maven.org/maven2/org/eclipse/core/expressions/maven-metadata.xml'. Received status code 501 from server: HTTPS Required
> Could not resolve org.eclipse.core:filesystem:[1.0.0,2.0.0).
Required by:
:Forge src:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:resources:3.2.1-R32x_v20060914
> Failed to list versions for org.eclipse.core:filesystem.
> Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/core/filesystem/maven-metadata.xml.
> Could not GET 'http://repo1.maven.org/maven2/org/eclipse/core/filesystem/maven-metadata.xml'. Received status code 501 from server: HTTPS Required
> Could not resolve org.eclipse:osgi:[3.7.0,4.0.0).
Required by:
:Forge src:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:runtime:3.9.0-v20130326-1255
> Failed to list versions for org.eclipse:osgi.
> Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/osgi/maven-metadata.xml.
> Could not GET 'http://repo1.maven.org/maven2/org/eclipse/osgi/maven-metadata.xml'. Received status code 501 from server: HTTPS Required
> Could not resolve org.eclipse.equinox:common:[3.6.100,4.0.0).
Required by:
:Forge src:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:runtime:3.9.0-v20130326-1255
> Failed to list versions for org.eclipse.equinox:common.
> Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/equinox/common/maven-metadata.xml.
> Could not GET 'http://repo1.maven.org/maven2/org/eclipse/equinox/common/maven-metadata.xml'. Received status code 501 from server: HTTPS Required
> Could not resolve org.eclipse.core:jobs:[3.2.0,4.0.0).
Required by:
:Forge src:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:runtime:3.9.0-v20130326-1255
> Failed to list versions for org.eclipse.core:jobs.
> Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/core/jobs/maven-metadata.xml.
> Could not GET 'http://repo1.maven.org/maven2/org/eclipse/core/jobs/maven-metadata.xml'. Received status code 501 from server: HTTPS Required
> Could not resolve org.eclipse.equinox:registry:[3.4.0,4.0.0).
Required by:
:Forge src:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:runtime:3.9.0-v20130326-1255
> Failed to list versions for org.eclipse.equinox:registry.
> Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/equinox/registry/maven-metadata.xml.
> Could not GET 'http://repo1.maven.org/maven2/org/eclipse/equinox/registry/maven-metadata.xml'. Received status code 501 from server: HTTPS Required
> Could not resolve org.eclipse.equinox:preferences:[3.4.0,4.0.0).
Required by:
:Forge src:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:runtime:3.9.0-v20130326-1255
> Failed to list versions for org.eclipse.equinox:preferences.
> Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/equinox/preferences/maven-metadata.xml.
> Could not GET 'http://repo1.maven.org/maven2/org/eclipse/equinox/preferences/maven-metadata.xml'. Received status code 501 from server: HTTPS Required
> Could not resolve org.eclipse.core:contenttype:[3.3.0,4.0.0).
Required by:
:Forge src:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:runtime:3.9.0-v20130326-1255
> Failed to list versions for org.eclipse.core:contenttype.
> Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/core/contenttype/maven-metadata.xml.
> Could not GET 'http://repo1.maven.org/maven2/org/eclipse/core/contenttype/maven-metadata.xml'. Received status code 501 from server: HTTPS Required
> Could not resolve org.eclipse.equinox:app:[1.0.0,2.0.0).
Required by:
:Forge src:unspecified > net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT > net.minecraftforge.srg2source:Srg2Source:3.2-SNAPSHOT > org.eclipse.core:runtime:3.9.0-v20130326-1255
> Failed to list versions for org.eclipse.equinox:app.
> Unable to load Maven meta-data from http://repo1.maven.org/maven2/org/eclipse/equinox/app/maven-metadata.xml.
> Could not GET 'http://repo1.maven.org/maven2/org/eclipse/equinox/app/maven-metadata.xml'. Received status code 501 from server: HTTPS Required
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 17.807 secs
What do I do to solve the issue? Here's my build.gradle file:
buildscript {
repositories {
mavenCentral()
maven {
name = "forge"
url = "http://files.minecraftforge.net/maven"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
}
}
apply plugin: 'forge'
version = "1.0"
group= "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "modid"
minecraft {
version = "1.7.10-10.13.4.1558-1.7.10"
runDir = "eclipse"
}
dependencies {
// you may put jars on which you depend on in ./libs
// or you may define them like so..
//compile "some.group:artifact:version:classifier"
//compile "some.group:artifact:version"
// real examples
//compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env
//compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env
// for more info...
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
// http://www.gradle.org/docs/current/userguide/dependency_management.html
}
processResources {
// this will ensure that this task is redone when the versions change.
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
// replace stuff in mcmod.info, nothing else
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
// replace version and mcversion
expand 'version':project.version, 'mcversion':project.minecraft.version
}
// copy everything else, thats not the mcmod.info
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}
Can you share your gradle build file?
Also did you try to use the maven central in the gradle build file?
ex:
repositories {
mavenCentral() }
Go to C:\Users\[username] delete the .gradle file. Then go to your folder where you extracted forge 1.7.10 and open gradle >> wrapper >> gradle-wrapper.properties and change/replace the last line with this - distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-all.zip
Also make sure you have JDK 8 or higher installed and have set the path.

Can't run a pig script on apache Zeppelin

> 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

debug attribute can have values as "on" in JAVAC tag of ant script

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.

Categories