Advertisement
anubisg1

Untitled

Nov 17th, 2013
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. Hello Andrea,
  2.  
  3. This is all about liveconnect - applet-to-javascript communication.
  4. Applet configured to notify html page about its initialization, but sometimes fails:
  5. 17.11.2013 15:12:10 - DEBUG - jl_27937716_appletMessagePumper - Invoking JS method appletInitialized([Ljava.lang.Object;@82e4d6)
  6. 17.11.2013 15:12:10 - ERROR - jl_27937716_appletMessagePumper - JS method call failed: appletInitialized
  7. 17.11.2013 15:12:10 - ERROR - jl_27937716_appletMessagePumper - netscape.javascript.JSException: JavaScript error while calling "appletInitialized"
  8. at sun.plugin2.main.client.MessagePassingJSObject.newJSException(Unknown Source)
  9. at sun.plugin2.main.client.MessagePassingJSObject.waitForReply(Unknown Source)
  10. at sun.plugin2.main.client.MessagePassingJSObject.call(Unknown Source)
  11. at jmaster.jumploader.app.JumpLoaderApplet.run(Unknown Source)
  12. at java.lang.Thread.run(Unknown Source)
  13.  
  14. I see following error in chrome developer console:
  15. Uncaught TypeError: object HTMLAppletElement has no method 'getUploaderConfig'
  16.  
  17. Here is problematic function:
  18.  
  19. function appletInitialized(uploader){
  20. var applet = document.getElementById('jumpLoaderApplet');
  21. var origUrl = applet.getUploaderConfig().getUploadUrl();
  22. var currentFolder = parent.base64_encode(parent.ajaxplorer.getUserSelection().getContextNode().getPath());
  23. applet.getUploaderConfig().setUploadUrl(origUrl + "&dir=" + currentFolder + "&ajxp_sessid=" + clientId);
  24. applet.getUploaderConfig().setPartitionLength(partitionLength);
  25. applet.getUploaderConfig().setMaxFileLength(maxFileLength);
  26. }
  27.  
  28. The solution is to use passed "uploader" variable (save it as global variable) for accessing exposed API insted of using DOM.
  29. You can report this issue and solution to lacie
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement