Project

General

Profile

Source Code Analytics setup problem

Added by Kenny Chan over 6 years ago

Hi, I want to run FWD Code Analysics under a restricted environment. So I follow the below instructions.

Created a project directory C:\FWD.
Downloaded Java jdk1.8.0_152(64 bit) and installed jdk to C:\Java\jdk8.
Downloaded Ant 1.9.9 and installed Ant to C:\FWD\apache-Ant.
Downloaded Gradle 4.5 and installed Gradle to C:\FWD\gradle.
Downloaded FWD source code(i.e. fwd_v3_1_0_trunk_rev_11169_20170926.zip ) and unzipped it to C:\FWD\p2j.
Downloaded the software dependencies (i.e. fwd_dependencies_latest.zip) and unzipped it to C:\FWD\p2j\local-repo.

Created a batch program to run the local Gradle as below for a FWD build.

@echo off
set JAVA_HOME=C:\Java\jdk8
set ANT_HOME=C:\FWD\apache-ant
set GRADLE_HOME=C:\FWD\gradle
set FWD=C:\FWD\p2j
set PATH=%PATH%;%JAVA_HOME%;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin\server;%ANT_HOME%\bin;%GRADLE_HOME%\bin;%FWD%

cd FWD
gradle.bat createLocalRepo

But getting the below error:

FAILURE: Build failed with an exception.

  • Where:
    Build file 'C:\FWD\p2j\build.gradle' line: 391
  • What went wrong:
    A problem occurred evaluating root project 'p2j'.

Could not resolve all files for configuration ':antCompile'.

> Could not resolve org.apache.ant:ant-antlr:1.9+.
Required by:
project :
> Could not resolve org.apache.ant:ant-antlr:1.9.9.
> Could not parse POM C:\FWD\p2j\local-repo\org\apache\ant\ant-antlr\1.9.9\ant-antlr-1.9.9.pom
> Could not resolve org.apache.ant:ant-parent:1.9.9.
> Could not resolve org.apache.ant:ant-parent:1.9.9.
> Could not get resource 'https://repo.maven.apache.org/maven2/org/apache/ant/ant-parent/1.9.9/ant-parent-1.9.9.pom'.
> Could not GET 'https://repo.maven.apache.org/maven2/org/apache/ant/ant-parent/1.9.9/ant-parent-1.9.9.pom'.
> Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.24.215] failed: Connection timed out: connect
> Could not resolve org.apache.ant:ant-parent:1.9.9.
> Could not get resource 'https://repository.jboss.org/nexus/content/groups/public/org/apache/ant/ant-parent/1.9.9/ant-parent-1.9.9.pom'.
> Could not GET 'https://repository.jboss.org/nexus/content/groups/public/org/apache/ant/ant-parent/1.9.9/ant-parent-1.9.9.pom'.
> Connect to repository.jboss.org:443 [repository.jboss.org/209.132.182.97] failed: Connection timed out: connect
> Could not resolve org.apache.ant:ant-parent:1.9.9.
> Could not get resource 'https://proj.goldencode.com/artifacts/org/apache/ant/ant-parent/1.9.9/ant-parent-1.9.9.pom'.
> Could not GET 'https://proj.goldencode.com/artifacts/org/apache/ant/ant-parent/1.9.9/ant-parent-1.9.9.pom'.
> Connect to proj.goldencode.com:443 [proj.goldencode.com/72.17.138.115] failed: Connection timed out: connect
> Could not resolve org.apache.ant:ant-parent:1.9.9.
> Could not get resource 'https://jitpack.io/org/apache/ant/ant-parent/1.9.9/ant-parent-1.9.9.pom'.
> Could not GET 'https://jitpack.io/org/apache/ant/ant-parent/1.9.9/ant-parent-1.9.9.pom'.
> Connect to jitpack.io:443 [jitpack.io/104.24.23.62, jitpack.io/104.24.22.62] failed: Connection timed out: connect
> Could not resolve org.apache.ant:ant-parent:1.9.9.
> Could not get resource 'http://download.oracle.com/maven/org/apache/ant/ant-parent/1.9.9/ant-parent-1.9.9.pom'.
> Could not GET 'http://download.oracle.com/maven/org/apache/ant/ant-parent/1.9.9/ant-parent-1.9.9.pom'.
> Connect to download.oracle.com:80 [download.oracle.com/23.76.77.224] failed: Connection timed out: connect
> Could not resolve org.apache.ant:ant-parent:1.9.9.
> Could not get resource 'https://proj.goldencode.com/artifacts/javascript/ant-parent-1.9.9.xml'.
> Could not GET 'https://proj.goldencode.com/artifacts/javascript/ant-parent-1.9.9.xml'.
> Connect to proj.goldencode.com:443 [proj.goldencode.com/72.17.138.115] failed: Connection timed out: connect
> Failed to list versions for org.apache.ant:ant-antlr.
> Unable to load Maven meta-data from https://repo.maven.apache.org/maven2/org/apache/ant/ant-antlr/maven-metadata.xml.
> Could not get resource 'https://repo.maven.apache.org/maven2/org/apache/ant/ant-antlr/maven-metadata.xml'.
> Could not GET 'https://repo.maven.apache.org/maven2/org/apache/ant/ant-antlr/maven-metadata.xml'.
> Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.24.215] failed: Connection timed out: connect
> Failed to list versions for org.apache.ant:ant-antlr.
> Unable to load Maven meta-data from https://repository.jboss.org/nexus/content/groups/public/org/apache/ant/ant-antlr/maven-metadata.xml.
> Could not get resource 'https://repository.jboss.org/nexus/content/groups/public/org/apache/ant/ant-antlr/maven-metadata.xml'.
> Could not GET 'https://repository.jboss.org/nexus/content/groups/public/org/apache/ant/ant-antlr/maven-metadata.xml'.
> Connect to repository.jboss.org:443 [repository.jboss.org/209.132.182.97] failed: Connection timed out: connect
> Failed to list versions for org.apache.ant:ant-antlr.
> Unable to load Maven meta-data from https://proj.goldencode.com/artifacts/org/apache/ant/ant-antlr/maven-metadata.xml.
> Could not get resource 'https://proj.goldencode.com/artifacts/org/apache/ant/ant-antlr/maven-metadata.xml'.
> Could not GET 'https://proj.goldencode.com/artifacts/org/apache/ant/ant-antlr/maven-metadata.xml'.
> Connect to proj.goldencode.com:443 [proj.goldencode.com/72.17.138.115] failed: Connection timed out: connect
> Failed to list versions for org.apache.ant:ant-antlr.
> Unable to load Maven meta-data from https://jitpack.io/org/apache/ant/ant-antlr/maven-metadata.xml.
> Could not get resource 'https://jitpack.io/org/apache/ant/ant-antlr/maven-metadata.xml'.
> Could not GET 'https://jitpack.io/org/apache/ant/ant-antlr/maven-metadata.xml'.
> Connect to jitpack.io:443 [jitpack.io/104.24.23.62, jitpack.io/104.24.22.62] failed: Connection timed out: connect
> Failed to list versions for org.apache.ant:ant-antlr.
> Unable to load Maven meta-data from http://download.oracle.com/maven/org/apache/ant/ant-antlr/maven-metadata.xml.
> Could not get resource 'http://download.oracle.com/maven/org/apache/ant/ant-antlr/maven-metadata.xml'.
> Could not GET 'http://download.oracle.com/maven/org/apache/ant/ant-antlr/maven-metadata.xml'.
> Connect to download.oracle.com:80 [download.oracle.com/23.76.77.224] failed: Connection timed out: connect
  • 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.

BUILD FAILED in 4m 52s


Replies (10)

RE: Source Code Analytics setup problem - Added by Greg Shah over 6 years ago

I want to run FWD Code Analysics under a restricted environment

By restricted, do you mean that there is no Internet connectivity?

gradle.bat createLocalRepo

But getting the below error:

It looks like you are having network access issues. createLocalRepo is the target we use to download all the dependencies for building FWD. It needs full Internet access in order to work.

If you are just looking to obtain all the dependencies, we have run createLocalRepo here and have uploaded the results in our FWD v3.1 downloads section. Here is the direct link:

FWD v3.1 Dependencies

Put these files into the local-repo directory as specified in local repo and then when you build it will not need Internet access.

RE: Source Code Analytics setup problem - Added by Kenny Chan over 6 years ago

Hi Greg,

I found that Gradlew.bat command is not working so I think that the internet downloading is restricted in my company.

I have downloaded FWD v3.1 Dependencies and unzipped it to c:\FWD\p2j\local-repo. The old local-repo was renamed to local-repo1.

Now, I tried to run - gradle all/gradle jar/gradle createLocalRepo but the same error messages are prompted.

RE: Source Code Analytics setup problem - Added by Greg Shah over 6 years ago

What are the contents of c:\FWD\p2j\local-repo? Can you post a directory listing here?

RE: Source Code Analytics setup problem - Added by Kenny Chan over 6 years ago

Hi Greg,

Please find the attached images.

ScreenShot001.gif (30.8 KB)

ScreenShot002.gif (15.6 KB)

RE: Source Code Analytics setup problem - Added by Hynek Cihlar over 6 years ago

The dependencies are missing some of the needed artifacts. We will provide new download URL shortly.

RE: Source Code Analytics setup problem - Added by Kenny Chan over 6 years ago

Hi Greg,

Thanks for your help. But new error messages are prompted.

:buildVersion
Product version: 3.1.0_p2j_trunk_11169
:makeManifests
:ant-prepare
:ant-chk_antlr_progress
:ant-antlr_progress
[ant:antlr] ANTLR Parser Generator Version 2.7.7 (20060906) 1989-2005
:ant-chk_antlr_expression_evaluator
:ant-antlr_expression_evaluator
[ant:antlr] ANTLR Parser Generator Version 2.7.7 (20060906) 1989-2005
:ant-chk_antlr_text
:ant-antlr_text
[ant:antlr] ANTLR Parser Generator Version 2.7.7 (20060906) 1989-2005
:ant-chk_antlr_braces
:ant-antlr_braces
[ant:antlr] ANTLR Parser Generator Version 2.7.7 (20060906) 1989-2005
:ant-chk_antlr_e4gl
:ant-antlr_e4gl
[ant:antlr] ANTLR Parser Generator Version 2.7.7 (20060906) 1989-2005
:ant-chk_antlr_schema
:ant-antlr_schema
[ant:antlr] ANTLR Parser Generator Version 2.7.7 (20060906) 1989-2005
:ant-chk_antlr_expression_compiler
:ant-antlr_expression_compiler
[ant:antlr] ANTLR Parser Generator Version 2.7.7 (20060906) 1989-2005
:ant-chk_antlr_hql
:ant-antlr_hql
[ant:antlr] ANTLR Parser Generator Version 2.7.7 (20060906) 1989-2005
:ant-antlr
:ant-compile
[ant:javac] C:\FWD\p2j\src\com\goldencode\p2j\persist\RecordBuffer.java:10966: error: unmappable character for encoding MS950_HKSCS
[ant:javac] //no-error
[ant:javac] ^
[ant:javac] C:\FWD\p2j\src\com\goldencode\p2j\ui\ColorTable.java:1682: error: unmappable character for encoding MS950_HKSCS
[ant:javac] * A logical variable to return the status of the user dialog interaction. If the user
[ant:javac] ^
[ant:javac] C:\FWD\p2j\src\com\goldencode\p2j\ui\FileDialog.java:86: error: unmappable character for encoding MS950_HKSCS
[ant:javac] * A logical variable to return the status of the user filename dialog interaction. If the
[ant:javac] ^
[ant:javac] C:\FWD\p2j\src\com\goldencode\p2j\ui\FileDialog.java:119: error: unmappable character for encoding MS950_HKSCS
[ant:javac] * The default extension to be appended to the user filename entry after completing the
[ant:javac] ^
[ant:javac] C:\FWD\p2j\src\com\goldencode\p2j\ui\FontTable.java:1815: error: unmappable character for encoding MS950_HKSCS
[ant:javac] * A logical variable to return the status of the user dialog interaction. If the
[ant:javac] ^
[ant:javac] C:\FWD\p2j\src\com\goldencode\p2j\ui\PrintingService.java:128: error: unmappable character for encoding MS950_HKSCS
[ant:javac] * A logical variable to return the status of the user dialog interaction. If the
[ant:javac] ^
[ant:javac] C:\FWD\p2j\src\com\goldencode\p2j\util\WebServiceImpl.java:1311: error: unmappable character for encoding MS950_HKSCS
[ant:javac] * See the "Table 3: Supported XML data types" from OpenEdge(R) Development: Web Services,
[ant:javac] ^
[ant:javac] C:\FWD\p2j\src\com\goldencode\p2j\util\WebServiceImpl.java:1311: error: unmappable character for encoding MS950_HKSCS
[ant:javac] * See the "Table 3: Supported XML data types" from OpenEdge(R) Development: Web Services,
[ant:javac] ^
[ant:javac] C:\FWD\p2j\src\com\goldencode\p2j\util\WebServiceImpl.java:1368: error: unmappable character for encoding MS950_HKSCS
[ant:javac] * See the "Table 3: Supported XML data types" from OpenEdge(R) Development: Web Services,
[ant:javac] ^
[ant:javac] C:\FWD\p2j\src\com\goldencode\p2j\util\WebServiceImpl.java:1368: error: unmappable character for encoding MS950_HKSCS
[ant:javac] * See the "Table 3: Supported XML data types" from OpenEdge(R) Development: Web Services,
[ant:javac] ^
[ant:javac] 10 errors
:ant-compile FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':ant-compile'.

Compile failed; see the compiler error output for details.

  • 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: 1 hrs 0 mins 4.013 secs

gradle.out (4.25 KB)

RE: Source Code Analytics setup problem - Added by Greg Shah over 6 years ago

The updates are now posted in #3468. Please unzip the revision 11169 version of those files and try the FWD build.

RE: Source Code Analytics setup problem - Added by Kenny Chan over 6 years ago

Hi Greg,

Setup can be completed.
Thanks for your great support.

    (1-10/10)