Problem with Browser Suite Plugin

Hi everyone,
After installing the browser suite plugins in my application, and when i try to put the bean in the form it shows error “error accessing beannet.stuff.servoy.browser.beans.ServoyHTMLEditor”. ( even though in beans folder i can find browser suite.jar )
Please provide a solution how to resolve it

Thanks,
pkb

Did you install using the installer?
What Servoy version is that? And what version of the BrowserSuite? And what version of Java? Is it 32 or 64-bit?
Please provide some more information if you want help.
Thanks,
-Patrick

Hi Patrick, Thanks for your response. I installed Browser suite plugin through BrowserSuiteInstaller.jar.
I am using Servoy 6.0 and Browser Suite plugin Version is 0.9.63 and Java version 1.6.0_29 and MAC OS X Ver 10.7.2 with 64 bit.

Thanks,
pkb

On Mac OS X, you need Servoy 5.2.x or 6.0.1 and more - there was a bug in 6.0 which was correct with 6.0.1, see https://www.servoyforge.net/issues/300

Apart from that I have tested it on 5.2.11 and 6.0.3 on Lion 10.7.2 / java 1.6.0_29 32 and 64-bit and it worked fine here…

Maybe a simple Servoy update will do the trick for you…

Hi Patrick,
I upgraded servoy version to 6.0.3.Now the bowser suite plugin is working fine.Thanks for your suggestion. :D

Glad to hear it! ;)

Hi Patrick ( this probably for you)

This problem has reappeared for me.
Servoy 6.06 Bean version 0.9.70 Mac 10.7.4 Java 1.6.0.33-b03-424

It appeared to be working for a while while developing earlier today, but now fails consistently.
I have created new form. Placed one field and bean on it. Tried with and without datasource. Still get the problem. If I restart Servoy the error appears.

I installed using installer. Also imported browserSuiteSampleSolution which gives same error

Is there some cause I can find and fix, or a workaround for this.

Thanks

Mark

Hi Mark,

I suggest you file an issue on the BrowserSuite project space for this.

Yes, and include the Exception you must have in your servoy_log.txt

Awaiting Administrator approval of my login, then will be able to .

What? You mean you’ve never ever registered @ ServoyForge??? That’s BAD. ;)
I just approved your account.

Thanks. Never noticed I need to register before, but use lots of the tools. I’m entering it now.

In the meantime, here is the log. Not implemented [multiple displays]

2012-07-07 06:23:45,053 ERROR [pool-3-thread-1] com.servoy.j2db.util.Debug - Error ocured initializing plugin: BrowserSuite
org.eclipse.swt.SWTError: Not implemented [multiple displays]
at org.eclipse.swt.SWT.error(SWT.java:4308)
at org.eclipse.swt.widgets.Display.checkDisplay(Display.java:703)
at org.eclipse.swt.widgets.Display.create(Display.java:804)
at org.eclipse.swt.graphics.Device.(Device.java:130)
at org.eclipse.swt.widgets.Display.(Display.java:696)
at chrriis.dj.nativeswing.swtimpl.core.SWTNativeInterface$InProcess.findSWTDisplay(SWTNativeInterface.java:660)
at chrriis.dj.nativeswing.swtimpl.core.SWTNativeInterface$InProcess.initialize(SWTNativeInterface.java:586)
at chrriis.dj.nativeswing.swtimpl.core.SWTNativeInterface$InProcess.access$2(SWTNativeInterface.java:574)
at chrriis.dj.nativeswing.swtimpl.core.SWTNativeInterface.initialize_(SWTNativeInterface.java:246)
at chrriis.dj.nativeswing.swtimpl.NativeInterface.initialize(NativeInterface.java:71)
at chrriis.dj.nativeswing.swtimpl.core.SWTNativeInterface.open_(SWTNativeInterface.java:332)
at chrriis.dj.nativeswing.swtimpl.NativeInterface.open(NativeInterface.java:100)
at net.stuff.servoy.browser.plugins.ServoyBrowserPlugin.initialize(ServoyBrowserPlugin.java:169)
at com.servoy.j2db.smart.plugins.PluginManager.initClientPluginsEx(PluginManager.java:382)
at com.servoy.j2db.smart.plugins.PluginManager.initClientPlugins(PluginManager.java:248)
at com.servoy.j2db.smart.J2DBClient$13.run(J2DBClient.java:1075)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)

Hi Patrick,

Just installed the browser suite and launched the sample application. After installing with the installer en restarting Servoy Developer I get the message:

Failed to create chrriis.dj.nativeswing.swtimpl.components.core.nativewebbrowser...

Reason:
The native interface is not open!

Maybe you’ll say: duh, dude, open your native interface already! :mrgreen:

Any ideas? Appreciate it.

omar:
Hi Patrick,

Just installed the browser suite and launched the sample application. After installing with the installer en restarting Servoy Developer I get the message:

Failed to create chrriis.dj.nativeswing.swtimpl.components.core.nativewebbrowser...

Reason:
The native interface is not open!




Maybe you'll say: duh, dude, open your native interface already! <img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /> 

Any ideas? Appreciate it.

Is your architecture 64-bit? If so, you must install using the installer from the command line:
java -jar BrowserSuiteInstall.jar
(uninstall the previous installation first)

Hi Patrick,

Yes, I have 64-bit architecture. I uninstalled using the supplied uninstaller. Then I reinstalled as described. Deleted the sample solution and imported it again. Same error, shucks. :?

Please check the servoy_log.txt for à detailed stack trace…

Hi Patrick,

This is what the log says:

2012-07-17 21:59:34,508 ERROR [AWT-EventQueue-0] com.servoy.j2db.util.Debug - Throwable [3DDCA8B9-C635-46AC-8378-5FFD157DA925 BrowserSuiteTest]
java.lang.RuntimeException: java.net.SocketException: Connection reset
at chrriis.dj.nativeswing.swtimpl.core.OutProcessSocketsMessagingInterface.openChannel(OutProcessSocketsMessagingInterface.java:67)
at chrriis.dj.nativeswing.swtimpl.core.MessagingInterface.initialize(MessagingInterface.java:57)
at chrriis.dj.nativeswing.swtimpl.core.OutProcessSocketsMessagingInterface.(OutProcessSocketsMessagingInterface.java:32)
at chrriis.dj.nativeswing.swtimpl.core.OutProcessSocketsMessagingInterface$SwingOutProcessSocketsMessagingInterface.(OutProcessSocketsMessagingInterface.java:162)
at chrriis.dj.nativeswing.swtimpl.core.SWTNativeInterface$OutProcess.createOutProcessMessagingInterface(SWTNativeInterface.java:1019)
at chrriis.dj.nativeswing.swtimpl.core.SWTNativeInterface$OutProcess.createOutProcessCommunicationChannel(SWTNativeInterface.java:759)
at chrriis.dj.nativeswing.swtimpl.core.SWTNativeInterface.open_(SWTNativeInterface.java:337)
at chrriis.dj.nativeswing.swtimpl.NativeInterface.open(NativeInterface.java:100)
at net.stuff.servoy.browser.beans.ServoySWTBean.initialize(ServoySWTBean.java:250)
at net.stuff.servoy.browser.beans.ServoyBrowser.initialize(ServoyBrowser.java:132)
at net.stuff.servoy.browser.beans.ServoyBrowser.getBeanInstance(ServoyBrowser.java:89)
at com.servoy.j2db.component.ComponentFactory.createBean(ComponentFactory.java:2414)
at com.servoy.j2db.component.ComponentFactory.createComponentEx(ComponentFactory.java:369)
at com.servoy.j2db.component.ComponentFactory.createComponent(ComponentFactory.java:254)
at com.servoy.j2db.smart.dataui.DataRendererFactory.placeElements(DataRendererFactory.java:300)
at com.servoy.j2db.smart.dataui.DataRendererFactory.completeRenderers(DataRendererFactory.java:266)
at com.servoy.j2db.FormController.createDataRenderers(FormController.java:2238)
at com.servoy.j2db.FormController.init(FormController.java:2073)
at com.servoy.j2db.FormManager.leaseFormPanel(FormManager.java:890)
at com.servoy.j2db.scripting.CreationalPrototype.get(CreationalPrototype.java:163)
at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:2141)
at org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRuntime.java:1474)
at org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRuntime.java:1458)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1436)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:837)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:158)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:406)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3190)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:156)
at com.servoy.j2db.scripting.ScriptEngine.executeFunction(ScriptEngine.java:572)
at com.servoy.j2db.debug.RemoteDebugScriptEngine.executeFunction(RemoteDebugScriptEngine.java:398)
at com.servoy.j2db.FormController.executeFunction(FormController.java:4652)
at com.servoy.j2db.FormController.executeFunction(FormController.java:4528)
at com.servoy.j2db.plugins.ClientPluginAccessProvider$MethodExecutor.run(ClientPluginAccessProvider.java:587)
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$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$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)
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at java.io.ObjectInputStream$PeekInputStream.read(Unknown Source)
at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)
at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
at java.io.ObjectInputStream.(Unknown Source)
at chrriis.dj.nativeswing.swtimpl.core.OutProcessSocketsMessagingInterface.openChannel(OutProcessSocketsMessagingInterface.java:65)
… 47 more

Please check that your servoy.ini file contains these last 3 lines:

-Dnativeswing.interface.inprocess.useExternalSWTDisplay=true
-Dnativeswing.dependencies.checkVersions=false
-Dsun.awt.disableMixing=true

Then start Developer…

FYI: The servoy.ini file should be located in /Servoy/developer on Windows and Linux
But inside the Servoy.app bundle on Mac OS X, so in /Contents/MacOS/

You are the second one to report that installation error, would you care to share your exact OS + Servoy + Java version?

Hi Patrick,

The first line was missing from my servoy.ini so I added that and restarted Servoy but that didn’t solve it.

My OS is Windows 7 Professional SP1 (64-bit) Version 6.1.7601 Service Pack 1 build 7601
My Servoy version is 6.1.0 build 1418
My Java runtime version (jre7) is 1.7.0-b147
My Java vm version is 21.0-b17

As far as I know I have the latest version of everything.

In the configuration file these BrowserSuite lines are presented, shouldn’t a path be specified?

browsersuite.debug=false
browsersuite.defaultHome=
browsersuite.defaultPath=
browsersuite.defaultcharset=
browsersuite.silentXULInstall=true
browsersuite.useXULRunner=true

Hum, actually, I thought you were on Mac OS X. On Windows, that (extra) line in Servoy.ini should not be there so it looks like the installer did it right.
So I’m not quite sure what’s going on for you, I tested with Servoy 6.1 on win 7 64-bit and java 7 and didn’t experienced such an issue.
Please open a bug report on ServoyForge and I’ll be checking this as soon as I get back from holidays (meaning early August) - I apologize in advance for the delay but I don’t have all my Eclipse workspace with me on the beach ;)