Forum: Q & A

Thread: PTViewer with Joomla 2.5

back to threads list | this thread is closed
Search the forums:
messages 1-15 of 16
first prev Prev 1 2 next next last
Author  Message 
Traveller

Posts: 25
Location: United Kingdom
Registered: 26 Mar 2011
PTViewer with Joomla 2.5
Posted: 1 Apr 2012 at 9:16 GMT
I have been using PTViewer (with a dropdown menu for file selection) on a Joomla 1.5 site for some time. Helpful folks on this forum helped me get it working. Everything works well.

However, I am now recreating the site using Joomla 2.5 and I can no longer persuade PTViewer to work. The PTviewer setup is exactly the same as before (all files copied directly across to the new site) but the Java loading display (the rotating circle) freezes after a couple of seconds and that's it!

I know this sounds like a Joomla question but few people on the Joomla forums seem to know anything about PTViewer.

Please can anyone offer any clues?
alert moderator
DemonDuck

Posts: 418
Location:
Registered: 10 Mar 2011
Re: PTViewer with Joomla 2.5
Posted: 1 Apr 2012 at 15:45 GMT
Post a link to your site. What version of PTViewer and what version of Java are you using?
alert moderator
Thomas Krueger

Posts: 371
Location: Genoa, Italy
Registered: 3 Mar 2006
Re: PTViewer with Joomla 2.5
Posted: 2 Apr 2012 at 6:15 GMT
Check the thread on the Panopress forum, maybe a solution:
www.panopress.org/forum/discussion/129/panopress-...
alert moderator
Savak

Posts: 213
Location: United Kingdom
Registered: 18 Oct 2004
Re: PTViewer with Joomla 2.5
Posted: 2 Apr 2012 at 8:14 GMT
Try www.avisiter.com/.
I have used this in the past but not recently it may make life easier.
alert moderator
Traveller

Posts: 25
Location: United Kingdom
Registered: 26 Mar 2011
Re: PTViewer with Joomla 2.5
Posted: 2 Apr 2012 at 19:39 GMT
Thanks for all three replies above. Sorry about the delay in getting back!

I have used AVpano from avisiter.com on Joomla 1.5 but the version for Joomla 2.5 is not yet available. Communication with the avisiter.com is variable to say the least, but the full-screen displays provided by the AVPano extension and DevalVR (in Joomla 1.5) are amazing - to my eyes anyway. Excellent for a Joomla 1.5 site.

The Panoppress was interesting but did not in the end help to resolve the problem - thank you anyway.

My new site is still under development and is therefore password protected. Nevertheless just use username "Test" and password "Test" for front-end access. I will change the password again later.

The problem page can be seen at:
www.openphotographicsociety.org/joomla17/index.ph...confusedperical-panos-testing&catid=124&Itemid=613

Incidentally, when the page loads the menu on the left-hand side is wiped out - presumably some conflict there somewhere.

I am using Java version 6 update 13 (the latest?) and version of PTViewer.jar version 3.1.2. Again, I think that is the latest one.

Many thanks
alert moderator
DemonDuck

Posts: 418
Location:
Registered: 10 Mar 2011
Re: PTViewer with Joomla 2.5
Posted: 2 Apr 2012 at 21:57 GMT
updated: 2 Apr 2012 at 22:08 GMT
When I open your page, Java does not even start on my machine and I see no reference at all to PTViewer or applet.

Also, I see a lot of spurious '/' (forward slashes) at the end of your statements. It also completely fails on Chrome.

I'd say that it's not a Java problem but some sort of error in your HTML.
alert moderator
Traveller

Posts: 25
Location: United Kingdom
Registered: 26 Mar 2011
Re: PTViewer with Joomla 2.5
Posted: 4 Apr 2012 at 11:22 GMT
Thanks for the replies.

I have tried the code with Chrome and Java starts OK so I don't understand the particular aspect of the problem you mention. However, the process freezes before loading the panos.

I have now made some changes to the code but it still does not work. In particular, the statement <body onload="newtext(inittour)"> (about line 1090) is obviously causing problems. I don't know how to fix it.

I have run an HTML validator on the page code and it flags up 18 errors - 14 of which ar in (working) commercial code. The remaining 4 issues are beyond me at present.

Any further comments more than welcomed!
alert moderator
DemonDuck

Posts: 418
Location:
Registered: 10 Mar 2011
Re: PTViewer with Joomla 2.5
Posted: 5 Apr 2012 at 2:37 GMT

Traveller said:

Thanks for the replies.

I have tried the code with Chrome and Java starts OK so I don't understand the particular aspect of the problem you mention. However, the process freezes before loading the panos.

I have now made some changes to the code but it still does not work. In particular, the statement <body onload="newtext(inittour)"> (about line 1090) is obviously causing problems. I don't know how to fix it.

I have run an HTML validator on the page code and it flags up 18 errors - 14 of which ar in (working) commercial code. The remaining 4 issues are beyond me at present.

Any further comments more than welcomed!


Here's the Java Console dump using FF 3.6.28 -- look at the bottom:

----------------

Java Plug-in 1.6.0_31
Using JRE version 1.6.0_31-b05 Java HotSpot(TM) Client VM
User home directory = C:\Users\kwarner000

----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------

java.lang.reflect.InvocationTargetException
at com.sun.deploy.util.DeployAWTUtil.invokeAndWait(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.runOnEDT(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: peer
at sun.awt.windows.WCanvasPeer.create(Native Method)
at sun.awt.windows.WComponentPeer.<initdevilUnknown Source)
at sun.awt.windows.WCanvasPeer.<initdevilUnknown Source)
at sun.awt.windows.WPanelPeer.<initdevilUnknown Source)
at sun.awt.windows.WToolkit.createPanel(Unknown Source)
at java.awt.Panel.addNotify(Unknown Source)
at java.awt.Container.addImpl(Unknown Source)
at java.awt.Container.add(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable$1.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(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.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)
Exception: java.lang.reflect.InvocationTargetException
java.lang.NullPointerException
at ptviewer.extractParameter(Unknown Source)
at ptviewer.myGetParameter(Unknown Source)
at ptviewer.ReadParameters(Unknown Source)
at ptviewer.init(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.lang.NullPointerException
java.lang.NullPointerException
at ptviewer.paint(Unknown Source)
at ptviewer.finishInit(Unknown Source)
at ptviewer.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Memory: 16,000K Free: 12,283K (76%) ... completed.

----------------

Above is a trace with trace level 5. You are getting a lot of null pointer exceptions. And at the end, the memory dump shows you are only allocating 1,6meg (if I got the arithmetic right -- real tired after a long drive right now)

In your applet tag, put this statement in -- it allocates a bunch of memory for the applet.

<PARAM NAME="java_arguments" VALUE="-Xms384m -Xmx512m -Dsun.java2d.noddraw=true -Xcomp -Xbatch">

Please let me know if this works for you. If giving more memory to PTViewer applet doesn't work, then the applet needs some work or the parameters you are giving PTViewer are wrong. Try a simple page with just PTViewer and one pano and gradually expand your pano list until it fails.

If it fails with just one pano and you can't make it work with one pano all by itself, then contact Dr. Dersch.
alert moderator
Traveller

Posts: 25
Location: United Kingdom
Registered: 26 Mar 2011
Re: PTViewer with Joomla 2.5
Posted: 6 Apr 2012 at 16:38 GMT
Many thanks for this information.

I have tried your proposed additional parameter but it appears to make no difference. Also, currently I cannot find a problem with the parameters passed to the applet - they are anyway exactly the same as those that work perfectly on my Joomla 1.5 site.

The problem seems to be caused something Joomla 2.5 does not like - but Joomla 1.5 tolerates. Before posting here I tried the Joomla forums but no one seems to have got an answer.

Anyway, I really appreciate your help and welcome any further comments anyone might have.
alert moderator
DemonDuck

Posts: 418
Location:
Registered: 10 Mar 2011
Re: PTViewer with Joomla 2.5
Posted: 6 Apr 2012 at 17:09 GMT
Well, that's all the insight I can offer except start with the most simple test you can get to work and then start adding complexity.

Try a Joomla page with just the applet and one pano on a blank white page with no CSS or anything else. I'd like to see that. I'm also curious why it doesn't work. I hope to learn something also.
alert moderator
Traveller

Posts: 25
Location: United Kingdom
Registered: 26 Mar 2011
Re: PTViewer with Joomla 2.5
Posted: 6 Apr 2012 at 18:39 GMT
Sorry, I forgot to say that I tried this with the absolute minimum version of PTViewer. It works perfectly off-line of course, but will not work in Joomla 2.5.

The code I am trying to run is below. It comes staright off the PTViewer site.
************************
<html>
<head>
<meta http-equiv="Content-Language" content="it">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Sample image</title>
/head>
<body>
<p>Sample image using PTViewer 2.5:</p>
<applet code="ptviewer.class" archive="ptviewer.jar" width=600 height=450>
<param name=file value="webtest.jpg">
<param name=cursor value="MOVE">
<param name=pan value=-105>
</applet>
</body>
</html>
******************************
You can see the page here:
www.openphotographicsociety.org/joomla17/index.ph...:test-pano-wrapper&catid=124&Itemid=613

NB: Login to the front end using username "Test" and password "Test" if you are asked for login details.
alert moderator
iam360Texas

Posts: 312
Location: Fort Worth, Texas, United States
Registered: 12 Jul 2006
Re: PTViewer with Joomla 2.5
Posted: 6 Apr 2012 at 19:02 GMT
updated: 6 Apr 2012 at 19:03 GMT
I realize now this URL was done with Joomla 1.5 not 2.5 maybe you can get some helpful code hints by "view source"

www.aventure.lu/en/news/101-360-virtual-tour

And when I clicked your link.. all I saw was a black screen. Didn't have to login.

I am using IE 9 on a PC.
alert moderator
DemonDuck

Posts: 418
Location:
Registered: 10 Mar 2011
Re: PTViewer with Joomla 2.5
Posted: 6 Apr 2012 at 19:15 GMT

iam360Texas said:

I realize now this URL was done with Joomla 1.5 not 2.5 maybe you can get some helpful code hints by "view source"

www.aventure.lu/en/news/101-360-virtual-tour

And when I clicked your link.. all I saw was a black screen. Didn't have to login.

I am using IE 9 on a PC.


Yes, your test page started the Java JVM but PTViewer failed with a null pointer exception when trying to get a parameter. PTViewer crashes in init(). So you have a problem with how you are initializing your parameters.

---------Java Plug-in 1.6.0_31
Using JRE version 1.6.0_31-b05 Java HotSpot(TM) Client VM
User home directory = C:\Users\kwarner000

----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------

java.lang.reflect.InvocationTargetException
at com.sun.deploy.util.DeployAWTUtil.invokeAndWait(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.runOnEDT(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: peer
at sun.awt.windows.WCanvasPeer.create(Native Method)
at sun.awt.windows.WComponentPeer.<initdevilUnknown Source)
at sun.awt.windows.WCanvasPeer.<initdevilUnknown Source)
at sun.awt.windows.WPanelPeer.<initdevilUnknown Source)
at sun.awt.windows.WToolkit.createPanel(Unknown Source)
at java.awt.Panel.addNotify(Unknown Source)
at java.awt.Container.addImpl(Unknown Source)
at java.awt.Container.add(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable$1.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(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.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)
Exception: java.lang.reflect.InvocationTargetException
java.lang.NullPointerException
at ptviewer.extractParameter(Unknown Source)
at ptviewer.myGetParameter(Unknown Source)
at ptviewer.ReadParameters(Unknown Source)
at ptviewer.init(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.lang.NullPointerException
java.lang.NullPointerException
at ptviewer.paint(Unknown Source)
at ptviewer.finishInit(Unknown Source)
at ptviewer.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
alert moderator
DemonDuck

Posts: 418
Location:
Registered: 10 Mar 2011
Re: PTViewer with Joomla 2.5
Posted: 6 Apr 2012 at 19:24 GMT
updated: 6 Apr 2012 at 19:25 GMT

Traveller said:

Sorry, I forgot to say that I tried this with the absolute minimum version of PTViewer. It works perfectly off-line of course, but will not work in Joomla 2.5.

The code I am trying to run is below. It comes staright off the PTViewer site.
************************
<html>
<head>
<meta http-equiv="Content-Language" content="it">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Sample image</title>
/head>
<body>
<p>Sample image using PTViewer 2.5:</p>
<applet code="ptviewer.class" archive="ptviewer.jar" width=600 height=450>
<param name=file value="webtest.jpg">
<param name=cursor value="MOVE">
<param name=pan value=-105>
</applet>
</body>
</html>
******************************
You can see the page here:
www.openphotographicsociety.org/joomla17/index.ph...:test-pano-wrapper&catid=124&Itemid=613

NB: Login to the front end using username "Test" and password "Test" if you are asked for login details.


Try this applet tag. I put quotes (") around everything because parameters are passed as strings to Java.

<applet code="ptviewer.class" archive="ptviewer.jar" width=600 height=450>
<param name="file" value="webtest.jpg">
<param name="cursor" value="MOVE">
<param name="pan" value="-105">
</applet>
alert moderator
Traveller

Posts: 25
Location: United Kingdom
Registered: 26 Mar 2011
Re: PTViewer with Joomla 2.5
Posted: 7 Apr 2012 at 9:22 GMT
Thanks again for your interest in this.

I'm afraid the quotes make no difference - the failure mechanism seems to be exactly the same as before.

As I said earlier, the situation is in its simplest possible form. Please not that the page for this basic implementation is at:
www.openphotographicsociety.org/ ... Itemid=613
(You may need to login using Test and Test.)

There are only three files involved:
ptviewer.jar
basic_ptviewer.htm
webtest.jpg

This setup works perfectly off-line, but does not work on the server in the Joomla 2.5 site. The failure mechanism seems to be the same as in all the earlier, more complicated implementations I have tried.

Exactly the same setup (and files) works perfectly in Joomla 1.5. The page can be seen at the live site :

www.openphotographicsociety.org/ ... &Itemid=54

To my untrained eye this means that the problem is related to Joomla 2.5 - at least an unknown key difference, and maybe a fault. But the Joomla forums have not yet come up with an explanation.
alert moderator
messages 1-15 of 16
first prev Prev 1 2 next next last