This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Error in XDC tools configuro: java.io.UTFDataFormatException

Hello,

I'm using CCSv5 (5.2.1.00018) (I tried install CCSv6 (It don't find MCSDK!), but I get more problems) on Windows 7 Entreprise 64-bit SP1 (I tried on Linux, but it is hopeless).

I use a TMDSEVM6678L and MCSDK 2.1.2.5 but I get problems building projects, so it is not important for the moment.

So I try to build a project but I get this error at the invocation of C:/ti/xdctools_3_23_03_53/xs :

java.io.UTFDataFormatException
    at java.io.ObjectInputStream$BlockDataInputStream.readUTFSpan(ObjectInputStream.java:3028)
    at java.io.ObjectInputStream$BlockDataInputStream.readUTFBody(ObjectInputStream.java:2953)
    at java.io.ObjectInputStream$BlockDataInputStream.readUTF(ObjectInputStream.java:2766)
    at java.io.ObjectInputStream.readString(ObjectInputStream.java:1567)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296)
    at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1910)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1834)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
    at xdc.services.spec.BrowserSession.loadPkg(BrowserSession.java:188)
    at xdc.services.spec.BrowserSession.findPkg(BrowserSession.java:110)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:592)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
    at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:247)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3330)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2487)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
    at xdc.services.intern.xsr.Template.apply(Template.java:83)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:592)
    at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:161)
    at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:247)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3330)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2487)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
    at xdc.services.intern.xsr.Invoke.call(Invoke.java:127)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3330)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2487)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
    at xdc.services.intern.xsr.Invoke.call(Invoke.java:127)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3330)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2487)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
    at xdc.services.intern.xsr.Invoke.call(Invoke.java:127)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3330)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2487)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
    at xdc.services.intern.xsr.Invoke.call(Invoke.java:127)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3330)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2487)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
    at xdc.services.intern.xsr.Invoke.call(Invoke.java:89)
    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3330)
    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2487)
    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:398)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3065)
    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
    at org.mozilla.javascript.Context.evaluateReader(Context.java:1135)
    at config.Shell.evaluateReader(Shell.java:845)
    at config.Shell.processReader(Shell.java:510)
    at config.Shell.processFile(Shell.java:569)
    at config.Shell.exec(Shell.java:779)
    at config.Shell.main(Shell.java:1412)
js: "C:/ti/xdctools_3_23_03_53/packages/xdc/tools/Cmdr.xs", line 51: Error: xdc.tools.configuro: JavaException: java.io.UTFDataFormatException: null
gmake: Target `all' not remade because of errors.

**** Build Finished ****

I searched a lot but I didn't find anything, for a week...

I get the same error with xdc tools 3.23.04.

Any help would be appreciated.

Thank you very much

  • Hi,

    Can you share the project you are trying to build? If it is an example project from the MCSDK, the latest release is 2.1.2.6, therefore it is possible there was an existing bug or incompatibility with newer CCS releases.

    Thibaut Marty said:

    I'm using CCSv5 (5.2.1.00018) (I tried install CCSv6 (It don't find MCSDK!), but I get more problems) on Windows 7 Entreprise 64-bit SP1 (I tried on Linux, but it is hopeless).

    Apart from a warning about unsigned content, I was able to discover the MCSDK (release 2.1.2.6 with the patch) without a problem in my CCSv6.1.0 in Windows (I never used this MCSDK in Linux). Perhaps it may be an issue with the version you have?

    Just like you, unfortunately I never have hit the error you mentioned when building projects, therefore I can't help much with the specific error. The experts at the TI-RTOS forum are more knowledgeable about the xdctools itself, therefore it could be an interesting idea to post this there (I can move this thread if you prefer).

    I apologize for the inconvenience,

    Rafael