Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / July 2007

Tip: Looking for answers? Try searching our database.

Web Application Works on Windows, Not on Linux (Needs a file)

Thread view: 
Hal Vaughan - 18 Jul 2007 17:55 GMT
I've been using a web application to find part numbers and info for an
antique car I've been working on for a while.  I used to go to the
manufacturer's website, log in ($20 a year fee, otherwise I'd link to it),
click on the link, and the program would run just fine under Linux.
Recently I upgraded my system (from Ubuntu Edgy to Ubuntu Feisty) and now
this app will run in Firefox on Windows XP but won't run on Linux.  Now I
get an error that it can't find the file hpwin32 in the java.library.path.
(The full stack trace is below.)

I searched my hard drives on the WinXP system and there's no trace of this
file, so I'm guessing it's a file on their end that isn't loading.  This
worked fine when I was using Java 1.4.2 but won't work now, with Java 6
installed.

Any ideas on what I can do to make this work again?  What other info would I
need to provide that might help track this problem down?  (The supplier
doesn't officially support Linux, so I can't get help from them.)

Hal
--------------Stack Trace from Error Message--------------
java.lang.reflect.InvocationTargetException
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
       at com.sun.javaws.Launcher.executeApplication(Launcher.java:1205)
       at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1151)
       at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:998)
       at com.sun.javaws.Launcher.run(Launcher.java:105)
       at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.UnsatisfiedLinkError: no hpwin32 in java.library.path
       at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
       at java.lang.Runtime.loadLibrary0(Runtime.java:823)
       at java.lang.System.loadLibrary(System.java:1030)
       at
com.hp.tis.ewo.common.win32.Hpwin32DllLoader.loadLibrary(Hpwin32DllLoader.java:63)
       at com.hp.tis.ewo.common.win32.Environment.<clinit>(Environment.java:257)
       at com.hp.tis.ewo.setup.ContextController.<init>(ContextController.java:54)
       at
com.hp.tis.ewo.setup.cookie.CookieEngine.getWorkshopID(CookieEngine.java:181)
       at
com.hp.tis.ewo.clienttools.trigger.CookieTrigger.execute(CookieTrigger.java:89)
       at com.hp.tis.ewo.clienttools.trigger.TriggerLoop.run(TriggerLoop.java:82)
       at
com.hp.tis.ewo.clienttools.connectivity.http.EwaHttpUrlConnection.getBaseHttpConnection(EwaHttpUrlConnection.java:312)
       at
com.hp.tis.ewo.clienttools.connectivity.http.EwaHttpUrlConnection.<init>(EwaHttpUrlConnection.java:251)
       at
com.hp.tis.ewo.clienttools.ServiceFactory.getConnection(ServiceFactory.java:165)
       at
com.proquest.epc.view.bl.ServerConnectionBL.sendToAppServer(ServerConnectionBL.java:110)
       at
com.proquest.epc.view.bl.ServerConnectionBL.sendRequest(ServerConnectionBL.java:65)
       at com.proquest.epc.view.rh.LoginRequestor.execute(LoginRequestor.java:24)
       at
com.proquest.epc.view.impl.MBEPCApplication.main(MBEPCApplication.java:310)
       ... 9 more
Jeff Higgins - 18 Jul 2007 18:32 GMT
> worked fine when I was using Java 1.4.2 but won't work now, with Java 6
Java 6 seems to be a problem according to this.
<http://mercedesshop.com/shopforum/showthread.php?p=1369840>
Hal Vaughan - 18 Jul 2007 19:03 GMT
>> worked fine when I was using Java 1.4.2 but won't work now, with Java 6
> Java 6 seems to be a problem according to this.
> <http://mercedesshop.com/shopforum/showthread.php?p=1369840>

It doesn't seem to be just Java 6.  The only post in that thread that
mentions the same issue is from 2002.  Since I posted, I found some old JRE
install files and created other instances of the JRE on my system and tried
1.4.2 and 1.5, changing the default javaws app in Firefox to each of them
in turn and I got the same error.

The one that is working on Windows XP is Java 5.  I don't want to upgrade
that system and risk losing the functionality, since I don't think I have
another Java 5 jre backup to to install.

I'm going to hunt around and see if there might some issue with parameters.

Hal
Roedy Green - 25 Jul 2007 01:30 GMT
On Wed, 18 Jul 2007 12:55:23 -0400, Hal Vaughan
<hal@thresholddigital.com> wrote, quoted or indirectly quoted someone
who said :

>I've been using a web application to find part numbers and info for an
>antique car I've been working on for a while.  I used to go to the
>manufacturer's website, log in ($20 a year fee, otherwise I'd link to it),
>click on the link, and the program would run just fine under Linux.

I take it the antique car site provides this program and you don't
have source?  If so, it is their problem to solve.  It may mean merely
adding a few lines to the JNLP file.  If there is a JNLP file, have a
look at it, and see if it covers your platform.  See
http://mindprod.com/jgloss/jnlp.html
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Hal Vaughan - 30 Jul 2007 12:09 GMT
> On Wed, 18 Jul 2007 12:55:23 -0400, Hal Vaughan
> <hal@thresholddigital.com> wrote, quoted or indirectly quoted someone
[quoted text clipped - 7 lines]
> I take it the antique car site provides this program and you don't
> have source?  If so, it is their problem to solve.  

It's their problem to solve, but when so few gearheads are using Linux and
the site is mainly for their dealers, it is my problem that they don't
solve it. :-(

> It may mean merely
> adding a few lines to the JNLP file.  If there is a JNLP file, have a
> look at it, and see if it covers your platform.  See
> http://mindprod.com/jgloss/jnlp.html

I'll check their JNLP file to see.  I know, though, that this worked just
fine with Firefox on Linux until I upgraded the system, so I'm betting that
it was something simple in a config on my end that, when changed, effected
what their program did.  I wish I knew what ID string Firefox was sending
before I upgraded.

Hal
Roedy Green - 30 Jul 2007 17:19 GMT
On Mon, 30 Jul 2007 07:09:56 -0400, Hal Vaughan
<hal@thresholddigital.com> wrote, quoted or indirectly quoted someone
who said :

>I'll check their JNLP file to see.  I know, though, that this worked just
>fine with Firefox on Linux until I upgraded the system, so I'm betting that
>it was something simple in a config on my end that, when changed, effected
>what their program did.  I wish I knew what ID string Firefox was sending
>before I upgraded.
Hmmm.
JNLP does nothing different depending on browser.
Sometimes Webservers check the User-Agent. The Canadian Income Tax
people insist on some versions of browsers no longer available.  You
can't get in with any modern browser!
see http://mindprod.com/jgloss/http.html
to see the typical User-Agent strings emitted by the various browsers.
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.