Re: OfficeLAF & Java 1.8/Running NB Application using RELEASE72 modules under Java 1.8
Peter Hansson <[email protected]> Sun, 27 Aug 2017 09:24:07 +0200
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CAC55jYOjjHY794omc9m+RAUO6prkPFoaBtwwhBSyUsDW4TdKxg@mail.gmail.com> |
Regarding the hung application. You may be able to get a stack trace this way : Execute your application from within the IDE. From the IDE's output window locate the Maven execution below: --- nbm-maven-plugin:3.13.3:run-platform (default-cli) @ serverlaunch-app --- Executing: cmd.exe /X /C "some very long command line" Now, there's your command line. Your task now is to execute this from a shell (e.g. cmd.exe) but with '--console suppress' replaced with '--console new'. So go ahead and execute it from a command line. It will get hung as you say, but once it is hung you can press Ctrl-Break in that window and you'll get a stack trace of all threads printed into the window. (if you are on Linux/Unix then you can accomplish the same by sending the process some kind of signal, I believe 'kill -QUIT <pid>' will do it) Post the thread stack trace here for us to comment on. Thanks. /Peter (Note: A hung application is almost always caused by something blocking Swing's EDT, the question is of course what? The stack trace will tell us that.) On Sat, Aug 26, 2017 at 8:49 PM, [email protected] <[email protected]> wrote: > > > > On 26 Aug 2017, at 20:03, TheImmortal <[email protected]> wrote: > > > > > > Scenario 2) If I update the NB modules to RELEASE82 and set the Compile version to JDK 1.8, I then have to add a new dependency for org-openide-util-ui, but then everything compiles. > > > That would be the correct approach, > > > > When I run the program, it juices up, the splash screen is displayed, but the application seems to hang after the "Done loading modules" message is displayed. > > That’s what we need to figure out, what the reason for that is. If there;s any way to reproduce or get hold of the code to see the problem, that would help. > > Gj > > > > The output is as follows: > > > > > > Code: > > > > INFO [org.netbeans.core.startup.NbEvents]: Turning on modules: > > org.openide.util.lookup [8.33.1 201609300101] > > org.openide.util [9.7.1 201609300101] > > org.openide.util.ui [9.6.1 201609300101] > > org.openide.modules [7.48.1 201609300101] > > org.netbeans.api.annotations.common/1 [1.27.1 201609300101] > > org.openide.filesystems [9.10.1 201609300101] > > org.openide.awt [7.67.1 201609300101] > > org.netbeans.api.progress/1 [1.47.1 201609300101] > > org.netbeans.api.progress.nb [1.47.1 201609300101] > > org.openide.dialogs [7.42.1 201609300101] > > org.openide.nodes [7.45.1 201609300101] > > org.openide.windows [6.75.1 201609300101] > > org.netbeans.modules.editor.mimelookup/1 [1.40.1 201609300101] > > org.openide.text [6.67.1 201609300101] > > org.netbeans.swing.tabcontrol [1.56.1 201609300101] > > org.netbeans.swing.outline [1.34.1 201609300101] > > org.openide.explorer [6.62.1 201609300101] > > org.openide.actions [6.39.1 201609300101] > > org.netbeans.modules.queries/1 [1.43.1 201609300101] > > org.netbeans.api.templates [1.7.1 201609300101] > > org.openide.filesystems.nb [9.9.1 201609300101] > > org.openide.loaders [7.66.1 201609300101] > > org.netbeans.api.intent [1.2.1 201609300101] > > org.netbeans.api.io [1.3.1 201609300101] > > org.openide.io [1.49.1 201609300101] > > org.openide.filesystems.compat8 [9.9.1 201609300101] > > org.netbeans.swing.plaf [1.41.1 201609300101] > > org.netbeans.spi.quicksearch [1.27.1 201609300101] > > org.netbeans.modules.templates/1 [1.7.1 201609300101] > > org.netbeans.libs.asm [5.3.1 201609300101] > > org.netbeans.bootstrap/1 [2.76.1 201609300101] > > org.netbeans.core.startup.base [1.62.1.1 1 201609300101] > > org.netbeans.core.startup/1 [1.62.1.1 201609300101] > > org.netbeans.modules.settings/1 [1.49.1 201609300101] > > org.netbeans.modules.sendopts/2 [2.35.1 201609300101] > > org.netbeans.modules.sampler [1.14.1 201609300101] > > org.netbeans.modules.progress.ui [1.33.1 201609300101] > > org.netbeans.modules.print [7.26.1 201609300101] > > org.netbeans.modules.keyring [1.24.1 201609300101] > > org.netbeans.core/2 [3.51.1 201609300101] > > org.netbeans.modules.options.api/1 [1.45.1 201609300101] > > org.netbeans.modules.options.keymap [1.37.1 201609300101] > > org.netbeans.libs.jna/1 [1.44.1 201609300101] > > org.netbeans.modules.masterfs/2 [2.55.1.2 2 201609300101] > > org.netbeans.modules.masterfs.windows [1.16.1 201609300101] > > org.netbeans.modules.masterfs.ui [2.3.1.2 201609300101] > > org.netbeans.modules.masterfs.nio2 [1.15.1 201609300101] > > org.netbeans.modules.keyring.fallback [1.8.1 201609300101] > > org.netbeans.modules.keyring.impl [1.24.1 201609300101] > > org.netbeans.modules.favorites/1 [1.46.1 201609300101] > > org.netbeans.modules.editor.mimelookup.impl/1 [1.32.1 201609300101] > > org.netbeans.modules.autoupdate.services [1.52.1 201609300101] > > org.netbeans.modules.autoupdate.cli [1.13.1 201609300101] > > org.netbeans.core.windows/2 [2.81.1 201609300101] > > org.netbeans.core.ui/1 [1.45.1 201609300101] > > org.netbeans.libs.osgi [1.21.1 201609300101] > > org.netbeans.libs.felix [2.15.1 201609300101] > > org.netbeans.modules.autoupdate.ui [1.45.1 201609300101] > > org.netbeans.modules.core.kit [1.30.1 201609300101] > > org.netbeans.libs.jna.platform/1 [1.14.1 201609300101] > > org.netbeans.core.output2/1 [1.41.1 201609300101] > > org.netbeans.core.network [1.10.1 201609300101] > > org.netbeans.core.netigso [1.31.1 201609300101] > > org.netbeans.core.nativeaccess/1 [1.31.1 201609300101] > > org.netbeans.core.multitabs/1 [1.12.1.1 1 201609300101] > > org.netbeans.core.io.ui/1 [1.30.1 201609300101] > > org.j8update.oldflamingo.OldFlamingo.branding [7.3.0.0 7.3.0.0 201708261734] > > org.j8update.oldflamingo.AppUI [7.3.0.0 7.3.0.0 201708261734] > > INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy resolver: Windows > > INFO [org.netbeans.core.network.proxy.windows.WindowsNetworkProxy]: Windows system proxy resolver: auto detect > > INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy reloading succeeded. > > INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy - mode: direct > > INFO [org.netbeans.core.network.proxy.NetworkProxyReloader]: System network proxy: fell to default (correct if direct mode went before) > > INFO [org.netbeans.ui.metrics.laf]: USG_LOOK_AND_FEEL > > > > > > > > > > I cannot see any clues as to where it is hanging or why. Running the debugger doesn't provide any additional clues to me as to where or why it is hung. > > > > In either scenario, If I revert everything back to RELEASE72 & JDK 1.7, and remove the added dependency (org-openide-util-ui), everything works as expected. Getting Scenario #1 working would be ideal - less testing required, etc., but based on what I've been reading I am not sure that is possible. > > > > I'll work on getting some code together that I can package up and attach with this post for some more hands-on experiments and feedback from folks. In the meantime, any information, experience, or ideas would be appreciated. > > > > > > > > >