ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 17597] New: - Execute.getProcEnvironment causes Exception in combination with a MySQL database
Date Mon, 03 Mar 2003 15:02:00 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17597>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17597

Execute.getProcEnvironment causes Exception in combination with a MySQL database

           Summary: Execute.getProcEnvironment causes Exception in
                    combination with a MySQL database
           Product: Ant
           Version: 1.5.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: UNCONFIRMED
          Severity: Normal
          Priority: Other
         Component: Other
        AssignedTo: dev@ant.apache.org
        ReportedBy: wegnerj@informatik.uni-tuebingen.de


Hello,

i used your ANT1.5.1 org.apache.tools.ant.taskdefs.Execute.getProcEnvironment
method to get the System properties under W2K(Service Pack3) with SUN's JDK1.4.1_01.
When trying to access a MySQL database the complete application crashes.
I've solved this by NOT USING getProcEnvironment for this application !;-)
I can't point to the problem, even before loading the database driver with
reflection the application crashes.
Also when trying to access a remote database the application crashes.
When not trying to access a database, all seems to work fine.

Calling process:
ANT for calling application which calls getProcEnvironment to resolve path for
loading shared library. Database is MySQL and i accessed with
org.gjt.mm.mysql.Driver

See error in attachement.

Regards, Joerg

java.lang.OutOfMemoryError: unable to create new native thread
    at java.lang.Thread.start(Native Method)
    at...tools.ant.taskdefs.PumpStreamHandler.start(PumpStreamHandler.java:106)
    at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:440)
    atorg.apache.tools.ant.taskdefs.Execute.getProcEnvironment(Execute.java:180)
    at wsi.ra.tool.SystemHelper.loadOSEnvironment(SystemHelper.java:126)

Mime
View raw message