JPedal not working. Alternative for Servoy 8?

Questions and answers on developing, deploying and using plugins and JavaBeans

JPedal not working. Alternative for Servoy 8?

Postby briese-it » Tue Nov 24, 2015 9:57 pm

Since Servoy 8 the jpedal bean is not working anymore on my application server.
Is there any other option to show pdf documents on forms within smartclient and webclient?
Michael Harms
Briese Schiffahrts GmbH & Co.KG, Germany
- Servoy 2024.3.0.3943 + 2020.3.3.3565_LTS Running on Windows 2019 DataCenter - MSSQL2017 & PostGreSQL
User avatar
briese-it
 
Posts: 173
Joined: Mon Jun 20, 2011 1:50 pm
Location: Leer, Germany

Re: JPedal not working. Alternative for Servoy 8?

Postby mboegem » Wed Nov 25, 2015 10:09 am

Hi,

I've seen an earlier reply on the JasperReports plugin where you also state that this doesn't work in Servoy 8.
I find that rather strange, as - according to Servoy - v8 is basically v7 + ng-client.
Under the hood the code for smart- + webclient should be the same as the latest v7 release (at least for now)

I verified this again and it seems like your problems are due to the Java version.
Servoy has no known issues of plugins not working 'because of servoy 8', this is simply not true.

To answer your question (which I partly did):
jpedal bean should just work in smart-client, check with a different Java version to see if that solves your issue.

As it's a swing component, this bean has never (and will never) work in web-client/ng-client.
For this purpose, have a look at pdf.js which has been demoed by Sanneke Aleman at ServoyWorld 2014.
You can find the slides here: https://servoy.com/forum/viewtopic.php? ... 4&start=15

Hope this helps
Marc Boegem
Solutiative / JBS Group, Partner
Servoy Specialist
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image
User avatar
mboegem
 
Posts: 1752
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: JPedal not working. Alternative for Servoy 8?

Postby briese-it » Wed Nov 25, 2015 10:43 am

Hello Marc,
thanks for your reply.
Now I have a local installed Servoy 7.4.5 and Servoy 8.0.1. developer to test it.
With Servoy 7.4.5 I can use the jpedal bean on my forms (move it around on the form in edit mode etc.).
With Servoy8 the bean is visible on the form but it's only visible and I can't change anything to it. If I wanna move the bean I get an error. So I think the plugin is broken in Servoy 8.

I don't understand it. Why should this be a problem with my Java version and how have you verified this?

Regarding the JasperReports plugin: I don't know why v4 is not working with Servoy 8. Look at https://support.servoy.com/browse/SVY-9090.

Iam loosing hours of time to find workarounds because of not working things in Servoy..... Now I give pdf.js a try to run in smartClient....
Attachments
error1.PNG
error1.PNG (12.9 KiB) Viewed 12886 times
Michael Harms
Briese Schiffahrts GmbH & Co.KG, Germany
- Servoy 2024.3.0.3943 + 2020.3.3.3565_LTS Running on Windows 2019 DataCenter - MSSQL2017 & PostGreSQL
User avatar
briese-it
 
Posts: 173
Joined: Mon Jun 20, 2011 1:50 pm
Location: Leer, Germany

Re: JPedal not working. Alternative for Servoy 8?

Postby mboegem » Wed Nov 25, 2015 1:35 pm

Hi Michael,

just get some things straight here:
you're initially saying the jpedal bean doesn't work in application server.
Now you're referring to developer: which form editor are you using in v8?
I can imagine this will work differently in the new editor, but if you use the classic editor again this shouldn't be any problem.

About my verification: I verified v8 being essentially the same as v7 (smart-/webclient)
If anything will behave differently most likely this is a different java version.

I'm quite surprised/shocked you get the advice to run alpha :!: versions of the JasperPlugin.
Until now I've only heard people having issues with that version (running Servoy v7)
Marc Boegem
Solutiative / JBS Group, Partner
Servoy Specialist
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image
User avatar
mboegem
 
Posts: 1752
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: JPedal not working. Alternative for Servoy 8?

Postby ROCLASI » Wed Nov 25, 2015 2:00 pm

Just tried the jpedal bean in Servoy 8, legacy form editor.
I can drop the bean on the form but the moment I try to move it in place I get an error.
The dialog it throws up doesn't tell you anything (it's empty) but the workspace .log file does show 2 errors.

Code: Select all
!ENTRY org.eclipse.ui 4 0 2015-11-25 12:54:38.663
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
   at com.servoy.eclipse.ui.property.PersistPropertySource.createPropertyDescriptor(PersistPropertySource.java:1225)
   at com.servoy.eclipse.ui.property.PersistPropertySource.createPropertyDescriptor(PersistPropertySource.java:720)
   at com.servoy.eclipse.ui.property.PersistPropertySource.createPropertyDescriptor(PersistPropertySource.java:646)
   at com.servoy.eclipse.ui.property.PersistPropertySource.registerProperty(PersistPropertySource.java:585)
   at com.servoy.eclipse.ui.property.PersistPropertySource.init(PersistPropertySource.java:428)
   at com.servoy.eclipse.ui.property.PersistPropertySource.getPropertyDescriptor(PersistPropertySource.java:664)
   at com.servoy.eclipse.designer.editor.commands.ToggleCheckboxActionDelegateHandler.calculateChecked(ToggleCheckboxActionDelegateHandler.java:49)
   at com.servoy.eclipse.designer.editor.commands.ToggleCheckboxActionDelegateHandler.createSetPropertyRequests(ToggleCheckboxActionDelegateHandler.java:63)
   at com.servoy.eclipse.designer.editor.commands.SetPropertyActionDelegateHandler.createRequests(SetPropertyActionDelegateHandler.java:75)
   at com.servoy.eclipse.designer.editor.commands.DesignerSelectionActionDelegateHandler.createCommand(DesignerSelectionActionDelegateHandler.java:86)
   at com.servoy.eclipse.designer.actions.AbstractEditorActionDelegateHandler.calculateEnabled(AbstractEditorActionDelegateHandler.java:119)
   at com.servoy.eclipse.designer.actions.AbstractEditorActionDelegateHandler.selectionChanged(AbstractEditorActionDelegateHandler.java:98)
   at org.eclipse.ui.internal.PluginAction.refreshEnablement(PluginAction.java:206)
   at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:273)
   at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:286)
   at org.eclipse.ui.internal.ViewerActionBuilder$ViewerContribution.selectionChanged(ViewerActionBuilder.java:182)
   at org.eclipse.gef.ui.parts.AbstractEditPartViewer.fireSelectionChanged(AbstractEditPartViewer.java:247)
   at com.servoy.eclipse.designer.editor.ModifiedScrollingGraphicalViewer.fireSelectionChanged(ModifiedScrollingGraphicalViewer.java:93)
   at org.eclipse.gef.ui.parts.AbstractEditPartViewer$1.run(AbstractEditPartViewer.java:131)
   at org.eclipse.gef.SelectionManager.fireSelectionChanged(SelectionManager.java:144)
   at org.eclipse.gef.SelectionManager.appendSelection(SelectionManager.java:83)
   at org.eclipse.gef.ui.parts.AbstractEditPartViewer.appendSelection(AbstractEditPartViewer.java:190)
   at org.eclipse.gef.ui.parts.AbstractEditPartViewer.select(AbstractEditPartViewer.java:599)
   at org.eclipse.gef.tools.SelectEditPartTracker.performSelection(SelectEditPartTracker.java:221)
   at com.servoy.eclipse.designer.editor.BasePersistGraphicalEditPart$1.performSelection(BasePersistGraphicalEditPart.java:205)
   at org.eclipse.gef.tools.SelectEditPartTracker.performConditionalSelection(SelectEditPartTracker.java:167)
   at org.eclipse.gef.tools.SelectEditPartTracker.handleButtonDown(SelectEditPartTracker.java:92)
   at org.eclipse.gef.tools.AbstractTool.mouseDown(AbstractTool.java:1091)
   at org.eclipse.gef.tools.SelectionTool.mouseDown(SelectionTool.java:514)
   at org.eclipse.gef.EditDomain.mouseDown(EditDomain.java:245)
   at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMousePressed(DomainEventDispatcher.java:348)
   at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseDown(LightweightSystem.java:523)
   at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:192)
   at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
   at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4230)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1491)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1514)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1499)
   at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1299)
   at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4072)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3698)
   at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
   at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
   at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
   at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:654)
   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:598)
   at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
   at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)
   at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
   at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
   at org.eclipse.equinox.launcher.Main.run(Main.java:1515)

!ENTRY com.servoy.eclipse.model 4 0 2015-11-25 12:54:40.056
!MESSAGE Could not set property value for id location on object bean_806 [org.jpedal.PdfDecoder]
!STACK 0
java.lang.NullPointerException
   at com.servoy.eclipse.ui.property.PersistPropertySource.createPropertyDescriptor(PersistPropertySource.java:1225)
   at com.servoy.eclipse.ui.property.PersistPropertySource.createPropertyDescriptor(PersistPropertySource.java:720)
   at com.servoy.eclipse.ui.property.PersistPropertySource.createPropertyDescriptor(PersistPropertySource.java:646)
   at com.servoy.eclipse.ui.property.PersistPropertySource.registerProperty(PersistPropertySource.java:585)
   at com.servoy.eclipse.ui.property.PersistPropertySource.init(PersistPropertySource.java:428)
   at com.servoy.eclipse.ui.property.PersistPropertySource.setPropertyValue(PersistPropertySource.java:2154)
   at com.servoy.eclipse.designer.editor.BaseRestorableCommand.setPropertyValue(BaseRestorableCommand.java:123)
   at com.servoy.eclipse.designer.editor.commands.ChangeBoundsCommand.setBoundsProperty(ChangeBoundsCommand.java:166)
   at com.servoy.eclipse.designer.editor.commands.ChangeBoundsCommand.changeBounds(ChangeBoundsCommand.java:215)
   at com.servoy.eclipse.designer.editor.commands.ChangeBoundsCommand.changeBounds(ChangeBoundsCommand.java:110)
   at com.servoy.eclipse.designer.editor.commands.ChangeBoundsCommand.redo(ChangeBoundsCommand.java:101)
   at com.servoy.eclipse.designer.editor.commands.ChangeBoundsCommand.execute(ChangeBoundsCommand.java:89)
   at org.eclipse.gef.commands.CompoundCommand.execute(CompoundCommand.java:111)
   at com.servoy.eclipse.designer.editor.commands.SelectModelsCommandWrapper.execute(SelectModelsCommandWrapper.java:64)
   at org.eclipse.gef.commands.CommandStack.execute(CommandStack.java:199)
   at org.eclipse.gef.tools.AbstractTool.executeCommand(AbstractTool.java:425)
   at org.eclipse.gef.tools.AbstractTool.executeCurrentCommand(AbstractTool.java:438)
   at org.eclipse.gef.tools.DragEditPartsTracker.performDrag(DragEditPartsTracker.java:496)
   at org.eclipse.gef.tools.DragEditPartsTracker.handleButtonUp(DragEditPartsTracker.java:351)
   at org.eclipse.gef.tools.AbstractTool.mouseUp(AbstractTool.java:1200)
   at org.eclipse.gef.tools.SelectionTool.mouseUp(SelectionTool.java:574)
   at org.eclipse.gef.EditDomain.mouseUp(EditDomain.java:301)
   at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouseReleased(DomainEventDispatcher.java:380)
   at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseUp(LightweightSystem.java:548)
   at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:220)
   at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
   at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4230)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1491)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1514)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1499)
   at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1299)
   at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4072)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3698)
   at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
   at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
   at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
   at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:654)
   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:598)
   at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
   at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)
   at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
   at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
   at org.eclipse.equinox.launcher.Main.run(Main.java:1515)



java.version=1.7.0_04
java.vm.info=mixed mode
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Oracle Corporation
java.vm.specification.version=1.7
java.vm.vendor=Oracle Corporation
java.vm.version=23.0-b21
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: JPedal not working. Alternative for Servoy 8?

Postby briese-it » Wed Nov 25, 2015 2:11 pm

Hey Marc.
Yes, first I thought jpedal bean is only not working on the application server because if I start the smartclient in developer I have a preview of my pdf documents.
After that I checked my code in the developer and on form itself I recognized that the bean isn't really available and I get errors on the bean. That's really strange, the bean shows the pdf in developer but I can't change anything for the bean in the editor. Clicking on the bean in the editor doesn't recognize the click, the properties from the form are shown.... I don't know how I can get it running again.....
Iam using the classic editor.
Now I tried the pdf.js but I doesn't run in the smartclient for me. Maybe Iam doing something wrong. In webclient it's running fine.
Tried it in the smartclient with a htmlArea (runs fine in Webclient, empty in Smartclient) and with scopes.svyJFXWebView.WebViewPanel (shows only the pdf.js viewer without the pdf in smartClient).
Do you have a working form in smartClient?
Michael Harms
Briese Schiffahrts GmbH & Co.KG, Germany
- Servoy 2024.3.0.3943 + 2020.3.3.3565_LTS Running on Windows 2019 DataCenter - MSSQL2017 & PostGreSQL
User avatar
briese-it
 
Posts: 173
Joined: Mon Jun 20, 2011 1:50 pm
Location: Leer, Germany

Re: JPedal not working. Alternative for Servoy 8?

Postby briese-it » Wed Nov 25, 2015 2:18 pm

Hello Robert,
good idea with the workspace log. I have an error, too, but looks a little bit different:
Code: Select all
!ENTRY org.eclipse.ui 4 0 2015-11-25 13:16:27.080
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException

!ENTRY com.servoy.eclipse.model 4 0 2015-11-25 13:16:28.038
!MESSAGE Could not set property value for id location on object bean_pdf_preview [org.jpedal.PdfDecoder]
!STACK 0
java.lang.NullPointerException

!ENTRY org.eclipse.ui 4 0 2015-11-25 13:16:30.062
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
   at org.eclipse.swt.SWT.error(SWT.java:4491)
   at org.eclipse.swt.SWT.error(SWT.java:4406)
   at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:138)
   at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4155)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3772)
   at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1127)
   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
   at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018)
   at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
   at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:654)
   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:598)
   at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
   at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139)
   at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
   at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)
   at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
   at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
Caused by: java.lang.NullPointerException
Michael Harms
Briese Schiffahrts GmbH & Co.KG, Germany
- Servoy 2024.3.0.3943 + 2020.3.3.3565_LTS Running on Windows 2019 DataCenter - MSSQL2017 & PostGreSQL
User avatar
briese-it
 
Posts: 173
Joined: Mon Jun 20, 2011 1:50 pm
Location: Leer, Germany

Re: JPedal not working. Alternative for Servoy 8?

Postby mboegem » Wed Nov 25, 2015 3:04 pm

html area will not work for sure.
this html implementation is very limited in java.
Therefor you should at least run JavaFX which you did by invoking scopes.svyJFXWebView.WebViewPanel
Are you sure the path to your pdf can be reached from inside the webviewpanel?

I tend to keep away from the JavaFX panel.
Therefor using jPedal bean in smart-client.
Marc Boegem
Solutiative / JBS Group, Partner
Servoy Specialist
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image
User avatar
mboegem
 
Posts: 1752
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: JPedal not working. Alternative for Servoy 8?

Postby briese-it » Wed Nov 25, 2015 3:11 pm

I see. Yes, the pdf is reachable and the path is ok. Tried it directly within the webbrowser(chrome/firefox) and that works.
I think I go back to Servoy 7.4.5 because in my opinion Servoy 8.0.1 is not tested enough and no stable version.
Michael Harms
Briese Schiffahrts GmbH & Co.KG, Germany
- Servoy 2024.3.0.3943 + 2020.3.3.3565_LTS Running on Windows 2019 DataCenter - MSSQL2017 & PostGreSQL
User avatar
briese-it
 
Posts: 173
Joined: Mon Jun 20, 2011 1:50 pm
Location: Leer, Germany

Re: JPedal not working. Alternative for Servoy 8?

Postby jcompagner » Wed Nov 25, 2015 3:26 pm

i fixed the null pointer in the designer (that only happens with swing beans), but this has nothing to do with the smartclient on a app server, for that there shouldn't be any difference compared to 7.4.5
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: JPedal not working. Alternative for Servoy 8?

Postby jcompagner » Wed Nov 25, 2015 3:27 pm

the question is more what does the webstart console log tell us when you want to use the jpedal bean in the smart client?
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: JPedal not working. Alternative for Servoy 8?

Postby briese-it » Wed Nov 25, 2015 4:10 pm

Hello Johan,
sorry for the delay. I switched back to Servoy 7.4.5 on my test-server just a few minutes before I read your message. Now back on 8.0.1 with the console log:

Code: Select all
Nov 25, 2015 3:08:50 PM com.servoy.j2db.util.Debug error
SCHWERWIEGEND: TypeError: Cannot find function closePdfFile in object com.servoy.j2db.smart.dataui.ComponentJLabel[bean_pdf_preview,0,6,1320x767,invalid,hidden,disabled,alignmentX=0.0,alignmentY=0.0,border=,flags=92274976,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,horizontalAlignment=LEADING,horizontalTextPosition=TRAILING,iconTextGap=4,labelFor=,text=bean missing org.jpedal.PdfDecoder,verticalAlignment=CENTER,verticalTextPosition=CENTER]. (br_boss_crewing_docu/forms/br_boss_crewing_docu_docViewer/loadPdfFile#136)
org.mozilla.javascript.EcmaError: TypeError: Cannot find function closePdfFile in object com.servoy.j2db.smart.dataui.ComponentJLabel[bean_pdf_preview,0,6,1320x767,invalid,hidden,disabled,alignmentX=0.0,alignmentY=0.0,border=,flags=92274976,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,horizontalAlignment=LEADING,horizontalTextPosition=TRAILING,iconTextGap=4,labelFor=,text=bean missing org.jpedal.PdfDecoder,verticalAlignment=CENTER,verticalTextPosition=CENTER]. (br_boss_crewing_docu/forms/br_boss_crewing_docu_docViewer/loadPdfFile#136)
   at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3772)
   at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3756)
   at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3777)
   at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3793)
   at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3855)
   at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2316)
   at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2283)
   at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:105)
   at org.mozilla.javascript.gen.br_boss_crewing_docu_forms_br_boss_crewing_docu_docViewer_loadPdfFile_1071._c_loadPdfFile_0(br_boss_crewing_docu/forms/br_boss_crewing_docu_docViewer/loadPdfFile:136)
   at org.mozilla.javascript.gen.br_boss_crewing_docu_forms_br_boss_crewing_docu_docViewer_loadPdfFile_1071.call(br_boss_crewing_docu/forms/br_boss_crewing_docu_docViewer/loadPdfFile)
   at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:88)
   at org.mozilla.javascript.gen.br_boss_crewing_docu_forms_br_boss_crewing_docu_docViewer_loadMedia_1069._c_loadMedia_0(br_boss_crewing_docu/forms/br_boss_crewing_docu_docViewer/loadMedia:84)
   at org.mozilla.javascript.gen.br_boss_crewing_docu_forms_br_boss_crewing_docu_docViewer_loadMedia_1069.call(br_boss_crewing_docu/forms/br_boss_crewing_docu_docViewer/loadMedia)
   at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:107)
   at org.mozilla.javascript.gen.br_boss_crewing_docu_forms_br_boss_crewing_docu_preview_dtl_showMedia_1068._c_showMedia_0(br_boss_crewing_docu/forms/br_boss_crewing_docu_preview_dtl/showMedia:75)
   at org.mozilla.javascript.gen.br_boss_crewing_docu_forms_br_boss_crewing_docu_preview_dtl_showMedia_1068.call(br_boss_crewing_docu/forms/br_boss_crewing_docu_preview_dtl/showMedia)
   at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:97)
   at org.mozilla.javascript.gen.br_boss_crewing_docu_forms_br_boss_crewing_docu_preview_dtl_onShowForm_1067._c_onShowForm_0(br_boss_crewing_docu/forms/br_boss_crewing_docu_preview_dtl/onShowForm:150)
   at org.mozilla.javascript.gen.br_boss_crewing_docu_forms_br_boss_crewing_docu_preview_dtl_onShowForm_1067.call(br_boss_crewing_docu/forms/br_boss_crewing_docu_preview_dtl/onShowForm)
   at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:406)
   at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3204)
   at org.mozilla.javascript.gen.br_boss_crewing_docu_forms_br_boss_crewing_docu_preview_dtl_onShowForm_1067.call(br_boss_crewing_docu/forms/br_boss_crewing_docu_preview_dtl/onShowForm)
   at com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:654)
   at com.servoy.j2db.BasicFormController.executeFunction(BasicFormController.java:1063)
   at com.servoy.j2db.BasicFormController.executeFormMethod(BasicFormController.java:782)
   at com.servoy.j2db.BasicFormController.executeOnShowMethod(BasicFormController.java:651)
   at com.servoy.j2db.BasicFormController.access$2(BasicFormController.java:645)
   at com.servoy.j2db.BasicFormController$1.run(BasicFormController.java:385)
   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
   at java.awt.EventQueue.access$500(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$JavaSecurityAccessImpl.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)

Michael Harms
Briese Schiffahrts GmbH & Co.KG, Germany
- Servoy 2024.3.0.3943 + 2020.3.3.3565_LTS Running on Windows 2019 DataCenter - MSSQL2017 & PostGreSQL
User avatar
briese-it
 
Posts: 173
Joined: Mon Jun 20, 2011 1:50 pm
Location: Leer, Germany

Re: JPedal not working. Alternative for Servoy 8?

Postby jcompagner » Thu Nov 26, 2015 12:46 pm

that still is a result of a problem not the actual problem itself

Because what is shown in screen is a the label that we put in place when a bean is not found or could not be constructed correctly

isn't there anything above that in the log?
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: JPedal not working. Alternative for Servoy 8?

Postby briese-it » Thu Nov 26, 2015 1:43 pm

No, there was no other warning or error in the log but I figured out something else:
If I start the smartclient directly on the ApplicationServer, the bean is working. Only client computers get this error and pdf's are not shown. Tried it on 2 different servoy 8.0.1 application server and on both the same situation. Is there nobody else with the same problem or somebody to reproduce it? It's really strange.
Now Iam back on 7.4.5 with the same plugins and everything is running well.
Michael Harms
Briese Schiffahrts GmbH & Co.KG, Germany
- Servoy 2024.3.0.3943 + 2020.3.3.3565_LTS Running on Windows 2019 DataCenter - MSSQL2017 & PostGreSQL
User avatar
briese-it
 
Posts: 173
Joined: Mon Jun 20, 2011 1:50 pm
Location: Leer, Germany

Re: JPedal not working. Alternative for Servoy 8?

Postby jcompagner » Thu Nov 26, 2015 2:15 pm

but a smart client on an application server is also just a cleint just like any other

Are there no changes win the java vm that are used between them?

Or if you clear the java/webstart cache of the other clients what happens then?
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 28 guests