Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 70254 invoked from network); 8 Jan 2004 11:04:06 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 8 Jan 2004 11:04:06 -0000 Received: (qmail 69169 invoked by uid 500); 8 Jan 2004 11:03:32 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 69138 invoked by uid 500); 8 Jan 2004 11:03:32 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 69119 invoked from network); 8 Jan 2004 11:03:30 -0000 Received: from unknown (HELO poroliimc1.indra.es) (62.48.168.67) by daedalus.apache.org with SMTP; 8 Jan 2004 11:03:30 -0000 Received: from poroliex01.indra.es ([62.48.168.65]) by poroliimc1.indra.es with Microsoft SMTPSVC(5.0.2195.5329); Thu, 8 Jan 2004 11:00:37 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: can i make commons-net-1.1.0.jar to work on jdk1.2.2_07 ? Date: Thu, 8 Jan 2004 11:00:36 -0000 Message-ID: <41B8A9450857F847B8B87B98D528A0ADD1EAA1@poroliex01.indra.es> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: can i make commons-net-1.1.0.jar to work on jdk1.2.2_07 ? Thread-Index: AcPVJo4h8vz/hbfgRSaP+OZoL1IuCgAB9Mfg From: "Rafael, Joaquim Joao" To: "Jakarta Commons Users List" X-OriginalArrivalTime: 08 Jan 2004 11:00:37.0230 (UTC) FILETIME=[A57790E0:01C3D5D6] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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]=20 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" >>>>> 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=20 > 1.2.2_07. So i tried to compile using that, no problems. But when i=20 > tried to execute the tests this came up... =20 > java.lang.IllegalMonitorStateException: current thread not owner at > org.apache.commons.net.telnet.TelnetInputStream.available(TelnetInputS > 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:506) > 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:157 > ) at > tests.pt.indracpc.aps.broker.TestFileBroker.testGetFiles(TestFileBroker. > 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(RemoteTe > stRunner.java, Compiled Code) at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRun > ner.java:276) at > org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRu > nner.java:167) =20 > 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=20 > work but don't lose too many source code I invested? =20 > Any light on the subject would be appreciated, Thanks. =20 > __________________________ joao rafael INDRA Cpc jrafael@indracpc.pt =20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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