db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Susan Cline (JIRA)" <derby-...@db.apache.org>
Subject [jira] Commented: (DERBY-1152) Failures in sysinfo and sysinfo_withproperties induced by classpath wiring
Date Wed, 06 Sep 2006 21:38:23 GMT
    [ http://issues.apache.org/jira/browse/DERBY-1152?page=comments#action_12432973 ] 
            
Susan Cline commented on DERBY-1152:
------------------------------------

I am running through the examples in the alpha version of the docs for sysinfo.

On this page: http://db.apache.org/derby/docs/dev/tools/rtoolssysinfo41288.html

is this statement:

Use the sysinfo utility to display information about your Java environment and Derby (including
version information). To use sysinfo, either derby.jar or derbytools.jar must be in your classpath.


However, the output when including *only* derby.jar or derbytools.jar is different. Derbytools.jar
output does not include locale information.  Am I correct in assuming this bug was supposed
to fix the output of sysinfo to be the same for derby.jar and derbytools.jar when only one
or the other of those was in the classpath?  Or is the behaviour I am seeing correct?

If it is correct I'll reflect that in the doc review and state that the output should be different
if only one or the other is in the classpath.

Output when only derby.jar is in the classpath:

C:\derby_src\db-derby-10.2.1.2-bin\demo\databases>set CLASSPATH=C:\derby_src\db-
derby-10.2.1.2-bin\lib\derby.jar;

C:\derby_src\db-derby-10.2.1.2-bin\demo\databases>java org.apache.derby.tools.sy
sinfo
------------------ Java Information ------------------
Java Version:    1.4.2_09
Java Vendor:     Sun Microsystems Inc.
Java home:       C:\JDK\jdk1.4.2_09\jre
Java classpath:  C:\derby_src\db-derby-10.2.1.2-bin\lib\derby.jar;
OS name:         Windows XP
OS architecture: x86
OS version:      5.1
Java user name:  slc
Java user home:  C:\Documents and Settings\Administrator
Java user dir:   C:\derby_src\db-derby-10.2.1.2-bin\demo\databases
java.specification.name: Java Platform API Specification
java.specification.version: 1.4
--------- Derby Information --------
JRE - JDBC: J2SE 1.4.2 - JDBC 3.0
[C:\derby_src\db-derby-10.2.1.2-bin\lib\derby.jar] 10.2.1.2 beta - (439408)
------------------------------------------------------
----------------- Locale Information -----------------
Current Locale :  [English/United States [en_US]]
Found support for locale: [de_DE]
         version: 10.2.1.2 - (439408)
Found support for locale: [es]
         version: 10.2.1.2 - (439408)
Found support for locale: [fr]
         version: 10.2.1.2 - (439408)
Found support for locale: [it]
         version: 10.2.1.2 - (439408)
Found support for locale: [ja_JP]
         version: 10.2.1.2 - (439408)
Found support for locale: [ko_KR]
         version: 10.2.1.2 - (439408)
Found support for locale: [pt_BR]
         version: 10.2.1.2 - (439408)
Found support for locale: [zh_CN]
         version: 10.2.1.2 - (439408)
Found support for locale: [zh_TW]
         version: 10.2.1.2 - (439408)
------------------------------------------------------

Output when only derbytools.jar is in the classpath:

C:\derby_src\db-derby-10.2.1.2-bin\demo\databases>set CLASSPATH=C:\derby_src\db-
derby-10.2.1.2-bin\lib\derbytools.jar;

C:\derby_src\db-derby-10.2.1.2-bin\demo\databases>java org.apache.derby.tools.sy
sinfo
------------------ Java Information ------------------
Java Version:    1.4.2_09
Java Vendor:     Sun Microsystems Inc.
Java home:       C:\JDK\jdk1.4.2_09\jre
Java classpath:  C:\derby_src\db-derby-10.2.1.2-bin\lib\derbytools.jar;
OS name:         Windows XP
OS architecture: x86
OS version:      5.1
Java user name:  slc
Java user home:  C:\Documents and Settings\Administrator
Java user dir:   C:\derby_src\db-derby-10.2.1.2-bin\demo\databases
java.specification.name: Java Platform API Specification
java.specification.version: 1.4
--------- Derby Information --------
JRE - JDBC: J2SE 1.4.2 - JDBC 3.0
[C:\derby_src\db-derby-10.2.1.2-bin\lib\derbytools.jar] 10.2.1.2 beta - (439408)

------------------------------------------------------
----------------- Locale Information -----------------
------------------------------------------------------


> Failures in sysinfo and sysinfo_withproperties induced by classpath wiring
> --------------------------------------------------------------------------
>
>                 Key: DERBY-1152
>                 URL: http://issues.apache.org/jira/browse/DERBY-1152
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.2.1.0
>            Reporter: Rick Hillegas
>         Assigned To: Bryan Pendleton
>             Fix For: 10.2.1.0
>
>         Attachments: derby-1152-looser-policy.diff
>
>
> If you wire your classpath together out of the compiled classtree and the checked-in
jars, you get the following error in the sysinfo and sysinfo_withproperties tests. You don't
see this error if you run against the built Derby jar files:
> 15d14
> < Unable to analyze class path: access denied (java.util.PropertyPermission java.class.path
read)
> 43d41
> < Unable to analyze class path: access denied (java.util.PropertyPermission java.class.path
read)
> 72d69
> < Unable to analyze class path: access denied (java.util.PropertyPermission java.class.path
read)
> Test Failed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message