Bug 699504

Summary: Java Exception when starting Derby
Product: [Fedora] Fedora Reporter: Harm-Jan <hz0885>
Component: derbyAssignee: Lubomir Rintel <lkundrak>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: lkundrak
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-25 20:02:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Harm-Jan 2011-04-25 19:58:15 UTC
Description of problem:
Java Exception when starting Derby

Version-Release number of selected component (if applicable):
Derby version 10.6.1.0 installed with yum from standard location.

How reproducible:
In a console start /usr/bin/derby-ij

Steps to Reproduce:
1. Open a console
2. su
3. /usr/bin/derby-ij

Actual results:
Java Exception

Expected results:
Starting database SQL client

Additional info:
There are 5 scripts derby-* in /usr/bin linked into 1 script file.

Last line is the cause:
run "$CLASS" "$@"

To solve:
1. change last line to
MAIN_CLASS="$CLASS"
run "$@"

2. Change in the whole script CLASS to MAIN_CLASS

3. Chnage run function in
   /usr/share/java-utils/java-functions
   to accept arguments; make it more intuitive.

Comment 1 Harm-Jan 2011-04-25 20:02:39 UTC

*** This bug has been marked as a duplicate of bug 668828 ***