kaklakariada / portmapper

A tool for managing port forwardings via UPnP
GNU General Public License v3.0
685 stars 90 forks source link

[Fatal Error] :7:252: The entity name must immediately follow the '&' in the entity reference. #110

Closed ayunami2000 closed 6 months ago

ayunami2000 commented 2 years ago

No ports show, yet it still forwards... This means I cannot delete forwardings either... image

DEBUG Getting port mapping 0...
DEBUG Got an exception with message 'The entity name must immediately follow the '&' in the entity reference.' for index 0, stop getting more mappings
TRACE Exception
org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.
    at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1251)
    at org.bitlet.weupnp.GatewayDevice.simpleUPnPcommand(GatewayDevice.java:235)
    at org.bitlet.weupnp.GatewayDevice.getGenericPortMappingEntry(GatewayDevice.java:397)
    at org.chris.portmapper.router.weupnp.WeUPnPRouter.getPortMappings(WeUPnPRouter.java:127)
    at org.chris.portmapper.gui.PortMapperView.updatePortMappings(PortMapperView.java:329)
    at org.chris.portmapper.gui.PortMapperView$ConnectTask.doInBackground(PortMapperView.java:440)
    at org.chris.portmapper.gui.PortMapperView$ConnectTask.doInBackground(PortMapperView.java:422)
    at java.desktop/javax.swing.SwingWorker$1.call(SwingWorker.java:304)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.desktop/javax.swing.SwingWorker.run(SwingWorker.java:343)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.lang.Thread.run(Thread.java:833)
DEBUG Got null port mapping for index 0
ayunami2000 commented 2 years ago

Oh also, image

ayunami2000 commented 2 years ago

I may have used an "&" in the name...could that be it...?

kaklakariada commented 2 years ago

Yes, the & could be the problem, and that your router doesn't escape it properly. Please try to delete the mapping via the administration user interface of your router.

kaklakariada commented 6 months ago

Closing as stale.