Hi, Muthu. It looks like there was a bug in the 2.1 client SimpleInterface tool. I fixed this a couple of months ago. Sorry about the confusion.
The latest version of the client with the bug fix has not been released. But you can download the latest code and do your own build. Just connect to my SJ server: URL: http://dev.sourcejammer.org Archive name: SourceJammer User: anon Password: anon Location: /SourceJammer/current/ver2.1/ Just get everything and do a build using the build.xml file in the build/bin/ant directory. You need to have Ant installed to build SJ using this build script. If you don't have Ant and don't want to mess around with the build script, you can try to compile the SJ client using Eclipse or some other IDE. You'll need all the .jar files in the lib/client and lib/core folders and you'll need to compile the sourcejammer library code first. Good luck. And sorry about the confusion. --Rob --- Muthu Kumaran <[EMAIL PROTECTED]> wrote: > sir, > I verified that i am using sourcejammer client2.1. > What may be the other causes for this problem? > Please verify. > Thanking you, > yours, > N.Muthukkumaran > > > On Tue, 20 Apr 2004 Robert MacGrogan wrote : > >The getSelectedFileNodeInfo() method should only be called if you're using the 2.0 > >sourcejammer > >client. If you're using the 2.1 sourcejammer server you also need to us the 2.1 > >sourcejammer > >client. So it looks like you need to upgrade your client. > > > >Thanks. > > > >--Rob > > > > > >--- Muthu Kumaran <[EMAIL PROTECTED]> wrote: > > > Sir, > > > After creating the D:\Test folder i got the following error. > > > OUTPUT: > > > -------- > > > D:\SJ>java SjCheckout "Nucor/AppRights/Validate.js" "Validate.js" "Muthu" "men" > > > "D:\Test" > > > ac - D:\SJ\conf.xml > > > ac - C:\SourceJammer2.1\client\conf\conf.xml > > > cc - C:\SourceJammer2.1\client\conf\clientconf.xml > > > Connected to Annamsoft @ http://sun:8080/sourcejammer/servlet/rpcrouter > > > # Connected to archive Annamsoft. > > > 714 > > > Exception in thread "main" java.lang.NullPointerException > > > at org.sourcejammer.client.gui.CommandCentral.getSelectedFileNodeInfo(Un > > > known Source) > > > at org.sourcejammer.client.gui.CommandCentral.checkOutFile(Unknown Sourc > > > e) > > > at org.sourcejammer.client.simpletools.SimpleInterface.checkOutFile(Unkn > > > own Source) > > > at SjCheckout.main(SjCheckout.java:30) > > > > > > > > > > > > Please mail me what may be the problem. > > > Yours, > > > N.Muthukkumaran > > > > >--------------------------------------------------------------------------------------------------------------------------------------- > > > On Mon, 19 Apr 2004 Robert MacGrogan wrote : > > > >My guess is that the directory "D:\Test" does not exist. If so, that would > > > >cause the > problem > > > >you're seeing. > > > > > > > >--Rob > > > > > > > > > > > >--- Muthu Kumaran <[EMAIL PROTECTED]> wrote: > > > > > Sir, > > > > > Two months back i mailed you about my problem in checkout using > > > > > SimpleInterface. You may > > > > > remember it or not. The problem was solved at that time. But now i upgraded > > > > > my > sourcejammer > > > > > version to 2.1. > > > > > Now i'm getting same(or may be different) errors. This time i'm getting > > > > > problems in > getfile, > > > > > checkout, getlabel, makelabel.... > > > > > > > > > > Here i pasted my code and output. > > > > > > > > > > CODE: > > > > > ----- > > > > > > > > > > import org.sourcejammer.client.simpletools.SimpleInterface; > > > > > import org.sourcejammer.project.view.Project; > > > > > > > > > > import java.io.*; > > > > > public class SjCheckout > > > > > { > > > > > public static void main(String args[]) > > > > > { > > > > > > > > > > try > > > > > { > > > > > //Get the Command line arguments and save them in > > > > > corresponding variables. > > > > > String strFileToGet = args[0]; > > > > > String strFileName = args[1]; > > > > > String strUserName = args[2]; > > > > > String strPwd = args[3]; > > > > > String strTargetDirectory = args[4]; > > > > > > > > > > SimpleInterface si = SimpleInterface.getInstance(); > > > > > si.setOut(System.out); > > > > > si.setConfDirectory( new > > > > > File("C:/SourceJammer2.1/client/conf")); > > > > > > > > > > //Connect to SJ archive using URL and given username and pwd. > > > > > Project project = > si.connect("Annamsoft","http://sun:8080/sourcejammer/servlet/rpcrouter", > > > > > strUserName, strPwd); > > > > > > > > > > long lFileId = si.getFileUniqueID(strFileToGet); > > > > > File fTarget =new File(strTargetDirectory); > > > > > > > > > > System.out.println(lFileId); > > > > > si.checkOutFile(lFileId,strFileName,fTarget, 2); > > > > > si.disconnect(); > > > > > > > > > > } > > > > > catch(java.net.MalformedURLException e) > > > > > { > > > > > e.printStackTrace(); > > > > > } > > > > > catch(java.io.IOException e) > > > > > { > > > > > e.printStackTrace(); > > > > > } > > > > > catch(org.sourcejammer.util.SourceJammerConnectionException e) > > > > > { > > > > > e.printStackTrace(); > > > > > } > > > > > catch(org.sourcejammer.client.gui.GUICommandException e) > > > > > { > > > > > e.printStackTrace(); > > > > > } > > > > > catch(org.sourcejammer.client.NoSessionException e) > > > > > { > > > > > e.printStackTrace(); > > > > > } > > > > > } > > > > > } > > > > > > > > > > > >-------------------------------------------------------------------------------------------------------------------------------------------- > > > > > OUTPUT: > > > > > ------- > > > > > D:\SJ>java SjCheckout "Nucor/AppRights/Validate.js" "Validate.js" "Muthu" > > > > > "men" > > > > > "D:\Test" > > > > > ac - D:\SJ\conf.xml > > > > > ac - C:\SourceJammer2.1\client\conf\conf.xml > > > > > cc - C:\SourceJammer2.1\client\conf\clientconf.xml > > > > > Connected to Annamsoft @ http://sun:8080/sourcejammer/servlet/rpcrouter > > > > > # Connected to archive Annamsoft. > > > > > 714 > > > > > Exception in thread "main" java.lang.NullPointerException > > > > > at > > > > > org.sourcejammer.client.filesys.SourceVersionChecker.isFileCurrent(Un > > > > > known Source) > > > > > at org.sourcejammer.client.gui.CommandCentral.checkOutFile(Unknown > > > > > Sourc > > > > > e) > > > > > at > > > > > org.sourcejammer.client.simpletools.SimpleInterface.checkOutFile(Unkn > > > > > own Source) > > > > > at SjCheckout.main(SjCheckout.java:30) > > > > > > > > > > > > > > > -------------------------------------------------------------------- > > > > > -------------------------------------------------------------------- > > > > > > > > > > sir here i'm pasting two of your mails which you sent two months back. > > > > > > > > > > Mail 1: > > > > > --------- > > > > > > > > > > Actually, the output you're getting this time is different. Here's your > > > > > output from > before: > > > > > > > > > > > > OUTPUT: > > > > > > > ------- > > > > > > > D:\SJ>java SjCheckout "Test/ABNAMROFAQ.txt" "ABNAMROFAQ.txt" "--" "--" > > > > > > > "S:\Test" > > > > > > > ac - D:\SJ\conf.xml > > > > > > > ac - C:\Program Files\SourceJammer\client\conf\conf.xml > > > > > > > cc - C:\Program Files\SourceJammer\client\conf\clientconf.xml > > > > > > > Connected to Annamsoft @ http://sun:8080/sourcejammer/servlet/rpcrouter > > > > > > > # Connected to archive Annamsoft. > > > > > > > 659 > > > > > > > Local version is current. > > > > > > > Exception in thread "main" java.lang.NullPointerException > > > > > > > at > > > > > > > org.sourcejammer.client.gui.CommandCentral.getSelectedFileNodeInfo(Co > > > > > > > mmandCentral.java:279) > > > > > > > at > > > > > > > org.sourcejammer.client.gui.CommandCentral.checkOutFile(CommandCentra > > > > > > > l.java:1109) > > > > > > > at > > > > > > > org.sourcejammer.client.simpletools.SimpleInterface.checkOutFile(Simp > > > > > > > leInterface.java:214) > > > > > > > at SjCheckout.main(SjCheckout.java:30) > > > > > > > > > > > > > > > > > If you compare this to the output you just sent me, you'll see that the > > > > > output you just > sent > > > > > > > > > > does > > > > > not contain the message "Local version is current." Also, notice that the > > > > > previous > output > > > > > > > > > > shows > > > > > NullPointerException coming from CommandCentral.getSelectedFileNodeInfo(). > > > > > The Output > you > > > > > > > > > > just > > > > > sent shows NullPointer coming from Hashtable by way of > SourceVersionChecker.isFileCurrent(). > > > > > > > > > > My guess is that you typed in the target directory incorrectly in your input > > > > > parameters, > or > > > > > something like that. > > > > > > > > > > --Rob > > > > > > > > > > --- Muthu Kumaran <[EMAIL PROTECTED]> wrote: > > > > > > Sir, > > > > > > I updated the sj_client.jar file. > > > > > > But still i am getting the error. > > > > > > Are you able to re-create the error there? > > > > > > This is the error message i got while doing checkout. > > > > > > I haven't changed the code or commandline parameters. > > > > > > > > > > > > OUTPUT: > > > > > > ------- > > > > > > D:\SJ>java SjCheckout "Test/ABNAMROFAQ.txt" "ABNAMROFAQ.txt" "Muthu" > > > > > > "software2 > > > > > > 000" "D:\Test". > > > > > > ac - D:\SJ\conf.xml > > > > > > ac - C:\Program Files\SourceJammer\client\conf\conf.xml > > > > > > cc - C:\Program Files\SourceJammer\client\conf\clientconf.xml > > > > > > Connected to Annamsoft @ http://sun:8080/sourcejammer/servlet/rpcrouter > > > > > > # Connected to archive Annamsoft. > > > > > > 659 > > > > > > Exception in thread "main" java.lang.NullPointerException > > > > > > at java.util.Hashtable.get(Hashtable.java:333) > > > > > > at > > > > > > org.sourcejammer.client.filesys.SourceVersionChecker.isFileCurrent(So > > > > > > urceVersionChecker.java:241) > > > > > > at > > > > > > org.sourcejammer.client.gui.CommandCentral.checkOutFile(CommandCentra > > > > > > l.java:1095) > > > > > > at > > > > > > org.sourcejammer.client.simpletools.SimpleInterface.checkOutFile(Simp > > > > > > leInterface.java:217) > > > > > > at SjCheckout.main(SjCheckout.java:30) > > > > > > > > > > > > Please mail me. > > > > > > Yours, > > > > > > N.Muthukkumaran > > > > > > > > > > > > On Mon, 16 Feb 2004 Robert MacGrogan wrote : > > > > > > >OK. > > > > > > > > > > > > > >I've created a patch. Just get the latest sj_client.jar from here: > > > > > > > > > > > > > >http://dev.sourcejammer.org/ShowFile?archive_name=SourceJammer&id=5256 > > > > > > > > > > > > > >And replace your current sj_client.jar with this one. Please let me know > > > > > > >if this > fixes > > > > > > > > > > the > > > > > > >problem. > > > > > > > > > > > > > >Thanks. > > > > > > > > > > > > > >--Rob > > > > > > > > > > > > > > > > > > > > >--- Muthu Kumaran <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > > Sir, > > > > > > > > Thank you for your reply. > > > > > > > > Can you tell me any workaround or quickfix for this problem, so that i > > > > > > > > can > complete my > > > > > > > > commandline execution. > > > > > > > > or please tell me when will i get the corrected version.I hope you > > > > > > > > will help me by > > > > > > > > > > providing > > > > > > > > these details. > > > > > > > > Yours, > > > > > > > > n.muthukkumaran > > > > > > > > > > > > > > > > >-------------------------------------------------------------------------------------------------------------------------------------------- > > > > > > > > > > Mail 2: > > > > > ------- > > > > > OK. > > > > > > > > > > I looked at the code a little more closely and saw that you were right. > > > > > There was > another > > > > > > > > > > bug in > > > > > there. Sorry about that. > > > > > > > > > > I've just compiled a new .jar file. You can get it here: > > > > > > > > > > http://dev.sourcejammer.org/ShowFile?archive_name=SourceJammer&id=5256 > > > > > > > > > > I tested this one using your code and checkout worked fine for me. > > > > > > > > > > Let me know how it goes. > > > > > > > > > > --Rob > > > > > > > > > > > > > > > > > > > > > >-------------------------------------------------------------------------------------------------------------------------------------------- > > > > > > > > > > > > > > > I hope you will mail me with appropriate solution. > > > > > Thanking you. > > > > > > > > > > Yours, > > > > > N.Muthukkumaran > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >__________________________________ > > > >Do you Yahoo!? > > > >Yahoo! Photos: High-quality 4x6 digital prints for 25� > > > >http://photos.yahoo.com/ph/print_splash > > > > > > > > > > > > > > >__________________________________________________ > >Do You Yahoo!? > >Tired of spam? Yahoo! Mail has the best spam protection around > >http://mail.yahoo.com > > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th! http://www.thinkgeek.com/freeshipping/?cpg=12297 _______________________________________________ SourceJammer-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/sourcejammer-devel
