Re: One of the unit tests not executed. Why?

2020-12-20 Thread Andreas Reichel
Hi Gary.

Now, when the tests are running in general, maybe try to run the
particluar Test/Method only?
"Run focussed Test Method" or "Debug focussed Test Method". What
happens when you run this test through the debugger step-by-step?

Best regards
Andreas




On Mon, 2020-12-21 at 03:03 +, Greenberg, Gary wrote:
> I did try latest surefire plugin (3.0.0-M5) and latest junit
>  (4.13.1) and latest org.junit.jupiter (5.7.0) with the same result.
> I did figured out why it failed in the command line. Default
> JAVA_HOME for the terminal window was pointing to older JDK (1.8).
> After I changed it to JDK-14.0.2 (the one that NB is running upon),
> it is no longer failing, but does not execute that particular test
> either.
> I.e. behavior on the command line and NB are the same.
> I understand that it is not a Netbeans problem, but I am turning
> every stone.
> So far, haven’t find any clues on such strange behavior.
>  
> Gary Greenberg
> Staff Software Engineer
> Data Product Development, BI-A
> E: ggree...@visa.com
> M: 650-269-7902
>  
> EmailSig-TaglineVersion
>  
> From: Jose Ch 
> Sent: Sunday, December 20, 2020 5:22 PM
> To: Greenberg, Gary 
> Cc: NetBeans Mailing List 
> Subject: Re: One of the unit tests not executed. Why?
>  
> Can you try the newest version of surefire plugin?
> org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5
>  
>  
>  
> El dom, 20 dic 2020 a las 5:03, Greenberg, Gary
> () escribió:
> > I sure did clean and build the project.
> > During the build all unit tests are executed except this one.
> > When I am trying to run the test on this very particular class, I
> > was getting the previously mentioned error.
> >  
> > I did try to run Maven test from the command line several times and
> > it fails in some random unit test. The one that succeed in
> > Netbeans.
> > I tried to run maven with different JDKs and increased heap size to
> > 2GB, but I am still getting something like the following:
> > [INFO] 
> > 
> > [INFO] BUILD FAILURE
> > [INFO] 
> > 
> > [INFO] Total time:  01:47 min
> > [INFO] Finished at: 2020-12-19T20:51:16-08:00
> > [INFO] 
> > 
> > [ERROR] Failed to execute goal org.apache.maven.plugins:maven-
> > surefire-plugin:2.22.2:test (default-test) on project universal-
> > batch-processor: There are test failures.
> > [ERROR]
> > [ERROR] Please refer to C:\Users\ggreenbe\OneDrive - Visa
> > Inc\Development\Projects\universal-batch-processor\target\surefire-
> > reports for the individual test results.
> > [ERROR] Please refer to dump files (if any exist) [date].dump,
> > [date]-jvmRun[N].dump and [date].dumpstream.
> > [ERROR] The forked VM terminated without properly saying goodbye.
> > VM crash or System.exit called?
> > [ERROR] Command was cmd.exe /X /C ""C:\Program Files\Java\jdk-
> > 14.0.2\bin\java" -jar
> > C:\Users\ggreenbe\AppData\Local\Temp\surefire5797367098824429966\su
> > refirebooter5235882171158911878.jar
> > C:\Users\ggreenbe\AppData\Local\Temp\surefire5797367098824429966
> > 2020-12-19T20-49-39_741-jvmRun1 surefire8349322470433008227tmp
> > surefire_018344052671012744992tmp"
> > [ERROR] Process Exit Code: 0
> > [ERROR] Crashed tests:
> > [ERROR] com.visa.dpd.batch.uni.proc.cfg.BatchConfigTest
> > [ERROR]
> > org.apache.maven.surefire.booter.SurefireBooterForkException: The
> > forked VM terminated without properly saying goodbye. VM crash or
> > System.exit called?
> > [ERROR] Command was cmd.exe /X /C ""C:\Program Files\Java\jdk-
> > 14.0.2\bin\java" -jar
> > C:\Users\ggreenbe\AppData\Local\Temp\surefire5797367098824429966\su
> > refirebooter5235882171158911878.jar
> > C:\Users\ggreenbe\AppData\Local\Temp\surefire5797367098824429966
> > 2020-12-19T20-49-39_741-jvmRun1 surefire8349322470433008227tmp
> > surefire_018344052671012744992tmp"
> > [ERROR] Process Exit Code: 0
> > [ERROR] Crashed tests:
> > [ERROR] com.visa.dpd.batch.uni.proc.cfg.BatchConfigTest
> > [ERROR] at
> > org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(Fork
> > Starter.java:669)
> > [ERROR] at
> > org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkS
> > tarter.java:282)
> > [ERROR] at
> > org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkS
> > tarter.java:245)
> > [ERROR] at
> > org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvid
> > er(AbstractSurefireMojo.java:1183)
> > [ERROR] at
> > org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterP
> > reconditionsChecked(AbstractSurefireMojo.java:1011)
> > [ERROR] at
> > org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(Abstr
> > actSurefireMojo.java:857)
> > [ERROR] at
> > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Defau
> > ltBuildPluginManager.java:137)

RE: One of the unit tests not executed. Why?

2020-12-20 Thread Greenberg, Gary
I did try latest surefire plugin (3.0.0-M5) and latest junit  (4.13.1) and 
latest org.junit.jupiter (5.7.0) with the same result.
I did figured out why it failed in the command line. Default JAVA_HOME for the 
terminal window was pointing to older JDK (1.8).
After I changed it to JDK-14.0.2 (the one that NB is running upon), it is no 
longer failing, but does not execute that particular test either.
I.e. behavior on the command line and NB are the same.
I understand that it is not a Netbeans problem, but I am turning every stone.
So far, haven't find any clues on such strange behavior.

Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggree...@visa.com
M: 650-269-7902

[EmailSig-TaglineVersion]

From: Jose Ch 
Sent: Sunday, December 20, 2020 5:22 PM
To: Greenberg, Gary 
Cc: NetBeans Mailing List 
Subject: Re: One of the unit tests not executed. Why?

Can you try the newest version of surefire plugin?
org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5



El dom, 20 dic 2020 a las 5:03, Greenberg, Gary () 
escribió:
I sure did clean and build the project.
During the build all unit tests are executed except this one.
When I am trying to run the test on this very particular class, I was getting 
the previously mentioned error.

I did try to run Maven test from the command line several times and it fails in 
some random unit test. The one that succeed in Netbeans.
I tried to run maven with different JDKs and increased heap size to 2GB, but I 
am still getting something like the following:
[INFO] 
[INFO] BUILD FAILURE
[INFO] 
[INFO] Total time:  01:47 min
[INFO] Finished at: 2020-12-19T20:51:16-08:00
[INFO] 
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on 
project universal-batch-processor: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\ggreenbe\OneDrive - Visa 
Inc\Development\Projects\universal-batch-processor\target\surefire-reports for 
the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, 
[date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] The forked VM terminated without properly saying goodbye. VM crash or 
System.exit called?
[ERROR] Command was cmd.exe /X /C ""C:\Program Files\Java\jdk-14.0.2\bin\java" 
-jar 
C:\Users\ggreenbe\AppData\Local\Temp\surefire5797367098824429966\surefirebooter5235882171158911878.jar
 C:\Users\ggreenbe\AppData\Local\Temp\surefire5797367098824429966 
2020-12-19T20-49-39_741-jvmRun1 surefire8349322470433008227tmp 
surefire_018344052671012744992tmp"
[ERROR] Process Exit Code: 0
[ERROR] Crashed tests:
[ERROR] com.visa.dpd.batch.uni.proc.cfg.BatchConfigTest
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The 
forked VM terminated without properly saying goodbye. VM crash or System.exit 
called?
[ERROR] Command was cmd.exe /X /C ""C:\Program Files\Java\jdk-14.0.2\bin\java" 
-jar 
C:\Users\ggreenbe\AppData\Local\Temp\surefire5797367098824429966\surefirebooter5235882171158911878.jar
 C:\Users\ggreenbe\AppData\Local\Temp\surefire5797367098824429966 
2020-12-19T20-49-39_741-jvmRun1 surefire8349322470433008227tmp 
surefire_018344052671012744992tmp"
[ERROR] Process Exit Code: 0
[ERROR] Crashed tests:
[ERROR] com.visa.dpd.batch.uni.proc.cfg.BatchConfigTest
[ERROR] at 
org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:669)
[ERROR] at 
org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:282)
[ERROR] at 
org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:245)
[ERROR] at 
org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1183)
[ERROR] at 
org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1011)
[ERROR] at 
org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:857)
[ERROR] at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
[ERROR] at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
[ERROR] at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
[ERROR] at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
[ERROR] at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
[ERROR] at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
[ERROR] at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilde

Re: One of the unit tests not executed. Why?

2020-12-20 Thread Jose Ch
Can you try the newest version of surefire plugin?
*org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M5*



El dom, 20 dic 2020 a las 5:03, Greenberg, Gary ()
escribió:

> I sure did clean and build the project.
>
> During the build all unit tests are executed except this one.
> When I am trying to run the test on this very particular class, I was
> getting the previously mentioned error.
>
>
>
> I did try to run Maven test from the command line several times and it
> fails in some random unit test. The one that succeed in Netbeans.
>
> I tried to run maven with different JDKs and increased heap size to 2GB,
> but I am still getting something like the following:
>
> [INFO]
> 
>
> [INFO] BUILD FAILURE
>
> [INFO]
> 
>
> [INFO] Total time:  01:47 min
>
> [INFO] Finished at: 2020-12-19T20:51:16-08:00
>
> [INFO]
> 
>
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test)
> on project universal-batch-processor: There are test failures.
>
> [ERROR]
>
> [ERROR] Please refer to C:\Users\ggreenbe\OneDrive - Visa
> Inc\Development\Projects\universal-batch-processor\target\surefire-reports
> for the individual test results.
>
> [ERROR] Please refer to dump files (if any exist) [date].dump,
> [date]-jvmRun[N].dump and [date].dumpstream.
>
> [ERROR] The forked VM terminated without properly saying goodbye. VM crash
> or System.exit called?
>
> [ERROR] Command was cmd.exe /X /C ""C:\Program
> Files\Java\jdk-14.0.2\bin\java" -jar
> C:\Users\ggreenbe\AppData\Local\Temp\surefire5797367098824429966\surefirebooter5235882171158911878.jar
> C:\Users\ggreenbe\AppData\Local\Temp\surefire5797367098824429966
> 2020-12-19T20-49-39_741-jvmRun1 surefire8349322470433008227tmp
> surefire_018344052671012744992tmp"
>
> [ERROR] Process Exit Code: 0
>
> [ERROR] Crashed tests:
>
> [ERROR] com.visa.dpd.batch.uni.proc.cfg.BatchConfigTest
>
> [ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The
> forked VM terminated without properly saying goodbye. VM crash or
> System.exit called?
>
> [ERROR] Command was cmd.exe /X /C ""C:\Program
> Files\Java\jdk-14.0.2\bin\java" -jar
> C:\Users\ggreenbe\AppData\Local\Temp\surefire5797367098824429966\surefirebooter5235882171158911878.jar
> C:\Users\ggreenbe\AppData\Local\Temp\surefire5797367098824429966
> 2020-12-19T20-49-39_741-jvmRun1 surefire8349322470433008227tmp
> surefire_018344052671012744992tmp"
>
> [ERROR] Process Exit Code: 0
>
> [ERROR] Crashed tests:
>
> [ERROR] com.visa.dpd.batch.uni.proc.cfg.BatchConfigTest
>
> [ERROR] at
> org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:669)
>
> [ERROR] at
> org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:282)
>
> [ERROR] at
> org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:245)
>
> [ERROR] at
> org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1183)
>
> [ERROR] at
> org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1011)
>
> [ERROR] at
> org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:857)
>
> [ERROR] at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
>
> [ERROR] at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
>
> [ERROR] at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
>
> [ERROR] at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
>
> [ERROR] at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
>
> [ERROR] at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
>
> [ERROR] at
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
>
> [ERROR] at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
>
> [ERROR] at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
>
> [ERROR] at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
>
> [ERROR] at
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
>
> [ERROR] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957)
>
> [ERROR] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289)
>
> [ERROR] at org.apache.maven.cli.MavenCli.main(MavenCli.java:193)
>
> [ERROR] at
> java.base/jdk.internal.reflect.NativeMethodAcces

Re: Netbeans menus File, Edit... do not get localized

2020-12-20 Thread Boris Heithecker
Hi Jerome,
NetBeans 12.0 has no built-in localization. If you need it, you'll have to
compile your own localization module reusing translation from pre-9.0
editions.
Go to https://github.com/apache/netbeans-l10n and see how this can be done,
using the german translations (locale_de) as a template.
Boris


On Fri, 18 Dec 2020 at 23:45, Jerome Lelasseux 
wrote:

> When I run my RCP application with
>
> run.args.extra=--locale fr:FR
>
> I get my own UI menu items localized but not Netbeans ones remain in
> english, like bar menu headers "File" or "Edit", the action "Exit", etc.
>
> What do I miss ?
>
>
> I use Netbeans 12.0
>


-- 
Boris Heithecker


Dr. Boris Heithecker
Lüneburger Str. 30
28870 Ottersberg
Festnetz: +49 4205 315834
Mobil: +49 170 6137015


Re: memory allocation for JVM - "file too big to open safely" [netbeans] [java]

2020-12-20 Thread Neil C Smith
On Sun, 20 Dec 2020 at 16:25, Oliver Rettig  wrote:
> I remember also got such messages in the past during opening big text files 
> in my netbeans-platform applications and with increasing heap-size I cauld 
> not get rid of the message. In my cases after closing the dialog all works 
> fine. So I dont have a closer look at this. Maybe there is simple somewhere 
> hardcoded a maximum file size and after reaching this size the dialog is 
> thrown.
>
> I am also interested in, if you can fix this.

It's probably this?
https://github.com/apache/netbeans/blob/master/platform/openide.loaders/src/org/openide/text/DataEditorSupport.java#L853

Should be able to set that system properly to a MB value greater than
1 by the look of it.

Best wishes,

Neil

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

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



Re: memory allocation for JVM - "file too big to open safely" [netbeans] [java]

2020-12-20 Thread Som Lima
Looking at this page

https://stackoverflow.com/questions/13685402/how-to-assign-more-than-1gb-to-netbeans-jvm

I suggest setting this parameter to see if you get the corresponding error
message.

when I set -J-Xmx3024m I obtain these messages:

/opt/netbeans-7.2/bin/netbeans
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.Error: A fatal
exception has occurred. Program will exit

If you do then you know you are in the right place.

This text suggests you can play around with the size.

The message Could not reserve enough space for object heap means that 3024
MB is not available for assignment. Try reducing it


Then you try this as suggested.
 netbeans_default_options="-J-client -J-Xss2m -J-XX:PermSize=512m
-J-XX:MaxPermSize=512m -J-Dapple.laf.useScreenMenuBar=true
-J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true
-J-Dsun.zip.disableMemoryMapping=true -J-Xms2148m -J-Xmx2148m
-J-XX:+UseParallelGC"





On Sun, 20 Dec 2020, 16:25 Oliver Rettig,  wrote:

> Hi,
>
>
>
> I remember also got such messages in the past during opening big text
> files in my netbeans-platform applications and with increasing heap-size I
> cauld not get rid of the message. In my cases after closing the dialog all
> works fine. So I dont have a closer look at this. Maybe there is simple
> somewhere hardcoded a maximum file size and after reaching this size the
> dialog is thrown.
>
>
>
> I am also interested in, if you can fix this.
>
>
>
> best regards
>
> Oliver
>
> Hello,
>
> I am running NetBeans 12 in Ubuntu 14.04. When trying to load a file of
> text, I get the message "It seems that the file is too big to open
> safely...etc...". I have changed the netbeans.conf and app.conf files to
> include
>
>
> -J-Xms512m -J-Xmx2048m
>
>
> but I still get the error. I want to try increasing the allocation(s) for
> the JVM itself, but I can't find instructions to do that when you're using
> NetBeans, only for times when you're running "javac" and "java" commands in
> a terminal -- my installation doesn't recognize the "java" command - if it
> did I'd enter
>
>
> java -J-Xms512m -J-Xmx2048m
>
>
> Any suggestions?
>
>
> Thanks.
>
>
> Chris Lanz
>
> Department of Computer Science
>
> 340 Dunn Hall, SUNY Potsdam
>
> lan...@potsdam.edu
>
> 315 267 2407
>
> 315 268 1547
>
>
> Nature and nature's laws lay hid in night:
> God said, Let Newton be! and all was light. (Pope)
>
> It did not last: the Devil howling "Ho!
> Let Einstein be!" restored the status quo. (Squire)
>
>
>
>
>


Re: memory allocation for JVM - "file too big to open safely" [netbeans] [java]

2020-12-20 Thread Oliver Rettig
Hi,

I remember also got such messages in the past during opening big text files in 
my netbeans-
platform applications and with increasing heap-size I cauld not get rid of the 
message. In my 
cases after closing the dialog all works fine. So I dont have a closer look at 
this. Maybe there 
is simple somewhere hardcoded a maximum file size and after reaching this size 
the dialog 
is thrown. 

I am also interested in, if you can fix this.

best regards
Oliver


Hello,
I am running NetBeans 12 in Ubuntu 14.04. When trying to load a file of text, I 
get the 
message "It seems that the file is too big to open safely...etc...". I have 
changed the 
netbeans.conf and app.conf files to include


-J-Xms512m -J-Xmx2048m


but I still get the error. I want to try increasing the allocation(s) for the 
JVM itself, but I can't 
find instructions to do that when you're using NetBeans, only for times when 
you're running 
"javac" and "java" commands in a terminal -- my installation doesn't recognize 
the "java" 
command - if it did I'd enter




java -J-Xms512m -J-Xmx2048m 




Any suggestions?


Thanks.




Chris Lanz
Department of Computer Science
340 Dunn Hall, SUNY Potsdam
lan...@potsdam.edu
315 267 2407
315 268 1547


Nature and nature's laws lay hid in night:God said, /Let Newton be!/ and all 
was light. (Pope)

It did not last: the Devil howling "Ho!Let Einstein be!" restored the status 
quo. (Squire)








Re: memory allocation for JVM - "file too big to open safely" [netbeans] [java]

2020-12-20 Thread Peter Hull
On Sat, 19 Dec 2020 at 22:42, Christopher C. Lanz
 wrote:
>
>  I have changed the netbeans.conf and app.conf files to include
>
> -J-Xms512m -J-Xmx2048m

As far as I know, that's the right way to increase Netbeans heap. Maybe
check in the IDE log (just after the line that starts "Input arguments:")
to see if those options have truly been applied.
Maybe NB has another limit that causes it to print that message,
independent of the heap size. Hopefully someone who knows can answer that.
Whenever I get that warning I just ignore it to be honest!