You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by siddharth srivastava <ak...@gmail.com> on 2010/12/17 16:00:50 UTC
Unable to build tests
Hi
I am building derby from trunk. I followed the instructions on
http://svn.apache.org/viewvc/db/derby/code/trunk/BUILDING.html?view=co but
when I run
ant -quiet all, I get the following errors: (I am using JUnit 3.8.2. The
count of errors with JUnit 4.8.1 was 100 )
1. [javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/JMXConnectionDecorator.java:26:
cannot find symbol
2. [javac] symbol : class JMXServiceURL
3. [javac] location: package javax.management.remote
4. [javac] import javax.management.remote.JMXServiceURL;
5. [javac] ^
6. [javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/JMXConnectionDecorator.java:93:
cannot find symbol
7. [javac] symbol : class JMXServiceURL
8. [javac] location: class
org.apache.derbyTesting.functionTests.tests.management.JMXConnectionDecorator
9. [javac] private JMXServiceURL getJmxUrl() throws
MalformedURLException {
10. [javac] ^
11. [javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:27:
cannot find symbol
12. [javac] symbol : class JMXConnector
13. [javac] location: package javax.management.remote
14. [javac] import javax.management.remote.JMXConnector;
15. [javac] ^
16. [javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:28:
cannot find symbol
17. [javac] symbol : class JMXConnectorFactory
18. [javac] location: package javax.management.remote
19. [javac] import javax.management.remote.JMXConnectorFactory;
20. [javac] ^
21. [javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:29:
cannot find symbol
22. [javac] symbol : class JMXServiceURL
23. [javac] location: package javax.management.remote
24. [javac] import javax.management.remote.JMXServiceURL;
25. [javac] ^
26. [javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:38:
cannot find symbol
27. [javac] symbol : class JMXConnector
28. [javac] location: class
org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
29. [javac] static final
ThreadLocal<Map<MBeanServerConnection,JMXConnector>> connections =
30. [javac] ^
31. [javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:41:
cannot find symbol
32. [javac] symbol : class JMXServiceURL
33. [javac] location: class
org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
34. [javac] private final JMXServiceURL url;
35. [javac] ^
36. [javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:43:
cannot find symbol
37. [javac] symbol : class JMXServiceURL
38. [javac] location: class
org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
39. [javac] RemoteConnectionGetter(JMXServiceURL url) {
40. [javac] ^
41. [javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/JMXConnectionDecorator.java:102:
cannot find symbol
42. [javac] symbol : class JMXServiceURL
43. [javac] location: class
org.apache.derbyTesting.functionTests.tests.management.JMXConnectionDecorator
44. [javac] JMXServiceURL url = new JMXServiceURL(
45. [javac] ^
46. [javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/JMXConnectionDecorator.java:102:
cannot find symbol
47. [javac] symbol : class JMXServiceURL
48. [javac] location: class
org.apache.derbyTesting.functionTests.tests.management.JMXConnectionDecorator
49. [javac] JMXServiceURL url = new JMXServiceURL(
50. [javac] ^
51. [javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:39:
cannot find symbol
52. [javac] symbol : class JMXConnector
53. [javac] location: class
org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
54. [javac] new
ThreadLocal<Map<MBeanServerConnection,JMXConnector>>();
55. [javac] ^
56. [javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:57:
cannot find symbol
57. [javac] symbol : class JMXConnector
58. [javac] location: class
org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
59. [javac] JMXConnector jmxc =
JMXConnectorFactory.connect(url, env);
60. [javac] ^
61. [javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:57:
cannot find symbol
62. [javac] symbol : variable JMXConnectorFactory
63. [javac] location: class
org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
64. [javac] JMXConnector jmxc =
JMXConnectorFactory.connect(url, env);
65. [javac] ^
66. [javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:60:
cannot find symbol
67. [javac] symbol : class JMXConnector
68. [javac] location: class
org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
69. [javac] Map<MBeanServerConnection,JMXConnector> conns =
connections.get();
70. [javac] ^
71. [javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:62:
cannot find symbol
72. [javac] symbol : class JMXConnector
73. [javac] location: class
org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
74. [javac] conns = new
HashMap<MBeanServerConnection,JMXConnector>();
75. [javac] ^
76. [javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:72:
cannot find symbol
77. [javac] symbol : class JMXConnector
78. [javac] location: class
org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
79. [javac] Map<MBeanServerConnection,JMXConnector> conns =
connections.get();
80. [javac] ^
81. [javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:73:
cannot find symbol
82. [javac] symbol : class JMXConnector
83. [javac] location: class
org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
84. [javac] JMXConnector jmxc = conns.remove(jmxConnection);
85. [javac] ^
86. [javac] 17 errors
87.
88. BUILD FAILED
89. /home/siddharth/der/build.xml:584: The following error occurred while
executing this line:
90. /home/siddharth/der/java/testing/build.xml:80: The following error
occurred while executing this line:
91. /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/build.xml:53:
Compile failed; see the compiler error output for details.
92.
93. Total time: 15 seconds
The output of java -jar jars/sane/derbyrun.jar sysinfo is:
------------------ Java Information ------------------
> Java Version: 1.6.0_20
> Java Vendor: Sun Microsystems Inc.
> Java home: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
> Java classpath: jars/sane/derbyrun.jar
> OS name: Linux
> OS architecture: amd64
> OS version: 2.6.35.9-64.fc14.x86_64
> Java user name: siddharth
> Java user home: /home/siddharth
> Java user dir: /home/siddharth/der
> java.specification.name: Java Platform API Specification
> java.specification.version: 1.6
> java.runtime.version: 1.6.0_20-b20
> --------- Derby Information --------
> JRE - JDBC: Java SE 6 - JDBC 4.0
> [/home/siddharth/der/jars/sane/derby.jar] 10.8.0.0 alpha - (1050393)
> [/home/siddharth/der/jars/sane/derbytools.jar] 10.8.0.0 alpha - (1050393)
> [/home/siddharth/der/jars/sane/derbynet.jar] 10.8.0.0 alpha - (1050393)
> [/home/siddharth/der/jars/sane/derbyclient.jar] 10.8.0.0 alpha - (1050393)
> ------------------------------------------------------
> ----------------- Locale Information -----------------
> Current Locale : [English/United States [en_US]]
> Found support for locale: [cs]
> version: 10.8.0.0 alpha - (1050393)
> Found support for locale: [de_DE]
> version: 10.8.0.0 alpha - (1050393)
> Found support for locale: [es]
> version: 10.8.0.0 alpha - (1050393)
> Found support for locale: [fr]
> version: 10.8.0.0 alpha - (1050393)
> Found support for locale: [hu]
> version: 10.8.0.0 alpha - (1050393)
> Found support for locale: [it]
> version: 10.8.0.0 alpha - (1050393)
> Found support for locale: [ja_JP]
> version: 10.8.0.0 alpha - (1050393)
> Found support for locale: [ko_KR]
> version: 10.8.0.0 alpha - (1050393)
> Found support for locale: [pl]
> version: 10.8.0.0 alpha - (1050393)
> Found support for locale: [pt_BR]
> version: 10.8.0.0 alpha - (1050393)
> Found support for locale: [ru]
> version: 10.8.0.0 alpha - (1050393)
> Found support for locale: [zh_CN]
> version: 10.8.0.0 alpha - (1050393)
> Found support for locale: [zh_TW]
> version: 10.8.0.0 alpha - (1050393)
>
>
How can I solve this ?
Thanks
--
Siddharth Srivastava
When you have learned to snatch the error code from the trap frame, it will
be time for you to leave.
Re: Unable to build tests
Posted by Kathey Marsden <km...@sbcglobal.net>.
On 12/26/2010 8:28 AM, siddharth srivastava wrote:
> Hi
>
> Is the problem due to some mistake from my side (so that I can take
> care of it in future) or is there any other issue ?
Hello Siddharth, I am back and sorry to see you haven't gotten your
build problem fixed yet. From reading Bryan's prior mail I think the
bottom line is that you can't really build with gcj. So I think the
correct solution is to use the Sun/Oracle JDK or IBM JDK for linux.
If you want to use the IBM JDK, you can download it from here:
https://www.ibm.com/developerworks/java/jdk/linux/download.html
And then I put in my local.properties under trunk:
jdk16=<path to JAVA_HOME>
j16lib=${jdk16}/jre/lib
java16compile.classpath=${j16lib}/sql.jar;${j16lib}/xml.jar;${j16lib}/ibmjcefw.jar;${j16lib}/security.jar;${j16lib}/rt.jar;${j16lib}/security.jar;${j16lib}/vm.jar;${j16lib}/java.util.jar;${j16lib}/jndi.jar;${j16lib}/logging.jar;${j16lib}/jlm.jar;${j16lib}/annotation.jar
I think the Sun/Oracle JDK build is a bit more automated so you don't
have to add in the java16comple.classpath bit, but I have not built with
that JDK for some time.
Kathey
Re: Unable to build tests
Posted by Kristian Waagan <kr...@apache.org>.
On 26.12.10 17:28, siddharth srivastava wrote:
> Hi
>
> Is the problem due to some mistake from my side (so that I can take
> care of it in future) or is there any other issue ?
This is a problem with the logic selecting the JDKs to use in Derby. You
can work around it by doing any of:
a) Set the required ant properties manually (as suggested by Kathey).
You may have to specify the 1.6 JDK in 'j15lib'.
b) Remove the gjc installation ([1]).
c) Add a supported JDK 1.5 installation.
d) Modify the class called PropertySetter.
Now, the reason why Derby fails to build here is that we are using two
algorithms to identify/find JDKs we can use.
The first algorithm (the newest one) correctly detects that it cannot
use the gcj installation. But since the other algorithm is used as a
fallback mechanism, it is run to find a 1.5 JDK and it incorrectly picks
gjc.
I planned to make the second algorithm run only if doing that is
strictly required (i.e. the first algorithm didn't find a 1.6 nor a 1.5
JDK), but it must have fallen off my plate...
Regards,
--
Kristian
[1] It is not clear to me if what is installed is indeed the complete
gjc or not. In any case, I don't think it's capable to build Derby yet.
> (Though for the time being till the issue is sorted out I have shifted
> the derby work environment to windows)
>
> I found this part to be relevant to the gcj issue(correct me if I am
> wrong):
>
> [setJdkProperties] Setting property java15compile.classpath to
> /usr/lib/jvm/jre-1.5.0-gcj/lib/jaas.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jce.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jdbc-stdext.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-cos.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-dns.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-ldap.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-rmi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jsse.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/rt.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/sasl.jar
>
> printCompilerProperties:
>
> [echo] After setting properties: compilerPropsAlreadySet = true
> [echo] After setting properties: compilerLevel16 = 1.6
> [echo] After setting properties: jsr169compile.classpath =
> /home/siddharth/trunk/classes/stubs/jsr169:/usr/lib/jvm/jre-1.5.0-gcj/lib/jaas.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jce.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jdbc-stdext.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-cos.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-dns.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-ldap.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-rmi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jsse.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/rt.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/sasl.jar:/home/siddharth/trunk/tools/java/xalan.jar:/home/siddharth/trunk/tools/java/serializer.jar
>
>
> [echo] After setting properties: j14lib = ${j14lib}
> [echo] After setting properties: java14compile.classpath =
> /usr/lib/jvm/jre-1.5.0-gcj/lib/jaas.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jce.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jdbc-stdext.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-cos.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-dns.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-ldap.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-rmi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jsse.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/rt.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/sasl.jar:/home/siddharth/trunk/tools/java/xalan.jar:/home/siddharth/trunk/tools/java/serializer.jar
>
>
> [echo] After setting properties: j15lib = ${j15lib}
> [echo] After setting properties: java15compile.classpath =
> /usr/lib/jvm/jre-1.5.0-gcj/lib/jaas.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jce.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jdbc-stdext.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-cos.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-dns.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-ldap.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-rmi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jsse.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/rt.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/sasl.jar
> [echo] After setting properties: j16lib = ${jdk16}/jre/lib
> [echo] After setting properties: java16compile.classpath =
> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/about.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/charsets.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/jce.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/jsse.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/management-agent.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/netx.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/plugin.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/resources.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/rhino.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/rt.jar
>
>
> Thanks
>
> --
> Siddharth Srivastava
>
> When you have learned to snatch the error code from the trap frame, it
> will be time for you to leave.
Re: Unable to build tests
Posted by siddharth srivastava <ak...@gmail.com>.
Hi
Is the problem due to some mistake from my side (so that I can take care of
it in future) or is there any other issue ?
(Though for the time being till the issue is sorted out I have shifted the
derby work environment to windows)
I found this part to be relevant to the gcj issue(correct me if I am
wrong):
[setJdkProperties] Setting property java15compile.classpath to
/usr/lib/jvm/jre-1.5.0-gcj/lib/jaas.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jce.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jdbc-stdext.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-cos.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-dns.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-ldap.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-rmi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jsse.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/rt.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/sasl.jar
printCompilerProperties:
[echo] After setting properties: compilerPropsAlreadySet = true
[echo] After setting properties: compilerLevel16 = 1.6
[echo] After setting properties: jsr169compile.classpath =
/home/siddharth/trunk/classes/stubs/jsr169:/usr/lib/jvm/jre-1.5.0-gcj/lib/jaas.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jce.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jdbc-stdext.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-cos.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-dns.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-ldap.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-rmi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jsse.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/rt.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/sasl.jar:/home/siddharth/trunk/tools/java/xalan.jar:/home/siddharth/trunk/tools/java/serializer.jar
[echo] After setting properties: j14lib = ${j14lib}
[echo] After setting properties: java14compile.classpath =
/usr/lib/jvm/jre-1.5.0-gcj/lib/jaas.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jce.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jdbc-stdext.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-cos.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-dns.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-ldap.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-rmi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jsse.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/rt.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/sasl.jar:/home/siddharth/trunk/tools/java/xalan.jar:/home/siddharth/trunk/tools/java/serializer.jar
[echo] After setting properties: j15lib = ${j15lib}
[echo] After setting properties: java15compile.classpath =
/usr/lib/jvm/jre-1.5.0-gcj/lib/jaas.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jce.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jdbc-stdext.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-cos.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-dns.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-ldap.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-rmi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jsse.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/rt.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/sasl.jar
[echo] After setting properties: j16lib = ${jdk16}/jre/lib
[echo] After setting properties: java16compile.classpath =
/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/about.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/charsets.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/jce.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/jsse.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/management-agent.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/netx.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/plugin.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/resources.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/rhino.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/rt.jar
Thanks
--
Siddharth Srivastava
When you have learned to snatch the error code from the trap frame, it will
be time for you to leave.
Re: Unable to build tests
Posted by siddharth srivastava <ak...@gmail.com>.
Hi
The output for ant -DprintCompilerProperties is:
printCompilerProperties:
> [echo] Before setting properties: compilerPropsAlreadySet =
> ${compilerPropsAlreadySet}
> [echo] Before setting properties: compilerLevel16 = 1.6
> [echo] Before setting properties: jsr169compile.classpath =
> ${jsr169compile.classpath}
> [echo] Before setting properties: j14lib = ${j14lib}
> [echo] Before setting properties: java14compile.classpath =
> ${java14compile.classpath}
> [echo] Before setting properties: j15lib = ${j15lib}
> [echo] Before setting properties: java15compile.classpath =
> ${java15compile.classpath}
> [echo] Before setting properties: j16lib = ${j16lib}
> [echo] Before setting properties: java16compile.classpath =
> ${java16compile.classpath}
> [setJdkProperties] [verbose] jdkParent derived from
> '/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre': '/usr/lib/jvm'
> [setJdkProperties]
> [setJdkProperties] PropertySetter environment =
> [setJdkProperties]
> [setJdkProperties] java.vendor = Sun Microsystems Inc.
> [setJdkProperties] java.home =
> /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
> [setJdkProperties] java.version = 1.6.0_20
> [setJdkProperties] os.name = Linux
> [setJdkProperties] j14lib = null
> [setJdkProperties] j15lib = null
> [setJdkProperties] j16lib = null
> [setJdkProperties] jdkSearchPath = /usr/lib/jvm
> [setJdkProperties]
> [setJdkProperties] tput
> [setJdkProperties]
> [setJdkProperties] [verbose] jdkParent derived from
> '/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre': '/usr/lib/jvm'
> [setJdkProperties]
> [setJdkProperties] Locating JDKs:
> [setJdkProperties] [verbose] candidate '/usr/lib/jvm/jre-openjdk' ->
> '/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre'
> [setJdkProperties] [verbose] candidate '/usr/lib/jvm/jre-1.5.0' ->
> '/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre'
> [setJdkProperties] [verbose] candidate
> '/usr/lib/jvm/java-1.6.0-openjdk.x86_64' ->
> '/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64'
> [setJdkProperties] [verbose] duplicate
> '/usr/lib/jvm/jre-1.6.0-openjdk.x86_64' ->
> '/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre'
> [setJdkProperties] [verbose] candidate
> '/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0' ->
> '/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0'
> [setJdkProperties] [verbose] duplicate
> '/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64' ->
> '/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64'
> [setJdkProperties] [verbose] duplicate '/usr/lib/jvm/java-openjdk' ->
> '/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64'
> [setJdkProperties] [verbose] duplicate '/usr/lib/jvm/jre-gcj' ->
> '/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre'
> [setJdkProperties] [verbose] duplicate '/usr/lib/jvm/jre' ->
> '/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre'
> [setJdkProperties] [verbose] duplicate '/usr/lib/jvm/java' ->
> '/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64'
> [setJdkProperties] [verbose] duplicate '/usr/lib/jvm/jre-1.6.0' ->
> '/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre'
> [setJdkProperties] [verbose] duplicate '/usr/lib/jvm/java-1.6.0' ->
> '/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64'
> [setJdkProperties] [verbose] duplicate '/usr/lib/jvm/jre-1.5.0-gcj' ->
> '/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre'
> [setJdkProperties] found JDK: vendor=N/A, specVersion=1.6,
> implVersion=1.6.0_20, path=/usr/lib/jvm/java-1.6.0-openjdk.x86_64
> [setJdkProperties] [verbose] no manifest found for JDK in
> '/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0'
> [setJdkProperties]
> [setJdkProperties] Selecting JDK candidates:
> [setJdkProperties] INFO: No valid JDK with specification version '1.4'
> found
> [setJdkProperties] INFO: No valid JDK with specification version '1.5'
> found
> [setJdkProperties] Candidate JDK for specification version 1.6 (vendor
> ignored): vendor=N/A, specVersion=1.6, implVersion=1.6.0_20,
> path=/usr/lib/jvm/java-1.6.0-openjdk.x86_64
> [setJdkProperties] Setting property java16compile.classpath to
> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/about.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/charsets.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/jce.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/jsse.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/management-agent.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/netx.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/plugin.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/resources.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/rhino.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/rt.jar
> [setJdkProperties] [verbose] jdkParent derived from
> '/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre': '/usr/lib/jvm'
> [setJdkProperties] Setting property java15compile.classpath to
> /usr/lib/jvm/jre-1.5.0-gcj/lib/jaas.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jce.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jdbc-stdext.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-cos.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-dns.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-ldap.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-rmi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jsse.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/rt.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/sasl.jar
>
> printCompilerProperties:
> [echo] After setting properties: compilerPropsAlreadySet = true
> [echo] After setting properties: compilerLevel16 = 1.6
> [echo] After setting properties: jsr169compile.classpath =
> /home/siddharth/trunk/classes/stubs/jsr169:/usr/lib/jvm/jre-1.5.0-gcj/lib/jaas.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jce.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jdbc-stdext.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-cos.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-dns.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-ldap.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-rmi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jsse.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/rt.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/sasl.jar:/home/siddharth/trunk/tools/java/xalan.jar:/home/siddharth/trunk/tools/java/serializer.jar
> [echo] After setting properties: j14lib = ${j14lib}
> [echo] After setting properties: java14compile.classpath =
> /usr/lib/jvm/jre-1.5.0-gcj/lib/jaas.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jce.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jdbc-stdext.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-cos.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-dns.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-ldap.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-rmi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jsse.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/rt.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/sasl.jar:/home/siddharth/trunk/tools/java/xalan.jar:/home/siddharth/trunk/tools/java/serializer.jar
> [echo] After setting properties: j15lib = ${j15lib}
> [echo] After setting properties: java15compile.classpath =
> /usr/lib/jvm/jre-1.5.0-gcj/lib/jaas.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jce.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jdbc-stdext.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-cos.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-dns.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-ldap.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-rmi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jsse.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/rt.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/sasl.jar
> [echo] After setting properties: j16lib = ${jdk16}/jre/lib
> [echo] After setting properties: java16compile.classpath =
> /usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/about.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/charsets.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/jce.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/jsse.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/management-agent.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/netx.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/plugin.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/resources.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/rhino.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/rt.jar
>
I have pasted the relevant output only (according to me). The complete
output is: http://pastebin.com/wFxKMmaN
--
Siddharth Srivastava
Re: Unable to build tests
Posted by Lily Wei <li...@yahoo.com>.
Hi Siddharth:
It is so good that you are helping making Derby better every day.
I am using ant 1.7.1 and junit 3.8.1 to build on my Windows machine. I
think it should work with the ant and junit version you are using. Like Kristian
was saying, it is strange that 'ant -DprintCompilerPropertiesVerbose=true' did
not give more output for you. Can you please provide more information on that to
help us going further?
Thank you so much,
Lily
________________________________
From: Kristian Waagan <kr...@apache.org>
To: derby-dev@db.apache.org
Sent: Tue, December 21, 2010 10:42:27 AM
Subject: Re: Unable to build tests
On 21.12.2010 15:43, siddharthsrivastava wrote:
Hi,
>
>
>>Do you mind posting the output you get (only the compiler related
>>output is relevant) when specifying printCompilerPropertiesVerbose=true ?
>>
It doesn't give any output on my machine (only gives the errors
related to building tests) though printCompilerProperties=true still gives the
same output.
That's strange.
Here's what I get on a Windows machine I tested this on:
$ ant -DprintCompilerPropertiesVerbose=true
...
printCompilerProperties:
[setJdkProperties] [verbose] jdkParent derived from 'C:\Program
Files\Java\jdk1.6.0_20\jre': 'C:\Program Files\Java'
[setJdkProperties]
[setJdkProperties] PropertySetter environment =
[setJdkProperties]
[setJdkProperties] java.vendor = Sun Microsystems Inc.
[setJdkProperties] java.home = C:\Program Files\Java\jdk1.6.0_20\jre
[setJdkProperties] java.version = 1.6.0_20
[setJdkProperties] os.name = Windows Vista
[setJdkProperties] j14lib = null
[setJdkProperties] j15lib = null
[setJdkProperties] j16lib = null
[setJdkProperties] jdkSearchPath = C:\Program Files\Java
[setJdkProperties]
[setJdkProperties]
[setJdkProperties]
[setJdkProperties] [verbose] jdkParent derived from 'C:\Program
Files\Java\jdk1.6.0_20\jre': 'C:\Program Files\Java'
[setJdkProperties]
[setJdkProperties] Locating JDKs:
[setJdkProperties] [verbose] candidate 'C:\Program Files\Java\jdk1.6.0_17'
-> 'C:\Program Files\Java\jdk1.6.0_17'
[setJdkProperties] [verbose] candidate 'C:\Program Files\Java\jdk1.6.0_18'
-> 'C:\Program Files\Java\jdk1.6.0_18'
[setJdkProperties] [verbose] candidate 'C:\Program Files\Java\jdk1.6.0_20'
-> 'C:\Program Files\Java\jdk1.6.0_20'
[setJdkProperties] [verbose] candidate 'C:\Program Files\Java\jre6' ->
'C:\Program Files\Java\jre6'
[setJdkProperties] [verbose] candidate 'C:\Program
Files\Java\jrmc-4.0.1-1.5.0' -> 'C:\Program Files\Java\jrmc-4.0.1-1.5.0'
[setJdkProperties] [verbose] candidate 'C:\Program
Files\Java\jrmc-4.0.1-1.6.0' -> 'C:\Program Files\Java\jrmc-4.0.1-1.6.0'
[setJdkProperties] found JDK: vendor=Sun Microsystems, Inc., specVersion=1.6,
implVersion=1.6.0_17, path=C:\Program Files\Java\jdk1.6.0_17
[setJdkProperties] found JDK: vendor=Sun Microsystems, Inc., specVersion=1.6,
implVersion=1.6.0_18, path=C:\Program Files\Java\jdk1.6.0_18
[setJdkProperties] found JDK: vendor=Sun Microsystems, Inc., specVersion=1.6,
implVersion=1.6.0_20, path=C:\Program Files\Java\jdk1.6.0_20
[setJdkProperties] found JDK: vendor=Sun Microsystems, Inc., specVersion=1.5,
implVersion=1.5.0_24, path=C:\Program Files\Java\jrmc-4.0.1-1.5.0
[setJdkProperties] found JDK: vendor=Sun Microsystems, Inc., specVersion=1.6,
implVersion=1.6.0_20, path=C:\Program Files\Java\jrmc-4.0.1-1.6.0
[setJdkProperties]
[setJdkProperties] Selecting JDK candidates:
[setJdkProperties] INFO: No valid JDK with specification version '1.4' found
[setJdkProperties] Candidate JDK for specification version 1.5 (vendor Sun
Microsystems Inc.): vendor=Sun Microsystems, Inc., specVersion=1.5,
implVersion=1.5.0_24, path=C:\Program Files\Java\jrmc-4.0.1-1.5.0
[setJdkProperties] Candidate JDK for specification version 1.6 (vendor Sun
Microsystems Inc.): vendor=Sun Microsystems, Inc., specVersion=1.6,
implVersion=1.6.0_20, path=C:\Program Files\Java\jdk1.6.0_20
[setJdkProperties] Setting property java15compile.classpath to C:\Program
Files\
Java\jrmc-4.0.1-1.5.0\jre\lib\charsets.jar;C:\Program
Files\Java\jrmc-4.0.1-1.5.
0\jre\lib\jce.jar;C:\Program
Files\Java\jrmc-4.0.1-1.5.0\jre\lib\jsse.jar;C:\Pro
gram Files\Java\jrmc-4.0.1-1.5.0\jre\lib\management-agent.jar;C:\Program
Files\J
ava\jrmc-4.0.1-1.5.0\jre\lib\rt.jar
[setJdkProperties] Setting property java16compile.classpath to C:\Program
Files\
Java\jdk1.6.0_20\jre\lib\alt-rt.jar;C:\Program
Files\Java\jdk1.6.0_20\jre\lib\ch
arsets.jar;C:\Program Files\Java\jdk1.6.0_20\jre\lib\deploy.jar;C:\Program
Files
\Java\jdk1.6.0_20\jre\lib\javaws.jar;C:\Program
Files\Java\jdk1.6.0_20\jre\lib\j
ce.jar;C:\Program Files\Java\jdk1.6.0_20\jre\lib\jsse.jar;C:\Program
Files\Java\
jdk1.6.0_20\jre\lib\management-agent.jar;C:\Program
Files\Java\jdk1.6.0_20\jre\l
ib\plugin.jar;C:\Program
Files\Java\jdk1.6.0_20\jre\lib\resources.jar;C:\Program
Files\Java\jdk1.6.0_20\jre\lib\rt.jar
[setJdkProperties] [verbose] jdkParent derived from 'C:\Program
Files\Java\jdk1.6.0_20\jre': 'C:\Program Files\Java'
...
I don't remember exactly when this property was added, but it has been in
there for a while now. I tested on trunk revision 1050000.
Derby did pick the wrong JDK earlier, but work was done to avoid that. If it
still picks a JDK it can't use, it seems we may need further improvements to
this logic.
Cheers,
--
Kristian
>
>Note the addition of "Verbose" to the property string you used
>previously. With this property set, you should get a list of all
>JVMs the build system detects, and it also prints some basic
>information about each of them.
>>It may help us understand why gjc is chosen, and if we have to take
>>action to avoid that the build fails when gjc is installed.
>>
>>Also, was gjc installed by default on your machine?
>>
No it wasn't preinstalled. It was installed as a dependency.
Thanks,
--
Kristian
[ snip ]
>
>
>--
>SiddharthSrivastava
>
>When you have learned to snatch the error code from the trap frame, it
>will be time for you to leave.
>
Re: Unable to build tests
Posted by Kristian Waagan <kr...@apache.org>.
On 21.12.2010 15:43, siddharth srivastava wrote:
> Hi,
>
>
> Do you mind posting the output you get (only the compiler related
> output is relevant) when specifying
> printCompilerPropertiesVerbose=true ?
>
>
> It doesn't give any output on my machine (only gives the errors
> related to building tests) though printCompilerProperties=true still
> gives the same output.
That's strange.
Here's what I get on a Windows machine I tested this on:
$ ant -DprintCompilerPropertiesVerbose=true
...
printCompilerProperties:
[setJdkProperties] [verbose] jdkParent derived from 'C:\Program
Files\Java\jdk1.6.0_20\jre': 'C:\Program Files\Java'
[setJdkProperties]
[setJdkProperties] PropertySetter environment =
[setJdkProperties]
[setJdkProperties] java.vendor = Sun Microsystems Inc.
[setJdkProperties] java.home = C:\Program Files\Java\jdk1.6.0_20\jre
[setJdkProperties] java.version = 1.6.0_20
[setJdkProperties] os.name = Windows Vista
[setJdkProperties] j14lib = null
[setJdkProperties] j15lib = null
[setJdkProperties] j16lib = null
[setJdkProperties] jdkSearchPath = C:\Program Files\Java
[setJdkProperties]
[setJdkProperties]
[setJdkProperties]
[setJdkProperties] [verbose] jdkParent derived from 'C:\Program
Files\Java\jdk1.6.0_20\jre': 'C:\Program Files\Java'
[setJdkProperties]
[setJdkProperties] Locating JDKs:
[setJdkProperties] [verbose] candidate 'C:\Program
Files\Java\jdk1.6.0_17' -> 'C:\Program Files\Java\jdk1.6.0_17'
[setJdkProperties] [verbose] candidate 'C:\Program
Files\Java\jdk1.6.0_18' -> 'C:\Program Files\Java\jdk1.6.0_18'
[setJdkProperties] [verbose] candidate 'C:\Program
Files\Java\jdk1.6.0_20' -> 'C:\Program Files\Java\jdk1.6.0_20'
[setJdkProperties] [verbose] candidate 'C:\Program Files\Java\jre6' ->
'C:\Program Files\Java\jre6'
[setJdkProperties] [verbose] candidate 'C:\Program
Files\Java\jrmc-4.0.1-1.5.0' -> 'C:\Program Files\Java\jrmc-4.0.1-1.5.0'
[setJdkProperties] [verbose] candidate 'C:\Program
Files\Java\jrmc-4.0.1-1.6.0' -> 'C:\Program Files\Java\jrmc-4.0.1-1.6.0'
[setJdkProperties] found JDK: vendor=Sun Microsystems, Inc.,
specVersion=1.6, implVersion=1.6.0_17, path=C:\Program
Files\Java\jdk1.6.0_17
[setJdkProperties] found JDK: vendor=Sun Microsystems, Inc.,
specVersion=1.6, implVersion=1.6.0_18, path=C:\Program
Files\Java\jdk1.6.0_18
[setJdkProperties] found JDK: vendor=Sun Microsystems, Inc.,
specVersion=1.6, implVersion=1.6.0_20, path=C:\Program
Files\Java\jdk1.6.0_20
[setJdkProperties] found JDK: vendor=Sun Microsystems, Inc.,
specVersion=1.5, implVersion=1.5.0_24, path=C:\Program
Files\Java\jrmc-4.0.1-1.5.0
[setJdkProperties] found JDK: vendor=Sun Microsystems, Inc.,
specVersion=1.6, implVersion=1.6.0_20, path=C:\Program
Files\Java\jrmc-4.0.1-1.6.0
[setJdkProperties]
[setJdkProperties] Selecting JDK candidates:
[setJdkProperties] INFO: No valid JDK with specification version '1.4' found
[setJdkProperties] Candidate JDK for specification version 1.5 (vendor
Sun Microsystems Inc.): vendor=Sun Microsystems, Inc., specVersion=1.5,
implVersion=1.5.0_24, path=C:\Program Files\Java\jrmc-4.0.1-1.5.0
[setJdkProperties] Candidate JDK for specification version 1.6 (vendor
Sun Microsystems Inc.): vendor=Sun Microsystems, Inc., specVersion=1.6,
implVersion=1.6.0_20, path=C:\Program Files\Java\jdk1.6.0_20
[setJdkProperties] Setting property java15compile.classpath to
C:\Program Files\
Java\jrmc-4.0.1-1.5.0\jre\lib\charsets.jar;C:\Program
Files\Java\jrmc-4.0.1-1.5.
0\jre\lib\jce.jar;C:\Program
Files\Java\jrmc-4.0.1-1.5.0\jre\lib\jsse.jar;C:\Pro
gram Files\Java\jrmc-4.0.1-1.5.0\jre\lib\management-agent.jar;C:\Program
Files\J
ava\jrmc-4.0.1-1.5.0\jre\lib\rt.jar
[setJdkProperties] Setting property java16compile.classpath to
C:\Program Files\
Java\jdk1.6.0_20\jre\lib\alt-rt.jar;C:\Program
Files\Java\jdk1.6.0_20\jre\lib\ch
arsets.jar;C:\Program
Files\Java\jdk1.6.0_20\jre\lib\deploy.jar;C:\Program Files
\Java\jdk1.6.0_20\jre\lib\javaws.jar;C:\Program
Files\Java\jdk1.6.0_20\jre\lib\j
ce.jar;C:\Program Files\Java\jdk1.6.0_20\jre\lib\jsse.jar;C:\Program
Files\Java\
jdk1.6.0_20\jre\lib\management-agent.jar;C:\Program
Files\Java\jdk1.6.0_20\jre\l
ib\plugin.jar;C:\Program
Files\Java\jdk1.6.0_20\jre\lib\resources.jar;C:\Program
Files\Java\jdk1.6.0_20\jre\lib\rt.jar
[setJdkProperties] [verbose] jdkParent derived from 'C:\Program
Files\Java\jdk1.6.0_20\jre': 'C:\Program Files\Java'
...
I don't remember exactly when this property was added, but it has been
in there for a while now. I tested on trunk revision 1050000.
Derby did pick the wrong JDK earlier, but work was done to avoid that.
If it still picks a JDK it can't use, it seems we may need further
improvements to this logic.
Cheers,
--
Kristian
>
> Note the addition of "Verbose" to the property string you used
> previously. With this property set, you should get a list of all
> JVMs the build system detects, and it also prints some basic
> information about each of them.
> It may help us understand why gjc is chosen, and if we have to
> take action to avoid that the build fails when gjc is installed.
>
> Also, was gjc installed by default on your machine?
>
>
> No it wasn't preinstalled. It was installed as a dependency.
>
>
> Thanks,
> --
> Kristian
>
> [ snip ]
>
>
>
>
> --
> Siddharth Srivastava
>
> When you have learned to snatch the error code from the trap frame, it
> will be time for you to leave.
Re: Unable to build tests
Posted by siddharth srivastava <ak...@gmail.com>.
Hi,
>
> Do you mind posting the output you get (only the compiler related output is
> relevant) when specifying printCompilerPropertiesVerbose=true ?
>
It doesn't give any output on my machine (only gives the errors related to
building tests) though printCompilerProperties=true still gives the same
output.
> Note the addition of "Verbose" to the property string you used previously.
> With this property set, you should get a list of all JVMs the build system
> detects, and it also prints some basic information about each of them.
> It may help us understand why gjc is chosen, and if we have to take action
> to avoid that the build fails when gjc is installed.
>
> Also, was gjc installed by default on your machine?
>
No it wasn't preinstalled. It was installed as a dependency.
Thanks,
--
Kristian
[ snip ]
>
--
Siddharth Srivastava
When you have learned to snatch the error code from the trap frame, it will
be time for you to leave.
Re: Unable to build tests
Posted by Kristian Waagan <kr...@apache.org>.
On 18.12.2010 13:24, siddharth srivastava wrote:
> *This is the output of printCompilerProperties=true in ant.properties*
Hi,
Do you mind posting the output you get (only the compiler related output
is relevant) when specifying printCompilerPropertiesVerbose=true ?
Note the addition of "Verbose" to the property string you used
previously. With this property set, you should get a list of all JVMs
the build system detects, and it also prints some basic information
about each of them.
It may help us understand why gjc is chosen, and if we have to take
action to avoid that the build fails when gjc is installed.
Also, was gjc installed by default on your machine?
Thanks,
--
Kristian
[ snip ]
Re: Unable to build tests
Posted by Bryan Pendleton <bp...@gmail.com>.
On 12/18/2010 04:24 AM, siddharth srivastava wrote:
> *This is the output of printCompilerProperties=true in ant.properties*
...
> [echo] After setting properties: jsr169compile.classpath =
> /home/siddharth/der/classes/stubs/jsr169:/usr/lib/jvm/jre-1.5.0-gcj/lib/jaas.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jce.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jdbc-stdext.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-cos.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-dns.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-ldap.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-rmi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jsse.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/rt.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/sasl.jar:/home/siddharth/der/tools/java/xalan.jar:/home/siddharth/der/tools/java/serializer.jar
> [echo] After setting properties: j14lib = ${j14lib}
> [echo] After setting properties: java14compile.classpath =
> /usr/lib/jvm/jre-1.5.0-gcj/lib/jaas.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jce.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jdbc-stdext.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-cos.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-dns.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-ldap.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-rmi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jsse.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/rt.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/sasl.jar:/home/siddharth/der/tools/java/xalan.jar:/home/siddharth/der/tools/java/serializer.jar
I see that you have the "gcj" compiler installed on your machine.
In my experience, the Derby build does not work with with the GNU Java compiler.
On my Linux machines, I uninstalled the gcj compiler entirely, and I use
ONLY the Sun compiler, and then things work much better.
thanks,
bryan
Unable to build tests
Posted by siddharth srivastava <ak...@gmail.com>.
*This is the output of printCompilerProperties=true in ant.properties*
[echo] Before setting properties: compilerPropsAlreadySet =
${compilerPropsAlreadySet}
[echo] Before setting properties: compilerLevel16 = 1.6
[echo] Before setting properties: jsr169compile.classpath =
${jsr169compile.classpath}
[echo] Before setting properties: j14lib = ${j14lib}
[echo] Before setting properties: java14compile.classpath =
${java14compile.classpath}
[echo] Before setting properties: j15lib = ${j15lib}
[echo] Before setting properties: java15compile.classpath =
${java15compile.classpath}
[echo] Before setting properties: j16lib = ${j16lib}
[echo] Before setting properties: java16compile.classpath =
${java16compile.classpath}
[echo] After setting properties: compilerPropsAlreadySet = true
[echo] After setting properties: compilerLevel16 = 1.6
[echo] After setting properties: jsr169compile.classpath =
/home/siddharth/der/classes/stubs/jsr169:/usr/lib/jvm/jre-1.5.0-gcj/lib/jaas.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jce.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jdbc-stdext.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-cos.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-dns.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-ldap.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-rmi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jsse.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/rt.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/sasl.jar:/home/siddharth/der/tools/java/xalan.jar:/home/siddharth/der/tools/java/serializer.jar
[echo] After setting properties: j14lib = ${j14lib}
[echo] After setting properties: java14compile.classpath =
/usr/lib/jvm/jre-1.5.0-gcj/lib/jaas.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jce.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jdbc-stdext.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-cos.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-dns.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-ldap.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-rmi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jsse.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/rt.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/sasl.jar:/home/siddharth/der/tools/java/xalan.jar:/home/siddharth/der/tools/java/serializer.jar
[echo] After setting properties: j15lib = ${j15lib}
[echo] After setting properties: java15compile.classpath =
/usr/lib/jvm/jre-1.5.0-gcj/lib/jaas.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jce.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jdbc-stdext.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-cos.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-dns.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-ldap.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi-rmi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jndi.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/jsse.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/rt.jar:/usr/lib/jvm/jre-1.5.0-gcj/lib/sasl.jar
[echo] After setting properties: j16lib = ${jdk16}/jre/lib
[echo] After setting properties: java16compile.classpath =
/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/about.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/charsets.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/jce.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/jsse.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/management-agent.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/netx.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/plugin.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/resources.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/rhino.jar:/usr/lib/jvm/java-1.6.0-openjdk.x86_64/jre/lib/rt.jar
[javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/JMXConnectionDecorator.java:26:
cannot find symbol
[javac] symbol : class JMXServiceURL
[javac] location: package javax.management.remote
[javac] import javax.management.remote.JMXServiceURL;
[javac] ^
[javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/JMXConnectionDecorator.java:93:
cannot find symbol
[javac] symbol : class JMXServiceURL
[javac] location: class
org.apache.derbyTesting.functionTests.tests.management.JMXConnectionDecorator
[javac] private JMXServiceURL getJmxUrl() throws
MalformedURLException {
[javac] ^
[javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:27:
cannot find symbol
[javac] symbol : class JMXConnector
[javac] location: package javax.management.remote
[javac] import javax.management.remote.JMXConnector;
[javac] ^
[javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:28:
cannot find symbol
[javac] symbol : class JMXConnectorFactory
[javac] location: package javax.management.remote
[javac] import javax.management.remote.JMXConnectorFactory;
[javac] ^
[javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:29:
cannot find symbol
[javac] symbol : class JMXServiceURL
[javac] location: package javax.management.remote
[javac] import javax.management.remote.JMXServiceURL;
[javac] ^
[javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:38:
cannot find symbol
[javac] symbol : class JMXConnector
[javac] location: class
org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
[javac] static final
ThreadLocal<Map<MBeanServerConnection,JMXConnector>> connections =
[javac] ^
[javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:41:
cannot find symbol
[javac] symbol : class JMXServiceURL
[javac] location: class
org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
[javac] private final JMXServiceURL url;
[javac] ^
[javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:43:
cannot find symbol
[javac] symbol : class JMXServiceURL
[javac] location: class
org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
[javac] RemoteConnectionGetter(JMXServiceURL url) {
[javac] ^
[javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/JMXConnectionDecorator.java:102:
cannot find symbol
[javac] symbol : class JMXServiceURL
[javac] location: class
org.apache.derbyTesting.functionTests.tests.management.JMXConnectionDecorator
[javac] JMXServiceURL url = new JMXServiceURL(
[javac] ^
[javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/JMXConnectionDecorator.java:102:
cannot find symbol
[javac] symbol : class JMXServiceURL
[javac] location: class
org.apache.derbyTesting.functionTests.tests.management.JMXConnectionDecorator
[javac] JMXServiceURL url = new JMXServiceURL(
[javac] ^
[javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:39:
cannot find symbol
[javac] symbol : class JMXConnector
[javac] location: class
org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
[javac] new
ThreadLocal<Map<MBeanServerConnection,JMXConnector>>();
[javac] ^
[javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:57:
cannot find symbol
[javac] symbol : class JMXConnector
[javac] location: class
org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
[javac] JMXConnector jmxc = JMXConnectorFactory.connect(url,
env);
[javac] ^
[javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:57:
cannot find symbol
[javac] symbol : variable JMXConnectorFactory
[javac] location: class
org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
[javac] JMXConnector jmxc = JMXConnectorFactory.connect(url,
env);
[javac] ^
[javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:60:
cannot find symbol
[javac] symbol : class JMXConnector
[javac] location: class
org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
[javac] Map<MBeanServerConnection,JMXConnector> conns =
connections.get();
[javac] ^
[javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:62:
cannot find symbol
[javac] symbol : class JMXConnector
[javac] location: class
org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
[javac] conns = new
HashMap<MBeanServerConnection,JMXConnector>();
[javac] ^
[javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:72:
cannot find symbol
[javac] symbol : class JMXConnector
[javac] location: class
org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
[javac] Map<MBeanServerConnection,JMXConnector> conns =
connections.get();
[javac] ^
[javac]
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:73:
cannot find symbol
[javac] symbol : class JMXConnector
[javac] location: class
org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
[javac] JMXConnector jmxc = conns.remove(jmxConnection);
[javac] ^
[javac] 17 errors
BUILD FAILED
/home/siddharth/der/build.xml:584: The following error occurred while
executing this line:
/home/siddharth/der/java/testing/build.xml:80: The following error occurred
while executing this line:
/home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/build.xml:53:
Compile failed; see the compiler error output for details.
Total time: 1 minute 14 seconds
For further reference, this is the output of java -version
java version "1.6.0_20"
> OpenJDK Runtime Environment (IcedTea6 1.9.3) (fedora-49.1.9.3.fc14-x86_64)
> OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
>
This is the output of ant -diagnostics (probably the problem is here ? )
------- Ant diagnostics report -------
Apache Ant version 1.7.1 compiled on April 16 2010
-------------------------------------------
Implementation Version
-------------------------------------------
core tasks : 1.7.1
optional tasks : not available
-------------------------------------------
ANT PROPERTIES
-------------------------------------------
ant.version: Apache Ant version 1.7.1 compiled on April 16 2010
ant.java.version: 1.6
ant.core.lib: /usr/share/java/ant-1.7.1.jar
ant.home: /usr/share/ant
-------------------------------------------
ANT_HOME/lib jar listing
-------------------------------------------
ant.home: /usr/share/ant
ant-commons-net.jar (47981 bytes)
ant-apache-regexp.jar (3772 bytes)
ant-apache-resolver.jar (4060 bytes)
ant.jar (1339582 bytes)
ant-commons-logging.jar (4031 bytes)
ant-nodeps.jar (438618 bytes)
ant-junit.jar (94995 bytes)
ant-trax.jar (6927 bytes)
ant-javamail.jar (7163 bytes)
ant-apache-oro.jar (40216 bytes)
ant-jsch.jar (31458 bytes)
ant-swing.jar (6772 bytes)
ant-apache-bcel.jar (8796 bytes)
ant-apache-log4j.jar (3042 bytes)
ant-launcher.jar (12243 bytes)
ant-bootstrap.jar (19013 bytes)
ant-antlr.jar (5927 bytes)
ant-apache-bsf.jar (4021 bytes)
ant-jdepend.jar (8307 bytes)
-------------------------------------------
USER_HOME/.ant/lib jar listing
-------------------------------------------
user.home: /home/siddharth
No such directory.
-------------------------------------------
Tasks availability
-------------------------------------------
image : Not Available (the implementation class is not present)
wlrun : Not Available (the implementation class is not present)
stlist : Not Available (the implementation class is not present)
netrexxc : Not Available (the implementation class is not present)
starteam : Not Available (the implementation class is not present)
stylebook : Not Available (the implementation class is not present)
stlabel : Not Available (the implementation class is not present)
stcheckin : Not Available (the implementation class is not present)
stcheckout : Not Available (the implementation class is not present)
ejbc : Not Available (the implementation class is not present)
wlstop : Not Available (the implementation class is not present)
sound : Not Available (the implementation class is not present)
ddcreator : Not Available (the implementation class is not present)
A task being missing/unavailable should only matter if you are trying to use
it
-------------------------------------------
org.apache.env.Which diagnostics
-------------------------------------------
Not available.
Download it at http://xml.apache.org/commons/
-------------------------------------------
XML Parser information
-------------------------------------------
XML Parser : org.apache.xerces.jaxp.SAXParserImpl
XML Parser Location: /usr/share/java/xerces-j2-2.9.0.jar
Namespace-aware parser : org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser
Namespace-aware parser Location: /usr/share/java/xerces-j2-2.9.0.jar
-------------------------------------------
System properties
-------------------------------------------
java.runtime.name : OpenJDK Runtime Environment
sun.boot.library.path :
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64
java.vm.version : 19.0-b09
ant.library.dir : /usr/share/ant/lib
java.vm.vendor : Sun Microsystems Inc.
java.vendor.url : http://java.sun.com/
path.separator : :
java.vm.name : OpenJDK 64-Bit Server VM
file.encoding.pkg : sun.io
user.country : US
sun.java.launcher : SUN_STANDARD
sun.os.patch.level : unknown
java.vm.specification.name : Java Virtual Machine Specification
user.dir : /home/siddharth/der
java.runtime.version : 1.6.0_20-b20
java.awt.graphicsenv : sun.awt.X11GraphicsEnvironment
java.endorsed.dirs :
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/endorsed
os.arch : amd64
java.io.tmpdir : /tmp
line.separator :
java.vm.specification.vendor : Sun Microsystems Inc.
os.name : Linux
ant.home : /usr/share/ant
sun.jnu.encoding : UTF-8
java.library.path :
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
java.specification.name : Java Platform API Specification
java.class.version : 50.0
sun.management.compiler : HotSpot 64-Bit Server Compiler
os.version : 2.6.35.9-64.fc14.x86_64
user.home : /home/siddharth
user.timezone : Asia/Calcutta
java.awt.printerjob : sun.print.PSPrinterJob
file.encoding : UTF-8
java.specification.version : 1.6
user.name : siddharth
java.class.path :
/usr/share/java/ant.jar:/usr/share/java/ant-launcher.jar:/usr/share/java/jaxp_parser_impl.jar:/usr/share/java/xml-commons-apis.jar:/usr/share/java/antlr.jar:/usr/share/java/ant/ant-antlr.jar:/usr/share/java/bcel.jar:/usr/share/java/ant/ant-apache-bcel.jar:/usr/share/java/bsf.jar:/usr/share/java/ant/ant-apache-bsf.jar:/usr/share/java/log4j.jar:/usr/share/java/ant/ant-apache-log4j.jar:/usr/share/java/oro.jar:/usr/share/java/ant/ant-apache-oro.jar:/usr/share/java/regexp.jar:/usr/share/java/ant/ant-apache-regexp.jar:/usr/share/java/xml-commons-resolver.jar:/usr/share/java/ant/ant-apache-resolver.jar:/usr/share/java/ant/ant-commons-logging.jar:/usr/share/java/ant/ant-commons-net.jar:/usr/share/java/javamail/dsn-1.4.3.jar:/usr/share/java/javamail/mail-1.4.3.jar:/usr/share/java/jaf.jar:/usr/share/java/ant/ant-javamail.jar:/usr/share/java/jdepend.jar:/usr/share/java/ant/ant-jdepend.jar:/usr/share/java/jsch.jar:/usr/share/java/ant/ant-jsch.jar:/usr/share/java/junit.jar:/usr/share/java/ant/ant-junit.jar:/usr/share/java/ant/ant-nodeps.jar:/usr/share/java/ant/ant-swing.jar:/usr/share/java/jaxp_transform_impl.jar:/usr/share/java/ant/ant-trax.jar:/usr/share/java/xalan-j2-serializer.jar:/usr/lib/jvm/java/lib/tools.jar:/usr/share/ant/lib/ant-commons-net.jar:/usr/share/ant/lib/ant-apache-regexp.jar:/usr/share/ant/lib/ant-apache-resolver.jar:/usr/share/ant/lib/ant.jar:/usr/share/ant/lib/ant-commons-logging.jar:/usr/share/ant/lib/ant-nodeps.jar:/usr/share/ant/lib/ant-junit.jar:/usr/share/ant/lib/ant-trax.jar:/usr/share/ant/lib/ant-javamail.jar:/usr/share/ant/lib/ant-apache-oro.jar:/usr/share/ant/lib/ant-jsch.jar:/usr/share/ant/lib/ant-swing.jar:/usr/share/ant/lib/ant-apache-bcel.jar:/usr/share/ant/lib/ant-apache-log4j.jar:/usr/share/ant/lib/ant-launcher.jar:/usr/share/ant/lib/ant-bootstrap.jar:/usr/share/ant/lib/ant-antlr.jar:/usr/share/ant/lib/ant-apache-bsf.jar:/usr/share/ant/lib/ant-jdepend.jar
java.vm.specification.version : 1.0
sun.arch.data.model : 64
java.home : /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
java.specification.vendor : Sun Microsystems Inc.
user.language : en
java.vm.info : mixed mode
java.version : 1.6.0_20
java.ext.dirs :
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/ext:/usr/java/packages/lib/ext
sun.boot.class.path :
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/resources.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/rt.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/jsse.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/jce.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/charsets.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/netx.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/plugin.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/rhino.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/modules/jdk.boot.jar:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/classes
java.vendor : Sun Microsystems Inc.
file.separator : /
java.vendor.url.bug : http://java.sun.com/cgi-bin/bugreport.cgi
sun.cpu.endian : little
sun.io.unicode.encoding : UnicodeLittle
sun.cpu.isalist :
-------------------------------------------
Temp dir
-------------------------------------------
Temp dir is /tmp
Temp dir is writeable
Temp dir alignment with system clock is -742 ms
-------------------------------------------
Locale information
-------------------------------------------
Timezone India Standard Time offset=19800000
-------------------------------------------
Proxy information
-------------------------------------------
Java1.5+ proxy settings:
Direct connection
Thanks
Siddharth Srivastava
--
Siddharth Srivastava
When you have learned to snatch the error code from the trap frame, it will
be time for you to leave.
Re: Unable to build tests
Posted by Kathey Marsden <km...@sbcglobal.net>.
On 12/17/2010 8:25 AM, Nirmal Fernando wrote:
> Hi Siddharth,
>
> May be it's your java version, causes these errors. Try with JDK1.5.
I think it should be fine to build with jdk 1.6. Can you put
printCompilerProperties=true in your ant.properties or local.propertites
file and send the output? Maybe that will help someone who builds with
the Sun JDK assist. I build with the IBM JDK which requires a
slightly different setup. I don't see anyone hitting this particular
problem before in the archives.
I will actually be away from the derby lists until Dec 27. Usually
providing this output though means someone on the list can spot the problem.
Kathey
Re: Unable to build tests
Posted by Nirmal Fernando <ni...@gmail.com>.
Hi Siddharth,
May be it's your java version, causes these errors. Try with JDK1.5.
On Fri, Dec 17, 2010 at 8:30 PM, siddharth srivastava
<ak...@gmail.com>wrote:
> Hi
>
> I am building derby from trunk. I followed the instructions on
> http://svn.apache.org/viewvc/db/derby/code/trunk/BUILDING.html?view=co but
> when I run
> ant -quiet all, I get the following errors: (I am using JUnit 3.8.2. The
> count of errors with JUnit 4.8.1 was 100 )
>
>
> 1. [javac]
> /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/JMXConnectionDecorator.java:26:
> cannot find symbol
> 2. [javac] symbol : class JMXServiceURL
> 3. [javac] location: package javax.management.remote
> 4. [javac] import javax.management.remote.JMXServiceURL;
> 5. [javac] ^
> 6. [javac]
> /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/JMXConnectionDecorator.java:93:
> cannot find symbol
> 7. [javac] symbol : class JMXServiceURL
> 8. [javac] location: class
> org.apache.derbyTesting.functionTests.tests.management.JMXConnectionDecorator
> 9. [javac] private JMXServiceURL getJmxUrl() throws
> MalformedURLException {
> 10. [javac] ^
> 11. [javac]
> /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:27:
> cannot find symbol
> 12. [javac] symbol : class JMXConnector
> 13. [javac] location: package javax.management.remote
> 14. [javac] import javax.management.remote.JMXConnector;
> 15. [javac] ^
> 16. [javac]
> /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:28:
> cannot find symbol
> 17. [javac] symbol : class JMXConnectorFactory
> 18. [javac] location: package javax.management.remote
> 19. [javac] import javax.management.remote.JMXConnectorFactory;
> 20. [javac] ^
> 21. [javac]
> /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:29:
> cannot find symbol
> 22. [javac] symbol : class JMXServiceURL
> 23. [javac] location: package javax.management.remote
> 24. [javac] import javax.management.remote.JMXServiceURL;
> 25. [javac] ^
> 26. [javac]
> /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:38:
> cannot find symbol
> 27. [javac] symbol : class JMXConnector
> 28. [javac] location: class
> org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
> 29. [javac] static final
> ThreadLocal<Map<MBeanServerConnection,JMXConnector>> connections =
> 30. [javac]
> ^
> 31. [javac]
> /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:41:
> cannot find symbol
> 32. [javac] symbol : class JMXServiceURL
> 33. [javac] location: class
> org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
> 34. [javac] private final JMXServiceURL url;
> 35. [javac] ^
> 36. [javac]
> /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:43:
> cannot find symbol
> 37. [javac] symbol : class JMXServiceURL
> 38. [javac] location: class
> org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
> 39. [javac] RemoteConnectionGetter(JMXServiceURL url) {
> 40. [javac] ^
> 41. [javac]
> /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/JMXConnectionDecorator.java:102:
> cannot find symbol
> 42. [javac] symbol : class JMXServiceURL
> 43. [javac] location: class
> org.apache.derbyTesting.functionTests.tests.management.JMXConnectionDecorator
> 44. [javac] JMXServiceURL url = new JMXServiceURL(
> 45. [javac] ^
> 46. [javac]
> /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/JMXConnectionDecorator.java:102:
> cannot find symbol
> 47. [javac] symbol : class JMXServiceURL
> 48. [javac] location: class
> org.apache.derbyTesting.functionTests.tests.management.JMXConnectionDecorator
> 49. [javac] JMXServiceURL url = new JMXServiceURL(
> 50. [javac] ^
> 51. [javac]
> /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:39:
> cannot find symbol
> 52. [javac] symbol : class JMXConnector
> 53. [javac] location: class
> org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
> 54. [javac] new
> ThreadLocal<Map<MBeanServerConnection,JMXConnector>>();
> 55. [javac] ^
> 56. [javac]
> /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:57:
> cannot find symbol
> 57. [javac] symbol : class JMXConnector
> 58. [javac] location: class
> org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
> 59. [javac] JMXConnector jmxc =
> JMXConnectorFactory.connect(url, env);
> 60. [javac] ^
> 61. [javac]
> /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:57:
> cannot find symbol
> 62. [javac] symbol : variable JMXConnectorFactory
> 63. [javac] location: class
> org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
> 64. [javac] JMXConnector jmxc =
> JMXConnectorFactory.connect(url, env);
> 65. [javac] ^
> 66. [javac]
> /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:60:
> cannot find symbol
> 67. [javac] symbol : class JMXConnector
> 68. [javac] location: class
> org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
> 69. [javac] Map<MBeanServerConnection,JMXConnector> conns =
> connections.get();
> 70. [javac] ^
> 71. [javac]
> /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:62:
> cannot find symbol
> 72. [javac] symbol : class JMXConnector
> 73. [javac] location: class
> org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
> 74. [javac] conns = new
> HashMap<MBeanServerConnection,JMXConnector>();
> 75. [javac] ^
> 76. [javac]
> /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:72:
> cannot find symbol
> 77. [javac] symbol : class JMXConnector
> 78. [javac] location: class
> org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
> 79. [javac] Map<MBeanServerConnection,JMXConnector> conns =
> connections.get();
> 80. [javac] ^
> 81. [javac]
> /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/RemoteConnectionGetter.java:73:
> cannot find symbol
> 82. [javac] symbol : class JMXConnector
> 83. [javac] location: class
> org.apache.derbyTesting.functionTests.tests.management.RemoteConnectionGetter
> 84. [javac] JMXConnector jmxc =
> conns.remove(jmxConnection);
> 85. [javac] ^
> 86. [javac] 17 errors
> 87.
> 88. BUILD FAILED
> 89. /home/siddharth/der/build.xml:584: The following error occurred
> while executing this line:
> 90. /home/siddharth/der/java/testing/build.xml:80: The following error
> occurred while executing this line:
> 91. /home/siddharth/der/java/testing/org/apache/derbyTesting/functionTests/tests/management/build.xml:53:
> Compile failed; see the compiler error output for details.
> 92.
> 93. Total time: 15 seconds
>
>
> The output of java -jar jars/sane/derbyrun.jar sysinfo is:
>
> ------------------ Java Information ------------------
>> Java Version: 1.6.0_20
>> Java Vendor: Sun Microsystems Inc.
>> Java home: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
>> Java classpath: jars/sane/derbyrun.jar
>> OS name: Linux
>> OS architecture: amd64
>> OS version: 2.6.35.9-64.fc14.x86_64
>> Java user name: siddharth
>> Java user home: /home/siddharth
>> Java user dir: /home/siddharth/der
>> java.specification.name: Java Platform API Specification
>> java.specification.version: 1.6
>> java.runtime.version: 1.6.0_20-b20
>> --------- Derby Information --------
>> JRE - JDBC: Java SE 6 - JDBC 4.0
>> [/home/siddharth/der/jars/sane/derby.jar] 10.8.0.0 alpha - (1050393)
>> [/home/siddharth/der/jars/sane/derbytools.jar] 10.8.0.0 alpha - (1050393)
>> [/home/siddharth/der/jars/sane/derbynet.jar] 10.8.0.0 alpha - (1050393)
>> [/home/siddharth/der/jars/sane/derbyclient.jar] 10.8.0.0 alpha - (1050393)
>> ------------------------------------------------------
>> ----------------- Locale Information -----------------
>> Current Locale : [English/United States [en_US]]
>> Found support for locale: [cs]
>> version: 10.8.0.0 alpha - (1050393)
>> Found support for locale: [de_DE]
>> version: 10.8.0.0 alpha - (1050393)
>> Found support for locale: [es]
>> version: 10.8.0.0 alpha - (1050393)
>> Found support for locale: [fr]
>> version: 10.8.0.0 alpha - (1050393)
>> Found support for locale: [hu]
>> version: 10.8.0.0 alpha - (1050393)
>> Found support for locale: [it]
>> version: 10.8.0.0 alpha - (1050393)
>> Found support for locale: [ja_JP]
>> version: 10.8.0.0 alpha - (1050393)
>> Found support for locale: [ko_KR]
>> version: 10.8.0.0 alpha - (1050393)
>> Found support for locale: [pl]
>> version: 10.8.0.0 alpha - (1050393)
>> Found support for locale: [pt_BR]
>> version: 10.8.0.0 alpha - (1050393)
>> Found support for locale: [ru]
>> version: 10.8.0.0 alpha - (1050393)
>> Found support for locale: [zh_CN]
>> version: 10.8.0.0 alpha - (1050393)
>> Found support for locale: [zh_TW]
>> version: 10.8.0.0 alpha - (1050393)
>>
>>
> How can I solve this ?
>
> Thanks
> --
> Siddharth Srivastava
>
> When you have learned to snatch the error code from the trap frame, it will
> be time for you to leave.
>
--
Best Regards,
Nirmal
C.S.Nirmal J. Fernando
Department of Computer Science & Engineering,
Faculty of Engineering,
University of Moratuwa,
Sri Lanka.
Blog: http://nirmalfdo.blogspot.com/