Error "&" when saving Gantt project

Hello,

I have a problem when using Gantt Project

Each time when i save after opning the file next time i found that error :" &#

Could you please help

C:\Users\soussou01\ganttproject.log

GanttProject 2.8.5 Pilsen (build 2179)
Settings file:
location: C:\Users\soussou01.ganttproject
size:5013
is readable: true
java.class.path: eclipsito.jar;C:\Program Files (x86)\GanttProject-2.8
java.home: C:\Program Files\Java\jre1.8.0_121
java.ext.dirs: C:\Program Files\Java\jre1.8.0_121\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
java.io.tmpdir: C:\Users\SOUSSO~1\AppData\Local\Temp
java.runtime.version: 1.8.0_121-b13
java.vendor: Oracle Corporation
java.vm.name: Java HotSpot™ 64-Bit Server VM
java.vm.vendor: Oracle Corporation
java.vm.version: 25.121-b13
os.arch: amd64
os.name: Windows 10
os.version: 10.0
sun.java.command: org.bardsoftware.eclipsito.Boot ganttproject-eclipsito-config.xml -log true C:\test\test.gan
user.country: US
user.dir: C:\Program Files (x86)\GanttProject-2.8
user.home: C:\Users\soussou01
user.language: en
user.timezone: Africa/Casablanca

Creating main frame…

  1. loading look’n’feels
    no editor for column=0 class=interface javax.swing.Icon
    no editor for column=1 class=interface javax.swing.Icon
    no editor for column=2 class=interface javax.swing.Icon
  2. loading options
  3. creating menus…
  4. creating views…
  5. calculating size and packing…
  6. changing language …
  7. first attempt to restore bounds
  8. finalizing…
    Main frame created
    no editor for column=0 class=interface javax.swing.Icon
    no editor for column=1 class=interface javax.swing.Icon
    no editor for column=2 class=interface javax.swing.Icon
    Splash closed
    Resizing window…
    org.apache.http.conn.HttpHostConnectException: Connection to http://www.ganttproject.biz refused
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:190)
    at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)
    at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:640)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784)
    at net.sourceforge.ganttproject.client.RssFeedChecker$4.run(RssFeedChecker.java:187)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.net.ConnectException: Connection timed out: connect
    at java.net.DualStackPlainSocketImpl.connect0(Native Method)
    at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
    at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:127)
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
    … 8 more
    no editor for column=0 class=interface javax.swing.Icon
    no editor for column=1 class=interface javax.swing.Icon
    no editor for column=2 class=interface javax.swing.Icon

Can you please clarify what did you mean? In the log which you posted there is nothing about “&#”. Did you post the whole log?

you find enlosed a picture of the error:

And the whole sescription is:
C:\Users\soussou01\ganttproject.log

GanttProject 2.8.5 Pilsen (build 2179)
Settings file:
location: C:\Users\soussou01.ganttproject
size:5013
is readable: true
java.class.path: eclipsito.jar;C:\Program Files (x86)\GanttProject-2.8
java.home: C:\Program Files\Java\jre1.8.0_121
java.ext.dirs: C:\Program Files\Java\jre1.8.0_121\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
java.io.tmpdir: C:\Users\SOUSSO~1\AppData\Local\Temp
java.runtime.version: 1.8.0_121-b13
java.vendor: Oracle Corporation
java.vm.name: Java HotSpot™ 64-Bit Server VM
java.vm.vendor: Oracle Corporation
java.vm.version: 25.121-b13
os.arch: amd64
os.name: Windows 10
os.version: 10.0
sun.java.command: org.bardsoftware.eclipsito.Boot ganttproject-eclipsito-config.xml -log true C:\test\test1.gan
user.country: US
user.dir: C:\Program Files (x86)\GanttProject-2.8
user.home: C:\Users\soussou01
user.language: en
user.timezone: Africa/Casablanca

Creating main frame…

  1. loading look’n’feels
    no editor for column=0 class=interface javax.swing.Icon
    no editor for column=1 class=interface javax.swing.Icon
    no editor for column=2 class=interface javax.swing.Icon
  2. loading options
  3. creating menus…
  4. creating views…
  5. calculating size and packing…
  6. changing language …
  7. first attempt to restore bounds
  8. finalizing…
    Main frame created
    no editor for column=0 class=interface javax.swing.Icon
    no editor for column=1 class=interface javax.swing.Icon
    no editor for column=2 class=interface javax.swing.Icon
    Splash closed
    Resizing window…
    orge.ganttproject.GPLogger logToLogger
    WARNING: Character reference "&#
    org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 101; Character reference "&#
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanCharReferenceValue(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.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 com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(Unknown Source)
    at net.sourceforge.ganttproject.io.XmlParser.parse(XmlParser.java:110)
    at net.sourceforge.ganttproject.io.GanttXMLOpen.doLoad(GanttXMLOpen.java:102)
    at net.sourceforge.ganttproject.io.GanttXMLOpen.load(GanttXMLOpen.java:96)
    at net.sourceforge.ganttproject.document.ProxyDocument$ParsingState.enter(ProxyDocument.java:360)
    at net.sourceforge.ganttproject.document.ProxyDocument.read(ProxyDocument.java:178)
    at net.sourceforge.ganttproject.GanttProject.open(GanttProject.java:687)
    at net.sourceforge.ganttproject.gui.ProjectOpenStrategy.openFileAsIs(ProjectOpenStrategy.java:119)
    at net.sourceforge.ganttproject.gui.ProjectUIFacadeImpl.openProject(ProjectUIFacadeImpl.java:248)
    at net.sourceforge.ganttproject.GanttProject$14.run(GanttProject.java:710)
    at net.sourceforge.ganttproject.undo.UndoableEditImpl.(UndoableEditImpl.java:48)
    at net.sourceforge.ganttproject.undo.UndoManagerImpl.undoableEdit(UndoManagerImpl.java:74)
    at net.sourceforge.ganttproject.GanttProject.openStartupDocument(GanttProject.java:706)
    at net.sourceforge.ganttproject.GanttProject$16.run(GanttProject.java:949)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$500(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

Jun 23, 2020 8:49:26 AM net.sourceforge.ganttproject.GPLogger logToLogger
WARNING: Character reference "&#
org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 101; Character reference "&#
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanCharReferenceValue(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.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 com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at net.sourceforge.ganttproject.io.XmlParser.parse(XmlParser.java:110)
at net.sourceforge.ganttproject.io.GanttXMLOpen.doLoad(GanttXMLOpen.java:102)
at net.sourceforge.ganttproject.io.GanttXMLOpen.load(GanttXMLOpen.java:96)
at net.sourceforge.ganttproject.document.ProxyDocument$ParsingState.enter(ProxyDocument.java:360)
at net.sourceforge.ganttproject.document.ProxyDocument.read(ProxyDocument.java:178)
at net.sourceforge.ganttproject.importer.ImporterFromGanttFile.run(ImporterFromGanttFile.java:108)
at net.sourceforge.ganttproject.importer.ImporterFromGanttFile.access$100(ImporterFromGanttFile.java:49)
at net.sourceforge.ganttproject.importer.ImporterFromGanttFile$2.run(ImporterFromGanttFile.java:95)
at net.sourceforge.ganttproject.undo.UndoableEditImpl.(UndoableEditImpl.java:48)
at net.sourceforge.ganttproject.undo.UndoManagerImpl.undoableEdit(UndoManagerImpl.java:74)
at net.sourceforge.ganttproject.importer.ImporterFromGanttFile.run(ImporterFromGanttFile.java:92)
at net.sourceforge.ganttproject.GanttProject.tryImportDocument(GanttProject.java:736)
at net.sourceforge.ganttproject.GanttProject.access$200(GanttProject.java:91)
at net.sourceforge.ganttproject.GanttProject$14.run(GanttProject.java:713)
at net.sourceforge.ganttproject.undo.UndoableEditImpl.(UndoableEditImpl.java:48)
at net.sourceforge.ganttproject.undo.UndoManagerImpl.undoableEdit(UndoManagerImpl.java:74)
at net.sourceforge.ganttproject.GanttProject.openStartupDocument(GanttProject.java:706)
at net.sourceforge.ganttproject.GanttProject$16.run(GanttProject.java:949)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Jun 23, 2020 8:49:26 AM net.sourceforge.ganttproject.GPLogger logToLogger
WARNING: Character reference "&#
java.io.IOException: Character reference "&#
at net.sourceforge.ganttproject.io.XmlParser.parse(XmlParser.java:120)
at net.sourceforge.ganttproject.io.GanttXMLOpen.doLoad(GanttXMLOpen.java:102)
at net.sourceforge.ganttproject.io.GanttXMLOpen.load(GanttXMLOpen.java:96)
at net.sourceforge.ganttproject.document.ProxyDocument$ParsingState.enter(ProxyDocument.java:360)
at net.sourceforge.ganttproject.document.ProxyDocument.read(ProxyDocument.java:178)
at net.sourceforge.ganttproject.importer.ImporterFromGanttFile.run(ImporterFromGanttFile.java:108)
at net.sourceforge.ganttproject.importer.ImporterFromGanttFile.access$100(ImporterFromGanttFile.java:49)
at net.sourceforge.ganttproject.importer.ImporterFromGanttFile$2.run(ImporterFromGanttFile.java:95)
at net.sourceforge.ganttproject.undo.UndoableEditImpl.(UndoableEditImpl.java:48)
at net.sourceforge.ganttproject.undo.UndoManagerImpl.undoableEdit(UndoManagerImpl.java:74)
at net.sourceforge.ganttproject.importer.ImporterFromGanttFile.run(ImporterFromGanttFile.java:92)
at net.sourceforge.ganttproject.GanttProject.tryImportDocument(GanttProject.java:736)
at net.sourceforge.ganttproject.GanttProject.access$200(GanttProject.java:91)
at net.sourceforge.ganttproject.GanttProject$14.run(GanttProject.java:713)
at net.sourceforge.ganttproject.undo.UndoableEditImpl.(UndoableEditImpl.java:48)
at net.sourceforge.ganttproject.undo.UndoManagerImpl.undoableEdit(UndoManagerImpl.java:74)
at net.sourceforge.ganttproject.GanttProject.openStartupDocument(GanttProject.java:706)
at net.sourceforge.ganttproject.GanttProject$16.run(GanttProject.java:949)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Jun 23, 2020 8:49:26 AM net.sourceforge.ganttproject.GPLogger log
INFO: Bounds after setVisible: java.awt.Rectangle[x=-8,y=-8,width=1296,height=1000]
Jun 23, 2020 8:49:26 AM net.sourceforge.ganttproject.GPLogger log
INFO: Starting RSS check…
Jun 23, 2020 8:49:27 AM net.sourceforge.ganttproject.GPLogger log
INFO: Bounds after opening: java.awt.Rectangle[x=-8,y=-8,width=1296,height=1000]
Jun 23, 2020 8:49:27 AM net.sourceforge.ganttproject.GPLogger log
INFO: Bounds stored in the options: java.awt.Rectangle[x=-8,y=-8,width=1296,height=1000]
Jun 23, 2020 8:49:32 AM org.ganttproject.impex.htmlpdf.itext.ITextEngine$2 run
INFO: Scanning font directories…
Jun 23, 2020 8:49:32 AM org.ganttproject.impex.htmlpdf.fonts.TTFontCache registerDirectory
INFO: scanning directory=C:\Program Files\Java\jre1.8.0_121/lib/fonts
Jun 23, 2020 8:49:38 AM org.ganttproject.impex.htmlpdf.fonts.TTFontCache registerDirectory
INFO: scanning directory=C:/windows/fonts
Jun 23, 2020 8:50:34 AM org.ganttproject.impex.htmlpdf.fonts.TTFontCache registerDirectory
INFO: scanning directory=/usr/share/fonts/truetype
Jun 23, 2020 8:50:34 AM org.ganttproject.impex.htmlpdf.fonts.TTFontCache registerDirectory
INFO: directory /usr/share/fonts/truetype is not readable
Jun 23, 2020 8:50:34 AM org.ganttproject.impex.htmlpdf.fonts.TTFontCache registerDirectory
INFO: scanning directory=/System/Library/Fonts
Jun 23, 2020 8:50:34 AM org.ganttproject.impex.htmlpdf.fonts.TTFontCache registerDirectory
INFO: directory /System/Library/Fonts is not readable
Jun 23, 2020 8:50:34 AM org.ganttproject.impex.htmlpdf.fonts.TTFontCache registerDirectory
INFO: scanning directory=/C:/Program Files (x86)/GanttProject-2.8/plugins-2.8.5/org.ganttproject.impex.htmlpdf/resource/fonts
Jun 23, 2020 8:50:34 AM org.ganttproject.impex.htmlpdf.itext.ITextEngine$2 run
INFO: Scanning font directories completed

Please share your project file.

test1.gan (17.8 KB)

Please help me to find a solution

There’s malformed XML in the project description. Did you copied the description from some other software by any chance?

The fixed file is attached.
test1.gan (17.7 KB)

Yes from exel to text and from text to Gantt project