Replacement JAR for b89 for UPNP testing (Apr 12)

Notes on testing the latest builds of MapTool

Moderators: dorpond, trevor, Azhrei

Cryotech
Cave Troll
Posts: 41
Joined: Wed Nov 03, 2010 2:20 pm

Re: Replacement JAR for b89 for UPNP testing (Apr 12)

Post by Cryotech »

Not sure if this helps or not, and I wasn't able to attach log file due to comp issues but will when I get the chance to do so, but I now cannot start a server at all where before (meaning my first test which had been sent to Azh), I could.

I was receiving the same error and issues as CiF but then I realized that I hadn't properly renamed the .zip file. After renaming, I didn't receive the issues CiF was receiving anymore, but I did start to receive the usual UPnP error.

As with wolph, I can connect just fine with j7 and Lee's dev version. I'm only receiving the error with Azh's version.

Also, out of curiosity, is Lee's dev version (or MapTool in general) using Local Port 59969 and Remote Port 1900? if so, why? I'm assuming it is because my firewall continously blocks attempts when I start a server within MT. Or at least it's appearing to be doing so.

User avatar
JamzTheMan
Great Wyrm
Posts: 1872
Joined: Mon May 10, 2010 12:59 pm
Location: Chicagoland
Contact:

Re: Replacement JAR for b89 for UPNP testing (Apr 12)

Post by JamzTheMan »

Az, FYI, when I was testing my locale fix, I noticed I got an error with trying to use "Get Debug Info" menu item and my locale was set to Dutch (Netherlands).
locale-bug?
upnp-nl-bug.png
upnp-nl-bug.png (47.27 KiB) Viewed 5796 times
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork

User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Re: Replacement JAR for b89 for UPNP testing (Apr 12)

Post by wolph42 »

confirmed! (did not test with english locale to see if that *does* work).

note that this *does* work in b89 and not in b90-beta (both versions 'n3' and the previous one 'm')

User avatar
JamzTheMan
Great Wyrm
Posts: 1872
Joined: Mon May 10, 2010 12:59 pm
Location: Chicagoland
Contact:

Re: Replacement JAR for b89 for UPNP testing (Apr 12)

Post by JamzTheMan »

Hmm, getting same message with english locale now to. I may be out of sync with the external libs but I thought I had the latest...
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork

User avatar
Azhrei
Site Admin
Posts: 12086
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

Re: Replacement JAR for b89 for UPNP testing (Apr 12)

Post by Azhrei »

Let me know if you isolate it. And instead of attaching an image of the error, how about the text of the stacktrace instead?! Images are tough to scroll down to see the rest of it. ;)

User avatar
Bone White
Great Wyrm
Posts: 1124
Joined: Tue Aug 23, 2011 11:41 am
Location: Cornwall, UK

Re: Replacement JAR for b89 for UPNP testing (Apr 12)

Post by Bone White »

Currently set to the locale English (United Kingdom). b89 Get Debug Info produces:

Code: Select all

java.lang.RuntimeException: Error during lazy SCDP file parsing at http://192.168.1.254:2555/upnp/UPnP_BThomeHub4A_2c399663974a_ppp0/WANPPPConn1.xml
	at net.sbbi.upnp.services.UPNPService.parseSCPD(UPNPService.java:233)
	at net.sbbi.upnp.services.UPNPService.lazyInitiate(UPNPService.java:301)
	at net.sbbi.upnp.services.UPNPService.getUPNPServiceAction(UPNPService.java:140)
	at net.sbbi.upnp.messages.UPNPMessageFactory.getMessage(UPNPMessageFactory.java:87)
	at net.sbbi.upnp.impls.InternetGatewayDevice.getExternalIPAddress(InternetGatewayDevice.java:286)
	at net.rptools.maptool.util.SysInfo.getIGDs(SysInfo.java:296)
	at net.rptools.maptool.util.SysInfo.getInfo(SysInfo.java:171)
	at net.rptools.maptool.util.SysInfo.createContentPane(SysInfo.java:325)
	at net.rptools.maptool.util.SysInfo.createAndShowGUI(SysInfo.java:339)
	at net.rptools.maptool.client.AppActions$64.execute(AppActions.java:2548)
	at net.rptools.maptool.client.AppActions$ClientAction.actionPerformed(AppActions.java:2697)
	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at javax.swing.AbstractButton.doClick(Unknown Source)
	at de.muntjak.tinylookandfeel.TinyMenuItemUI.doClick(Unknown Source)
	at de.muntjak.tinylookandfeel.TinyMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$000(Unknown Source)
	at java.awt.EventQueue$1.run(Unknown Source)
	at java.awt.EventQueue$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$2.run(Unknown Source)
	at java.awt.EventQueue$2.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at net.rptools.maptool.client.swing.MapToolEventQueue.dispatchEvent(MapToolEventQueue.java:38)
	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)
Caused by: java.lang.IllegalArgumentException: Unable to find any state variable named Uptime for service urn:upnp-org:serviceId:WANPPPConn1 action GetStatusInfo argument NewUptime
	at net.sbbi.upnp.services.UPNPService.parseSCPD(UPNPService.java:218)
	... 49 more

User avatar
Azhrei
Site Admin
Posts: 12086
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

Re: Replacement JAR for b89 for UPNP testing (Apr 12)

Post by Azhrei »

Ah, a UPNP error from the router. An interesting one, at that.

Can you email me the results of visiting this page with your web browser?

http://192.168.1.254:2555/upnp/UPnP_BTh ... PConn1.xml

It should result in a bunch of XML data. Just use the File menu and SaveAs an XML, then attach that to an email or copy/paste it into an email here. Once I have the XML and I try to determine what caused the problem.

Thanks. This will help UPNP users everywhere. ;)

User avatar
Bone White
Great Wyrm
Posts: 1124
Joined: Tue Aug 23, 2011 11:41 am
Location: Cornwall, UK

Re: Replacement JAR for b89 for UPNP testing (Apr 12)

Post by Bone White »

Attached.

Note that I was running the server at the time with Strict Token Ownership, Restricted Player Impersonation, Players Recieve Campaign Macros, Movement ONE_TWO_ONE, and Use UPnP.

I receive two errors when I try to start a server at the moment:

First is an errorbox message with "While configuring UPnP (2)<br>java.lang.RuntimeException: Error during lazy SCDP file parsing at http://192.168.1.254:25555/upnp/UPnP_BT ... PConn1.xml"

Second is UPnP: Port Mapping Failed.

I recently changed my router from a BTHomeHub 2 to a BTHomeHub 4. I have also recently upgraded MapTool to b89. Running b87 with BTHomeHub 4 just shows the old b87 error message of "No Internet Gateway Devices found."

I have not tried the BTHomeHub 4 connectivity online yet, but I know with b87 and the older hub, I could only connect to people through a VPN.
Attachments
WANPPPConn1.xml
(13.02 KiB) Downloaded 118 times

User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Re: Replacement JAR for b89 for UPNP testing (Apr 12)

Post by wolph42 »

here's mine:

Code: Select all

java.lang.NoClassDefFoundError: net/sbbi/upnp/messages/UPNPResponseException
	at net.rptools.maptool.client.AppActions$64.execute(AppActions.java:2677)
	at net.rptools.maptool.client.AppActions$ClientAction.actionPerformed(AppActions.java:2827)
	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at javax.swing.AbstractButton.doClick(Unknown Source)
	at de.muntjak.tinylookandfeel.TinyMenuItemUI.doClick(Unknown Source)
	at de.muntjak.tinylookandfeel.TinyMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$200(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$1.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at net.rptools.maptool.client.swing.MapToolEventQueue.dispatchEvent(MapToolEventQueue.java:36)
	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)
Caused by: java.lang.ClassNotFoundException: net.sbbi.upnp.messages.UPNPResponseException
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 41 more
if useful at all?

User avatar
Azhrei
Site Admin
Posts: 12086
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

Re: Replacement JAR for b89 for UPNP testing (Apr 12)

Post by Azhrei »

Bone White wrote:Attached.
[...]
First is an errorbox message with "While configuring UPnP (2)<br>java.lang.RuntimeException: Error during lazy SCDP file parsing at http://192.168.1.254:25555/upnp/UPnP_BT ... PConn1.xml"
This is the important one. The fact it fails is what causes the second one.

I'll take a look at the XML file. Thanks.
wolph42 wrote:here's mine:

Code: Select all

java.lang.NoClassDefFoundError: net/sbbi/upnp/messages/UPNPResponseException
	at net.rptools.maptool.client.AppActions$64.execute(AppActions.java:2677)
I thought yours was working, wolph? We did that UPNP testing awhile back and I thought you were all set?

Are you using the latest JAR file? b90 will be using upnplib-1.0.9-nodebug.jar (well, unless I need to make a change for BW that bumps it to 1.0.10 before b90 comes out). You could try dropping that one into the dir as a replacement for whatever UPNP library you have now (as described in the OP).

User avatar
Azhrei
Site Admin
Posts: 12086
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

Re: Replacement JAR for b89 for UPNP testing (Apr 12)

Post by Azhrei »

Bone White wrote:First is an errorbox message with "While configuring UPnP (2)<br>java.lang.RuntimeException: Error during lazy SCDP file parsing at http://192.168.1.254:25555/upnp/UPnP_BT ... PConn1.xml"
I haven't found the problem. Due to the complexities involved it's not easy to feed your XML file to the code at the precisely correct time :( so I'd like you to do some more logging for me.

Attached is a configuration file that will enable detailed logging within the code where this error occurred. It should help track down how far the code got to make it easier to isolate the issue. Please copy the attached file to your .maptool/ directory and delete any existing log.txt that might be in that directory. Then run MapTool and have it generate the error again. Now attached the log.txt that results to another post.

That log.txt file will have very detailed information on which fields of the XML file were processed and what data was collected. Hopefully this will narrow down the problem to just a few lines of code. Thank you for your help! (You can delete the logging.xml file once you've attached the log file here.)
Attachments
logging.xml
detailed logging for UPNPService class
(264 Bytes) Downloaded 81 times

User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Re: Replacement JAR for b89 for UPNP testing (Apr 12)

Post by wolph42 »

This was an error generated by the debug info not the upnp. I did test upnp in b90 and it didn't work but Jamz already mentioned that he might have forgotten to update the libs. (or whatever you call them). The upnp test of a while back works!

User avatar
Bone White
Great Wyrm
Posts: 1124
Joined: Tue Aug 23, 2011 11:41 am
Location: Cornwall, UK

Re: Replacement JAR for b89 for UPNP testing (Apr 12)

Post by Bone White »

log.txt
(5.55 KiB) Downloaded 89 times

User avatar
JamzTheMan
Great Wyrm
Posts: 1872
Joined: Mon May 10, 2010 12:59 pm
Location: Chicagoland
Contact:

Re: Replacement JAR for b89 for UPNP testing (Apr 12)

Post by JamzTheMan »

So, I had the right lib but forgot to change the manifest, oops. So my build is once again working.

Wolf, go ahead and redownload and test if you want, you should work in pre-b90 again.
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork

User avatar
wolph42
Winter Wolph
Posts: 9999
Joined: Fri Mar 20, 2009 5:40 am
Location: Netherlands
Contact:

Re: Replacement JAR for b89 for UPNP testing (Apr 12)

Post by wolph42 »

JamzTheMan wrote:So, I had the right lib but forgot to change the manifest, oops. So my build is once again working.

Wolf, go ahead and redownload and test if you want, you should work in pre-b90 again.

Ok.

Post Reply

Return to “Testing”