Client Not working on XP machine...

Discuss all problems you have with Servoy here. It might help to mention the Servoy version and Operating System version you are using

Client Not working on XP machine...

Postby john.allen » Wed Feb 03, 2010 5:45 am

I've been having numerous problems over the last couple of days. I moved a solution that has been running entirely on Sybase to having Oracle hold the actual data (iAnywhere still runs the repository). This was running using Servoy 3.5.10 and I didn't want to upgrade it yet. Moving the solution to point at Oracle worked fantastically well actually but since then I've had numerous problems, seemingly to do with the Servoy Server. It would work fine in Developer and then sometimes work when I fired up Server but after a bit all clients couldn't access it.

I was working with a fresh Servoy 3.5.10 install and so finally I decided to go back to my original Servoy install pointing entirely to Sybase. I repointed the database servers on that to Oracle, deleted the old solution and imported the solution I had been working on that pointed to Oracle. Currently all client installs seem to be working except one using that old 3.5.10 install. The one that isn't working is a PC running XP that is right next to my office. When it was failing on all clients, I was getting different error messages on the clients and the servoy_log. The error though I have posted below was the same on this particular machine throughout. Anyone have any idea what is involved? Logging in works normally up until the form loads. Then most of the form shows except the navigation panel on the left and none of the data shows. "Vendor name == null!" ?


Java Web Start 1.6.0_18
Using JRE version 1.6.0_17-b04 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\jallen
----------------------------------------------------
Feb 3, 2010 3:22:17 AM com.servoy.j2db.util.Debug log
INFO: Starting Servoy from C:\Program Files\Mozilla Firefox
Feb 3, 2010 3:22:17 AM com.servoy.j2db.util.Debug log
INFO: Servoy 3.5.10 build-524 on Windows XP using Java 1.6.0_17
Exception in thread "AWT-EventQueue-0" sun.misc.ServiceConfigurationError: javax.imageio.spi.ImageWriterSpi: Provider com.sun.media.imageioimpl.plugins.jpeg.CLibJPEGImageWriterSpi could not be instantiated: java.lang.IllegalArgumentException: vendorName == null!
at sun.misc.Service.fail(Unknown Source)
at sun.misc.Service.access$200(Unknown Source)
at sun.misc.Service$LazyIterator.next(Unknown Source)
at javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(Unknown Source)
at javax.imageio.spi.IIORegistry.<init>(Unknown Source)
at javax.imageio.spi.IIORegistry.getDefaultInstance(Unknown Source)
at javax.imageio.ImageIO.<clinit>(Unknown Source)
at com.servoy.j2db.util.ImageLoader.getSize(Unknown Source)
at com.servoy.j2db.dataui.MyImageIcon.<init>(Unknown Source)
at com.servoy.j2db.dataui.AbstractScriptLabel.setIconDirect(Unknown Source)
at com.servoy.j2db.dataui.AbstractScriptLabel.setIcon(Unknown Source)
at com.servoy.j2db.dataui.AbstractScriptLabel.setMediaIcon(Unknown Source)
at com.servoy.j2db.dataui.ComponentFactory.a(Unknown Source)
at com.servoy.j2db.dataui.ComponentFactory.a(Unknown Source)
at com.servoy.j2db.dataui.ComponentFactory.createComponent(Unknown Source)
at com.servoy.j2db.dataui.DataRendererFactory.a(Unknown Source)
at com.servoy.j2db.dataui.DataRendererFactory.completeRenderers(Unknown Source)
at com.servoy.j2db.FormController.a(Unknown Source)
at com.servoy.j2db.FormController.try(Unknown Source)
at com.servoy.j2db.FormManager.new(Unknown Source)
at com.servoy.j2db.FormManager.a(Unknown Source)
at com.servoy.j2db.FormController.a(Unknown Source)
at com.servoy.j2db.FormController.notifyVisible(Unknown Source)
at com.servoy.j2db.FormManager.a(Unknown Source)
at com.servoy.j2db.FormManager.char(Unknown Source)
at com.servoy.j2db.FormManager.if(Unknown Source)
at com.servoy.j2db.j.if(Unknown Source)
at com.servoy.j2db.FormManager$1.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(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)
Caused by: java.lang.IllegalArgumentException: vendorName == null!
at javax.imageio.spi.IIOServiceProvider.<init>(Unknown Source)
at javax.imageio.spi.ImageReaderWriterSpi.<init>(Unknown Source)
at javax.imageio.spi.ImageWriterSpi.<init>(Unknown Source)
at com.sun.media.imageioimpl.plugins.jpeg.CLibJPEGImageWriterSpi.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
... 34 more
John Allen
Stanford University
john.allen
 
Posts: 515
Joined: Wed Jul 02, 2003 10:07 pm
Location: Stanford CA USA

Re: Client Not working on XP machine...

Postby ptalbot » Wed Feb 03, 2010 6:16 am

Hi John,

it seems there is a problem in Java 1.6u18 with Java JAI Image I/O, I suppose your java install got broken when updating.
I notice for example that your web start is "Java Web Start 1.6.0_18"
While the JRE used is "version 1.6.0_17-b04 Java HotSpot(TM) Client VM"

So first, in the Java preference panel, go to the Java tab, click on the 'Display..." button and check that the JRE 1.6.0_18 is activated:
JRE.gif
JRE.gif (12.89 KiB) Viewed 18674 times

Then try again.

If this fails, you can also try installing the JAI Image I/O lib separately, the JRE binaries can be downloaded from:
https://jai.dev.java.net/binary-builds.html

Hope this helps,
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
https://www.servoyforge.net
Velocity rules! If you don't use it, you don't know what you're missing!
User avatar
ptalbot
 
Posts: 1654
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC

Re: Client Not working on XP machine...

Postby john.allen » Wed Feb 03, 2010 6:37 am

Hi Patrick,

Thanks very much for the advice. Got a meeting and possible demo tomorrow so hoping this particular solution is working. :) In fact in my Java preferences I only have 1.6.0_17 showing. So I tried manually updating from the Java preferences and it says that I am already up to date. Also I was a little reluctant to go to 1.6.0_18 just from the things I saw in an earlier post in January from Ellen about some issues. Do you know if those have been resolved?
So do I need to manually force this upgrade to 1.6.0_18? or do I just go to the link that you sent? And from there should I download this?
jai-1_1_2_01-lib-windows-i586-jdk.exe
Sorry but I'm a little ignorant on updating Java. I've always just gone with the automatic updates (mainly on Macs) and up until now I guess I've gotten away with it. The PC that is having this 'client' problem can actually act as a Servoy server and doesn't seem to have any problems with this Java...
John Allen
Stanford University
john.allen
 
Posts: 515
Joined: Wed Jul 02, 2003 10:07 pm
Location: Stanford CA USA

Re: Client Not working on XP machine...

Postby ptalbot » Wed Feb 03, 2010 7:01 am

Better download: jai-1_1_3-lib-windows-i586-jre.exe

And if this fails, I would uninstall the current and install 1.6u18 from scratch: http://www.java.com/en/download/index.jsp
In any case, it's not normal that it would say that there you are up-to-date...

As for the problems on update 18 with Servoy, I didn't experience any, on XP in any case, and I used it at my office and at home since beta3.
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
https://www.servoyforge.net
Velocity rules! If you don't use it, you don't know what you're missing!
User avatar
ptalbot
 
Posts: 1654
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC

Re: Client Not working on XP machine...

Postby jcompagner » Wed Feb 03, 2010 4:33 pm

i will try to see if we can update to those latest 1.1.3 (from 1.1 that we have no i think)
But it is not a drop in replacement. they are now 2 jars.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Client Not working on XP machine...

Postby john.allen » Wed Feb 03, 2010 10:08 pm

Sorry, Johan, a little confused. Should I try to upgrade/reinstall Java on this PC? And if so what should I install/upgrade/reinstall? Or should I wait for something you guys are doing? Do you think this is causing the problem for Servoy client on this machine?
John Allen
Stanford University
john.allen
 
Posts: 515
Joined: Wed Jul 02, 2003 10:07 pm
Location: Stanford CA USA

Re: Client Not working on XP machine...

Postby jcompagner » Wed Feb 03, 2010 11:13 pm

john.allen wrote:Sorry, Johan, a little confused. Should I try to upgrade/reinstall Java on this PC? And if so what should I install/upgrade/reinstall? Or should I wait for something you guys are doing? Do you think this is causing the problem for Servoy client on this machine?



problem is that upgrading java is the problem
This above problem seem to happen with java 6u18 (and maybe also with u17)

The problem is the images plugin

You could update that one yourself if you want to test it on the server
replace this images.jnlp file content with:

Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+"
      codebase="%%serverURL%%"
      href="/servoy-client/plugins/images.jar.jnlp">
   <information>
      <title>Servoy Client Plugins</title>
      <vendor>Servoy and Others</vendor>
      <offline-allowed/>
   </information>
   <resources>
      <jar href="/plugins/images.jar" download="eager" part="images" version="%%version%%"/>
      <jar href="/plugins/images/jai_imageio.jar" download="%%loadmethod%%" part="imageio" version="1.1a"/>
      <package name="com.sun.media.*" part="imageio" recursive="true"/>
      <package name="jj2000.j2k.*" part="imageio" recursive="true"/>
      <jar href="/plugins/images/metadataextractor.jar" download="%%loadmethod%%" part="metadata" version="2.3.1"/>
      <package name="com.drew.*" part="metadata" recursive="true"/>
   </resources>
   <component-desc/>
</jnlp>


with

Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+"
      codebase="%%serverURL%%"
      href="/servoy-client/plugins/images.jar.jnlp">
   <information>
      <title>Servoy Client Plugins</title>
      <vendor>Servoy and Others</vendor>
      <offline-allowed/>
   </information>
   <resources>
      <jar href="/plugins/images.jar" download="eager" part="images" version="%%version%%"/>
      <jar href="/plugins/images/jai_codec.jar" download="%%loadmethod%%" part="imageio_codec" version="1.1.3"/>
      <jar href="/plugins/images/jai_core.jar" download="%%loadmethod%%" part="imageio_core" version="1.1.3"/>
      <jar href="/plugins/images/metadataextractor.jar" download="%%loadmethod%%" part="metadata" version="2.3.1"/>
   </resources>
   <component-desc/>
</jnlp>


then copy the 2 jars to the plugins/images dir (besides the jai_imageio.jar that can be removed)
Attachments
jai_codec.jar
(252.11 KiB) Downloaded 468 times
jai_core.jar
(1.81 MiB) Downloaded 465 times
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Client Not working on XP machine...

Postby john.allen » Thu Feb 04, 2010 3:25 am

Damn, Johan, you might not know Macs but Java you are gospel! :D I changed those images.jar.jnlp files as suggested, removed the jai_imageio.jar files and replaced them with your downloads and bingo everything seems to work on that client PC. Never would have occurred to me that it could be in the server files. I presumed it would be on the client side. Anything I need to be looking out for going forward in terms of updates for Java (or Servoy) on either server or client side that might impact these changes?
John Allen
Stanford University
john.allen
 
Posts: 515
Joined: Wed Jul 02, 2003 10:07 pm
Location: Stanford CA USA

Re: Client Not working on XP machine...

Postby jcompagner » Thu Feb 04, 2010 9:47 am

the thing that that jar or jars should bring is support for many image types i thing types like tiff or bmp.
i will test this today if that still works fine
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Client Not working on XP machine...

Postby jcompagner » Thu Feb 04, 2010 2:34 pm

ok

https://jai.dev.java.net/ is not the same as https://jai-imageio-core.dev.java.net/

the first is a api where you can program against to do stuff with images and so on.
The second is registers services in the existing ImageIO api of java so that ImageIO can read in files that are not supported by default.

With the just the jai jars you loose the loading of TIFF for example.

i patched the ImageIO jar so that hopefully that vendor==null will not happen anymore.

Can people that had problems with this exception try this jar?
Update the jar in the plugins/images dir
And do use the original jnlp file (so not the updated above)
Attachments
jai_imageio.jar
(1.09 MiB) Downloaded 3108 times
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Client Not working on XP machine...

Postby patrick » Thu Feb 04, 2010 5:06 pm

The patched jar fixed the issue on my system with u18... Thanks!
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Re: Client Not working on XP machine...

Postby john.allen » Thu Feb 04, 2010 8:53 pm

I presume I can just leave the fix in that you posted earlier in this thread. Is that correct? Seems to be working fine on all clients. Still confused why a server-side issue affects just one client and not the others. The clients for whom it was working were a mixture of PCs and Macs. But the main thing is that it's all working again.

Thanks! :)
John Allen
Stanford University
john.allen
 
Posts: 515
Joined: Wed Jul 02, 2003 10:07 pm
Location: Stanford CA USA

Re: Client Not working on XP machine...

Postby jcompagner » Thu Feb 04, 2010 9:22 pm

as long as you dont need support for reading TIFF or RAW image files and so on (i think default jpg,png,gif and even bmp do work already) it will work fine.

it greatly depends on which java version you use. This seem to trigger when using u17 of u18 of java 6

also this seems to be a threading problem and those are very unreliable bugs, those bugs dont always just work as bugs sometimes they decide to just work as not a bug!!
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Client Not working on XP machine...

Postby Alexander1391603022 » Wed Feb 05, 2014 2:28 pm

[Sorry, the registration link was not shown in my browser because of scripts from non-authenticated sources which were not loaded by Chrome and IE. Thus, I have sent this inquiry to your tech support e-mail as well, having found no other way to help myself.]

I have a question concerning the patched version of jar_imageio.jar (download/file.php?id=2342) uploaded by Johan Compagner.

We use a shaded JAR (uber-JAR) containing classes from JDK 1.7. Out application works nicely from the shaded JAR, but when I unpack the JAR to a directory and run the software from there, I get the "vendor == null" error. I googled and found your forum thread, downloaded the JAR and prepended it to my classpath when running the unpacked version of the software. Et voilà – it works! :-) So far, so good. My ion now is: What exactly have you patched? We need to do the same in our own build process before creating our shaded JAR.

Thank you so much for your help even though I am not a Servoy user.
Alexander1391603022
 
Posts: 1
Joined: Wed Feb 05, 2014 2:23 pm

Re: Client Not working on XP machine...

Postby jcompagner » Thu Feb 06, 2014 4:52 pm

thats a long time ago, i am don't know what i exactly did back then but think i just fixed the constuctor call:

http://dev.loci.wisc.edu/trac/software/ ... a?rev=4503

public CLibJPEGImageWriterSpi() {
super(PackageUtil.getVendor(),
PackageUtil.getVersion(),

i removed that i guess.. to used fixed strings
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Discuss possible Issues and Bugs

Who is online

Users browsing this forum: Google [Bot] and 3 guests