Drools 7.12.0 KIE Workbench is taking very long time to load

240 views
Skip to first unread message

Kamaraj Senthilkumar

unread,
Oct 26, 2018, 7:39:20 AM10/26/18
to Drools Usage
Hi,

I am working with KIE workbench 7.12.0 release on wildfly 11.

The deployment of KIE WB on wildfly is taking 2 hrs and 30 minutes.  The wildfly service is not coming up during this time.  It is showing "404 Not found".
After 2 and half hours, I am trying to login KIE workbench.  It takes 20 minutes to come up after logging in KIE Workbench.

Please note, we are using "kie.maven.offline.force=true" for offline download.  If we define settings.xml with maven repository access then we can eliminate 2hrs 30 min issue, But that 20 min issue is still coming.  These issues are coming only at the very first time.  Once everything is up and running, KIE WB can be managed with usual performance.

It seems the offline download checks for the internet maven every time and after the connection time out, it is loading from offline.

Please provide your suggestion, how to overcome these two issues.
We have used drools KIE WB 7.7.0 before and we never face such kind of issues even though it is offline.

Thanks
Senthil

Alexandre Porcelli

unread,
Oct 29, 2018, 5:10:43 PM10/29/18
to drools...@googlegroups.com
What's your environment configuration? Never heard about this slow...

Please make sure you execute it with: export JAVA_OPTS="-Xmx4096m -Xms1024m"

Regards,
___________________
Alexandre Porcelli
F: +1 (978) 844-8695
http://porcelli.me
> --
> You received this message because you are subscribed to the Google Groups "Drools Usage" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
> To post to this group, send email to drools...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/0e34826c-e7a8-4012-a4ee-e034e44caca8%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Kamaraj Senthilkumar

unread,
Oct 30, 2018, 3:58:31 AM10/30/18
to Drools Usage

Hi,

Its KIE WB 7.12.0 on Wildfly 11 (RHEL 7.5).  We try to do offline download using kie.maven.offline.force=true flag.
But for every jar, it is verifying with the url "http://repo1.maven.org/maven2/" to download and after timeout it is downloading from WEB-INF/lib folder.

Ideally, if it is a offline download it should not try to connect external maven url.

Here the logs for downloading one binary:

"log":"Using transporter HttpTransporter with priority 5.0 for http://repo1.maven.org/maven2/"}
2018-10-24 12:00:53,857 INFO  [stdout] (ServerService Thread Pool -- 65) {"type":"log", "host":"10.75.119.86",
2018-10-24 12:00:53,857 INFO  [stdout] (ServerService Thread Pool -- 65) "level":"DEBUG", "neid":"12345",
2018-10-24 12:00:53,858 INFO  [stdout] (ServerService Thread Pool -- 65) "system":"CRUE", "time":"2018-10-24T12:00:53.857Z", "timezone":"INDIA", "log":"Using connector BasicRepositoryConnector with priority 0.0 for http://repo1.maven.org/maven2/"}
2018-10-24 12:00:53,859 INFO  [stdout] (ServerService Thread Pool -- 65) {"type":"log", "host":"10.75.119.86",
2018-10-24 12:00:53,859 INFO  [stdout] (ServerService Thread Pool -- 65) "level":"DEBUG", "neid":"12345",
2018-10-24 12:00:53,859 INFO  [stdout] (ServerService Thread Pool -- 65) "system":"CRUE", "time":"2018-10-24T12:00:53.859Z", "timezone":"INDIA", "log":"Connection request: [route: {}->http://repo1.maven.org:80][total kept alive: 0; route allocated: 0 of 50; total allocated: 0 of 100]"}
2018-10-24 12:00:53,859 INFO  [stdout] (ServerService Thread Pool -- 65) {"type":"log", "host":"10.75.119.86",
2018-10-24 12:00:53,859 INFO  [stdout] (ServerService Thread Pool -- 65) "level":"DEBUG", "neid":"12345",
2018-10-24 12:00:53,859 INFO  [stdout] (ServerService Thread Pool -- 65) "system":"CRUE", "time":"2018-10-24T12:00:53.859Z", "timezone":"INDIA", "log":"Connection leased: [id: 918][route: {}->http://repo1.maven.org:80][total kept alive: 0; route allocated: 1 of 50; total allocated: 1 of 100]"}
2018-10-24 12:00:53,859 INFO  [stdout] (ServerService Thread Pool -- 65) {"type":"log", "host":"10.75.119.86",
2018-10-24 12:00:53,860 INFO  [stdout] (ServerService Thread Pool -- 65) "level":"DEBUG", "neid":"12345",
2018-10-24 12:00:53,860 INFO  [stdout] (ServerService Thread Pool -- 65) "system":"CRUE", "time":"2018-10-24T12:00:53.859Z", "timezone":"INDIA", "log":"Connecting to repo1.maven.org:80"}
2018-10-24 12:01:03,870 INFO  [stdout] (ServerService Thread Pool -- 65) {"type":"log", "host":"10.75.119.86",
2018-10-24 12:01:03,871 INFO  [stdout] (ServerService Thread Pool -- 65) "level":"DEBUG", "neid":"12345",
2018-10-24 12:01:03,871 INFO  [stdout] (ServerService Thread Pool -- 65) "system":"CRUE", "time":"2018-10-24T12:01:03.870Z", "timezone":"INDIA", "log":"Connection org.apache.http.impl.conn.DefaultClientConnection@6d0813a2 closed"}
2018-10-24 12:01:03,871 INFO  [stdout] (ServerService Thread Pool -- 65) {"type":"log", "host":"10.75.119.86",
2018-10-24 12:01:03,871 INFO  [stdout] (ServerService Thread Pool -- 65) "level":"DEBUG", "neid":"12345",
2018-10-24 12:01:03,871 INFO  [stdout] (ServerService Thread Pool -- 65) "system":"CRUE", "time":"2018-10-24T12:01:03.871Z", "timezone":"INDIA", "log":"Connection org.apache.http.impl.conn.DefaultClientConnection@6d0813a2 shut down"}
2018-10-24 12:01:03,872 INFO  [stdout] (ServerService Thread Pool -- 65) {"type":"log", "host":"10.75.119.86",
2018-10-24 12:01:03,872 INFO  [stdout] (ServerService Thread Pool -- 65) "level":"DEBUG", "neid":"12345",
2018-10-24 12:01:03,872 INFO  [stdout] (ServerService Thread Pool -- 65) "system":"CRUE", "time":"2018-10-24T12:01:03.872Z", "timezone":"INDIA", "log":"Connection org.apache.http.impl.conn.DefaultClientConnection@6d0813a2 closed"}
2018-10-24 12:01:03,872 INFO  [stdout] (ServerService Thread Pool -- 65) {"type":"log", "host":"10.75.119.86",
2018-10-24 12:01:03,872 INFO  [stdout] (ServerService Thread Pool -- 65) "level":"DEBUG", "neid":"12345",
2018-10-24 12:01:03,872 INFO  [stdout] (ServerService Thread Pool -- 65) "system":"CRUE", "time":"2018-10-24T12:01:03.872Z", "timezone":"INDIA", "log":"Connection released: [id: 918][route: {}->http://repo1.maven.org:80][total kept alive: 0; route allocated: 0 of 50; total allocated: 0 of 100]"}
2018-10-24 12:01:03,873 INFO  [stdout] (ServerService Thread Pool -- 65) {"type":"log", "host":"10.75.119.86",
2018-10-24 12:01:03,873 INFO  [stdout] (ServerService Thread Pool -- 65) "level":"DEBUG", "neid":"12345",
2018-10-24 12:01:03,873 INFO  [stdout] (ServerService Thread Pool -- 65) "system":"CRUE", "time":"2018-10-24T12:01:03.873Z", "timezone":"INDIA", "log":"Connection manager is shutting down"}
2018-10-24 12:01:03,873 INFO  [stdout] (ServerService Thread Pool -- 65) {"type":"log", "host":"10.75.119.86",
2018-10-24 12:01:03,873 INFO  [stdout] (ServerService Thread Pool -- 65) "level":"DEBUG", "neid":"12345",
2018-10-24 12:01:03,873 INFO  [stdout] (ServerService Thread Pool -- 65) "system":"CRUE", "time":"2018-10-24T12:01:03.873Z", "timezone":"INDIA", "log":"Connection manager shut down"}
2018-10-24 12:01:03,874 INFO  [stdout] (ServerService Thread Pool -- 65) {"type":"log", "host":"10.75.119.86",
2018-10-24 12:01:03,874 INFO  [stdout] (ServerService Thread Pool -- 65) "level":"DEBUG", "neid":"12345",
2018-10-24 12:01:03,874 INFO  [stdout] (ServerService Thread Pool -- 65) "system":"CRUE", "time":"2018-10-24T12:01:03.874Z", "timezone":"INDIA", "log":"Using transporter HttpTransporter with priority 5.0 for https://repo.maven.apache.org/maven2"}
2018-10-24 12:01:03,874 INFO  [stdout] (ServerService Thread Pool -- 65) {"type":"log", "host":"10.75.119.86",
2018-10-24 12:01:03,875 INFO  [stdout] (ServerService Thread Pool -- 65) "level":"DEBUG", "neid":"12345",
2018-10-24 12:01:03,875 INFO  [stdout] (ServerService Thread Pool -- 65) "system":"CRUE", "time":"2018-10-24T12:01:03.874Z", "timezone":"INDIA", "log":"Using connector BasicRepositoryConnector with priority 0.0 for https://repo.maven.apache.org/maven2"}
2018-10-24 12:01:03,875 INFO  [stdout] (ServerService Thread Pool -- 65) {"type":"log", "host":"10.75.119.86",
2018-10-24 12:01:03,876 INFO  [stdout] (ServerService Thread Pool -- 65) "level":"DEBUG", "neid":"12345",
2018-10-24 12:01:03,876 INFO  [stdout] (ServerService Thread Pool -- 65) "system":"CRUE", "time":"2018-10-24T12:01:03.875Z", "timezone":"INDIA", "log":"Connection request: [route: {s}->https://repo.maven.apache.org:443][total kept alive: 0; route allocated: 0 of 50; total allocated: 0 of 100]"}
2018-10-24 12:01:03,876 INFO  [stdout] (ServerService Thread Pool -- 65) {"type":"log", "host":"10.75.119.86",
2018-10-24 12:01:03,876 INFO  [stdout] (ServerService Thread Pool -- 65) "level":"DEBUG", "neid":"12345",
2018-10-24 12:01:03,876 INFO  [stdout] (ServerService Thread Pool -- 65) "system":"CRUE", "time":"2018-10-24T12:01:03.876Z", "timezone":"INDIA", "log":"Connection leased: [id: 919][route: {s}->https://repo.maven.apache.org:443][total kept alive: 0; route allocated: 1 of 50; total allocated: 1 of 100]"}
2018-10-24 12:01:03,876 INFO  [stdout] (ServerService Thread Pool -- 65) {"type":"log", "host":"10.75.119.86",
2018-10-24 12:01:03,876 INFO  [stdout] (ServerService Thread Pool -- 65) "level":"DEBUG", "neid":"12345",
2018-10-24 12:01:03,877 INFO  [stdout] (ServerService Thread Pool -- 65) "system":"CRUE", "time":"2018-10-24T12:01:03.876Z", "timezone":"INDIA", "log":"Connecting to repo.maven.apache.org:443"}
2018-10-24 12:01:13,888 INFO  [stdout] (ServerService Thread Pool -- 65) {"type":"log", "host":"10.75.119.86",
2018-10-24 12:01:13,888 INFO  [stdout] (ServerService Thread Pool -- 65) "level":"DEBUG", "neid":"12345",
2018-10-24 12:01:13,888 INFO  [stdout] (ServerService Thread Pool -- 65) "system":"CRUE", "time":"2018-10-24T12:01:13.887Z", "timezone":"INDIA", "log":"Connection org.apache.http.impl.conn.DefaultClientConnection@5aae3be0 closed"}
2018-10-24 12:01:13,888 INFO  [stdout] (ServerService Thread Pool -- 65) {"type":"log", "host":"10.75.119.86",
2018-10-24 12:01:13,889 INFO  [stdout] (ServerService Thread Pool -- 65) "level":"DEBUG", "neid":"12345",
2018-10-24 12:01:13,889 INFO  [stdout] (ServerService Thread Pool -- 65) "system":"CRUE", "time":"2018-10-24T12:01:13.888Z", "timezone":"INDIA", "log":"Connection org.apache.http.impl.conn.DefaultClientConnection@5aae3be0 shut down"}
2018-10-24 12:01:13,889 INFO  [stdout] (ServerService Thread Pool -- 65) {"type":"log", "host":"10.75.119.86",
2018-10-24 12:01:13,889 INFO  [stdout] (ServerService Thread Pool -- 65) "level":"DEBUG", "neid":"12345",
2018-10-24 12:01:13,889 INFO  [stdout] (ServerService Thread Pool -- 65) "system":"CRUE", "time":"2018-10-24T12:01:13.889Z", "timezone":"INDIA", "log":"Connection org.apache.http.impl.conn.DefaultClientConnection@5aae3be0 closed"}
2018-10-24 12:01:13,890 INFO  [stdout] (ServerService Thread Pool -- 65) {"type":"log", "host":"10.75.119.86",
2018-10-24 12:01:13,890 INFO  [stdout] (ServerService Thread Pool -- 65) "level":"DEBUG", "neid":"12345",
2018-10-24 12:01:13,890 INFO  [stdout] (ServerService Thread Pool -- 65) "system":"CRUE", "time":"2018-10-24T12:01:13.890Z", "timezone":"INDIA", "log":"Connection released: [id: 919][route: {s}->https://repo.maven.apache.org:443][total kept alive: 0; route allocated: 0 of 50; total allocated: 0 of 100]"}
2018-10-24 12:01:13,891 INFO  [stdout] (ServerService Thread Pool -- 65) {"type":"log", "host":"10.75.119.86",
2018-10-24 12:01:13,891 INFO  [stdout] (ServerService Thread Pool -- 65) "level":"DEBUG", "neid":"12345",
2018-10-24 12:01:13,891 INFO  [stdout] (ServerService Thread Pool -- 65) "system":"CRUE", "time":"2018-10-24T12:01:13.891Z", "timezone":"INDIA", "log":"Connection manager is shutting down"}
2018-10-24 12:01:13,891 INFO  [stdout] (ServerService Thread Pool -- 65) {"type":"log", "host":"10.75.119.86",
2018-10-24 12:01:13,891 INFO  [stdout] (ServerService Thread Pool -- 65) "level":"DEBUG", "neid":"12345",
2018-10-24 12:01:13,891 INFO  [stdout] (ServerService Thread Pool -- 65) "system":"CRUE", "time":"2018-10-24T12:01:13.891Z", "timezone":"INDIA", "log":"Connection manager shut down"}
2018-10-24 12:01:13,893 INFO  [stdout] (ServerService Thread Pool -- 65) {"type":"log", "host":"10.75.119.86",
2018-10-24 12:01:13,893 INFO  [stdout] (ServerService Thread Pool -- 65) "level":"DEBUG", "neid":"12345",
2018-10-24 12:01:13,893 INFO  [stdout] (ServerService Thread Pool -- 65) "system":"CRUE", "time":"2018-10-24T12:01:13.892Z", "timezone":"INDIA", "log":"Unable to resolve artifact: org.apache.commons:commons-pool2:2.4.2"}
2018-10-24 12:01:13,893 INFO  [stdout] (ServerService Thread Pool -- 65) org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.apache.commons:commons-pool2:jar:2.4.2 from/to central (http://repo1.maven.org/maven2/): Connect to repo1.maven.org:80 timed out
2018-10-24 12:01:13,893 INFO  [stdout] (ServerService Thread Pool -- 65) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)
2018-10-24 12:01:13,893 INFO  [stdout] (ServerService Thread Pool -- 65) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
2018-10-24 12:01:13,893 INFO  [stdout] (ServerService Thread Pool -- 65) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223)
2018-10-24 12:01:13,894 INFO  [stdout] (ServerService Thread Pool -- 65) at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:294)
2018-10-24 12:01:13,894 INFO  [stdout] (ServerService Thread Pool -- 65) at org.appformer.maven.integration.MavenRepository.resolveArtifact(MavenRepository.java:179)
2018-10-24 12:01:13,894 INFO  [stdout] (ServerService Thread Pool -- 65) at org.appformer.maven.integration.MavenRepository.resolveArtifact(MavenRepository.java:157)
2018-10-24 12:01:13,894 INFO  [stdout] (ServerService Thread Pool -- 65) at org.appformer.maven.integration.MavenRepository.resolveArtifact(MavenRepository.java:153)
2018-10-24 12:01:13,894 INFO  [stdout] (ServerService Thread Pool -- 65) at org.guvnor.m2repo.backend.server.M2ServletContextListener.deploy(M2ServletContextListener.java:159)
2018-10-24 12:01:13,894 INFO  [stdout] (ServerService Thread Pool -- 65) at org.guvnor.m2repo.backend.server.M2ServletContextListener.deployJar(M2ServletContextListener.java:128)
2018-10-24 12:01:13,895 INFO  [stdout] (ServerService Thread Pool -- 65) at org.guvnor.m2repo.backend.server.M2ServletContextListener.deployJarsFromWar(M2ServletContextListener.java:111)
2018-10-24 12:01:13,895 INFO  [stdout] (ServerService Thread Pool -- 65) at org.guvnor.m2repo.backend.server.M2ServletContextListener.contextInitialized(M2ServletContextListener.java:91)
2018-10-24 12:01:13,895 INFO  [stdout] (ServerService Thread Pool -- 65) at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187)
2018-10-24 12:01:13,895 INFO  [stdout] (ServerService Thread Pool -- 65) at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:205)
2018-10-24 12:01:13,895 INFO  [stdout] (ServerService Thread Pool -- 65) at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:174)
2018-10-24 12:01:13,895 INFO  [stdout] (ServerService Thread Pool -- 65) at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
2018-10-24 12:01:13,895 INFO  [stdout] (ServerService Thread Pool -- 65) at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
2018-10-24 12:01:13,896 INFO  [stdout] (ServerService Thread Pool -- 65) at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
2018-10-24 12:01:13,896 INFO  [stdout] (ServerService Thread Pool -- 65) at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)
2018-10-24 12:01:13,896 INFO  [stdout] (ServerService Thread Pool -- 65) at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)
2018-10-24 12:01:13,896 INFO  [stdout] (ServerService Thread Pool -- 65) at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)
2018-10-24 12:01:13,896 INFO  [stdout] (ServerService Thread Pool -- 65) at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)
2018-10-24 12:01:13,896 INFO  [stdout] (ServerService Thread Pool -- 65) at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:239)
2018-10-24 12:01:13,896 INFO  [stdout] (ServerService Thread Pool -- 65) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:99)
2018-10-24 12:01:13,897 INFO  [stdout] (ServerService Thread Pool -- 65) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:81)
2018-10-24 12:01:13,897 INFO  [stdout] (ServerService Thread Pool -- 65) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
2018-10-24 12:01:13,897 INFO  [stdout] (ServerService Thread Pool -- 65) at java.util.concurrent.FutureTask.run(FutureTask.java:266)
2018-10-24 12:01:13,897 INFO  [stdout] (ServerService Thread Pool -- 65) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
2018-10-24 12:01:13,897 INFO  [stdout] (ServerService Thread Pool -- 65) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
2018-10-24 12:01:13,897 INFO  [stdout] (ServerService Thread Pool -- 65) at java.lang.Thread.run(Thread.java:748)
2018-10-24 12:01:13,898 INFO  [stdout] (ServerService Thread Pool -- 65) at org.jboss.threads.JBossThread.run(JBossThread.java:320)
2018-10-24 12:01:13,898 INFO  [stdout] (ServerService Thread Pool -- 65) Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact org.apache.commons:commons-pool2:jar:2.4.2 from/to central (http://repo1.maven.org/maven2/): Connect to repo1.maven.org:80 timed out
2018-10-24 12:01:13,898 INFO  [stdout] (ServerService Thread Pool -- 65) at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:43)
2018-10-24 12:01:13,898 INFO  [stdout] (ServerService Thread Pool -- 65) at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:355)
2018-10-24 12:01:13,898 INFO  [stdout] (ServerService Thread Pool -- 65) at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
2018-10-24 12:01:13,898 INFO  [stdout] (ServerService Thread Pool -- 65) at org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:581)
2018-10-24 12:01:13,898 INFO  [stdout] (ServerService Thread Pool -- 65) at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:249)
2018-10-24 12:01:13,899 INFO  [stdout] (ServerService Thread Pool -- 65) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:520)
2018-10-24 12:01:13,899 INFO  [stdout] (ServerService Thread Pool -- 65) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)
2018-10-24 12:01:13,899 INFO  [stdout] (ServerService Thread Pool -- 65) ... 29 common frames omitted
2018-10-24 12:01:13,899 INFO  [stdout] (ServerService Thread Pool -- 65) Caused by: org.apache.http.conn.ConnectTimeoutException: Connect to repo1.maven.org:80 timed out
2018-10-24 12:01:13,899 INFO  [stdout] (ServerService Thread Pool -- 65) at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:123)
2018-10-24 12:01:13,899 INFO  [stdout] (ServerService Thread Pool -- 65) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
2018-10-24 12:01:13,899 INFO  [stdout] (ServerService Thread Pool -- 65) at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:326)
2018-10-24 12:01:13,899 INFO  [stdout] (ServerService Thread Pool -- 65) at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:610)
2018-10-24 12:01:13,899 INFO  [stdout] (ServerService Thread Pool -- 65) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445)
2018-10-24 12:01:13,899 INFO  [stdout] (ServerService Thread Pool -- 65) at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
2018-10-24 12:01:13,899 INFO  [stdout] (ServerService Thread Pool -- 65) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
2018-10-24 12:01:13,899 INFO  [stdout] (ServerService Thread Pool -- 65) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
2018-10-24 12:01:13,899 INFO  [stdout] (ServerService Thread Pool -- 65) at org.apache.http.impl.client.DecompressingHttpClient.execute(DecompressingHttpClient.java:164)
2018-10-24 12:01:13,899 INFO  [stdout] (ServerService Thread Pool -- 65) at org.eclipse.aether.transport.http.HttpTransporter.execute(HttpTransporter.java:318)
2018-10-24 12:01:13,899 INFO  [stdout] (ServerService Thread Pool -- 65) at org.eclipse.aether.transport.http.HttpTransporter.implGet(HttpTransporter.java:274)
2018-10-24 12:01:13,899 INFO  [stdout] (ServerService Thread Pool -- 65) at org.eclipse.aether.spi.connector.transport.AbstractTransporter.get(AbstractTransporter.java:59)
2018-10-24 12:01:13,899 INFO  [stdout] (ServerService Thread Pool -- 65) at org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask(BasicRepositoryConnector.java:447)
2018-10-24 12:01:13,899 INFO  [stdout] (ServerService Thread Pool -- 65) at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:350)
2018-10-24 12:01:13,899 INFO  [stdout] (ServerService Thread Pool -- 65) ... 34 common frames omitted
2018-10-24 12:01:13,900 INFO  [stdout] (ServerService Thread Pool -- 65) {"type":"log", "host":"10.75.119.86",
2018-10-24 12:01:13,900 INFO  [stdout] (ServerService Thread Pool -- 65) "level":"WARN", "neid":"12345",
2018-10-24 12:01:13,900 INFO  [stdout] (ServerService Thread Pool -- 65) "system":"CRUE", "time":"2018-10-24T12:01:13.899Z", "timezone":"INDIA", "log":"Maven Artifact org.apache.commons:commons-pool2:2.4.2 deployed from WEB-INF."}
2018-10-24 12:01:13,901 INFO  [stdout] (ServerService Thread Pool -- 65) {"type":"log", "host":"10.75.119.86",
2018-10-24 12:01:13,902 INFO  [stdout] (ServerService Thread Pool -- 65) "level":"DEBUG", "neid":"12345",
2018-10-24 12:01:13,902 INFO  [stdout] (ServerService Thread Pool -- 65) "system":"CRUE", "time":"2018-10-24T12:01:13.901Z", "timezone":"INDIA", "log":"Writing tracking file /home/wildfly/.m2/repository/org/apache/commons/commons-pool2/2.4.2/_remote.repositories"}
2018-10-24 12:01:13,902 INFO  [stdout] (ServerService Thread Pool -- 65) {"type":"log", "host":"10.75.119.86",
2018-10-24 12:01:13,902 INFO  [stdout] (ServerService Thread Pool -- 65) "level":"DEBUG", "neid":"12345",
2018-10-24 12:01:13,902 INFO  [stdout] (ServerService Thread Pool -- 65) "system":"CRUE", "time":"2018-10-24T12:01:13.902Z", "timezone":"INDIA", "log":"Writing tracking file /home/wildfly/.m2/repository/org/apache/commons/commons-pool2/2.4.2/_remote.repositories"}
2018-10-24 12:01:13,904 INFO  [stdout] (ServerService Thread Pool -- 65) {"type":"log", "host":"10.75.119.86",
2018-10-24 12:01:13,904 INFO  [stdout] (ServerService Thread Pool -- 65) "level":"DEBUG", "neid":"12345",
2018-10-24 12:01:13,904 INFO  [stdout] (ServerService Thread Pool -- 65) "system":"CRUE", "time":"2018-10-24T12:01:13.904Z", "timezone":"INDIA",

Kamaraj Senthilkumar

unread,
Oct 31, 2018, 6:52:21 AM10/31/18
to Drools Usage
Any update on this issue, please.

Thanks
Senthil 

Alexandre Porcelli

unread,
Nov 1, 2018, 8:14:52 PM11/1/18
to drools...@googlegroups.com
I’m not sure what exactly you’re seeing there, but before asking more question, could you try 7.13? I think offline might be introduce on 7.13 only 

--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--

Kamaraj Senthilkumar

unread,
Nov 7, 2018, 5:35:08 AM11/7/18
to Drools Usage
Hi,

 Please find my analysis for the above issue
 
 File : \appformer-master\uberfire-m2repo-editor\uberfire-m2repo-editor-backend\target\classes\org\guvnor\m2repo\backend\server
 Method :     public void deploy(final GAV gav, final String jarPath)

 The below line causes the issue during offline download mode.
 
  final Artifact artifact = MavenRepository.getMavenRepository().resolveArtifact(new AFReleaseIdImpl(gav.getGroupId(), gav.getArtifactId(), gav.getVersion()));

I tried to dig into more about the method call and find below method calls

File : "Aether.java"  Binary : "kie-soup-maven-integration-7.14.0.jar" 

Flow :

public static synchronized Aether getAether()  -->   private Aether( Settings settings, MavenProject mavenProject )  --> initRepositories( mavenProject )

This initRepositories method is having the below code

Actual code before update :
 private Collection<RemoteRepository> initRepositories( MavenProject mavenProject ) {
        Collection<RemoteRepository> reps = new HashSet<RemoteRepository>();

        reps.add( newCentralRepository() );
        
        if ( mavenProject != null ) {
            reps.addAll( mavenProject.getRemoteProjectRepositories() );
        }

        RemoteRepository localRepo = newLocalRepository();
        if ( localRepo != null ) {
            localRepository = localRepo;
        }
        return reps;
    }

This method call reps.add( newCentralRepository() ); in the above code is hard coded with the default maven central repo ( private RemoteRepository newCentralRepository() {
        return new RemoteRepository.Builder( "central", "default", "http://repo1.maven.org/maven2/" ).build();
    })
For testing purpose, I have commented the remote repositories code by using the offline mode check, and 2.5 hrs issue is solved.  

Updated Code :
 private Collection<RemoteRepository> initRepositories( MavenProject mavenProject ) {
        Collection<RemoteRepository> reps = new HashSet<RemoteRepository>();

        if (!IS_FORCE_OFFLINE) {    //This is the flag which checks the system property "kie.maven.offline.force=true"
       

       reps.add( newCentralRepository() );  // This is adding the repo "central (http://repo1.maven.org/maven2/, default, releases+snapshots)"
        
        if ( mavenProject != null ) {
            reps.addAll( mavenProject.getRemoteProjectRepositories() );  This is adding the repo "central (https://repo.maven.apache.org/maven2, default, releases)"
        }
        }
        RemoteRepository localRepo = newLocalRepository();
        if ( localRepo != null ) {
            localRepository = localRepo;
        }
        return reps;
    }
Here, I am verifying the "kie.maven.offline.force" flag and if it is true then i am skipping remote repo download.
Please confirm whether this fix is ok or am I missing anything here..  If this is ok, I will contribute this code into drools opensource.

Thanks
Senthil

Alex Porcelli

unread,
Nov 7, 2018, 7:12:25 AM11/7/18
to drools...@googlegroups.com
Hi Kamaraj,

Good catch! What about become a contributor and send a Pull Request?
I'm happy to review!

Regards,
___________________
Alexandre Porcelli
F: +1 (978) 844-8695
http://porcelli.me
> --
> You received this message because you are subscribed to the Google Groups "Drools Usage" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
> To post to this group, send email to drools...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/30c8d47b-0756-455a-b3e5-b71052147f90%40googlegroups.com.

Kamaraj Senthilkumar

unread,
Nov 8, 2018, 5:41:28 AM11/8/18
to Drools Usage
Hi Alex,

I have updated the changes and made the pull request.


Please review and give your suggestions.

Thanks
Senthil

Kamaraj Senthilkumar

unread,
Nov 12, 2018, 6:30:08 AM11/12/18
to Drools Usage
Hi Alex,

Any updates on this..
I have updated the code directly in the fork repo and made the pull request.  Should I create a JIRA for this request ?

Please let me know if it should be updated in my local git repo and then should be pushed to the repository.  
Please provide some reference / links for the pull request guidelines. 

Thanks
Senthil

Alex Porcelli

unread,
Nov 12, 2018, 9:34:40 AM11/12/18
to drools...@googlegroups.com
Hi Senthil,

I have an opened PR with your changes incorporated [1]

[1] - https://github.com/kiegroup/kie-soup/pull/75

Regards,
___________________
Alexandre Porcelli
F: +1 (978) 844-8695
http://porcelli.me
> --
> You received this message because you are subscribed to the Google Groups "Drools Usage" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
> To post to this group, send email to drools...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/90549bd6-0629-4fb2-a3e9-ad4149972e73%40googlegroups.com.

Kamaraj Senthilkumar

unread,
Nov 13, 2018, 1:22:36 AM11/13/18
to Drools Usage
Hi Alex,

I reviewed the changes incorporated.
It seems only the maven central repo is excluded if the offline flag is enabled.  I have verified the incorporated fix in my system.  This is not completely solving the issue.

As I have mentioned in my last to last post, There are two remote repositories added

 reps.add( newCentralRepository() );  // This is adding the repo "central (http://repo1.maven.org/maven2/, default, releases+snapshots)"

and the below line is adding

reps.addAll( mavenProject.getRemoteProjectRepositories() );  This is adding the repo "central (https://repo.maven.apache.org/maven2, default, releases)"

In the fix incorporated, only the first maven central repo is excluded.  The second remote repo "https://repo.maven.apache.org/maven2" is not exculded.

Thats why, I have included both code with in the if condition ( if (!IS_FORCE_OFFLINE) {  })

If the second code, "reps.addAll( mavenProject.getRemoteProjectRepositories() ); " cannot  be excluded for the offline download, we should find other way to exclude this repo from reps data structure (Collection<RemoteRepository> reps = new HashSet<RemoteRepository>()).

Please refer my complete code in my last to last post and provide your suggestions.

Thanks
Senthil

Kamaraj Senthilkumar

unread,
Nov 13, 2018, 2:29:33 AM11/13/18
to Drools Usage
Hi Alex,

I have deployed the incorporated fix with settings.xml with  <offline>true<offline>.  Now everything works fine.

My previous run was without settings.xml, thats why, it is adding the DUMMY_POM (MavenProjectLoader.java) and it is trying to connect the maven repo.
Once "<offline>true<offline>" is introduced in settings.xml, everything works fine.

If this is a correct scenario, please ignore my previous post.

Thanks
Senthil

Alex Porcelli

unread,
Nov 13, 2018, 7:07:14 AM11/13/18
to drools...@googlegroups.com
Just updated the PR incorporating your suggestions.

Regards,
___________________
Alexandre Porcelli
F: +1 (978) 844-8695
http://porcelli.me

> --
> You received this message because you are subscribed to the Google Groups "Drools Usage" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
> To post to this group, send email to drools...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/97a7cca8-5d7a-4163-a07d-0341cbec4ab9%40googlegroups.com.

Kamaraj Senthilkumar

unread,
Nov 14, 2018, 2:45:11 AM11/14/18
to Drools Usage
Thanks Alex.

-Senthil
Reply all
Reply to author
Forward
0 new messages