B4J Question B4JPackager 11 issue

Markos

Active Member
Licensed User
Hi All,

My B4J App runs well via b4j IDE but when I package using B4JPackager I get these errors from the debug..

B4X:
E:\b4jProducts\b4jpackager\B4JPackager11\Objects\temp\build>cd bin

E:\b4jProducts\b4jpackager\B4JPackager11\Objects\temp\build\bin>java.exe @releas
e_java_modules.txt  -m b4j/com.progwhiz.pdfviewer.main
javax.net.ssl.SSLHandshakeException: Received fatal alert: protocol_version
        at java.base/sun.security.ssl.Alert.createSSLException(Unknown Source)
        at java.base/sun.security.ssl.Alert.createSSLException(Unknown Source)
        at java.base/sun.security.ssl.TransportContext.fatal(Unknown Source)
        at java.base/sun.security.ssl.Alert$AlertConsumer.consume(Unknown Source
)
        at java.base/sun.security.ssl.TransportContext.dispatch(Unknown Source)
        at java.base/sun.security.ssl.SSLTransport.decode(Unknown Source)
        at java.base/sun.security.ssl.SSLSocketImpl.decode(Unknown Source)
        at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(Unknown
Source)
        at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Sourc
e)
        at b4j/okhttp3.internal.connection.RealConnection.connectTls(Unknown Sou
rce)
        at b4j/okhttp3.internal.connection.RealConnection.establishProtocol(Unkn
own Source)
        at b4j/okhttp3.internal.connection.RealConnection.buildConnection(Unknow
n Source)
        at b4j/okhttp3.internal.connection.RealConnection.connect(Unknown Source
)
        at b4j/okhttp3.internal.connection.StreamAllocation.findConnection(Unkno
wn Source)
        at b4j/okhttp3.internal.connection.StreamAllocation.findHealthyConnectio
n(Unknown Source)
        at b4j/okhttp3.internal.connection.StreamAllocation.newStream(Unknown So
urce)
        at b4j/okhttp3.internal.connection.ConnectInterceptor.intercept(Unknown
Source)
        at b4j/okhttp3.internal.http.RealInterceptorChain.proceed(Unknown Source
)
        at b4j/okhttp3.internal.http.RealInterceptorChain.proceed(Unknown Source
)
        at b4j/okhttp3.internal.cache.CacheInterceptor.intercept(Unknown Source)

        at b4j/okhttp3.internal.http.RealInterceptorChain.proceed(Unknown Source
)
        at b4j/okhttp3.internal.http.RealInterceptorChain.proceed(Unknown Source
)
        at b4j/okhttp3.internal.http.BridgeInterceptor.intercept(Unknown Source)

        at b4j/okhttp3.internal.http.RealInterceptorChain.proceed(Unknown Source
)
        at b4j/okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(Unkno
wn Source)
        at b4j/okhttp3.internal.http.RealInterceptorChain.proceed(Unknown Source
)
        at b4j/okhttp3.internal.http.RealInterceptorChain.proceed(Unknown Source
)
        at b4j/okhttp3.RealCall.getResponseWithInterceptorChain(Unknown Source)
        at b4j/okhttp3.RealCall.execute(Unknown Source)
        at b4j/anywheresoftware.b4h.okhttp.OkHttpClientWrapper.executeWithTimeou
t(Unknown Source)
        at b4j/anywheresoftware.b4h.okhttp.OkHttpClientWrapper.access$0(Unknown
Source)
        at b4j/anywheresoftware.b4h.okhttp.OkHttpClientWrapper$ExecuteHelper.run
(Unknown Source)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown
 Source)
        at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown S
ource)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
        at java.base/java.lang.Thread.run(Unknown Source)
        Suppressed: javax.net.ssl.SSLHandshakeException: Received fatal alert: h
andshake_failure
                ... 37 more
ResponseError. Reason: javax.net.ssl.SSLHandshakeException: Received fatal alert
: protocol_version, Response:

Now I am pulling the pdf from https site I don't know what special parameters have to be set for the packaged version to behave like the IDE run Jar
 

Markos

Active Member
Licensed User
I tried using the conditional symbol HU2_ACCEPTALL . I am also using jOkHttpUtils2 v2.91 and still same error with packaged exe version from B4JPackager but no issue with the .jar
 
Upvote 0

Markos

Active Member
Licensed User
The httpjpb code is identical and the IncludedModules inserted into the App and still same error. I tried putting the
IncludedModules into b4jpackager as well.

I now tried version 1.14 of the b4jpackager now it works as I was using 1.13 all the time. I see the javafx was not excluded by default in 1.14 now 1.1.3 works too.

So the full contents of the /temp/build folder is to be distributed for the App to work ?

Is there any feature difference between the exe produced by the GUI B4Jpackager and the command line option as the file is much bigger using the command line builder?

Using 1.1.4 the icon for the exe is default one but with 1.13 it uses the icon I selected for the form, why is that?(Fixed)
 
Last edited:
Upvote 0
Top