commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rafael, Joaquim Joao" <jraf...@indracpc.pt>
Subject RE: can i make commons-net-1.1.0.jar to work on jdk1.2.2_07 ?
Date Thu, 08 Jan 2004 14:48:03 GMT
It worked!
Thanks.

-----Original Message-----
From: Jeffrey D. Brekke [mailto:jbrekke@wi.rr.com] 
Sent: quinta-feira, 8 de Janeiro de 2004 13:49
To: Jakarta Commons Users List
Subject: Re: can i make commons-net-1.1.0.jar to work on jdk1.2.2_07 ?



Try disabling the JIT and running.  Does that work?

>>>>> On Thu, 08 Jan 2004 11:00:36 +0000, "Rafael, Joaquim Joao" 
>>>>> <jrafael@indracpc.pt> said:

> i used the commons-net-1.1.0 source downloaded from the downloads 
> section. i read the todo for development and i noticed that trying to 
> separate the TelnetClient from the FTP portion is one of the tasks, 
> since some platforms (MacOS) give the error i noticed - . i use 
> windows xp professional.


> well i tried to build a jar with jdk1.2.2 and failed the tests, here 
> is the output of the build:


> D:\projectos\aps\sds\workspace\CommonsNet>java -version java version 
> "1.2.2" Classic VM (build JDK-1.2.2_007, native threads, symcjit)

> D:\projectos\aps\sds\workspace\CommonsNet>
> D:\projectos\aps\sds\workspace\CommonsNet>ant -logfile 
> commons-net-1.1.0.build.log Buildfile: build.xml A nonfatal internal 
> JIT (3.10.107(x)) error 'chgTarg: Conditional' has occurred in : 
> 'org/apache/tools/ant/Project.addReference
> (Ljava/lang/String;Ljava/lang/Object;)V': Interpreting method. Please 
> report this error in detail to 
> http://java.sun.com/cgi-bin/bugreport.cgi

> A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has

> occurred in : 'org/apache/tools/ant/Project.fireMessageLoggedEvent
> (Lorg/apache/tools/ant/BuildEvent;Ljava/lang/String;I)V':
> Interpreting method.  Please report this error in detail to
> http://java.sun.com/cgi-bin/bugreport.cgi

> A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has

> occurred in : 'org/apache/tools/ant/ComponentHelper.addCreatedTask
> (Ljava/lang/String;Lorg/apache/tools/ant/Task;)V': Interpreting
> method.  Please report this error in detail to
> http://java.sun.com/cgi-bin/bugreport.cgi

> A nonfatal internal JIT (3.10.107(x)) error 'chgTarg: Conditional' has

> occurred in : 
> 'org/apache/tools/ant/ComponentHelper.getDataTypeDefinitions
> ()Ljava/util/Hashtable;': Interpreting method.  Please report this 
> error in detail to http://java.sun.com/cgi-bin/bugreport.cgi

> D:\projectos\aps\sds\workspace\CommonsNet>



> and here is the produced log file:


> init:

> get-deps: [get] Getting: 
> http://www.ibiblio.org/maven/oro/jars/oro-2.0.7.jar [get] Error 
> getting http://www.ibiblio.org/maven/oro/jars/oro-2.0.7.jar to 
> D:\projectos\aps\sds\workspace\CommonsNet\target\lib\oro-2.0.7.jar
> [get] Getting: http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar

> [get] Error getting 
> http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar to 
> D:\projectos\aps\sds\workspace\CommonsNet\target\lib\junit-3.8.1.jar
> [get] Getting: http://www.ibiblio.org/maven/ant/jars/ant-1.5.jar
> [get] Error getting http://www.ibiblio.org/maven/ant/jars/ant-1.5.jar 
> to D:\projectos\aps\sds\workspace\CommonsNet\target\lib\ant-1.5.jar
> [get] Getting:
> http://www.ibiblio.org/maven/ant/jars/ant-optional-1.5.jar [get]
> Error getting
> http://www.ibiblio.org/maven/ant/jars/ant-optional-1.5.jar to
>
D:\projectos\aps\sds\workspace\CommonsNet\target\lib\ant-optional-1.5.ja
> r [NOTE] i caused an error due to the proxy so I downloaded the jars
> and put them in the right place (target/lib) [NOTE]

> compile: [mkdir] Created dir: 
> D:\projectos\aps\sds\workspace\CommonsNet\target\classes [javac] 
> Compiling 100 source files to 
> D:\projectos\aps\sds\workspace\CommonsNet\target\classes

> compile-tests: [mkdir] Created dir: 
> D:\projectos\aps\sds\workspace\CommonsNet\target\test-classes
> [javac] Compiling 17 source files to 
> D:\projectos\aps\sds\workspace\CommonsNet\target\test-classes

> internal-test: [mkdir] Created dir: 
> D:\projectos\aps\sds\workspace\CommonsNet\target\test-reports
> [junit] java.lang.IllegalMonitorStateException: current thread not 
> owner [junit] at 
> org.apache.tools.ant.taskdefs.StreamPumper.run(StreamPumper.java,
> Compiled Code) [junit] at java.lang.Thread.run(Thread.java:479)
> [junit] java.lang.IllegalMonitorStateException: current thread not 
> owner [junit] at 
> org.apache.tools.ant.taskdefs.StreamPumper.run(StreamPumper.java,
> Compiled Code) [junit] at java.lang.Thread.run(Thread.java:479)

> then the ant froze.

> Note2: I needed to change the source to meet jdk1.2 compiler (casting 
> to byte when needed)


> -----Original Message----- From: Jeffrey D. Brekke 
> [mailto:jbrekke@wi.rr.com] Sent: quarta-feira, 7 de Janeiro de 2004 
> 13:44 To: Jakarta Commons Users List Subject: Re: can i make 
> commons-net-1.1.0.jar to work on jdk1.2.2_07 ?



> I'm not sure about this one.  We recently tagged a version in cvs that

> should be 1.1 compatible and now are moving towards 1.2 compatibility.

> What platform are you on?  This doesn't look like a jvm version 
> issue...

> You could always pull the source for commons-net down and build a jar 
> of it with your jdk.  Please report back if you try that.

>>>>> On Wed, 07 Jan 2004 10:52:19 +0000, "Rafael, Joaquim Joao" 
>>>>> <jrafael@indracpc.pt> said:

>> I need help!  I was working on a project using commons-net-1.1.0.jar 
>> (ftp related parts), when i realized that the jdk the client had was 
>> 1.2.2_07. So i tried to compile using that, no problems. But when i 
>> tried to execute the tests this came up...
 
>> java.lang.IllegalMonitorStateException: current thread not owner at 
>> org.apache.commons.net.telnet.TelnetInputStream.available(TelnetInput
>> S
>> tr eam.java, Compiled Code) at
>> java.io.BufferedInputStream.read(BufferedInputStream.java:287) at
>> java.io.FilterInputStream.read(FilterInputStream.java:97) at
>> java.io.InputStreamReader.fill(InputStreamReader.java:163) at
>> java.io.InputStreamReader.read(InputStreamReader.java:239) at
>> java.io.BufferedReader.fill(BufferedReader.java:137) at
>> java.io.BufferedReader.readLine(BufferedReader.java:274) at
>> java.io.BufferedReader.readLine(BufferedReader.java:329) at
>> org.apache.commons.net.ftp.FTP.__getReply(FTP.java, Compiled Code)
>> at org.apache.commons.net.ftp.FTP._connectAction_(FTP.java:361) at
>> 
> org.apache.commons.net.ftp.FTPClient._connectAction_(FTPClient.java:50
> 6)
>> at
>> org.apache.commons.net.SocketClient.connect(SocketClient.java:202)
>> at
>> org.apache.commons.net.SocketClient.connect(SocketClient.java:289)
>> at
>> 
> pt.indracpc.aps.broker.FileBrokerFtp.connectToFtpServer(FileBrokerFtp.
> ja
>> va:348) at
>> 
> pt.indracpc.aps.broker.FileBrokerFtp.receiveFiles(FileBrokerFtp.java:1
> 57
>> ) at
>> 
> tests.pt.indracpc.aps.broker.TestFileBroker.testGetFiles(TestFileBroke
> r.
>> java, Compiled Code) at java.lang.reflect.Method.invoke(Native
>> Method) at junit.framework.TestCase.runTest(TestCase.java:154) at
>> junit.framework.TestCase.runBare(TestCase.java:127) at
>> junit.framework.TestResult$1.protect(TestResult.java:106) at
>> junit.framework.TestResult.runProtected(TestResult.java:124) at
>> junit.framework.TestResult.run(TestResult.java:109) at
>> junit.framework.TestCase.run(TestCase.java:118) at
>> junit.framework.TestSuite.runTest(TestSuite.java:208) at 
>> junit.framework.TestSuite.run(TestSuite.java, Compiled Code) at
>> 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(Remote
> Te
>> stRunner.java, Compiled Code) at
>> 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestR
> un
>> ner.java:276) at
>> 
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTest
> Ru
>> nner.java:167)
 
>> Is commons-net-1.1.0.jar incompatible with jdk1.2.2_07 ?  Can i use 
>> an older package that has a similar API? So i can refactor some of 
>> the work but don't lose too many source code I invested?
 
>> Any light on the subject would be appreciated, Thanks.
 
>> __________________________ joao rafael INDRA Cpc jrafael@indracpc.pt
 

>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: commons-user-help@jakarta.apache.org

> -- 
> =====================================================================
> Jeffrey D. Brekke jbrekke@wi.rr.com Wisconsin, USA brekke@apache.org 
> ekkerbj@yahoo.com


> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org


> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org

-- 
=====================================================================
Jeffrey D. Brekke                                   jbrekke@wi.rr.com
Wisconsin,  USA                                     brekke@apache.org
                                                    ekkerbj@yahoo.com


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message