Re: [Dev] Surefire plugin failure with OSGI test

2017-02-15 Thread Lahiru Manohara
Hi,

This issue has happened because of the connection refused in pax exam.

Best Regards,

On Wed, Feb 15, 2017 at 4:48 PM, Lahiru Manohara  wrote:

> Hi Lakshman,
>
> Please find the full stack trace.
>
> [INFO] Scanning for projects...
> [INFO]
>
> [INFO] 
> 
> [INFO] Building WSO2 Carbon Datasources - OSGi Tests 1.1.1-SNAPSHOT
> [INFO] 
> 
> [INFO]
> [INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @
> carbon-datasources-osgi-tests ---
> [INFO] Deleting /home/wso2/repo/carbon-repos/
> carbon-datasources/tests/osgi-tests/target
> [INFO]
> [INFO] --- maven-checkstyle-plugin:2.17:check (validate) @
> carbon-datasources-osgi-tests ---
> [INFO] Starting audit...
> Audit done.
> [INFO]
> [INFO] --- buildnumber-maven-plugin:1.4:create (default) @
> carbon-datasources-osgi-tests ---
> [INFO] Executing: /bin/sh -c cd '/home/wso2/repo/carbon-repos/
> carbon-datasources/tests/osgi-tests' && 'git' 'rev-parse' '--verify'
> 'HEAD'
> [INFO] Working directory: /home/wso2/repo/carbon-repos/
> carbon-datasources/tests/osgi-tests
> [INFO] Storing buildNumber: 0935d02732e42287fcda994da5bfe0bf1e80664f at
> timestamp: 1487157110916
> [INFO] Storing buildScmBranch: kernel-update
> [INFO]
> [INFO] --- jacoco-maven-plugin:0.7.5.201505241946:prepare-agent
> (prepare-agent) @ carbon-datasources-osgi-tests ---
> [INFO] argLine set to -javaagent:/home/lahiru/.m2/
> repository/org/jacoco/org.jacoco.agent/0.7.5.
> 201505241946/org.jacoco.agent-0.7.5.201505241946-runtime.
> jar=destfile=/home/wso2/repo/carbon-repos/carbon-
> datasources/tests/osgi-tests/target/jacoco.exec,includes=org.wso2.carbon*
> [INFO]
> [INFO] --- maven-remote-resources-plugin:1.5:process (default) @
> carbon-datasources-osgi-tests ---
> [INFO]
> [INFO] --- maven-resources-plugin:2.7:copy-resources (copy-resources) @
> carbon-datasources-osgi-tests ---
> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory /home/wso2/repo/carbon-repos/
> carbon-datasources/tests/osgi-tests/src/test/resources/carbon-home
> [INFO]
> [INFO] --- maven-paxexam-plugin:1.2.4:generate-depends-file
> (generate-config) @ carbon-datasources-osgi-tests ---
> [INFO] Created: /home/wso2/repo/carbon-repos/
> carbon-datasources/tests/osgi-tests/target/classes/META-INF/
> maven/dependencies.properties
> [INFO]
> [INFO] --- maven-resources-plugin:2.7:resources (default-resources) @
> carbon-datasources-osgi-tests ---
> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] skip non existing resourceDirectory /home/wso2/repo/carbon-repos/
> carbon-datasources/tests/osgi-tests/src/main/resources
> [INFO] Copying 3 resources
> [INFO]
> [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @
> carbon-datasources-osgi-tests ---
> [INFO] No sources to compile
> [INFO]
> [INFO] >>> findbugs-maven-plugin:3.0.3:check (analyze-compile) @
> carbon-datasources-osgi-tests >>>
> [INFO]
> [INFO] --- findbugs-maven-plugin:3.0.3:findbugs (findbugs) @
> carbon-datasources-osgi-tests ---
> [INFO]
> [INFO] <<< findbugs-maven-plugin:3.0.3:check (analyze-compile) @
> carbon-datasources-osgi-tests <<<
> [INFO]
> [INFO] --- findbugs-maven-plugin:3.0.3:check (analyze-compile) @
> carbon-datasources-osgi-tests ---
> [INFO]
> [INFO] --- maven-dependency-plugin:2.10:unpack (unpack-distribution) @
> carbon-datasources-osgi-tests ---
> [INFO] Configured Artifact: org.wso2.carbon.datasources:
> wso2carbon-datasource-test:?:zip
> [INFO] Unpacking /home/lahiru/.m2/repository/org/wso2/carbon/datasources/
> wso2carbon-datasource-test/1.1.1-SNAPSHOT/wso2carbon-
> datasource-test-1.1.1-SNAPSHOT.zip to /home/wso2/repo/carbon-repos/
> carbon-datasources/tests/osgi-tests/target with includes "" and excludes
> ""
> [INFO]
> [INFO] --- maven-dependency-plugin:2.10:copy-dependencies
> (copy-jacoco-dependencies) @ carbon-datasources-osgi-tests ---
> [INFO]
> [INFO] --- jacoco-maven-plugin:0.7.5.201505241946:instrument
> (default-instrument) @ carbon-datasources-osgi-tests ---
> [INFO]
> [INFO] --- maven-resources-plugin:2.7:testResources
> (default-testResources) @ carbon-datasources-osgi-tests ---
> [WARNING] Using platform encoding (UTF-8 actually) to copy filtered
> resources, i.e. build is platform dependent!
> [INFO] Copying 6 resources
> [INFO] Copying 3 resources
> [INFO]
> [INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile)
> @ carbon-datasources-osgi-tests ---
> [INFO] Changes detected - recompiling the module!
> [WARNING] File encoding has not been set, using platform encoding UTF-8,
> i.e. build is platform dependent!
> [INFO] Compiling 4 source files to /home/wso2/repo/carbon-repos/
> carbon-datasources/tests/osgi-tests/target/test-classes
> [INFO] 

Re: [Dev] Surefire plugin failure with OSGI test

2017-02-15 Thread Lahiru Manohara
Hi Lakshman,

Please find the full stack trace.

[INFO] Scanning for projects...
[INFO]

[INFO]

[INFO] Building WSO2 Carbon Datasources - OSGi Tests 1.1.1-SNAPSHOT
[INFO]

[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @
carbon-datasources-osgi-tests ---
[INFO] Deleting
/home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests/target
[INFO]
[INFO] --- maven-checkstyle-plugin:2.17:check (validate) @
carbon-datasources-osgi-tests ---
[INFO] Starting audit...
Audit done.
[INFO]
[INFO] --- buildnumber-maven-plugin:1.4:create (default) @
carbon-datasources-osgi-tests ---
[INFO] Executing: /bin/sh -c cd
'/home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests' && 'git'
'rev-parse' '--verify' 'HEAD'
[INFO] Working directory:
/home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests
[INFO] Storing buildNumber: 0935d02732e42287fcda994da5bfe0bf1e80664f at
timestamp: 1487157110916
[INFO] Storing buildScmBranch: kernel-update
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.5.201505241946:prepare-agent
(prepare-agent) @ carbon-datasources-osgi-tests ---
[INFO] argLine set to
-javaagent:/home/lahiru/.m2/repository/org/jacoco/org.jacoco.agent/0.7.5.201505241946/org.jacoco.agent-0.7.5.201505241946-runtime.jar=destfile=/home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests/target/jacoco.exec,includes=org.wso2.carbon*
[INFO]
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @
carbon-datasources-osgi-tests ---
[INFO]
[INFO] --- maven-resources-plugin:2.7:copy-resources (copy-resources) @
carbon-datasources-osgi-tests ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
/home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests/src/test/resources/carbon-home
[INFO]
[INFO] --- maven-paxexam-plugin:1.2.4:generate-depends-file
(generate-config) @ carbon-datasources-osgi-tests ---
[INFO] Created:
/home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests/target/classes/META-INF/maven/dependencies.properties
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @
carbon-datasources-osgi-tests ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
/home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests/src/main/resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @
carbon-datasources-osgi-tests ---
[INFO] No sources to compile
[INFO]
[INFO] >>> findbugs-maven-plugin:3.0.3:check (analyze-compile) @
carbon-datasources-osgi-tests >>>
[INFO]
[INFO] --- findbugs-maven-plugin:3.0.3:findbugs (findbugs) @
carbon-datasources-osgi-tests ---
[INFO]
[INFO] <<< findbugs-maven-plugin:3.0.3:check (analyze-compile) @
carbon-datasources-osgi-tests <<<
[INFO]
[INFO] --- findbugs-maven-plugin:3.0.3:check (analyze-compile) @
carbon-datasources-osgi-tests ---
[INFO]
[INFO] --- maven-dependency-plugin:2.10:unpack (unpack-distribution) @
carbon-datasources-osgi-tests ---
[INFO] Configured Artifact:
org.wso2.carbon.datasources:wso2carbon-datasource-test:?:zip
[INFO] Unpacking
/home/lahiru/.m2/repository/org/wso2/carbon/datasources/wso2carbon-datasource-test/1.1.1-SNAPSHOT/wso2carbon-datasource-test-1.1.1-SNAPSHOT.zip
to /home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests/target
with includes "" and excludes ""
[INFO]
[INFO] --- maven-dependency-plugin:2.10:copy-dependencies
(copy-jacoco-dependencies) @ carbon-datasources-osgi-tests ---
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.5.201505241946:instrument
(default-instrument) @ carbon-datasources-osgi-tests ---
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources)
@ carbon-datasources-osgi-tests ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 6 resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @
carbon-datasources-osgi-tests ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8,
i.e. build is platform dependent!
[INFO] Compiling 4 source files to
/home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests/target/test-classes
[INFO]
/home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests/src/test/java/org/wso2/carbon/datasource/osgi/jndi/context/CustomContext.java:
/home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests/src/test/java/org/wso2/carbon/datasource/osgi/jndi/context/CustomContext.java
uses unchecked or unsafe operations.
[INFO]

Re: [Dev] Surefire plugin failure with OSGI test

2017-02-15 Thread Lakshman Udayakantha
Hi Lahiru,

Could you share the full stack trace? There may be a better reason in
upside of the log.

Thanks,
Lakshman

On Wed, Feb 15, 2017 at 3:49 PM, Lahiru Manohara  wrote:

> Hi,
>
> I am getting following error while trying to build the
> carbon-datasource with test after migrating to the pax exam changes [1].
>
> [ERROR] Failed to execute goal org.apache.maven.plugins:
> maven-surefire-plugin:2.19.1:test (default-test) on project
> carbon-datasources-osgi-tests: Execution default-test of goal
> org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test failed: The
> forked VM terminated without properly saying goodbye. VM crash or
> System.exit called?
> [ERROR] Command was /bin/sh -c cd /home/wso2/repo/carbon-repos/
> carbon-datasources/tests/osgi-tests && /usr/lib/jvm/java-8-oracle/jre/bin/java
> '-javaagent:/home/lahiru/.m2/repository/org/jacoco/org.jacoco.agent/0.7.5.
> 201505241946/org.jacoco.agent-0.7.5.201505241946-runtime.
> jar=destfile=/home/wso2/repo/carbon-repos/carbon-
> datasources/tests/osgi-tests/target/jacoco.exec,includes=org.wso2.carbon*'
> -jar /home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-
> tests/target/surefire/surefirebooter8086323750252961380.jar
> /home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-
> tests/target/surefire/surefire1231055676969041745tmp
> /home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-
> tests/target/surefire/surefire_03949232142509674497tmp
>
> [1]. https://github.com/wso2/carbon-kernel/tree/master/tests/osgi-tests
>
> Best Regards,
> --
> *Lahiru Manohara*
> *Software Engineer*
> Mobile: +94716561576
> WSO2 Inc. | http://wso2.com
> lean.enterprise.middleware
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0717429601*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Surefire plugin failure with OSGI test

2017-02-15 Thread Lahiru Manohara
Hi,

I am getting following error while trying to build the
carbon-datasource with test after migrating to the pax exam changes [1].

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test)
on project carbon-datasources-osgi-tests: Execution default-test of goal
org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test failed: The
forked VM terminated without properly saying goodbye. VM crash or
System.exit called?
[ERROR] Command was /bin/sh -c cd
/home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests &&
/usr/lib/jvm/java-8-oracle/jre/bin/java
'-javaagent:/home/lahiru/.m2/repository/org/jacoco/org.jacoco.agent/0.7.5.201505241946/org.jacoco.agent-0.7.5.201505241946-runtime.jar=destfile=/home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests/target/jacoco.exec,includes=org.wso2.carbon*'
-jar
/home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests/target/surefire/surefirebooter8086323750252961380.jar
/home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests/target/surefire/surefire1231055676969041745tmp
/home/wso2/repo/carbon-repos/carbon-datasources/tests/osgi-tests/target/surefire/surefire_03949232142509674497tmp

[1]. https://github.com/wso2/carbon-kernel/tree/master/tests/osgi-tests

Best Regards,
-- 
*Lahiru Manohara*
*Software Engineer*
Mobile: +94716561576
WSO2 Inc. | http://wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev