Kevin Vance - To uh, elaborate on last night's post, I have some working JSync13…

Entries | Archive | Friends | Friends' Friends | User Info

11:17 am

Thursday, July 14th, 2005
Previous Entry Share Next Entry
To uh, elaborate on last night's post, I have some working JSync13 conduit code. The worst part was just getting *anything* to run. I wrote a 30 line conduit that didn't do anything (remember, it's java), and I'd keep getting InvalidAccess errors (or something like that).

So, I took one of the example conduits and chopped it down as far as it could go, and slowly added my stuff back into it until it worked. What I found out later was that you have to terminate and reload the HotSync Manager program every time you change a conduit, or it will just use some cached version. So, that was a giant waste of time, but I had a lot of momentum going.

This is really all about debugging, since I'm essentially porting my pilot-link code straight to jsync. Even though it's in C++, it spends half the time making and using Java objects through CNI, so there is almost no thought required to port.

...though it's been so long since I used Java that I was stumbling around looking for what NULL was. "Java must have a concept of NULL... right?!" I kept typing "NULL, NIL, Null, Nothing, None", etc. into vim and hoping the syntax highlighter would light it up. Yes, I eventually found it was "null" :P

So yeah, right now it updates the user records (exciting!!!) but when it gets to the entries, it bombs out after the first one.

Not bad for a single day's work. I'd been dreading doing this since like 2002 :P
Link )Reply )

Comments
(Deleted comment)
[User Picture]From: kvance
2005-07-14 11:48 pm (UTC)
It's not great. But at least it has a good standard library, unlike *some* languages...
(Reply) (Parent) (Thread)