Stand alone compiled aplication only works in my machine and deploytool fails to build package.

I built a new version of a stand alone program that runs fine in my machine but it does not work in another computer that has MCR. The machine had worked fine with the previous versions of the application. When i start the application I get the message that Matlab does not find the main function. The application works fine in Matlab (i mean the not compiled version) in that machine, though. I tried to build a package thinking that perhaps it was something with the MCR but then the package build fails and the log of the failure is beyond my understanding. Any ideas? PS: the log of the failed package build:
Exception in thread "main" Error reading project file C:\DOCUME~1\USURIO~1\CONFIG~1\Temp\build7942569757750496993.xml: Invalid byte 2 of 3-byte UTF-8 sequence. at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:249) at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:140) at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:91) at com.mathworks.mde.deploytool.engine.AntEntryPoint.main(AntEntryPoint.java:27) Caused by: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 3-byte UTF-8 sequence. at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(Unknown Source) at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanLiteral(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanAttributeValue(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanAttribute(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parseUnknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:217) ... 3 more --- Nested Exception --- com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 3-byte UTF-8 sequence. at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(Unknown Source) at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanLiteral(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanAttributeValue(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanAttribute(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:217) at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:140) at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:91) at com.mathworks.mde.deploytool.engine.AntEntryPoint.main(AntEntryPoint.java:27)

Answers (1)

Do you have your computer's locale set to a language other than English (in particular: Turkish?) You could try getting the path to Bug 603640 and see if that fixes the issue. If not, please contact Tech Support to report the issue.

4 Comments

Thank you Kaustubha for the answer. I tried but it does not work. I am not sure is related to the language issue. Deploytool does compile and the executable works in my machine. But for some reason, the executable it does not in the other machines. Previous versions did not had that problem. The difference with tne new version is that in the opening function of the gui it connects to an Acces Database, whereas previous versions it only loaded a file. Could it be something related to that?
Thanks again/
When you say previous versions - is it previous versions of MATLAB, or of your application? I don't think this should have anything to do with connecting to MS Access, since it is a parser error (not a MATLAB error). Does the full path of the location where you copy your compiled package have any non-Latin characters?
Dear Kaustubha, I meant a previous version of the application, and you are right, it has nothing to do with the access. Ans teh location where I copu does not have any non latin characters, and is the same location the previous versions are. I think it is the compiler that has something weird. Now it happens to anything that I compile, even programs that compiled fine two weeks ago. I am using R2009b. Today I compiled it in 2010b and worked fine!!! I think I am going to re-install my 2009b to see if the problem goes away. Thank you again. I will let you know if re-installing fixes it. Cheers from Rio de Janeiro.
Thanks for your notes! Yes, it does seem like your 9b installation got corrupted. Hopefully, re-installation will fix it.

Sign in to comment.

Categories

Find more on Application Deployment in Help Center and File Exchange

Asked:

on 19 Mar 2011

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!