Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pendant Exception - java.io.FileNotFoundException #193

Closed
Mgilbride opened this issue Aug 30, 2014 · 13 comments
Closed

Pendant Exception - java.io.FileNotFoundException #193

Mgilbride opened this issue Aug 30, 2014 · 13 comments
Labels

Comments

@Mgilbride
Copy link

Maybe it's the nightly builds. But I have tried a couple different versions of 1.0.8 on several different machines. None of them spit out an IP address in the console.

@winder
Copy link
Owner

winder commented Aug 30, 2014

I really need to finish integrating this with the GUI. Right now there is a drop down menu button to start the server, after you click that it should put the IP in the console.

@Mgilbride
Copy link
Author

Totally understand. Do see how to start the server. But am not getting an
IP address in the console. Am wondering if it is because the laptop I am
using to run UGS is an old Windows XP box.Just looking to do some early
playing / testing.

On Sat, Aug 30, 2014 at 9:25 AM, Will Winder notifications@github.com
wrote:

I really need to finish integrating this with the GUI. Right now there is
a drop down menu button to start the server, after you click that it should
put the IP in the console.


Reply to this email directly or view it on GitHub
#193 (comment)
.

@winder
Copy link
Owner

winder commented Sep 1, 2014

I fixed a problem with the Pendant today, but even with this problem there should be an IP address in the console. It is displayed right after you select the Pendant > Start... option.

Once you start the web server you can try connecting to localhost:8080

@Mgilbride
Copy link
Author

Still no joy. Tested on Windows 7 & Windows XP. Fired up UGS. Established
connection to a GRBL loaded arduino. Started pendant server. No indication
of IP address in console in standard or verbose mode. Are there some
network settings I need to configure? Also 8080 is used by a lot of android
based ip cam apps. WOuld be nice to run one of those side by side with
pendant. Will there be a conflict there?

[image: Inline image 1]

On Mon, Sep 1, 2014 at 9:00 AM, Will Winder notifications@github.com
wrote:

I fixed a problem with the Pendant today, but even with this problem there
should be an IP address in the console. It is displayed right after you
select the Pendant > Start... option.

Once you start the web server you can try connecting to localhost:8080


Reply to this email directly or view it on GitHub
#193 (comment)
.

@Mgilbride
Copy link
Author

I take that back. Must of mistyped localhost address. Gui pops up now! But
still does not pop in the console window on UGS.

On Mon, Sep 1, 2014 at 9:00 AM, Will Winder notifications@github.com
wrote:

I fixed a problem with the Pendant today, but even with this problem there
should be an IP address in the console. It is displayed right after you
select the Pendant > Start... option.

Once you start the web server you can try connecting to localhost:8080


Reply to this email directly or view it on GitHub
#193 (comment)
.

@Mgilbride
Copy link
Author

So, I can play with it on my workstation via local host. Does not behave
well on windows xp chrome or firefox. Browser appears to connect but no
interface.

No luck connecting over wifi on samsung tablet or other devices.

On Mon, Sep 1, 2014 at 9:00 AM, Will Winder notifications@github.com
wrote:

I fixed a problem with the Pendant today, but even with this problem there
should be an IP address in the console. It is displayed right after you
select the Pendant > Start... option.

Once you start the web server you can try connecting to localhost:8080


Reply to this email directly or view it on GitHub
#193 (comment)
.

@Mgilbride
Copy link
Author

Ok, got it working just fine on windows 7 over port 8080. Gui comes up on other devices on the network. The server on the Windows xp box connected to my cnc is another story. For whatever reason I get a blank web page on localhost and other devices. No gui. Wondering if it's a java update? Strange because I thought the connecting device would be the limiting factor. Not the xp box. Will have to keep playing around. Very cool.

As for the webcam, Yawcam will stream webcam video over port 8081. Not sure if that is by default or because I have the ugs server running. But this is sweet because you can run the ugs pendant in one browser window and have a video stream in a browser window next to it.

@Mgilbride
Copy link
Author

So tried the newest build. Love the macros. Awesome. Still trying to get the server functioning properly on XP. OS is fully up to date. But something is missing / not working. Server triggered firewall. Unblocked as well as turned off firewall , antivirus, etc. I am able to run the server on my windows seven workstation and pull up the pendant gui in any browser on the xp box. So nit browser or wifi related.

I still get a blank page from the server on the xp box. No code behind it when I view source. So I suspect something is failing in launching the server. Again Yawcam uses a very similar server and it works great on the same computer.

@Mgilbride
Copy link
Author

Still trying to figure out why server does not run on my XP machine. UGS
does not feed back any error code like server failed. But sure looks like
it does in the terminal dump.

C:\Documents and Settings\Matt\Desktop\UGS5>java -jar -Xmx256m
UniversalGcodeSen
der.jar
[Boot] INFO:
myJarPath=file:/C:/Documents%20and%20Settings/Matt/Desktop/UGS5/Un
iversalGcodeSender.jar
[JarClassLoader] INFO:
setProperties(com.simontuffs.onejar.JarClassLoader@cfec4
8)
[JarClassLoader] INFO:
oneJarPath=file:/C:/Documents%20and%20Settings/Matt/Desk
top/UGS5/UniversalGcodeSender.jar
[Boot] INFO: using JarClassLoader: com.simontuffs.onejar.JarClassLoader
[JarClassLoader] INFO:
oneJarPath=file:/C:/Documents%20and%20Settings/Matt/Desk
top/UGS5/UniversalGcodeSender.jar
[JarClassLoader] INFO: findResource() found:
"com/willwinder/universalgcodesend
er/Version.class" for caller null in codebase main/Universal G-Code
Sender.jar
[JarClassLoader] INFO: findResource(): unable to locate
"resources/MessagesBund
le_en.properties"

Stable Library

Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7
Sep 13, 2014 10:15:01 PM
com.willwinder.universalgcodesender.SettingsFactory loa
dSettings
INFO: Loading settings.
Sep 13, 2014 10:15:01 PM
com.willwinder.universalgcodesender.SettingsFactory loa
dSettings
INFO: Settings file location: C:\Documents and
Settings\Matt\UniversalGcodeSende
r.json
[JarClassLoader] INFO: findResource() found:
"org/eclipse/jetty/http/mime.prope
rties" for caller null in codebase lib/jetty-http-8.0.1.v20110908.jar
[JarClassLoader] INFO: findResource(): unable to locate
"org/eclipse/jetty/http
/mime_en.properties"
[JarClassLoader] INFO: findResource(): unable to locate
"org/eclipse/jetty/http
/mime_en_US.properties"
2014-09-13
22:16:11.991:WARN:oejh.MimeTypes:java.util.MissingResourceException:
Can't find bundle for base name org/eclipse/jetty/http/mime, locale en_US
[JarClassLoader] INFO: findResource() found:
"org/eclipse/jetty/http/encoding.p
roperties" for caller null in codebase lib/jetty-http-8.0.1.v20110908.jar
[JarClassLoader] INFO: findResource(): unable to locate
"org/eclipse/jetty/http
/encoding_en.properties"
[JarClassLoader] INFO: findResource(): unable to locate
"org/eclipse/jetty/http
/encoding_en_US.properties"
2014-09-13
22:16:11.991:WARN:oejh.MimeTypes:java.util.MissingResourceException:
Can't find bundle for base name org/eclipse/jetty/http/encoding, locale
en_US
[JarClassLoader] INFO: findResource() found:
"org/eclipse/jetty/favicon.ico" fo
r caller null in codebase lib/jetty-server-8.0.1.v20110908.jar
2014-09-13 22:16:12.011:WARN:oejsh.DefaultHandler:
java.io.FileNotFoundException:
C:\Documents%20and%20Settings\Matt\Desktop\UGS5\U
niversalGcodeSender.jar (The system cannot find the path specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(Unknown Source)
at java.util.zip.ZipFile.(Unknown Source)
at java.util.jar.JarFile.(Unknown Source)
at java.util.jar.JarFile.(Unknown Source)
at com.simontuffs.onejar.OneJarFile.(OneJarFile.java:36)
at
com.simontuffs.onejar.OneJarURLConnection.connect(OneJarURLConnection
.java:46)
at
com.simontuffs.onejar.JarClassLoader$FileURLFactory$1.openConnection(
JarClassLoader.java:1106)
at java.net.URL.openConnection(Unknown Source)
at java.net.URL.openStream(Unknown Source)
at
org.eclipse.jetty.server.handler.DefaultHandler.(DefaultHandler
.java:64)
at
com.willwinder.universalgcodesender.pendantui.PendantUI.start(Pendant
UI.java:103)
at
com.willwinder.universalgcodesender.MainWindow.startPendantServerButt
onActionPerformed(MainWindow.java:1696)
at
com.willwinder.universalgcodesender.MainWindow.access$4100(MainWindow
.java:75)
at
com.willwinder.universalgcodesender.MainWindow$42.actionPerformed(Mai
nWindow.java:1143)
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 javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at
javax.swing.plaf.basic.BasicMenuItemUI$Handler.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
Sour
ce)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown
Sour
ce)
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
Sour
ce)
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)
2014-09-13 22:16:12.071:INFO:oejs.Server:jetty-8.0.1.v20110908
2014-09-13 22:16:12.141:INFO:oejs.AbstractConnector:Started
SelectChannelConnect
or@0.0.0.0:8080 STARTING
[JarClassLoader] INFO:
findResources(META-INF/services/javax.imageio.spi.ImageT
ranscoderSpi)
[JarClassLoader] INFO: findResources: looking in
[lib/jetty-server-8.0.1.v20110
908.jar, lib/jetty-continuation-8.0.1.v20110908.jar,
lib/commons-lang3-3.1.jar,
lib/jetty-util-8.0.1.v20110908.jar, lib/qrgen-1.3.jar, /,
lib/jetty-http-8.0.1.v
20110908.jar, lib/javax.servlet-api-3.1.0.jar, main/Universal G-Code
Sender.jar,
lib/zxing-javase-2.0.jar, lib/gson-2.2.4.jar, lib/gluegen-rt.jar,
lib/jogl-all.
jar, lib/swing-layout-1.0.4.jar, lib/jetty-io-8.0.1.v20110908.jar,
lib/zxing-cor
e-2.0.jar, lib/vecmath.jar, lib/RXTXcomm.jar]
[JarClassLoader] INFO:
findResources(META-INF/services/javax.imageio.spi.ImageR
eaderSpi)
[JarClassLoader] INFO: findResources: looking in
[lib/jetty-server-8.0.1.v20110
908.jar, lib/jetty-continuation-8.0.1.v20110908.jar,
lib/commons-lang3-3.1.jar,
lib/jetty-util-8.0.1.v20110908.jar, lib/qrgen-1.3.jar, /,
lib/jetty-http-8.0.1.v
20110908.jar, lib/javax.servlet-api-3.1.0.jar, main/Universal G-Code
Sender.jar,
lib/zxing-javase-2.0.jar, lib/gson-2.2.4.jar, lib/gluegen-rt.jar,
lib/jogl-all.
jar, lib/swing-layout-1.0.4.jar, lib/jetty-io-8.0.1.v20110908.jar,
lib/zxing-cor
e-2.0.jar, lib/vecmath.jar, lib/RXTXcomm.jar]
[JarClassLoader] INFO:
findResources(META-INF/services/javax.imageio.spi.ImageW
riterSpi)
[JarClassLoader] INFO: findResources: looking in
[lib/jetty-server-8.0.1.v20110
908.jar, lib/jetty-continuation-8.0.1.v20110908.jar,
lib/commons-lang3-3.1.jar,
lib/jetty-util-8.0.1.v20110908.jar, lib/qrgen-1.3.jar, /,
lib/jetty-http-8.0.1.v
20110908.jar, lib/javax.servlet-api-3.1.0.jar, main/Universal G-Code
Sender.jar,
lib/zxing-javase-2.0.jar, lib/gson-2.2.4.jar, lib/gluegen-rt.jar,
lib/jogl-all.
jar, lib/swing-layout-1.0.4.jar, lib/jetty-io-8.0.1.v20110908.jar,
lib/zxing-cor
e-2.0.jar, lib/vecmath.jar, lib/RXTXcomm.jar]
[JarClassLoader] INFO:
findResources(META-INF/services/javax.imageio.spi.ImageI
nputStreamSpi)
[JarClassLoader] INFO: findResources: looking in
[lib/jetty-server-8.0.1.v20110
908.jar, lib/jetty-continuation-8.0.1.v20110908.jar,
lib/commons-lang3-3.1.jar,
lib/jetty-util-8.0.1.v20110908.jar, lib/qrgen-1.3.jar, /,
lib/jetty-http-8.0.1.v
20110908.jar, lib/javax.servlet-api-3.1.0.jar, main/Universal G-Code
Sender.jar,
lib/zxing-javase-2.0.jar, lib/gson-2.2.4.jar, lib/gluegen-rt.jar,
lib/jogl-all.
jar, lib/swing-layout-1.0.4.jar, lib/jetty-io-8.0.1.v20110908.jar,
lib/zxing-cor
e-2.0.jar, lib/vecmath.jar, lib/RXTXcomm.jar]
[JarClassLoader] INFO:
findResources(META-INF/services/javax.imageio.spi.ImageO
utputStreamSpi)
[JarClassLoader] INFO: findResources: looking in
[lib/jetty-server-8.0.1.v20110
908.jar, lib/jetty-continuation-8.0.1.v20110908.jar,
lib/commons-lang3-3.1.jar,
lib/jetty-util-8.0.1.v20110908.jar, lib/qrgen-1.3.jar, /,
lib/jetty-http-8.0.1.v
20110908.jar, lib/javax.servlet-api-3.1.0.jar, main/Universal G-Code
Sender.jar,
lib/zxing-javase-2.0.jar, lib/gson-2.2.4.jar, lib/gluegen-rt.jar,
lib/jogl-all.
jar, lib/swing-layout-1.0.4.jar, lib/jetty-io-8.0.1.v20110908.jar,
lib/zxing-cor
e-2.0.jar, lib/vecmath.jar, lib/RXTXcomm.jar]
Listening on: http://deleted.

@Mgilbride
Copy link
Author

SOLVED: Source of problem was io file not found error listed in terminal dump above. I moved UGS to C:\ (not in a folder) and it works! Homed, jogged , etc. through pendant and it works.

Also. Had some confusion re: our discussion about where to find pendant address. Think you were referring to cmd console when I thought you meant the UGS console. I don't have to use the supplied .bat file to launch UGS on any of my systems. Only used it to troubleshoot this problem.

Thanks for great work. Exciting development of gui and extensions.

@mustang967
Copy link

The exact same issue when working on a mac. I had tried everything to make the pendant work, finally I put the java file directly in the root or home folder ran it from there and it works like a charm.

@bummster
Copy link

bummster commented Feb 3, 2015

Interesting tidbit. I am running the Feb 2nd nightly via Win7 64bit.

I just couldn't get the IP address to pop up in the universal gcode sender console tab within the UI. Placing it in the root directory didn't help either. I had been starting the jar file by simply double clicking it and letting windows send it on to the java.exe via file type association. I gave the start-windows.bat a try after adding a the java.exe directory to the win7 path environment variable. And while the IP address and port still didn't pop in the UI, it did pop in the cmd.exe window. A cheerful "Listening on: http://192.168.1.140:8080" appeared.

This is probably all moot, but the default port is 8080. Just grab the ip address of your machine and use that ip address:8080 on your tablet/phone.

@winder winder added the bug label Feb 24, 2015
@winder winder changed the title Pendant IP Address Pendant Exception - java.io.FileNotFoundException Feb 24, 2015
@DasWookie
Copy link

I'm seeing the exact same problem. If I put the JAR file in a directory of:
c:\Program Files\Universal gCode Sender\1.08
Then the pendant server fails to produce the UI and displays the error:
2015-03-30 17:56:47.029:WARN:oejsh.DefaultHandler:
java.io.FileNotFoundException: C:\Program%20Files\UniversalGcodeSender\1.0.8\UniversalGcodeSender.jar (The system cannot
find the path specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(Unknown Source)
{etc etc etc}

But, if run directly out of the root of the c: for c:\UniversalGcodeSender.jar it works.

@winder winder closed this as completed Feb 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants