John RD created NETBEANS-4933:
---------------------------------

             Summary: JavaDB won't start
                 Key: NETBEANS-4933
                 URL: https://issues.apache.org/jira/browse/NETBEANS-4933
             Project: NetBeans
          Issue Type: Bug
    Affects Versions: 12.1
         Environment: Product Version: Apache NetBeans IDE 12.1
Java: 15.0.1; Java HotSpot(TM) 64-Bit Server VM 15.0.1+9-18
Runtime: Java(TM) SE Runtime Environment 15.0.1+9-18
System: Windows 10 version 10.0 running on amd64; Cp1252; it_IT (nb)
User directory: C:\Users\johnrdorazio\AppData\Roaming\NetBeans\12.1
Cache directory: C:\Users\johnrdorazio\AppData\Local\NetBeans\Cache\12.1
            Reporter: John RD
         Attachments: Netbeans Java DB.jpg

Similarly to [https://bz.apache.org/netbeans/show_bug.cgi?id=257948] , my 
JavaDB connections starting going haywire a couple days ago.

They were working nicely with Netbeans 12.1 and Glassfish 5.1 and JDK 15 until 
two days ago. I use the embedded driver in my codebase, and I used Services -> 
JavaDB to inspect my tables from within the Netbeans IDE. 

Two days ago, without having changed anything on my system or in my setup, 
Services -> JavaDB stopped connecting to the database. JavaDB simply won't 
start. Until two days ago, I would get a prompt asking for username and 
password (which were empty). Now, I just get this in the output window:

 

{color:#de350b}{{Usage: java [options] <mainclass> [args...]}}
{{ (to execute a class)}}
{{ or java [options] -jar <jarfile> [args...]}}
{{ (to execute a jar file)}}
{{ or java [options] -m <module>[/<mainclass>] [args...]}}
{{ java [options] --module <module>[/<mainclass>] [args...]}}
{{ (to execute the main class in a module)}}
{{ or java [options] <sourcefile> [args]}}
{{ (to execute a single source-file program)}}{{Arguments following the main 
class, source file, -jar <jarfile>,}}
{{ -m or --module <module>/<mainclass> are passed as the arguments to}}
{{ main class.}}{{where options include:}}{color}

{color:#de350b}{{-cp <class search path of directories and zip/jar files>}}
{{ -classpath <class search path of directories and zip/jar files>}}
{{ --class-path <class search path of directories and zip/jar files>}}
{{ A ; separated list of directories, JAR archives,}}
{{ and ZIP archives to search for class files.}}
{{ -p <module path>}}
{{ --module-path <module path>...}}
{{ A ; separated list of directories, each directory}}
{{ is a directory of modules.}}
{{ --upgrade-module-path <module path>...}}
{{ A ; separated list of directories, each directory}}
{{ is a directory of modules that replace upgradeable}}
{{ modules in the runtime image}}
{{ --add-modules <module name>[,<module name>...]}}
{{ root modules to resolve in addition to the initial module.}}
{{ <module name> can also be ALL-DEFAULT, ALL-SYSTEM,}}
{{ ALL-MODULE-PATH.}}
{{ --list-modules}}
{{ list observable modules and exit}}
{{ -d <module name>}}
{{ --describe-module <module name>}}
{{ describe a module and exit}}
{{ --dry-run create VM and load main class but do not execute main method.}}
{{ The --dry-run option may be useful for validating the}}
{{ command-line options such as the module system configuration.}}
{{ --validate-modules}}
{{ validate all modules and exit}}
{{ The --validate-modules option may be useful for finding}}
{{ conflicts and other errors with modules on the module path.}}
{{ -D<name>=<value>}}
{{ set a system property}}
{{ -verbose:[class|module|gc|jni]}}
{{ enable verbose output for the given subsystem}}
{{ -version print product version to the error stream and exit}}
{{ --version print product version to the output stream and exit}}
{{ -showversion print product version to the error stream and continue}}
{{ --show-version}}
{{ print product version to the output stream and continue}}
{{ --show-module-resolution}}
{{ show module resolution output during startup}}
{{ -? -h -help}}
{{ print this help message to the error stream}}
{{ --help print this help message to the output stream}}
{{ -X print help on extra options to the error stream}}
{{ --help-extra print help on extra options to the output stream}}
{{ -ea[:<packagename>...|:<classname>]}}
{{ -enableassertions[:<packagename>...|:<classname>]}}
{{ enable assertions with specified granularity}}
{{ -da[:<packagename>...|:<classname>]}}
{{ -disableassertions[:<packagename>...|:<classname>]}}
{{ disable assertions with specified granularity}}
{{ -esa | -enablesystemassertions}}
{{ enable system assertions}}
{{ -dsa | -disablesystemassertions}}
{{ disable system assertions}}
{{ -agentlib:<libname>[=<options>]}}
{{ load native agent library <libname>, e.g. -agentlib:jdwp}}
{{ see also -agentlib:jdwp=help}}
{{ -agentpath:<pathname>[=<options>]}}
{{ load native agent library by full pathname}}
{{ -javaagent:<jarpath>[=<options>]}}
{{ load Java programming language agent, see java.lang.instrument}}
{{ -splash:<imagepath>}}
{{ show splash screen with specified image}}
{{ HiDPI scaled images are automatically supported and used}}
{{ if available. The unscaled image filename, e.g. image.ext,}}
{{ should always be passed as the argument to the -splash option.}}
{{ The most appropriate scaled image provided will be picked up}}
{{ automatically.}}
{{ See the SplashScreen API documentation for more information}}
{{ @argument files}}
{{ one or more argument files containing options}}
{{ -disable-@files}}
{{ prevent further argument file expansion}}
{{ --enable-preview}}
{{ allow classes to depend on preview features of this release}}
{{To specify an argument for a long option, you can use --<name>=<value> or}}
{{--<name> <value>.}}{color}

 

I have tried uninstalling all JDKs and JREs, uninstalling Netbeans, and 
reinstalling again with:
 * JDK 15
 * Netbeans 12.1
 * Glassfish 5.1

But this didn't fix the issue, see screenshot. I get an eternal "Starting the 
Java DB server" or "Connecting to database" spinner, but no username prompt and 
no connection to the database.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to