Version 0.14 of bck2brwsr is ready for testing

96 views
Skip to first unread message

Jaroslav Tulach

unread,
Feb 28, 2015, 10:19:42 AM2/28/15
to bck2...@apidesign.org

I have uploaded bits of 0.14 to maven central repository. Please give the new bits a bit of testing.

The release comes with major stability and some performance improvements. The overall list of new features is available at
http://wiki.apidesign.org/wiki/Bck2Brwsr_0.14

Thanks you for supporting bck2brwsr!
-jt

goue...@gmail.com

unread,
Mar 20, 2015, 11:04:43 AM3/20/15
to bck2...@googlegroups.com, bck2...@apidesign.org
Hi

I'm going to give it a try very soon. Please keep up the good work. In my humble opinion, you should put a link to the latest Java API documentation of each profile or something more straightforward than a link to your Hudson node into the homepage of your awesome library.

Have you ever succeeded in running an application based on Bck2Brwsr with OpenJDK and OpenJFX? You wrote about "Deploy as a Desktop Application" in the wiki, I still use OpenJDK under Mageia Linux and I would really like to avoid installing Oracle Java. Moreover, I use my own tool (JNDT) to create native self-contained application bundles for GNU Linux, Mac OS X and Windows, I give it a build of OpenJDK 1.7 without OpenJFX, I won't be able to use JNDT with Bck2Brwsr until I succeed in building OpenJDK 1.8 with OpenJFX.

I will probably use it with Eclipse and M2Eclipse, I'll report any problem. Thank you very much.

Julien

goue...@gmail.com

unread,
Mar 24, 2015, 4:41:24 AM3/24/15
to bck2...@googlegroups.com, bck2...@apidesign.org
Hi

The documentation should be updated:
http://wiki.apidesign.org/wiki/DukeScript#Install_the_Plugin

At first, installing the Netbeans plugin is impossible with Netbeans 7.4, it complains about a missing module org-netbeans-modules-ko4j-debugging. Moreover, the name of the plugin has been modified, the screen captures are obsolete, it is called "HTML UI API" in Netbeans 8.0.2 and the plugin description isn't very helpful: "Java.net - The Source for Java Technology Collaboration". I advise other developers to install DukeScript Project Wizard and Mine Sweeper to start with a working demo. Then, it works better, Knockout.js for Java is installed too. I still have an error message: "Warning - could not install some modules:". However, the list of not installed modules is empty, I see this stack trace in the logs:
java.lang.IllegalStateException: Module Netigso: C:\Users\jgouesse\AppData\Roaming\NetBeans\8.0.2\modules\org-netbeans-html-ko_ws_tyrus.jar could not be installed but had no problems
    at org.netbeans.core.startup.NbProblemDisplayer.problemMessagesForModules(NbProblemDisplayer.java:229)
    at org.netbeans.core.startup.NbEvents.logged(NbEvents.java:217)
[catch] at org.netbeans.Events.log(Events.java:166)
    at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:346)
    at org.netbeans.core.startup.ModuleList.access$2400(ModuleList.java:118)
    at org.netbeans.core.startup.ModuleList$Listener.stepEnable(ModuleList.java:1409)
    at org.netbeans.core.startup.ModuleList$Listener.access$1400(ModuleList.java:1007)
    at org.netbeans.core.startup.ModuleList$Listener$1.run(ModuleList.java:1231)
    at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:127)
    at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:641)
    at org.netbeans.core.startup.ModuleList$Listener.run(ModuleList.java:1207)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)


On Saturday, February 28, 2015 at 4:19:42 PM UTC+1, Jaroslav Tulach wrote:

goue...@gmail.com

unread,
Mar 24, 2015, 4:45:05 AM3/24/15
to bck2...@googlegroups.com, bck2...@apidesign.org
I get this message when restarting Netbeans:

Warning - could not install some modules:
org.netbeans.html.ko_ws_tyrus - org.netbeans.InvalidException: Netigso: C:\Users\jgouesse\AppData\Roaming\NetBeans\8.0.2\modules\org-netbeans-html-ko_ws_tyrus.jar: Cannot start org.netbeans.html.ko_ws_tyrus state remains INSTALLED after start()

On Saturday, February 28, 2015 at 4:19:42 PM UTC+1, Jaroslav Tulach wrote:

goue...@gmail.com

unread,
Mar 24, 2015, 5:12:40 AM3/24/15
to bck2...@googlegroups.com, bck2...@apidesign.org
I see this stack trace in the logs:
org.osgi.framework.BundleException: The bundle "org.netbeans.html.ko-ws-tyrus_1.1.0 [22]" could not be resolved. Reason: Missing Constraint: Import-Package: javax.websocket; version="[1.0.0,2.0.0)"
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1332)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1316)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:323)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
    at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
    at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
    at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
    at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
    at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
    at org.netbeans.core.netigso.Netigso.start(Netigso.java:191)
    at org.netbeans.NetigsoHandle.startFramework(NetigsoHandle.java:209)
    at org.netbeans.ModuleManager.enable(ModuleManager.java:1195)
    at org.netbeans.ModuleManager.enable(ModuleManager.java:1017)
    at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:340)
    at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:276)
    at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:301)
    at org.netbeans.core.startup.Main.getModuleSystem(Main.java:181)
    at org.netbeans.core.startup.Main.getModuleSystem(Main.java:150)
    at org.netbeans.core.startup.Main.start(Main.java:307)
    at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)
[catch] at java.lang.Thread.run(Thread.java:745)

javax.websocket is in JavaEE 7. "Tyrus Based WebSockets" is the JSR 356 Reference Implementation. I haven't tried to install DukeScript with Maven, maybe it can help:
https://blog.openshift.com/how-to-build-java-websocket-applications-using-the-jsr-356-api/


On Saturday, February 28, 2015 at 4:19:42 PM UTC+1, Jaroslav Tulach wrote:

goue...@gmail.com

unread,
Mar 24, 2015, 5:18:08 AM3/24/15
to bck2...@googlegroups.com, bck2...@apidesign.org
I get this warning whereas my network connection works very well:
Warning: No network connection. This wizard is based on Maven. To work properly it needs a network connection. Please check your network settings.


On Saturday, February 28, 2015 at 4:19:42 PM UTC+1, Jaroslav Tulach wrote:

goue...@gmail.com

unread,
Mar 24, 2015, 5:32:15 AM3/24/15
to bck2...@googlegroups.com, bck2...@apidesign.org
There are still some missing dependencies:
Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.apache.felix:maven-bundle-plugin:2.4.0 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.felix:maven-bundle-plugin:jar:2.4.0, org.codehaus.plexus:plexus-utils:jar:1.1: The repository system is offline but the artifact org.apache.felix:maven-bundle-plugin:jar:2.4.0 is not available in the local repository. @
[ERROR] Unknown packaging: bundle @ line 15, column 14

Your project has dependencies that are not resolved locally. Code completion in the IDE will not include classes from these dependencies or their transitive dependencies (unless they are among the open projects).
Please download the dependencies, or install them manually, if not available remotely.

The artifacts are:
 test_base_package:test_project_name:jar:1.0-SNAPSHOT
org.apidesign.bck2brwsr:emul:jar:rt:0.13
org.netbeans.html:net.java.html.boot:jar:1.1
org.apidesign.bck2brwsr:emul:jar:bck2brwsr:0.13
org.apidesign.bck2brwsr:ko-bck2brwsr:jar:bck2brwsr:0.13

I've fixed those problems by clicking on "Resolve Project Problems..." -> "Resolve...". I hope that it helps.


On Saturday, February 28, 2015 at 4:19:42 PM UTC+1, Jaroslav Tulach wrote:

goue...@gmail.com

unread,
Mar 24, 2015, 6:13:51 AM3/24/15
to bck2...@googlegroups.com, bck2...@apidesign.org
When building the DukeScript CRUD Template, I get this error message:
An exception has occurred in the compiler (1.8.0_31). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport)  after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report.  Thank you.
java.lang.IllegalStateException: endPosTable already set
    at com.sun.tools.javac.util.DiagnosticSource.setEndPosTable(DiagnosticSource.java:136)
    at com.sun.tools.javac.util.Log.setEndPosTable(Log.java:350)
    at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:667)
    at com.sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler.java:950)
    at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.<init>(JavacProcessingEnvironment.java:892)
    at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.next(JavacProcessingEnvironment.java:921)
    at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1187)
    at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1170)
    at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:856)
    at com.sun.tools.javac.main.Main.compile(Main.java:523)
    at com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129)
    at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138)
    at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.java:125)
    at org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile(JavacCompiler.java:169)
    at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:823)
    at org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:129)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)

It seems to be a bug in the compiler, a similar bug has been fixed in the javadoc tool in Java 1.8 update 20.


On Saturday, February 28, 2015 at 4:19:42 PM UTC+1, Jaroslav Tulach wrote:

Jaroslav Tulach

unread,
Mar 24, 2015, 6:26:05 AM3/24/15
to goue...@gmail.com, bck2...@apidesign.org, dukes...@googlegroups.com
Thanks for trying dukescript and bck2brwsr! I have updated the page to point to official Toni's documentation to get started.

The error with ko-tyrus happens only in version 1.1 - as far as I know there is version 1.2 on the update center, so please try to update and the problem should be gone.

-jt

--
You received this message because you are subscribed to the Google Groups "bck2brwsr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bck2brwsr+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/bck2brwsr/8755e8dc-e71c-4d96-8fef-3edd92e883de%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

goue...@gmail.com

unread,
Mar 24, 2015, 6:40:06 AM3/24/15
to bck2...@googlegroups.com, goue...@gmail.com, bck2...@apidesign.org, dukes...@googlegroups.com
You're welcome. The web version of the "Words demo" doesn't seem to work in Firefox, I see some Webkit specific code when I press CTRL+U :s Nothing rotates.

goue...@gmail.com

unread,
Mar 24, 2015, 6:54:24 AM3/24/15
to bck2...@googlegroups.com, goue...@gmail.com, bck2...@apidesign.org, dukes...@googlegroups.com
I get this error message in the console:
"error loading http://localhost:53247/lib/net.java.html.boot.fx-1.1.js" bck2brwsr.js:2:465
TypeError: c.i is not a function


On Tuesday, March 24, 2015 at 11:26:05 AM UTC+1, Jaroslav Tulach wrote:

goue...@gmail.com

unread,
Mar 24, 2015, 8:00:40 AM3/24/15
to bck2...@googlegroups.com, goue...@gmail.com, bck2...@apidesign.org, dukes...@googlegroups.com
The very first error message in the console is this further:
"error loading http://localhost:48987/lib/net.java.html.boot.fx-1.1.js" bck2brwsr.js:2:465


On Tuesday, March 24, 2015 at 11:26:05 AM UTC+1, Jaroslav Tulach wrote:

goue...@gmail.com

unread,
Mar 24, 2015, 10:22:40 AM3/24/15
to bck2...@googlegroups.com, goue...@gmail.com, bck2...@apidesign.org, dukes...@googlegroups.com
How can I disable the obfuscation? I'd like to solve my problem, it would be easier if the JavaScript source code was a bit more readable.


On Tuesday, March 24, 2015 at 11:26:05 AM UTC+1, Jaroslav Tulach wrote:

goue...@gmail.com

unread,
Mar 24, 2015, 10:53:37 AM3/24/15
to bck2...@googlegroups.com, goue...@gmail.com, bck2...@apidesign.org, dukes...@googlegroups.com
It doesn't work with both Bck2Brwsr 0.13 and 0.14
b.i(!1).onPageLoad__V()

It claims that b.i isn't a function.


On Tuesday, March 24, 2015 at 11:26:05 AM UTC+1, Jaroslav Tulach wrote:

goue...@gmail.com

unread,
Mar 24, 2015, 11:44:04 AM3/24/15
to bck2...@googlegroups.com, goue...@gmail.com, bck2...@apidesign.org, dukes...@googlegroups.com
I have set bck2brwsr.obfuscationlevel to MINIMAL in the pom file. Now I get this error message:
TypeError: b.test_1base_1package_test_1project_1name_Main is not a function

test_package_name is the package name and test_base_package is the base package.


On Tuesday, March 24, 2015 at 11:26:05 AM UTC+1, Jaroslav Tulach wrote:

goue...@gmail.com

unread,
Mar 24, 2015, 11:57:30 AM3/24/15
to bck2...@googlegroups.com, goue...@gmail.com, bck2...@apidesign.org, dukes...@googlegroups.com
I have set the obfuscation level to NONE, I get this error message:
TypeError: vm.test_1base_1package_test_1project_1name_Main is not a function

m.access = 2;
    m.cls = CLS;
    m = c.main__V_3Ljava_lang_String_2 = function(lcA0) {
vm.test_1base_1package_test_1project_1name_Main(false)['onPageLoad__V']();
return;

};



On Tuesday, March 24, 2015 at 11:26:05 AM UTC+1, Jaroslav Tulach wrote:

Jaroslav Tulach

unread,
Mar 24, 2015, 12:35:53 PM3/24/15
to goue...@gmail.com, bck2...@googlegroups.com, bck2...@apidesign.org, dukes...@googlegroups.com
Well, you problem is more a bug report than a question. Each bug report benefits from having a reproducible test case. Here are my steps:

$ mvn archetype:generate  -DarchetypeGroupId=com.dukescript.archetype -DarchetypeArtifactId=knockout4j-archetype -DarchetypeVersion=0.8 -Dwebpath=client-web -DgroupId=mytest -DartifactId=test1 -Dversion=1.0-SNAPSHOT
$ cd test1/
$ mvn install
$ cd client-web
$ mvn bck2brwsr:show

as far as I can say everything is working fine. What are your steps to reproduce the error? Regards and thanks for keeping trying...
-jt

goue...@gmail.com

unread,
Mar 24, 2015, 1:57:36 PM3/24/15
to bck2...@googlegroups.com, goue...@gmail.com, bck2...@apidesign.org, dukes...@googlegroups.com
I created a project with the DukeScript Project Wizard, package name "test_package_name", base package "test_base_package". Then, I right clicked on the Client Web project and selected "Run".

You're right, I'll try to reproduce this bug without Netbeans.

goue...@gmail.com

unread,
Apr 7, 2015, 8:54:33 AM4/7/15
to bck2...@googlegroups.com, goue...@gmail.com, bck2...@apidesign.org, dukes...@googlegroups.com
Hi

It fails during the step "test1 JavaScript Libraries" if and only if the environment variable JAVA_HOME isn't set. I've just succeeded in making it work with Maven, it rocks. Sorry for the disturbance. It's very simple to get started, nice job.
Reply all
Reply to author
Forward
0 new messages