johannesbuchner / jarsync Goto Github PK
View Code? Open in Web Editor NEWJava implementation of the Rsync protocol based on Jarsync by Casey Marshall
Home Page: http://jakeapp.sourceforge.net/jarsync/
Java implementation of the Rsync protocol based on Jarsync by Casey Marshall
Home Page: http://jakeapp.sourceforge.net/jarsync/
Hi,
I'm very interested in using your library to make rsync calls from an applet but I'm facing a NullPointerException.
Here's the complete log :
jarsync: starting socket client to percom1.perinfo.com:873
[main] [DEBUG] rsync.v2.startSocketClient:293 - starting socket client to percom1.perinfo.com:873
jarsync: socket=Socket[addr=percom1.perinfo.com/192.168.151.1,port=873,localport=63221]
[main] [DEBUG] rsync.v2.startSocketClient:305 - socket=Socket[addr=percom1.perinfo.com/192.168.151.1,port=873,localport=63221]
jarsync: got greeting @rsyncd: 28
[main] [DEBUG] rsync.v2.setupSocket:613 - got greeting @rsyncd: 28
jarsync: server_argv=[--server, --sender, -vvrcz, --delete, .]
[main] [DEBUG] rsync.v2.serverArgs:857 - server_argv=[--server, --sender, -vvrcz, --delete, .]
jarsync: requesting module 'g4atscaf'
[main] [DEBUG] rsync.v2.setupSocket:639 - requesting module 'g4atscaf'
jarsync: checksum seed=9676264f
[main] [DEBUG] rsync.v2.clientRun:438 - checksum seed=9676264f
jarsync: writing int=0 00000000
[main] [DEBUG] v2.MultiplexedInputStream.writeInt:215 - writing int=0 00000000
jarsync: recieveFileEntry flags=1 l1=0 l2=1
[main] [DEBUG] v2.FileList.receiveFileEntry:243 - recieveFileEntry flags=1 l1=0 l2=1
jarsync: lastname=
[main] [DEBUG] v2.FileList.receiveFileEntry:244 - lastname=
jarsync: thisname=.
[main] [DEBUG] v2.FileList.receiveFileEntry:249 - thisname=.
Exception in thread "main" java.lang.NullPointerException
at org.metastatic.rsync.v2.MultiplexedInputStream.read(MultiplexedInputStream.java:140)
at org.metastatic.rsync.v2.FileList.receiveFileEntry(FileList.java:297)
at org.metastatic.rsync.v2.FileList.receiveFileList(FileList.java:106)
at org.metastatic.rsync.v2.Client.clientRun(Client.java:480)
at org.metastatic.rsync.v2.Client.startSocketClient(Client.java:326)
at org.metastatic.rsync.v2.Client.startClient(Client.java:168)
at org.metastatic.rsync.v2.Client.main(Client.java:595)
at TestClient.main(TestClient.java:28)
I call the main method of the Client class by passing those parameters :
protected static String[] defaultParams = {
"--exclude",".elf",
"-c",
"-v",
"-z",
"--exclude",".xml",
"--exclude",".bat",
"--exclude",".svn",
"--exclude","unins",
"--exclude","rsync.exe",
"--exclude","cygwin1.dll",
"--delete",
"--stats",
"--recursive",
"rsync://percom1.perinfo.com/g4atscaf/",
"e:\tmp\rsync"
};
I'm not very familiar with the rsync protocole so I don't understand exactly what is done to retrieve the files list but it seems it tries to get a file named "." and it does't work ... I have read the buffer and it contains file names I want and also bytes between them.
Are you still maintaining this project ? I'm ready to participate but I need some keys.
thanks,
Samuel
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.