What steps will reproduce the problem?
1. PropertyListParser.convertToBinary(new File(__INPUTFILE__), new
File(__OUPUTFILE__))
What is the expected output? What do you see instead?
EXPECTED: output plist file saved as a binary plist
GIVEN:
java.lang.IllegalStateException: Current state = CODING_END, new state = CODING
at java.nio.charset.CharsetEncoder.throwIllegalStateException(CharsetEncoder.java:941)
at java.nio.charset.CharsetEncoder.canEncode(CharsetEncoder.java:859)
at java.nio.charset.CharsetEncoder.canEncode(CharsetEncoder.java:934)
at com.dd.plist.NSString.toBinary(NSString.java:108)
at com.dd.plist.BinaryPropertyListWriter.write(BinaryPropertyListWriter.java:112)
at com.dd.plist.BinaryPropertyListWriter.write(BinaryPropertyListWriter.java:63)
at com.dd.plist.BinaryPropertyListWriter.write(BinaryPropertyListWriter.java:52)
at com.dd.plist.PropertyListParser.saveAsBinary(PropertyListParser.java:154)
at PlistParser.main(PlistParser.java:75)
What version of the product are you using? On what operating system?
r59 / Java 7
Please provide any additional information below.
Correction:
NSString:107
--------------------
REPLACE:
if(asciiEncoder==null)
asciiEncoder = Charset.forName("ASCII").newEncoder();
WITH:
if(asciiEncoder==null)
{
asciiEncoder = Charset.forName("ASCII").newEncoder();
}
else
{
asciiEncoder.reset();
}
Original issue reported on code.google.com by severin....@gmail.com on 21 Mar 2012 at 1:34
Original issue reported on code.google.com by
severin....@gmail.com
on 21 Mar 2012 at 1:34