Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in bluid application #8

Open
FelipeRodrigues21 opened this issue Jun 29, 2021 · 10 comments
Open

Bug in bluid application #8

FelipeRodrigues21 opened this issue Jun 29, 2021 · 10 comments

Comments

@FelipeRodrigues21
Copy link

Hello Guys, how are you ?
When it build my application in middle of the process, it show error bellow:

LOGS:

com.amazonaws.SdkClientException: Unable to execute HTTP request: Connect to totalcross-release.s3.us-west-2.amazonaws.com:443 [totalcross-release.s3.us-west-2.amazonaws.com/52.218.138.9] failed: connect timed out
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleRetryableException(AmazonHttpClient.java:1175)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeHelper(AmazonHttpClient.java:1121)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.doExecute(AmazonHttpClient.java:770)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeWithTimer(AmazonHttpClient.java:744)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.execute(AmazonHttpClient.java:726)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.access$500(AmazonHttpClient.java:686)
at com.amazonaws.http.AmazonHttpClient$RequestExecutionBuilderImpl.execute(AmazonHttpClient.java:668)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:532)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:512)
at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:4921)
at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:4867)
at com.amazonaws.services.s3.AmazonS3Client.getObject(AmazonS3Client.java:1467)
at com.amazonaws.services.s3.AmazonS3Client.getObject(AmazonS3Client.java:1326)
at com.totalcross.TotalCrossSDKDownloader.downloadSDK(TotalCrossSDKDownloader.java:51)
at com.totalcross.TotalCrossSDKDownloader.init(TotalCrossSDKDownloader.java:33)
at com.totalcross.TotalCrossMojo.setupSDKPath(TotalCrossMojo.java:91)
at com.totalcross.TotalCrossMojo.execute(TotalCrossMojo.java:70)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.http.conn.ConnectTimeoutException: Connect to totalcross-release.s3.us-west-2.amazonaws.com:443 [totalcross-release.s3.us-west-2.amazonaws.com/52.218.138.9] failed: connect timed out
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:151)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:374)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.amazonaws.http.conn.ClientConnectionManagerFactory$Handler.invoke(ClientConnectionManagerFactory.java:76)
at com.amazonaws.http.conn.$Proxy28.connect(Unknown Source)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
at com.amazonaws.http.apache.client.impl.SdkHttpClient.execute(SdkHttpClient.java:72)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeOneRequest(AmazonHttpClient.java:1297)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeHelper(AmazonHttpClient.java:1113)
... 37 more
Caused by: java.net.SocketTimeoutException: connect timed out
at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method)
at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:107)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.base/java.net.Socket.connect(Socket.java:608)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:368)
at com.amazonaws.http.conn.ssl.SdkTLSSocketFactory.connectSocket(SdkTLSSocketFactory.java:142)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
... 53 more
net.lingala.zip4j.exception.ZipException: java.io.FileNotFoundException: C:\Users\felipe.rodrigues\TotalCross\temp.zip (O sistema não pode encontrar o arquivo especificado)
at net.lingala.zip4j.tasks.AsyncZipTask.performTaskWithErrorHandling(AsyncZipTask.java:49)
at net.lingala.zip4j.tasks.AsyncZipTask.execute(AsyncZipTask.java:36)
at net.lingala.zip4j.ZipFile.extractAll(ZipFile.java:437)
at com.totalcross.TotalCrossSDKDownloader.unzipSDK(TotalCrossSDKDownloader.java:90)
at com.totalcross.TotalCrossSDKDownloader.init(TotalCrossSDKDownloader.java:34)
at com.totalcross.TotalCrossMojo.setupSDKPath(TotalCrossMojo.java:91)
at com.totalcross.TotalCrossMojo.execute(TotalCrossMojo.java:70)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: java.io.FileNotFoundException: C:\Users\felipe.rodrigues\TotalCross\temp.zip (O sistema não pode encontrar o arquivo especificado)
at java.base/java.io.RandomAccessFile.open0(Native Method)
at java.base/java.io.RandomAccessFile.open(RandomAccessFile.java:346)
at java.base/java.io.RandomAccessFile.(RandomAccessFile.java:260)
at java.base/java.io.RandomAccessFile.(RandomAccessFile.java:215)
at net.lingala.zip4j.io.inputstream.SplitInputStream.(SplitInputStream.java:22)
at net.lingala.zip4j.tasks.ExtractAllFilesTask.prepareZipInputStream(ExtractAllFilesTask.java:64)
at net.lingala.zip4j.tasks.ExtractAllFilesTask.executeTask(ExtractAllFilesTask.java:26)
at net.lingala.zip4j.tasks.ExtractAllFilesTask.executeTask(ExtractAllFilesTask.java:13)
at net.lingala.zip4j.tasks.AsyncZipTask.performTaskWithErrorHandling(AsyncZipTask.java:42)
... 28 more

I notice that the application dont get communication with s3 and it thenfore don't do the download file.

@brunoamuniz
Copy link

hello @FelipeRodrigues21, could you check the maven file (pom.xml) if the links are using HTTP:// or HTTPS://

        <url>http://maven.totalcross.com/artifactory/repo1</url>

to

        <url>https://maven.totalcross.com/artifactory/repo1</url>

Try with HTTPS:// and let us know

Which totalcross version are you using??

@FelipeRodrigues21
Copy link
Author

I changed the protocol http to https, but not working. I using version 7.0.1 of totalcross.

@brunoamuniz
Copy link

brunoamuniz commented Jun 29, 2021

Could you share the entire log? It's not clear the step it's broken

what is the maven plugin version? Could you share your pom.xml?

Thanks

@FelipeRodrigues21
Copy link
Author

shure,
my LOG:

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building HelloWorld 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ HelloWorld ---
[INFO] Deleting C:\Users\felipe.rodrigues\Projects\embedded-samples-main\hello-world\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ HelloWorld ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\felipe.rodrigues\Projects\embedded-samples-main\hello-world\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ HelloWorld ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to C:\Users\felipe.rodrigues\Projects\embedded-samples-main\hello-world\target\classes
[INFO]
[INFO] --- totalcross-maven-plugin:1.1.6:retrolambda (post-compile) @ HelloWorld ---
[INFO] Processing classes with Retrolambda
00:00 INFO: Bytecode version: 51 (Java 7)
00:00 INFO: Default methods: false
00:00 INFO: Input directory: C:\Users\felipe.rodrigues\Projects\embedded-samples-main\hello-world\target\classes
00:00 INFO: Output directory: C:\Users\felipe.rodrigues\Projects\embedded-samples-main\hello-world\target\classes
00:00 INFO: Classpath: [C:\Users\felipe.rodrigues\Projects\embedded-samples-main\hello-world\target\classes, C:\Users\felipe.rodrigues.m2\repository\com\totalcross\totalcross-sdk\6.1.0\totalcross-sdk-6.1.0.jar, C:\Users\felipe.rodrigues.m2\repository\org\vafer\jdeb\0.7\jdeb-0.7.jar, C:\Users\felipe.rodrigues.m2\repository\org\apache\maven\maven-plugin-api\2.0.5\maven-plugin-api-2.0.5.jar, C:\Users\felipe.rodrigues.m2\repository\org\apache\maven\maven-project\2.0.5\maven-project-2.0.5.jar, C:\Users\felipe.rodrigues.m2\repository\org\apache\maven\maven-settings\2.0.5\maven-settings-2.0.5.jar, C:\Users\felipe.rodrigues.m2\repository\org\apache\maven\maven-profile\2.0.5\maven-profile-2.0.5.jar, C:\Users\felipe.rodrigues.m2\repository\org\apache\maven\maven-model\2.0.5\maven-model-2.0.5.jar, C:\Users\felipe.rodrigues.m2\repository\org\apache\maven\maven-artifact-manager\2.0.5\maven-artifact-manager-2.0.5.jar, C:\Users\felipe.rodrigues.m2\repository\org\apache\maven\maven-repository-metadata\2.0.5\maven-repository-metadata-2.0.5.jar, C:\Users\felipe.rodrigues.m2\repository\org\apache\maven\wagon\wagon-provider-api\1.0-beta-2\wagon-provider-api-1.0-beta-2.jar, C:\Users\felipe.rodrigues.m2\repository\org\codehaus\plexus\plexus-container-default\1.0-alpha-9\plexus-container-default-1.0-alpha-9.jar, C:\Users\felipe.rodrigues.m2\repository\classworlds\classworlds\1.1-alpha-2\classworlds-1.1-alpha-2.jar, C:\Users\felipe.rodrigues.m2\repository\org\apache\maven\maven-artifact\2.0.5\maven-artifact-2.0.5.jar, C:\Users\felipe.rodrigues.m2\repository\org\codehaus\plexus\plexus-utils\1.4.1\plexus-utils-1.4.1.jar, C:\Users\felipe.rodrigues.m2\repository\org\apache\ant\ant\1.7.1\ant-1.7.1.jar, C:\Users\felipe.rodrigues.m2\repository\org\apache\ant\ant-launcher\1.7.1\ant-launcher-1.7.1.jar, C:\Users\felipe.rodrigues.m2\repository\junit\junit\3.8.2\junit-3.8.2.jar, C:\Users\felipe.rodrigues.m2\repository\org\bouncycastle\bcpkix-jdk15on\1.56\bcpkix-jdk15on-1.56.jar, C:\Users\felipe.rodrigues.m2\repository\org\bouncycastle\bcprov-jdk15on\1.56\bcprov-jdk15on-1.56.jar, C:\Users\felipe.rodrigues.m2\repository\com\googlecode\plist\dd-plist\1.19\dd-plist-1.19.jar, C:\Users\felipe.rodrigues.m2\repository\org\xerial\sqlite-jdbc\3.8.7\sqlite-jdbc-3.8.7.jar, C:\Users\felipe.rodrigues.m2\repository\de\schlichtherle\truezip\truezip-file\7.5.1\truezip-file-7.5.1.jar, C:\Users\felipe.rodrigues.m2\repository\de\schlichtherle\truezip\truezip-kernel\7.5.1\truezip-kernel-7.5.1.jar, C:\Users\felipe.rodrigues.m2\repository\de\schlichtherle\truezip\truezip-driver-zip\7.5.1\truezip-driver-zip-7.5.1.jar, C:\Users\felipe.rodrigues.m2\repository\de\schlichtherle\truezip\truezip-swing\7.5.1\truezip-swing-7.5.1.jar, C:\Users\felipe.rodrigues.m2\repository\org\apache\commons\commons-compress\1.3\commons-compress-1.3.jar, C:\Users\felipe.rodrigues.m2\repository\commons-io\commons-io\2.2\commons-io-2.2.jar, C:\Users\felipe.rodrigues.m2\repository\org\ow2\asm\asm\5.2\asm-5.2.jar, C:\Users\felipe.rodrigues.m2\repository\org\ow2\asm\asm-tree\5.2\asm-tree-5.2.jar, C:\Users\felipe.rodrigues.m2\repository\net\harawata\appdirs\1.0.0\appdirs-1.0.0.jar, C:\Users\felipe.rodrigues.m2\repository\org\slf4j\slf4j-api\1.7.21\slf4j-api-1.7.21.jar, C:\Users\felipe.rodrigues.m2\repository\net\coobird\thumbnailator\0.4.8\thumbnailator-0.4.8.jar, C:\Users\felipe.rodrigues.m2\repository\com\totalcross\annotations\totalcross-annotations\1.0.0\totalcross-annotations-1.0.0.jar, C:\Users\felipe.rodrigues.m2\repository\net\java\dev\jna\jna-platform\4.2.2\jna-platform-4.2.2.jar, C:\Users\felipe.rodrigues.m2\repository\net\java\dev\jna\jna\4.2.2\jna-4.2.2.jar]
00:00 INFO: Included files: all
00:00 INFO: JVM version: 11.0.11
00:00 INFO: Agent enabled: false
00:00 INFO: javac hacks: false
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by net.orfjackal.retrolambda.lambdas.LambdaClassDumper (file:/C:/Users/felipe.rodrigues/.m2/repository/net/orfjackal/retrolambda/retrolambda/2.5.6/retrolambda-2.5.6.jar) to field java.lang.reflect.Field.modifiers
WARNING: Please consider reporting this to the maintainers of net.orfjackal.retrolambda.lambdas.LambdaClassDumper
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ HelloWorld ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\felipe.rodrigues\Projects\embedded-samples-main\hello-world\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ HelloWorld ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ HelloWorld ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ HelloWorld ---
[INFO] Building jar: C:\Users\felipe.rodrigues\Projects\embedded-samples-main\hello-world\target\HelloWorld.jar
[INFO]
[INFO] --- totalcross-maven-plugin:1.1.6:package (post-package) @ HelloWorld ---
log4j:WARN No appenders could be found for logger (com.amazonaws.AmazonWebServiceClient).
log4j:WARN Please initialize the log4j system properly.
com.amazonaws.SdkClientException: Unable to execute HTTP request: Connect to totalcross-release.s3.us-west-2.amazonaws.com:443 [totalcross-release.s3.us-west-2.amazonaws.com/52.218.213.9] failed: connect timed out
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleRetryableException(AmazonHttpClient.java:1175)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeHelper(AmazonHttpClient.java:1121)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.doExecute(AmazonHttpClient.java:770)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeWithTimer(AmazonHttpClient.java:744)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.execute(AmazonHttpClient.java:726)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.access$500(AmazonHttpClient.java:686)
at com.amazonaws.http.AmazonHttpClient$RequestExecutionBuilderImpl.execute(AmazonHttpClient.java:668)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:532)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:512)
at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:4921)
at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:4867)
at com.amazonaws.services.s3.AmazonS3Client.getObject(AmazonS3Client.java:1467)
at com.amazonaws.services.s3.AmazonS3Client.getObject(AmazonS3Client.java:1326)
at com.totalcross.TotalCrossSDKDownloader.downloadSDK(TotalCrossSDKDownloader.java:51)
at com.totalcross.TotalCrossSDKDownloader.init(TotalCrossSDKDownloader.java:33)
at com.totalcross.TotalCrossMojo.setupSDKPath(TotalCrossMojo.java:91)
at com.totalcross.TotalCrossMojo.execute(TotalCrossMojo.java:70)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.http.conn.ConnectTimeoutException: Connect to totalcross-release.s3.us-west-2.amazonaws.com:443 [totalcross-release.s3.us-west-2.amazonaws.com/52.218.213.9] failed: connect timed out
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:151)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:374)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.amazonaws.http.conn.ClientConnectionManagerFactory$Handler.invoke(ClientConnectionManagerFactory.java:76)
at com.amazonaws.http.conn.$Proxy28.connect(Unknown Source)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
at com.amazonaws.http.apache.client.impl.SdkHttpClient.execute(SdkHttpClient.java:72)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeOneRequest(AmazonHttpClient.java:1297)
at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeHelper(AmazonHttpClient.java:1113)
... 37 more
Caused by: java.net.SocketTimeoutException: connect timed out
at java.base/java.net.PlainSocketImpl.waitForConnect(Native Method)
at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:107)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.base/java.net.Socket.connect(Socket.java:608)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:368)
at com.amazonaws.http.conn.ssl.SdkTLSSocketFactory.connectSocket(SdkTLSSocketFactory.java:142)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
... 53 more
net.lingala.zip4j.exception.ZipException: java.io.FileNotFoundException: C:\Users\felipe.rodrigues\TotalCross\temp.zip (O sistema não pode encontrar o arquivo especificado)
at net.lingala.zip4j.tasks.AsyncZipTask.performTaskWithErrorHandling(AsyncZipTask.java:49)
at net.lingala.zip4j.tasks.AsyncZipTask.execute(AsyncZipTask.java:36)
at net.lingala.zip4j.ZipFile.extractAll(ZipFile.java:437)
at com.totalcross.TotalCrossSDKDownloader.unzipSDK(TotalCrossSDKDownloader.java:90)
at com.totalcross.TotalCrossSDKDownloader.init(TotalCrossSDKDownloader.java:34)
at com.totalcross.TotalCrossMojo.setupSDKPath(TotalCrossMojo.java:91)
at com.totalcross.TotalCrossMojo.execute(TotalCrossMojo.java:70)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: java.io.FileNotFoundException: C:\Users\felipe.rodrigues\TotalCross\temp.zip (O sistema não pode encontrar o arquivo especificado)
at java.base/java.io.RandomAccessFile.open0(Native Method)
at java.base/java.io.RandomAccessFile.open(RandomAccessFile.java:346)
at java.base/java.io.RandomAccessFile.(RandomAccessFile.java:260)
at java.base/java.io.RandomAccessFile.(RandomAccessFile.java:215)
at net.lingala.zip4j.io.inputstream.SplitInputStream.(SplitInputStream.java:22)
at net.lingala.zip4j.tasks.ExtractAllFilesTask.prepareZipInputStream(ExtractAllFilesTask.java:64)
at net.lingala.zip4j.tasks.ExtractAllFilesTask.executeTask(ExtractAllFilesTask.java:26)
at net.lingala.zip4j.tasks.ExtractAllFilesTask.executeTask(ExtractAllFilesTask.java:13)
at net.lingala.zip4j.tasks.AsyncZipTask.performTaskWithErrorHandling(AsyncZipTask.java:42)
... 28 more

@FelipeRodrigues21
Copy link
Author

My pom file


4.0.0

<groupId>com.totalcross</groupId>
<artifactId>HelloWorld</artifactId>
<version>1.0-SNAPSHOT</version>
<name>HelloWorld</name>

<properties>
	<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
	<dependency>
		<groupId>com.totalcross</groupId>
		<artifactId>totalcross-sdk</artifactId>
		<version>6.1.0</version>
	</dependency>
</dependencies>

<repositories>
	<repository>
		<id>totalcross-repo</id>
		<name>ip-172-31-40-140-releases</name>
		<url>https://maven.totalcross.com/artifactory/repo1</url>
	</repository>
</repositories>

<pluginRepositories>
	<pluginRepository>
		<id>totalcross-repo</id>
		<name>ip-172-31-40-140-releases</name>
		<url>https	://maven.totalcross.com/artifactory/repo1</url>
	</pluginRepository>
</pluginRepositories>

<build>
	<finalName>${project.artifactId}</finalName>
	<plugins>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-compiler-plugin</artifactId>
			<version>3.1</version>
			<configuration>
				<source>1.8</source>
				<target>1.8</target>
			</configuration>
		</plugin>
		<plugin>
			<groupId>com.totalcross</groupId>
			<artifactId>totalcross-maven-plugin</artifactId>
			<version>1.1.6</version>
			<configuration>
				<name>${project.name}</name>
				<platforms>
					<platform>-android</platform>
					<platform>-win32</platform>
					<platform>-linux_arm</platform>
				</platforms>
			</configuration>
			<executions>
				<execution>
					<id>post-compile</id>
					<phase>compile</phase>
					<goals>
						<goal>retrolambda</goal>
					</goals>
				</execution>
				<execution>
					<id>post-package</id>
					<phase>package</phase>
					<goals>
						<goal>package</goal>
					</goals>
				</execution>
			</executions>
		</plugin>
	</plugins>
</build>
<profiles>
	<profile>
		<id>only-eclipse</id>
		<activation>
			<property>
				<name>m2e.version</name>
			</property>
		</activation>
		<build>
			<pluginManagement>
				<plugins>
					<plugin>
						<groupId>org.eclipse.m2e</groupId>
						<artifactId>lifecycle-mapping</artifactId>
						<version>1.0.0</version>
						<configuration>
							<lifecycleMappingMetadata>
								<pluginExecutions>
									<pluginExecution>
										<pluginExecutionFilter>
											<groupId>com.totalcross</groupId>
											<artifactId>totalcross-maven-plugin</artifactId>
											<versionRange>[1.1.6,)</versionRange>
											<goals>
												<goal>retrolambda</goal>
											</goals>
										</pluginExecutionFilter>
										<action>
											<execute />
										</action>
									</pluginExecution>
								</pluginExecutions>
							</lifecycleMappingMetadata>
						</configuration>
					</plugin>
				</plugins>
			</pluginManagement>
		</build>
	</profile>
</profiles>

@brunoamuniz
Copy link

hey, update your totalcross-maven-plugin to the last version and give us the results

            <groupId>com.totalcross</groupId>
            <artifactId>totalcross-maven-plugin</artifactId>
            <version>2.0.4</version>

@FelipeRodrigues21
Copy link
Author

I change my version totalcros-maven-plugin, but the application continue with error:

LOG:

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building HelloWorld 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ HelloWorld ---
[INFO] Deleting C:\Users\felipe.rodrigues\Projects\embedded-samples-main\hello-world\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ HelloWorld ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\felipe.rodrigues\Projects\embedded-samples-main\hello-world\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ HelloWorld ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to C:\Users\felipe.rodrigues\Projects\embedded-samples-main\hello-world\target\classes
[INFO]
[INFO] --- totalcross-maven-plugin:2.0.4:retrolambda (post-compile) @ HelloWorld ---
[INFO] Retrieving Retrolambda 2.5.7
[INFO] Configured Artifact: net.orfjackal.retrolambda:retrolambda:2.5.7:jar
[INFO] Copying retrolambda-2.5.7.jar to C:\Users\felipe.rodrigues\Projects\embedded-samples-main\hello-world\target\retrolambda\retrolambda.jar
[INFO] Processing classes with Retrolambda
[INFO] Executing tasks

main:
[exec] Retrolambda 2.5.7
[exec] 00:00 INFO: Bytecode version: 51 (Java 7)
[exec] 00:00 INFO: Default methods: false
[exec] 00:00 INFO: Input directory: C:\Users\felipe.rodrigues\Projects\embedded-samples-main\hello-world\target\classes
[exec] 00:00 INFO: Output directory: C:\Users\felipe.rodrigues\Projects\embedded-samples-main\hello-world\target\classes
[exec] 00:00 INFO: Classpath: [C:\Users\felipe.rodrigues\Projects\embedded-samples-main\hello-world\target\classes, C:\Users\felipe.rodrigues.m2\repository\com\totalcross\totalcross-sdk\6.1.0\totalcross-sdk-6.1.0.jar, C:\Users\felipe.rodrigues.m2\repository\org\vafer\jdeb\0.7\jdeb-0.7.jar, C:\Users\felipe.rodrigues.m2\repository\org\apache\maven\maven-plugin-api\2.0.5\maven-plugin-api-2.0.5.jar, C:\Users\felipe.rodrigues.m2\repository\org\apache\maven\maven-project\2.0.5\maven-project-2.0.5.jar, C:\Users\felipe.rodrigues.m2\repository\org\apache\maven\maven-settings\2.0.5\maven-settings-2.0.5.jar, C:\Users\felipe.rodrigues.m2\repository\org\apache\maven\maven-profile\2.0.5\maven-profile-2.0.5.jar, C:\Users\felipe.rodrigues.m2\repository\org\apache\maven\maven-model\2.0.5\maven-model-2.0.5.jar, C:\Users\felipe.rodrigues.m2\repository\org\apache\maven\maven-artifact-manager\2.0.5\maven-artifact-manager-2.0.5.jar, C:\Users\felipe.rodrigues.m2\repository\org\apache\maven\maven-repository-metadata\2.0.5\maven-repository-metadata-2.0.5.jar, C:\Users\felipe.rodrigues.m2\repository\org\apache\maven\wagon\wagon-provider-api\1.0-beta-2\wagon-provider-api-1.0-beta-2.jar, C:\Users\felipe.rodrigues.m2\repository\org\codehaus\plexus\plexus-container-default\1.0-alpha-9\plexus-container-default-1.0-alpha-9.jar, C:\Users\felipe.rodrigues.m2\repository\classworlds\classworlds\1.1-alpha-2\classworlds-1.1-alpha-2.jar, C:\Users\felipe.rodrigues.m2\repository\org\apache\maven\maven-artifact\2.0.5\maven-artifact-2.0.5.jar, C:\Users\felipe.rodrigues.m2\repository\org\codehaus\plexus\plexus-utils\1.4.1\plexus-utils-1.4.1.jar, C:\Users\felipe.rodrigues.m2\repository\org\apache\ant\ant\1.7.1\ant-1.7.1.jar, C:\Users\felipe.rodrigues.m2\repository\org\apache\ant\ant-launcher\1.7.1\ant-launcher-1.7.1.jar, C:\Users\felipe.rodrigues.m2\repository\junit\junit\3.8.2\junit-3.8.2.jar, C:\Users\felipe.rodrigues.m2\repository\org\bouncycastle\bcpkix-jdk15on\1.56\bcpkix-jdk15on-1.56.jar, C:\Users\felipe.rodrigues.m2\repository\org\bouncycastle\bcprov-jdk15on\1.56\bcprov-jdk15on-1.56.jar, C:\Users\felipe.rodrigues.m2\repository\com\googlecode\plist\dd-plist\1.19\dd-plist-1.19.jar, C:\Users\felipe.rodrigues.m2\repository\org\xerial\sqlite-jdbc\3.8.7\sqlite-jdbc-3.8.7.jar, C:\Users\felipe.rodrigues.m2\repository\de\schlichtherle\truezip\truezip-file\7.5.1\truezip-file-7.5.1.jar, C:\Users\felipe.rodrigues.m2\repository\de\schlichtherle\truezip\truezip-kernel\7.5.1\truezip-kernel-7.5.1.jar, C:\Users\felipe.rodrigues.m2\repository\de\schlichtherle\truezip\truezip-driver-zip\7.5.1\truezip-driver-zip-7.5.1.jar, C:\Users\felipe.rodrigues.m2\repository\de\schlichtherle\truezip\truezip-swing\7.5.1\truezip-swing-7.5.1.jar, C:\Users\felipe.rodrigues.m2\repository\org\apache\commons\commons-compress\1.3\commons-compress-1.3.jar, C:\Users\felipe.rodrigues.m2\repository\commons-io\commons-io\2.2\commons-io-2.2.jar, C:\Users\felipe.rodrigues.m2\repository\org\ow2\asm\asm\5.2\asm-5.2.jar, C:\Users\felipe.rodrigues.m2\repository\org\ow2\asm\asm-tree\5.2\asm-tree-5.2.jar, C:\Users\felipe.rodrigues.m2\repository\net\harawata\appdirs\1.0.0\appdirs-1.0.0.jar, C:\Users\felipe.rodrigues.m2\repository\org\slf4j\slf4j-api\1.7.21\slf4j-api-1.7.21.jar, C:\Users\felipe.rodrigues.m2\repository\net\coobird\thumbnailator\0.4.8\thumbnailator-0.4.8.jar, C:\Users\felipe.rodrigues.m2\repository\com\totalcross\annotations\totalcross-annotations\1.0.0\totalcross-annotations-1.0.0.jar, C:\Users\felipe.rodrigues.m2\repository\net\java\dev\jna\jna-platform\4.2.2\jna-platform-4.2.2.jar, C:\Users\felipe.rodrigues.m2\repository\net\java\dev\jna\jna\4.2.2\jna-4.2.2.jar]
[exec] 00:00 INFO: Included files: all
[exec] 00:00 INFO: JVM version: 11.0.11
[exec] 00:00 INFO: Agent enabled: true
[exec] 00:00 INFO: javac hacks: false
[exec] WARNING: An illegal reflective access operation has occurred
[exec] WARNING: Illegal reflective access by net.orfjackal.retrolambda.lambdas.BackportLambdaInvocations to field java.lang.invoke.InnerClassLambdaMetafactory.counter
[exec] WARNING: Please consider reporting this to the maintainers of net.orfjackal.retrolambda.lambdas.BackportLambdaInvocations
[exec] WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
[exec] WARNING: All illegal access operations will be denied in a future release
[INFO] Executed tasks
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ HelloWorld ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\felipe.rodrigues\Projects\embedded-samples-main\hello-world\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ HelloWorld ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ HelloWorld ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ HelloWorld ---
[INFO] Building jar: C:\Users\felipe.rodrigues\Projects\embedded-samples-main\hello-world\target\HelloWorld.jar
[INFO]
[INFO] --- totalcross-maven-plugin:2.0.4:package (post-package) @ HelloWorld ---
[INFO] ?????????? Adding Dependencies to classPath ???????????
[INFO] ? totalcross-sdk.jar
[INFO] ? jdeb.jar
[INFO] ? maven-plugin-api.jar
[INFO] ? maven-project.jar
[INFO] ? maven-settings.jar
[INFO] ? maven-profile.jar
[INFO] ? maven-model.jar
[INFO] ? maven-artifact-manager.jar
[INFO] ? maven-repository-metadata.jar
[INFO] ? wagon-provider-api.jar
[INFO] ? plexus-container-default.jar
[INFO] ? classworlds.jar
[INFO] ? maven-artifact.jar
[INFO] ? plexus-utils.jar
[INFO] ? ant.jar
[INFO] ? ant-launcher.jar
[INFO] ? junit.jar
[INFO] ? bcpkix-jdk15on.jar
[INFO] ? bcprov-jdk15on.jar
[INFO] ? dd-plist.jar
[INFO] ? sqlite-jdbc.jar
[INFO] ? truezip-file.jar
[INFO] ? truezip-driver-file.jar
[INFO] ? truezip-kernel.jar
[INFO] ? truezip-driver-zip.jar
[INFO] ? truezip-swing.jar
[INFO] ? commons-compress.jar
[INFO] ? commons-io.jar
[INFO] ? asm.jar
[INFO] ? asm-tree.jar
[INFO] ? appdirs.jar
[INFO] ? slf4j-api.jar
[INFO] ? thumbnailator.jar
[INFO] ? totalcross-annotations.jar
[INFO] ? jna-platform.jar
[INFO] ? jna.jar
[INFO] ??????????????????????????????????????????????????????
[INFO] ? TotalCross Libraries: 0 | Total: 36
[INFO] ???????????????????????????????????????????????????????
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 51.892 s
[INFO] Finished at: 2021-06-29T15:57:46-03:00
[INFO] Final Memory: 24M/84M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.totalcross:totalcross-maven-plugin:2.0.4:package (post-package) on project HelloWorld: Execution post-package of goal com.totalcross:totalcross-maven-plugin:2.0.4:package failed: Unable to execute HTTP request: Connect to totalcross-release.s3.us-west-2.amazonaws.com:443 [totalcross-release.s3.us-west-2.amazonaws.com/52.218.169.17] failed: connect timed out -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException

@brunoamuniz
Copy link

This is really weird. I downloaded the HelloWorld application and build it. Also, I just updated to the latest versions, could you try to download the pom.xml or clone the project again and run?

@brunoamuniz
Copy link

did you try in a different network connection?

@FelipeRodrigues21
Copy link
Author

I done have a test in other computer and work it. Thank you for help me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants