Error in source code
Chris, you work with StringBuffer right? Well, the method CSTA_Base.CheckLengthAndStrip, you do an "if" testing as follows:
curInStr.charAt (1) == 0x81
however, the program flow never enters this if, even as 0x81. You can try the following code to identify the error:
StringBuffer s = new StringBuffer ();
s.append (0x81);
if (s.charAt (0) == 0x81) (
System.out.println ( "if within");
) else (
System.out.println ( "off if");
)
Can you help me?

This will probably have
This will probably have something to do with filesystem encoding.
We'll get to the bottom of it, but I'll need some information from you and it will take a few steps to get the answers.
1. What operating system are you using?
2. How are you arriving to that function? A unit test, or over the network?
If it's over the network, please make sure you've got the latest client and server snapshots that take care of some filesystem encoding anomalies which are explained in summary here: http://www.opencsta.org/content/updated-code-probably-fixed-your-utf-8ma...
http://www.opencsta.org/sites/default/files/openCSTA-server-SNAPSHOT-201...
http://www.opencsta.org/sites/default/files/openCSTA-simpleexample-SNAPS...
Let me know how you go.