Re: Using Mockito with Netbeans

2024-02-29 Thread Greenberg, Gary
Yes, I do need to mock CRUD operations without accessing the database.
As I said, code was debugged and tested with the database, but to comply with 
the company policy
I do need to add these "fake" unit tests. I haven't used Mockito for about 10 
years and don't want to spend much time
to refresh my knowledge. I do hope that NB have some mocking features that will 
help me.

From: Leo Donahue 
Sent: Thursday, February 29, 2024 1:29 PM
Cc: NetBeans Mailing List 
Subject: Re: Using Mockito with Netbeans


On Thu, Feb 29, 2024, 13:33 Greenberg,Gary  wrote:
I already have all DTO and DAO classes written and debugged.
However, per company policy, unit test coverage must be no less than 75%.
Right now, I have it less than 30%, because this is database driven project and 
to comply, I need to create
tests mocking database operations.

>>mocking database operations

Do you mean that you need to mock CRUD in a unit test?

If you create mock data in the test, you control the mock data which means 
you're testing a hard coded value or testing for null and the database is never 
used.

Is that valuable?

Suppose you unit test pinging the database, as in select something and it fails 
because the database is down, or today no permissions were granted to your test 
account or your test user password expired... now what.  The unit test says 
something is broken but it may not be in your control.


From: Pieter van den Hombergh 
mailto:pieter.van.den.hombe...@gmail.com>>
Sent: Thursday, February 29, 2024 7:49 AM
Cc: NetBeans Mailing List 
mailto:users@netbeans.apache.org>>
Subject: Re: Using Mockito with Netbeans

generated tests from existing classes sounds like testing after the fact.

Then I would consider generating the DAOs from information available, like the 
database schema or the DTO classes which should be of the record type.

but if you still insist, make the DAO tests inherit from a TestBase class that 
configures the mocked data source.
If the DAO accepts the data source or a connection as dependency in the 
injection sense, you are good to go and can verify the proper use of the 
dependency by the DAO, which is the purpose of mocking.

I may find some time tomorrow to come up with a more elaborate answer.


Kind regards,
Pieter van den Hombergh.


met vriendelijke groet
Pieter van den Hombergh

Op do 29 feb 2024 01:40 schreef Greenberg, Gary :
I am quite used to generate unit tests for my code using Netbeans 
Tools->Create/Update Tests. JUnit is great.
However, now I need to create tests for some DAO classes where I will need to 
mock database access.
I plan to use Mockito for that.  Does Netbeans have any features automating 
Mockito test creation?


Gary Greenberg

Staff Software Engineer




Re: Using Mockito with Netbeans

2024-02-29 Thread Greenberg, Gary
I already have all DTO and DAO classes written and debugged.
However, per company policy, unit test coverage must be no less than 75%.
Right now, I have it less than 30%, because this is database driven project and 
to comply, I need to create
tests mocking database operations.

From: Pieter van den Hombergh 
Sent: Thursday, February 29, 2024 7:49 AM
Cc: NetBeans Mailing List 
Subject: Re: Using Mockito with Netbeans

generated tests from existing classes sounds like testing after the fact.

Then I would consider generating the DAOs from information available, like the 
database schema or the DTO classes which should be of the record type.

but if you still insist, make the DAO tests inherit from a TestBase class that 
configures the mocked data source.
If the DAO accepts the data source or a connection as dependency in the 
injection sense, you are good to go and can verify the proper use of the 
dependency by the DAO, which is the purpose of mocking.

I may find some time tomorrow to come up with a more elaborate answer.


Kind regards,
Pieter van den Hombergh.


met vriendelijke groet
Pieter van den Hombergh

Op do 29 feb 2024 01:40 schreef Greenberg, Gary :
I am quite used to generate unit tests for my code using Netbeans 
Tools->Create/Update Tests. JUnit is great.
However, now I need to create tests for some DAO classes where I will need to 
mock database access.
I plan to use Mockito for that.  Does Netbeans have any features automating 
Mockito test creation?


Gary Greenberg

Staff Software Engineer




Using Mockito with Netbeans

2024-02-28 Thread Greenberg, Gary
I am quite used to generate unit tests for my code using Netbeans 
Tools->Create/Update Tests. JUnit is great.
However, now I need to create tests for some DAO classes where I will need to 
mock database access.
I plan to use Mockito for that.  Does Netbeans have any features automating 
Mockito test creation?


Gary Greenberg

Staff Software Engineer




Where do I place Maven keys -e and -X when running application in Netbeans

2024-02-05 Thread Greenberg, Gary
I have my Spring boot application failing at start without giving me a clue 
where it fails:
2024-02-05 17:04:27.209 [ETL] [main] [INFO ] com.visa.vms.etl.daemon.EtlDaemon 
: %PARSER_ERROR[enc]
2024-02-05 17:04:27.212 [ETL] [main] [INFO ] com.visa.vms.etl.daemon.EtlDaemon 
: %PARSER_ERROR[enc]
2024-02-05 17:04:28.622 [ETL] [main] [WARN ] 
o.s.c.a.AnnotationConfigApplicationContext : %PARSER_ERROR[enc]
2024-02-05 17:04:28.634 [ETL] [main] [INFO ] 
o.s.b.a.l.ConditionEvaluationReportLogger : %PARSER_ERROR[enc]
2024-02-05 17:04:28.677 [ETL] [main] [ERROR] 
o.s.b.d.LoggingFailureAnalysisReporter : %PARSER_ERROR[enc]
...
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.1.0:exec 
(default-cli) on project etl_daemon: Command execution failed.: Process exited 
with an error: 1 (Exit value: 1) -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

I tried to put those switches in the command line argument in project 
properties, but it won't have any effect.
Gary Greenberg
Staff Software Engineer



RE: Netbeans cannot access www.springframework.org

2024-02-01 Thread Greenberg, Gary
I do understand your point, however, I do not know what I can do to continue my 
development.
I did try to search for XML schemas on https://spring.io<https://spring.io/> 
and wasn’t able to find anything.
Current documentation still refers to the old location 
(www.springframework.org<http://www.springframework.org/>) for XSD files 
https://docs.spring.io/spring-framework/reference/data-access/appendix.html#xsd-schemas-tx
What would you suggest?

Regards,
Gary Greenberg
Staff Software Engineer



From: Bill Brooks 
Sent: Thursday, February 1, 2024 1:30 PM
To: Greenberg, Gary 
Cc: users@netbeans.apache.org
Subject: Re: Netbeans cannot access www.springframework.org

Gary,

I doubt that the problem is with your Netbeans installation. If you try 
accessing the host you're relying on with some other tool, you'll see that it's 
been replaced or otherwise redirected via an HTTP 
301<https://www.domain.com/blog/what-is-a-redirect/> . To wit:

(base) wbrooks ~ % wget --verbose 
www.springframework.org<http://www.springframework.org/>
--2024-02-01 13:18:47--  http://www.springframework.org/
Resolving www.springframework.org<http://www.springframework.org/> 
(www.springframework.org<http://www.springframework.org/>)... 
2606:4700:20::6819:fa07, 2606:4700:20::6819:fb07, 104.25.251.7, ...
Connecting to www.springframework.org<http://www.springframework.org/> 
(www.springframework.org<http://www.springframework.org/>)|2606:4700:20::6819:fa07|:80...
 connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://spring.io<https://spring.io/> [following]
--2024-02-01 13:18:48--  https://spring.io/
Resolving spring.io<http://spring.io/> (spring.io<http://spring.io/>)... 
2606:4700:10::6814:241, 2606:4700:10::6814:341, 104.20.3.65, ...
Connecting to spring.io<http://spring.io/> 
(spring.io<http://spring.io/>)|2606:4700:10::6814:241|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html](base) wbrooks@Bills-MBP ~ % wget --verbose 
www.springframework.org<http://www.springframework.org/>
--2024-02-01 13:18:47--  http://www.springframework.org/
Resolving www.springframework.org<http://www.springframework.org/> 
(www.springframework.org<http://www.springframework.org/>)... 
2606:4700:20::6819:fa07, 2606:4700:20::6819:fb07, 104.25.251.7, ...
Connecting to www.springframework.org<http://www.springframework.org/> 
(www.springframework.org<http://www.springframework.org/>)|2606:4700:20::6819:fa07|:80...
 connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://spring.io<https://spring.io/> [following]
--2024-02-01 13:18:48--  https://spring.io/
Resolving spring.io<http://spring.io/> (spring.io<http://spring.io/>)... 
2606:4700:10::6814:241, 2606:4700:10::6814:341, 104.20.3.65, ...
Connecting to spring.io<http://spring.io/> 
(spring.io<http://spring.io/>)|2606:4700:10::6814:241|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

In case you haven't been following along with the corporate intrigue, Broadcom 
Inc. purchased VMware recently and laid off a four digit number of employees at 
VMware, thus far. The full extent of the layoffs is not clear. As an outsider 
with no specific knowledge of Broadcom's culture, I would guess that does not 
bode well for the Spring Java platform going forward. Hope I am wrong.

Hope this helps.

Bill

On Thu, Feb 1, 2024 at 11:17 AM Greenberg, Gary 
mailto:ggree...@visa.com.invalid>> wrote:
Trying to validate XML file for the Spring framework application context and 
getting tons of errors as Netbeans cannot access XML schema.
Retriever output shows:

Jan 23, 2024, 10:11:33 AM : Retrieving Location: 
http://www.springframework.org/schema/beans/spring-beans.xsd


Error: Unknown Host: www.springframework.org<http://www.springframework.org/>
URL Resource


Jan 23, 2024, 10:11:33 AM : Retrieving Location: 
http://www.springframework.org/schema/util/spring-util.xsd


Error: Unknown Host: www.springframework.org<http://www.springframework.org/>
URL Resource

At the same time I can see these XSD files in the browser without any problems. 
Can anyone tell me what is wrong with my Netbeans installation?
Gary Greenberg
Staff Software Engineer



Netbeans cannot access www.springframework.org

2024-02-01 Thread Greenberg, Gary
Trying to validate XML file for the Spring framework application context and 
getting tons of errors as Netbeans cannot access XML schema.
Retriever output shows:

Jan 23, 2024, 10:11:33 AM : Retrieving Location: 
http://www.springframework.org/schema/beans/spring-beans.xsd


Error: Unknown Host: www.springframework.org
URL Resource


Jan 23, 2024, 10:11:33 AM : Retrieving Location: 
http://www.springframework.org/schema/util/spring-util.xsd


Error: Unknown Host: www.springframework.org
URL Resource

At the same time I can see these XSD files in the browser without any problems. 
Can anyone tell me what is wrong with my Netbeans installation?
Gary Greenberg
Staff Software Engineer



Where do I specify maven debug keys

2024-01-31 Thread Greenberg, Gary
I am developing new SpringBoot application and trying to run for the first time 
within NB 18 and it fails without giving me any clue where the error occurred.
I am getting following output:


  .     ___ _ _
/\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  || .__|_| |_|_| |_\__, | / / / /
=|_|==|___/=/_/_/_/
:: Spring Boot ::(v3.2.0)

2024-01-31 21:19:53.599 [METADATA-DEV] [main] [INFO ] 
com.visa.vms.etl.daemon.EtlDaemon : %PARSER_ERROR[enc]
2024-01-31 21:19:53.602 [METADATA-DEV] [main] [INFO ] 
com.visa.vms.etl.daemon.EtlDaemon : %PARSER_ERROR[enc]
2024-01-31 21:19:54.886 [METADATA-DEV] [main] [WARN ] 
o.s.c.a.AnnotationConfigApplicationContext : %PARSER_ERROR[enc]
2024-01-31 21:19:54.902 [METADATA-DEV] [main] [INFO ] 
o.s.b.a.l.ConditionEvaluationReportLogger : %PARSER_ERROR[enc]
2024-01-31 21:19:54.951 [METADATA-DEV] [main] [ERROR] 
o.s.b.d.LoggingFailureAnalysisReporter : %PARSER_ERROR[enc]
Command execution failed.
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit 
value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal 
(DefaultExecutor.java:404)
at org.apache.commons.exec.DefaultExecutor.execute 
(DefaultExecutor.java:166)
at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:1000)
at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:947)
at org.codehaus.mojo.exec.ExecMojo.execute (ExecMojo.java:471)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
(DefaultBuildPluginManager.java:126)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 
(MojoExecutor.java:342)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute 
(MojoExecutor.java:330)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:213)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:175)
at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 
(MojoExecutor.java:76)
at org.apache.maven.lifecycle.internal.MojoExecutor$1.run 
(MojoExecutor.java:163)
at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute 
(DefaultMojosExecutionStrategy.java:39)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:160)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:105)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:73)
at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
 (SingleThreadedBuilder.java:53)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
(LifecycleStarter.java:118)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:827)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:272)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:195)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke 
(DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke (Method.java:577)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
(Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
(Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
(Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main 
(Launcher.java:347)

BUILD FAILURE

Total time:  5.067 s
Finished at: 2024-01-31T21:19:55-08:00

Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.1.0:exec 
(default-cli) on project etl_daemon: Command execution failed.: Process exited 
with an error: 1 (Exit value: 1) -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

I can't figure out what kind of parser error it is. Tried to put those -e and 
-X switches on the command line in Run properties but they were not taken.
Can someone please tell me how to find the cause of my problem.
Thanks,

Gary Greenberg
Staff Software Engineer



Changes of NB behavior with XML files

2024-01-30 Thread Greenberg, Gary
I recently have to make some changes to the application that I have developed 
about year and a half ago with NB 12.5
Now I am working with NB 18.
Changes that I need to make involve Spring applicationContext.xml file. I need 
to add entries to  table.
I do have in this file beans definition reference:
http://www.springframework.org/schema/beans
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
   xmlns:util=http://www.springframework.org/schema/util 
xsi:schemaLocation="
http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/util 
http://www.springframework.org/schema/util/spring-util.xsd;>

Before, when I type in "<" inside the map, Netbeans gave me a prompt choice: 
,  or  and
if I choose  it did prompt me for key and value.
Now, NB only give me one prompt .
I am wondering what is causing this reduction of functionality. Was it a bug 
introduced or it was intentional?
IMHO, intentional reduction of functionality does not improve popularity of my 
favorite IDE.
Has it been fixed in v.20 or v.21? Shall I go through paperwork and approval 
hustle to install newer version or switched to
company approved IntellJ?
Gary Greenberg
Staff Software Engineer



RE: Creating entity classes from the database does not work

2024-01-22 Thread Greenberg, Gary

I haven’t specified any specific JPA version. Using default specified by NB.
From: Stephen G. Parry 
Sent: Saturday, January 20, 2024 10:28 AM
To: Greenberg, Gary ; users@netbeans.apache.org
Subject: Re: Creating entity classes from the database does not work


We have experienced this problem also. Which version of JPA are you targeting?
On 20/01/2024 01:09, Greenberg, Gary wrote:
I am still using NB 18, because installing new versions require a lot of 
paperwork here at Visa.
Nevertheless, I am now facing a problem that I haven’t had with version 8.2 or 
12.5.
Trying to create some entity classes from the database. I did establish 
connection with MySQL server
In the Services tab and I can see my tables and can run queries against them.
When I am  doing New->Persistance->Entity Classes from DB, Netbeans does 
display me a popup frame
In which I select a connection, but the list of tables is empty and I can’t 
figure why.
Was it a bug introduced in v.18? If not, what I need to do to make it work?

Gary Greenberg
Staff Software Engineer



Creating entity classes from the database does not work

2024-01-19 Thread Greenberg, Gary
I am still using NB 18, because installing new versions require a lot of 
paperwork here at Visa.
Nevertheless, I am now facing a problem that I haven't had with version 8.2 or 
12.5.
Trying to create some entity classes from the database. I did establish 
connection with MySQL server
In the Services tab and I can see my tables and can run queries against them.
When I am  doing New->Persistance->Entity Classes from DB, Netbeans does 
display me a popup frame
In which I select a connection, but the list of tables is empty and I can't 
figure why.
Was it a bug introduced in v.18? If not, what I need to do to make it work?

Gary Greenberg
Staff Software Engineer



RE: GenAI for Netbeans

2023-12-20 Thread Greenberg, Gary
I’d love to, but have to admit that I have no experience with neither plugins 
nor GenAI.
My primary area of expertise are REST API and databases (RDBMS and NoSQL).

From: Daoud Abdelmonem Faleh 
Sent: Wednesday, December 20, 2023 3:15 PM
To: ggree...@visa.com.invalid
Cc: users@netbeans.apache.org
Subject: Re: GenAI for Netbeans

The idea is intriguing me. Maybe would attempt to implement such a plugin. 
Would you join the dance?

--Daoud

On Wed, Dec 20, 2023, 9:01 PM Greenberg, Gary 
mailto:ggree...@visa.com.invalid>> wrote:
Are there any attempts to add GenAi, Github Copilot or ChatGPT to Netbeans?
Our company is pushing developers to switch to IntelliJ with Github Copilot, 
but I do not want to leave Netbeans that I am using for almost quarter of a 
century.


Gary Greenberg

Staff Software Engineer




GenAI for Netbeans

2023-12-20 Thread Greenberg, Gary
Are there any attempts to add GenAi, Github Copilot or ChatGPT to Netbeans?
Our company is pushing developers to switch to IntelliJ with Github Copilot, 
but I do not want to leave Netbeans that I am using for almost quarter of a 
century.


Gary Greenberg

Staff Software Engineer




Adjusting to monitor resolution

2023-12-06 Thread Greenberg, Gary
I am working with NB 18 on DELL laptop in two locations (1/2 day in each), 
where I am connecting laptop to external monitors.
My problem is that monitors have different resolutions.

  *   3840X2160
  *   1920X1200
When connected to a higher resolution monitor, fonts becoming small and 
uncomfortable.
Changing the font settings in Netbeans twice a day is cumbersome. Changing 
monitor setting is blocked by sysadmins.
Can I configure options to automatically adjust NB to monitor resolution?

Gary Greenberg
Staff Software Engineer



Plugin for GitHub Copilot

2023-11-08 Thread Greenberg, Gary
Is there are any work in progress in the direction of creating such plugin for 
Netbeans?
I know that such plugins exist for IntelliJ and Visual Studio.
My company wants all developers to use Copilot, but I do not want to give up 
Netbeans.
For quarter of a century I kind of get attached to this IDE.

Gary Greenberg
Staff Software Engineer



RE: mysql connectivity problem with ApachNetbeans 18:Exception: com.mysql.jdbc.Driver

2023-08-09 Thread Greenberg, Gary
  1.  This is not a netbeans question you are asking.
  2.  There is not enough info, but IMHO you did not include MySQL jar file in 
you dependencies in your project.

From: Zulfi Khan 
Sent: Tuesday, August 8, 2023 9:23 PM
To: NetBeans Mailing List 
Subject: mysql connectivity problem with ApachNetbeans 18:Exception: 
com.mysql.jdbc.Driver

Hi,


Mysql driver error on Apachi netbeans 18.0



Hi,

I am working on ubuntu 18.04. mysql version is:

mysql Ver 14.14 Distrib 5.7.42, for Linux (x86_64) using EditLine wrapper



I have written the following code for connecting with database:

import java.sql.Connection;

import java.sql.DriverManager;

import java.sql.SQLException;

import java.sql.*;

public class Dbconnect {

boolean connect(){

Connection con = null;

System.out.println("Starts1...");

try {

System.out.println("Starts2...");

Class.forName("com.mysql.jdbc.Driver");

con = DriverManager.getConnection("jdbc:mysql://ebookshop", "root", "");

System.out.println("Starts3...");

if (!con.isClosed()){

System.out.println("Successfully connected to MySQL server...");

Statement stmt = con.createStatement();

String sql = "select * from books";

ResultSet rs = stmt.executeQuery(sql);

String title;

String author;

float price;

int qty;

while(rs.next()){

title = rs.getString("title");

author = rs.getString("author");

price = rs.getFloat("price");

System.out.println("title ="+title+"author="+author+"price="+price);

}

}

} catch(Exception e) {

System.err.println("Exception: " + e.getMessage());

} finally {

try {

if (con != null){

con.close();

return true;

}

} catch(SQLException e) {}

}

return false;

}



I am getting the following error:



Starts1...

Exception: com.mysql.jdbc.Driver

Starts2...

BUILD SUCCESSFUL (total time: 13 seconds)



Somebody, please guide me.



Zulfi.



RE: NB18 garbles Javadoc

2023-07-31 Thread Greenberg, Gary
Forgot to mentioned, garbling occurs always only if you have dashes (-) in the 
Javadoc text.
Otherwise it works normal.

From: Greenberg, Gary 
Sent: Monday, July 31, 2023 3:48 PM
To: users@netbeans.apache.org
Subject: NB18 garbles Javadoc

I had to make some changes to the code that already has extensive Javadoc in it.
Those changes include adding parameters to several functions.
After I add these parameters, a yellow warning badge appears near the function,
which says "Missing @param tag for ...".
If I select to add it, the tag is added, but the rest of Javadoc is garbled.
I.e. NB merges some lines and add line brakes in some other places where they 
shouldn't be.
I have to edit it again.

Have anybody noticed such behavior? Has a bug report been filed?
Unfortunately, I can't file report myself, as access to external repositories 
forbidden by company policy.

Gary Greenberg
Staff Software Engineer



NB18 garbles Javadoc

2023-07-31 Thread Greenberg, Gary
I had to make some changes to the code that already has extensive Javadoc in it.
Those changes include adding parameters to several functions.
After I add these parameters, a yellow warning badge appears near the function,
which says "Missing @param tag for ...".
If I select to add it, the tag is added, but the rest of Javadoc is garbled.
I.e. NB merges some lines and add line brakes in some other places where they 
shouldn't be.
I have to edit it again.

Have anybody noticed such behavior? Has a bug report been filed?
Unfortunately, I can't file report myself, as access to external repositories 
forbidden by company policy.

Gary Greenberg
Staff Software Engineer



Duplicates unit test methods generated and other issues

2023-07-25 Thread Greenberg, Gary
I recently installed NB 18 on my Windows laptop, switching from NB 14.
Noticed some strange behavior.

  1.  Sometimes within Netbeans window appears a smaller duplicate and all 
editing of the code can be perform only inside this smaller frame.
Some menu items (on the right side) becomes disabled. Resizing of the window 
doesn't work. The only way to fix is to shut down NB and restart it.
It happens sporadically (1-2 times a week) and I can't figure out what might 
cause it. Has anyone else notice such behavior?
  2.  When I generate unit test, all setup and teardown methods are generated 
twice. See snapshot:
[cid:image001.png@01D9BEDF.42F7C9A0]
I am using OpenJDK 18, BTW.
Gary Greenberg
Staff Software Engineer



Moving licenses

2023-07-03 Thread Greenberg, Gary
I just recently installed Netbeans 18 on my Windows laptop.
I do have prior version NB16 which I used for over a year.
In that installation I have created a proprietary license for my code and 
stored it as VisaProprietary.
Now, as I installed newer version it does not have my proprietary license.
I did search Netbeans 16 home directory as well as ProgramData and AppData and 
can't find it anywhere.
Can someone please point me to the right place where it is stored?

Thanks,

Gary Greenberg
Staff Software Engineer



RE: Migrating NB platform app to maven

2023-05-15 Thread Greenberg, Gary
You have provided POM file for your top level project and POM files for two 
modules: application and ActiveSong. Your error message says that it can't find 
POM for org.jjazz:org.jjazz.utilities
Check your Utilities module.

From: Jerome Lelasseux 
Sent: Monday, May 15, 2023 1:48 PM
To: users@netbeans.apache.org; Greenberg, Gary 
Subject: Re: Migrating NB platform app to maven

The pom files...


./pom.xml


http://maven.apache.org/POM/4.0.0; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd<http://maven.apache.org/POM/4.0.0%20http:/maven.apache.org/xsd/maven-4.0.0.xsd>">
4.0.0
org.jjazz
jjazzlab-parent
1.0-SNAPSHOT
pom
jjazzlab





org.apache.netbeans.utilities
nbm-maven-plugin
4.8
true

${brandingToken}
${brandingToken}



org.apache.maven.plugins
maven-compiler-plugin
3.11.0


org.apache.maven.plugins
maven-jar-plugin
3.3.0





branding
application
modules/Base
modules/BaseSimple
modules/ChordInspector
modules/ActiveSong
modules/Arranger
modules/BackgroundSongMusicBuilder
modules/ChordSymbolTextInput
modules/EasyReader
modules/Guava
modules/ImprovisationSupport
modules/EmbeddedSynth
modules/Phrase
modules/PhraseTransform
modules/PianoRoll
modules/RpCustomEditorFactoryImpl
modules/SongContext
modules/TestPlayerService
modules/InstrumentComponents
modules/Score
modules/UISettings
modules/Helpers
modules/FileDirectoryManager
modules/Importers
modules/InstrumentChooser
modules/MidiMix
modules/MusicControl
modules/OutputSynth
modules/PopupWindowMenuPatch
modules/Print
modules/RhythmStubs
modules/SongEditorManager
modules/SongMemoViewer
modules/SongStructure
modules/RhythmMusicGeneration
modules/RhythmSelectionDialog
modules/FlatComponents
modules/MixConsole
modules/MusicControlActions
modules/SS_Editor
modules/SptEditor
modules/ZoomableSliders
modules/Upgrade
modules/XOM
modules/Xstream
modules/Startup
modules/Analytics
modules/Biab
modules/Harmony
modules/ChordLeadSheet
modules/Options
modules/Quantizer
modules/RhythmDatabase
modules/CL_Editor
modules/ColorSetManager
modules/ItemRenderer
modules/UIUtilities
modules/UndoManager
modules/Utilities
modules/Diff
modules/FluidSynthEmbeddedSynth
modules/FluidSynthJava
modules/YamJJazz
modules/YjzCreator


RELEASE170
jjazzlab
17


=
./application/pom.xml


http://maven.apache.org/POM/4.0.0; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd<http://maven.apache.org/POM/4.0.0%20http:/maven.apache.org/xsd/maven-4.0.0.xsd>">
4.0.0

org.jjazz
jjazzlab-parent
1.0-SNAPSHOT

jjazzlab
nbm-application
jjazzlab-app

UTF-8
${project.build.directory}/${brandingToken}



org.netbeans.cluster
platform
${netbeans.version}
pom


org-jdesktop-layout
org.netbeans.api


org-netbeans-api-search
org.netbeans.api


org-netbeans-api-visual
org.netbeans.api




${project.groupId}
jjazzlab-branding
${project.version}



org.netbeans.api
org-netbeans-modules-nbjunit
${netbeans.version}
test




${project.groupId}
Base
${project.version}


${project.groupId}
ActiveSong
${project.version}


${project.groupId}
Arranger
${project.version}

RE: Migrating NB platform app to maven

2023-05-15 Thread Greenberg, Gary
You should provide your POM file here. Than we'll be able to help you.

From: Jerome Lelasseux 
Sent: Monday, May 15, 2023 1:26 PM
To: NetBeans Mailing List 
Subject: Migrating NB platform app to maven

I try to migrate my Ant-based NB platform app (~70 modules) to Maven, but I'm 
new to Maven, so forgive the newbie question.


I created a new empty NB platform app with a sample module from the NB wizard, 
then I built from there. I used https://github.com/gephi/gephi  on GitHub as a 
kind of model.

So now I have my parent project, the app project, the branding project and all 
my modules. I checked the various pom.xml. Running "mvn validate" is a success, 
and the projects structure in the IDE is OK.

BUT... I can't build ! Using "BUild with dependencies" on the app project, I 
get error messages like:

The POM for org.jjazz:org.jjazz.utilities:jar:1.0-SNAPSHOT is missing, no 
dependency information available
The POM for org.netbeans.api:org.openide.actions:jar:RELEASE170 is missing, no 
dependency information available
...

Using the "Solve project problems" menu, I understood that the dependencies are 
not found because they are not available in my local repository. But to be in 
the repository I need to compile the module, which depends on other modules 
etc... The only modules I was able to compile are the few ones with no 
dependencies at all, so only those were copied in the local repository.

I expected Maven (or rather the reactor plugin) to parse the module dependency 
tree and infer the appropriate compilation order, like Ant did...

What do I miss ?



Jerome

PS: I used a bash script to automate the migration process as much as possible. 
When I'm done I'll be happy to share it -there is not much info on the web...







Debugging web application on Tomcat

2023-03-13 Thread Greenberg, Gary
Last year I have developed a Spring-Boot web application.
It was originally developed as a JAR but later converted to a WAR and deployed 
to the Tomcat 9 on a production server.
Last week, a bug was found and I need to fix it.
Not to change the configuration, I have installed Tomcat 9 on my Windows laptop 
and was trying to debug the application on it.
When I click on "Debug" in my Netbeans 16, it builds the war but than trying to 
stop Tomcat for a while and then fails to do it.
I did stop Tomcat manually and tried to do it again, but than Netbeans failed 
to start Tomcat.
Looks like there are some permission issues. Can someone tells me how to fix it.
I remember, long ago, with Netbeans 8.2 and Tomcat6 I haven't had a problems 
deploying apps without start/stop.

Gary Greenberg
Staff Software Engineer



Python development with NB

2023-01-30 Thread Greenberg, Gary
I already asked this question some time ago, but didn't get any clear answers.
Does Netbeans have any plugins for Python development.
I know that it still supports PHP, which hasn't been in active use for a number 
of years.
On the other hand Python usage is on the rise, but I do not see any support for 
it in Netbeans.

Gary Greenberg
Staff Software Engineer



Scala classes

2023-01-05 Thread Greenberg, Gary
Any plugins to compile Scala files?

Gary Greenberg
Staff Software Engineer



Python development

2023-01-05 Thread Greenberg, Gary
After 20+ years working in Java, I got a project to be done in Python.
Is there are any support for Python in Netbeans?
I would hate to dump my favorite IDE.

Gary Greenberg
Staff Software Engineer



What happened with Netbeans bug reporting?

2022-12-05 Thread Greenberg, Gary
It used to be a feature that allows to submit exceptions along with some other 
info to Netbeans development team with a
click of a button.
Now you can only open notification and view the exception stack trace and 
that's it. Exceptions do occur regularly and I
mostly ignore them. I did raise this question sometime ago and was told that 
now I need to open JIRA ticket manually to
submit any NB problem and supply code samples in Apache GIT.
IMHO it is bad idea and not acceptable for many Netbeans users because

  1.  It does take more time, which is hard to allocate in busy development 
schedule.
  2.  Many companies (like mine) for security reasons do not allow to use 
offsite GIT and JIRA
Therefore, Netbeans team diminishing their ability to fix bugs and other 
problems.

For example, yesterday I was debugging an application and wanted to see changes 
in the database. I did have SQL window open.
As I switched to this SQL tab, exception occurred and all windows in Netbeans 
were garbled.
I saved the stack trace and had to restart NB as it was not responsive.
Here the stack trace:

java.lang.NullPointerException
at 
org.netbeans.modules.db.dataview.util.FileBackedClob.getSubString(FileBackedClob.java:166)
at 
org.netbeans.modules.db.dataview.util.LobHelper.clobToString(LobHelper.java:142)
at 
org.netbeans.modules.db.dataview.table.ClobCellRenderer.getTableCellRendererComponent(ResultSetCellRenderer.java:217)
at 
org.netbeans.modules.db.dataview.table.ResultSetCellRenderer.getTableCellRendererComponent(ResultSetCellRenderer.java:98)
at java.desktop/javax.swing.JTable.prepareRenderer(JTable.java:5741)
at 
org.netbeans.modules.db.dataview.table.JXTableDecorator.prepareRenderer(JXTableDecorator.java:119)
at 
org.netbeans.modules.db.dataview.output.DataViewTableUI.prepareRenderer(DataViewTableUI.java:126)
at 
java.desktop/javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:2190)
at 
java.desktop/javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:2092)
at 
java.desktop/javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:1888)
at com.formdev.flatlaf.ui.FlatTableUI.paint(FlatTableUI.java:396)
at java.desktop/javax.swing.plaf.ComponentUI.update(ComponentUI.java:161)
at java.desktop/javax.swing.JComponent.paintComponent(JComponent.java:797)
at java.desktop/javax.swing.JComponent.paint(JComponent.java:1074)
at 
org.netbeans.modules.db.dataview.table.JXTableDecorator.paint(JXTableDecorator.java:65)
at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907)
at java.desktop/javax.swing.JComponent.paint(JComponent.java:1083)
at java.desktop/javax.swing.JViewport.paint(JViewport.java:737)
at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907)
at java.desktop/javax.swing.JComponent.paint(JComponent.java:1083)
at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907)
at java.desktop/javax.swing.JComponent.paint(JComponent.java:1083)
at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907)
at java.desktop/javax.swing.JComponent.paint(JComponent.java:1083)
at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907)
at java.desktop/javax.swing.JComponent.paint(JComponent.java:1083)
at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907)
at java.desktop/javax.swing.JSplitPane.paintChildren(JSplitPane.java:1024)
at java.desktop/javax.swing.JComponent.paint(JComponent.java:1083)
at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907)
at java.desktop/javax.swing.JComponent.paint(JComponent.java:1083)
at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907)
at java.desktop/javax.swing.JComponent.paint(JComponent.java:1083)
at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907)
at java.desktop/javax.swing.JComponent.paint(JComponent.java:1083)
at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907)
at java.desktop/javax.swing.JComponent.paint(JComponent.java:1083)
at 
org.netbeans.swing.tabcontrol.TabbedContainer.paint(TabbedContainer.java:969)
at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907)
at java.desktop/javax.swing.JComponent.paint(JComponent.java:1083)
at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907)
at java.desktop/javax.swing.JComponent.paint(JComponent.java:1083)
at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907)
at java.desktop/javax.swing.JComponent.paint(JComponent.java:1083)
at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907)
at java.desktop/javax.swing.JComponent.paint(JComponent.java:1083)
at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:907)
at java.desktop/javax.swing.JComponent.paint(JComponent.java:1083)
at 

RE: Presentation of non-english characters in the debugger

2022-10-31 Thread Greenberg, Gary
Thank you.
However, the problem was of a different nature. I was given a file and told 
that it is in UTF-8 encoding, but it appeared that it wasn’t.
I converted file to UTF-8 and everything started working as expected.

From: Helmut Leininger 
Sent: Monday, October 31, 2022 1:42 PM
To: users@netbeans.apache.org
Subject: Re: Presentation of non-english characters in the debugger

Hi,
If you read using UTF-8 and then write specifying UTF-8 there should not be a 
problem.
But Windows does not use UTF-8 by standard I think it uses CP1252 or similar. 
And a command window (cmd) uses the windows setting. When you write a file in 
utf-8 an then display it in the command window you will see differencies as you 
described.
Mit freundlichen Grüßen
Helmut Leininger

Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.
Am 31. Oktober 2022 21:27:24 MEZ schrieb "Greenberg, Gary" 
mailto:ggree...@visa.com.INVALID>>:
I have created an application that reads data from the CSV file, process it and 
write it into another file.
It is working fine except one thing. German characters are being replaced. For 
example instead of leiüzig I see lei�zig
Same replacement I see in debugger when I stop it after reading a line from 
file.
I do have in my code
Reader rdr = BufferedReader(new InputStreamReader(new FileInputStream(file), 
"UTF-8"));
Later this Reader is used to build CSVReader (from OpenCsv library).

I want to be sure that that problems are in my code and not how debugger 
displays it.
I haven’t delt with foreign characters encoding before, so please forgive my 
ignorance.
I would gladly accept advice on my code as well.

I am running NB12.5 on OpenJDK 16 on Windows, but application is running in 
Java 8 SE.

Gary Greenberg
Staff Software Engineer



Presentation of non-english characters in the debugger

2022-10-31 Thread Greenberg, Gary
I have created an application that reads data from the CSV file, process it and 
write it into another file.
It is working fine except one thing. German characters are being replaced. For 
example instead of leiüzig I see lei�zig
Same replacement I see in debugger when I stop it after reading a line from 
file.
I do have in my code
Reader rdr = BufferedReader(new InputStreamReader(new FileInputStream(file), 
"UTF-8"));
Later this Reader is used to build CSVReader (from OpenCsv library).

I want to be sure that that problems are in my code and not how debugger 
displays it.
I haven’t delt with foreign characters encoding before, so please forgive my 
ignorance.
I would gladly accept advice on my code as well.

I am running NB12.5 on OpenJDK 16 on Windows, but application is running in 
Java 8 SE.

Gary Greenberg
Staff Software Engineer



RE: Generate setters that return this

2022-09-06 Thread Greenberg, Gary
Under 'Refactor' menu you can find options to 
a) Replace constructor with Builder;
b) Replace constructor with Factory
But I don't think you can generate builders directly.

-Original Message-
From: Mitch Claborn  
Sent: Tuesday, September 6, 2022 10:20 AM
To: users@netbeans.apache.org
Subject: Re: Generate setters that return this

Yes, I suppose Builder is the more correct term. The question is the 
same: Is there a way in NetBeans to generate those?


Mitch

On 9/6/22 11:52, Greenberg, Gary wrote:
> I think you are confusing setters with builders.
> Setters do not return anything, but builders do return this.
> Lookup design patterns.
> 
> -Original Message-
> From: Mitch Claborn 
> Sent: Tuesday, September 6, 2022 5:49 AM
> To: users@netbeans.apache.org
> Subject: Re: Generate setters that return this
> 
> I assume from the lack of response that this is not currently possible and 
> would require development. Does anyone have an idea of how much work would be 
> required to develop this?
> 
> 
> Mitch
> 
> On 8/30/22 13:40, Mitch Claborn wrote:
>> The "Generate Getters and Setters" dialog generates setters plain Java
>> setters with return type "void". Many times I'd like the setter to
>> return "this" instead. Is there a way to have those generated
>> automatically?
>>
> 
> -
> 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://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blistsdata=05%7C01%7Cggreenbe%40visa.com%7C69aeaefe5d984239883d08da902c0e97%7C38305e12e15d4ee888b9c4db1c477d76%7C0%7C0%7C637980816142573703%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7Csdata=m5q3zwm8CtjXLUVTogvUPQsFIjMsEN0HLD5lTeRURy8%3Dreserved=0
> 
> 
> -
> 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://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blistsdata=05%7C01%7Cggreenbe%40visa.com%7C69aeaefe5d984239883d08da902c0e97%7C38305e12e15d4ee888b9c4db1c477d76%7C0%7C0%7C637980816142573703%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7Csdata=m5q3zwm8CtjXLUVTogvUPQsFIjMsEN0HLD5lTeRURy8%3Dreserved=0
> 

-
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://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blistsdata=05%7C01%7Cggreenbe%40visa.com%7C69aeaefe5d984239883d08da902c0e97%7C38305e12e15d4ee888b9c4db1c477d76%7C0%7C0%7C637980816142573703%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7Csdata=m5q3zwm8CtjXLUVTogvUPQsFIjMsEN0HLD5lTeRURy8%3Dreserved=0


-
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: Generate setters that return this

2022-09-06 Thread Greenberg, Gary
I think you are confusing setters with builders.
Setters do not return anything, but builders do return this.
Lookup design patterns.

-Original Message-
From: Mitch Claborn  
Sent: Tuesday, September 6, 2022 5:49 AM
To: users@netbeans.apache.org
Subject: Re: Generate setters that return this

I assume from the lack of response that this is not currently possible and 
would require development. Does anyone have an idea of how much work would be 
required to develop this?


Mitch

On 8/30/22 13:40, Mitch Claborn wrote:
> The "Generate Getters and Setters" dialog generates setters plain Java 
> setters with return type "void". Many times I'd like the setter to 
> return "this" instead. Is there a way to have those generated 
> automatically?
> 

-
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://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blistsdata=05%7C01%7Cggreenbe%40visa.com%7Cd6af7d4be6a24329ebde08da90063d98%7C38305e12e15d4ee888b9c4db1c477d76%7C0%7C0%7C637980653738217386%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7Csdata=1Ejwm399RgNZOE4haI%2FCnRfTp6MH2uJI3hX8hC8L1Z0%3Dreserved=0


-
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



Vaadin plugin

2022-08-31 Thread Greenberg, Gary
I wanted to make some changes to my old project that was created few years ago 
on NB 8.2 with Vaadin plugin.
Now I am using NB 14.0 and 8.2 was uninstalled a while ago.
However, I can't find Vaadin in the list of available plugins.
I ran a search on https://plugins.netbeans.apache.org but found nothing.
Can someone please tell me where it is now?

Gary Greenberg
Staff Software Engineer



RE: Session question

2022-06-22 Thread Greenberg, Gary
JDBC does not commit by default. You can specify auto-commit upon establishing 
connection, though.

-Original Message-
From: Bayless Kirtley  
Sent: Wednesday, June 22, 2022 5:42 PM
To: users@netbeans.apache.org
Subject: Re: Session question

thanks for the suggestion, Gary. I was not committing. My understanding is that 
JDBC commits everything by default unless set otherwise. Anyway, I added a 
commit and still no success.

Bayless


On 6/22/22 12:12, Greenberg, Gary wrote:
> Are you committing your changes?
>
> -Original Message-
> From: Bayless Kirtley 
> Sent: Wednesday, June 22, 2022 5:19 AM
> To: List, Netbeans 
> Subject: Session question
>
> I have an application that could really use a local temporary table but I 
> can't seem to make it work. One class creates and populates the table then 
> passes the Connection to  another class that wants to use it. The second 
> class sees the table but finds it empty. What am I doing wrong? I am using 
> hsqldb 2.5.0 in an app that requires Java 8. My development system is Linux 
> Mint 20.
>
> Thanks
>
> Bayless
>
>
> -
> 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://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwik
> i.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blistsd
> ata=05%7C01%7Cggreenbe%40visa.com%7C4bf8e201dd184a1737c008da54b1586c%7
> C38305e12e15d4ee888b9c4db1c477d76%7C0%7C0%7C637915417916804945%7CUnkno
> wn%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiL
> CJXVCI6Mn0%3D%7C3000%7C%7C%7Csdata=97PCOWMAtJSgE4DF9MWgjcH%2BFAxH
> %2Bd8fQkSxwKrhTdE%3Dreserved=0
>
>
> -
> 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://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwik
> i.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blistsd
> ata=05%7C01%7Cggreenbe%40visa.com%7C4bf8e201dd184a1737c008da54b1586c%7
> C38305e12e15d4ee888b9c4db1c477d76%7C0%7C0%7C637915417916804945%7CUnkno
> wn%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiL
> CJXVCI6Mn0%3D%7C3000%7C%7C%7Csdata=97PCOWMAtJSgE4DF9MWgjcH%2BFAxH
> %2Bd8fQkSxwKrhTdE%3Dreserved=0
>

-
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://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blistsdata=05%7C01%7Cggreenbe%40visa.com%7C4bf8e201dd184a1737c008da54b1586c%7C38305e12e15d4ee888b9c4db1c477d76%7C0%7C0%7C637915417916804945%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7Csdata=97PCOWMAtJSgE4DF9MWgjcH%2BFAxH%2Bd8fQkSxwKrhTdE%3Dreserved=0


-
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: Session question

2022-06-22 Thread Greenberg, Gary
Are you committing your changes?

-Original Message-
From: Bayless Kirtley  
Sent: Wednesday, June 22, 2022 5:19 AM
To: List, Netbeans 
Subject: Session question

I have an application that could really use a local temporary table but I can't 
seem to make it work. One class creates and populates the table then passes the 
Connection to  another class that wants to use it. The second class sees the 
table but finds it empty. What am I doing wrong? I am using hsqldb 2.5.0 in an 
app that requires Java 8. My development system is Linux Mint 20.

Thanks

Bayless


-
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://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blistsdata=05%7C01%7Cggreenbe%40visa.com%7Ca2550a9c81004b6c8ffd08da54498f77%7C38305e12e15d4ee888b9c4db1c477d76%7C0%7C0%7C637914972168873803%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7Csdata=s8XeynwFM89Y%2BpVPYP3Zvpsvbh26zyeXdqjlb1bjsX8%3Dreserved=0


-
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



Switching to wrapped output?

2022-05-11 Thread Greenberg, Gary
I am developing a web service and for debugging purposes logging the output of 
it, which is a lengthy JSON.
I am getting
...line is too long, please switch to wrapped mode to see whole line...

But how do I do it. I looked through Options and didn't find it.
The only wrap lines check box is in Options->Miscellaneous->Terminal and it is 
already checked.

Gary Greenberg
Staff Software Engineer



Need an advice

2021-11-18 Thread Greenberg, Gary
Sorry for out of topic question, but I really don't know where else I can ask 
it.
I did try to search on the internet but did not come up with anything useful.
I am specializing on the back-end development but right now I do need a 
suggestion for the front end.
The user interface for the web application that I need to build shall allow 
user to create a
DAG - directed acyclical graph.
Nodes of the graph shall be dragged from the palette and dropped on the canvas 
and then connected with edges.
Edges will be loaded with some conditions and actions as well.
User interface shall allow editing - adding/deleting/replacing nodes and edges.

If someone has done something similar and can recommend a framework/toolkit for 
this kind of front-end development,
it will be greatly appreciated.

Thanks a lot.

Gary Greenberg
Staff Software Engineer



Where to put driver JAR

2021-11-01 Thread Greenberg, Gary
Just got a new laptop and installed NB 12.5 on it.
Need to connect to mySQL (remote host).
I did run mysql-jconnect MSI file which suppose to install the driver on my box.
However Netbeans cannot find it.
I can extract JAR from MSI, but not sure where shall I drop it in the Netbeans 
installation.
Can someone please advise?
Thanks,
Gary Greenberg
Staff Software Engineer



importing classes in custom templates

2021-08-04 Thread Greenberg, Gary
I have modified code templates for my NB12.4 installation and added couple of 
my custom templates.
They are working as expected, however, after inserting the code is marked with 
error badges, because
classes are not imported. I have to do a right-click on the badge and select 
"import classname".
Is it possible to automatically add import statement for these classes?

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

[EmailSig-TaglineVersion]



RE: GIT branch naming

2021-08-04 Thread Greenberg, Gary
Nope, no extra spaces. Checked it many times.

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



-Original Message-
From: Emilian Bold  
Sent: Wednesday, August 4, 2021 1:54 AM
To: Greenberg, Gary 
Cc: NetBeans Mailing List 
Subject: Re: GIT branch naming

I wonder if it's the extra space after "feature/"?

--emi

On Wed, Aug 4, 2021 at 2:38 AM Greenberg, Gary  
wrote:
>
> Our company policy require branches in the repository to contain department 
> ID and JIRA ticket number.
> I.e. bugfix/DEPTID-JIRATICKET or feature/ DEPTID-JIRATICKET.
>
> Our stash repo configured that way and won't accept any check-ins that are 
> not compliant with the rule.
>
> While I do not have any problems with bugfix branches, Netbeans (12.4) won't 
> allow me to create feature branches.
>
> It is telling me "Cannot create branch under already existing "feature"".
>
> It is not a showstopper for me, but does require additional hazzle.
>
> I have to :
>
> create a branch in the Stash using their web interface create a 
> different local branch name create a remote branch mapping do a fetch
>
> Manual git command does not give me any error message. Why Netbeans putting 
> this limitation?
>
> If I am doing something wrong, would you please steer me to the right 
> direction?
>
>
>
> Regards,
>
>
>
> Gary Greenberg
>
> Staff Software Engineer
>
> Data Product Development, BI-A
>
> E: ggree...@visa.com
>
> M: 650-269-7902
>
>
>
>

-
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://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blistsdata=04%7C01%7Cggreenbe%40visa.com%7C96464b482b224d39d13808d957259899%7C38305e12e15d4ee888b9c4db1c477d76%7C0%7C0%7C637636641372978570%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000sdata=869rn1Ykm0ELLwj0FGyMyuyovmvTWvAFJIPix5UFdKw%3Dreserved=0


-
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



GIT branch naming

2021-08-03 Thread Greenberg, Gary
Our company policy require branches in the repository to contain department ID 
and JIRA ticket number.
I.e. bugfix/DEPTID-JIRATICKET or feature/ DEPTID-JIRATICKET.
Our stash repo configured that way and won't accept any check-ins that are not 
compliant with the rule.
While I do not have any problems with bugfix branches, Netbeans (12.4) won't 
allow me to create feature branches.
It is telling me "Cannot create branch under already existing "feature"".
It is not a showstopper for me, but does require additional hazzle.
I have to :

  1.  create a branch in the Stash using their web interface
  2.  create a different local branch name
  3.  create a remote branch mapping
  4.  do a fetch
Manual git command does not give me any error message. Why Netbeans putting 
this limitation?
If I am doing something wrong, would you please steer me to the right direction?

Regards,

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

[EmailSig-TaglineVersion]



JFROG XRAY plugin

2021-07-15 Thread Greenberg, Gary
Our cyber security dept. requested developers to install JFrog XRAY plugin for 
every IDE to
identify binary vulnerabilities.
I saw such plugins for Eclipse, IntelliJ and VisualStudio but do not see it for 
Netbeans.
Does it exist or is someone working on it?

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

[EmailSig-TaglineVersion]



JGIT failure

2021-07-08 Thread Greenberg, Gary
I need to add new feature to my project from last year.
Using NB 12.4 I did create a new branch in my local repo, made modification to 
couple classes,
but when I tried to build the project I got following exception in the build 
log:

evalCommit is [b0294507104d99294a3956fecfa6a8ec93c70184]
Tag refs [[]]
Created map: [{}]
Collected git.closest.tag.commit.count with value
Collected git.total.commit.count with value 44
Failed to perform fetch
org.eclipse.jgit.api.errors.TransportException: https://my-repo-url.git: 
Authentication is required but no CredentialsProvider has been registered
at org.eclipse.jgit.api.FetchCommand.call (FetchCommand.java:254)
at pl.project13.maven.git.JGitProvider.fetch (JGitProvider.java:352)
at pl.project13.maven.git.JGitProvider.getAheadBehind 
(JGitProvider.java:339)
at pl.project13.maven.git.GitDataProvider.lambda$loadGitData$17 
(GitDataProvider.java:174)
at pl.project13.maven.git.GitDataProvider.lambda$memoize$23 
(GitDataProvider.java:272)
at pl.project13.maven.git.GitDataProvider.lambda$loadGitData$18 
(GitDataProvider.java:175)
at pl.project13.maven.git.GitDataProvider.maybePut 
(GitDataProvider.java:255)
at pl.project13.maven.git.GitDataProvider.loadGitData 
(GitDataProvider.java:175)
at pl.project13.maven.git.GitCommitIdMojo.loadGitDataWithJGit 
(GitCommitIdMojo.java:604)
at pl.project13.maven.git.GitCommitIdMojo.loadGitData 
(GitCommitIdMojo.java:563)
at pl.project13.maven.git.GitCommitIdMojo.execute (GitCommitIdMojo.java:458)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
(DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:81)
at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
 (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
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:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
(Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
(Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
(Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main 
(Launcher.java:347)
Caused by: org.eclipse.jgit.errors.TransportException: 
https://ggree...@stash.trusted.visa.com:7990/scm/dpd29aa/resp_group_mgmt.git: 
Authentication is required but no CredentialsProvider has been registered
at org.eclipse.jgit.transport.TransportHttp.connect (TransportHttp.java:537)
at org.eclipse.jgit.transport.TransportHttp.openFetch 
(TransportHttp.java:362)
at org.eclipse.jgit.transport.FetchProcess.executeImp 
(FetchProcess.java:138)
at org.eclipse.jgit.transport.FetchProcess.execute (FetchProcess.java:124)
at org.eclipse.jgit.transport.Transport.fetch (Transport.java:1271)
at org.eclipse.jgit.api.FetchCommand.call (FetchCommand.java:243)
at pl.project13.maven.git.JGitProvider.fetch (JGitProvider.java:352)
at pl.project13.maven.git.JGitProvider.getAheadBehind 
(JGitProvider.java:339)
at pl.project13.maven.git.GitDataProvider.lambda$loadGitData$17 
(GitDataProvider.java:174)
at pl.project13.maven.git.GitDataProvider.lambda$memoize$23 
(GitDataProvider.java:272)
at pl.project13.maven.git.GitDataProvider.lambda$loadGitData$18 
(GitDataProvider.java:175)
at pl.project13.maven.git.GitDataProvider.maybePut 
(GitDataProvider.java:255)
at pl.project13.maven.git.GitDataProvider.loadGitData 
(GitDataProvider.java:175)
at pl.project13.maven.git.GitCommitIdMojo.loadGitDataWithJGit 
(GitCommitIdMojo.java:604)
at pl.project13.maven.git.GitCommitIdMojo.loadGitData 
(GitCommitIdMojo.java:563)
at pl.project13.maven.git.GitCommitIdMojo.execute (GitCommitIdMojo.java:458)
at 

NetBeans and headless app.

2021-06-16 Thread Greenberg, Gary
I am developing a project that can run either locally with GUI or remotely 
using ssh or PUTTY.
In the main() method I have these lines of code:
if (GraphicsEnvironment.isHeadless()) {
// run in command line mode
} else {
   // Initiate Swing JForm
}
When I am debugging it Netbeans always open it in GUI mode.
Is there a way to imitate in the Netbeans headless environment or I need to 
change the code to debug it?
Thanks.

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

[EmailSig-TaglineVersion]



reporting Netbeans problems

2021-01-29 Thread Greenberg, Gary
Practically every day I am getting exceptions in my Netbeans 12 installation.
However, I was never been able to report them to Netbeans.
Whenever I do try I am getting the following:
[cid:image002.png@01D6F632.BDEA87B0]

Testing proxy connection gives me a green light and I do not have problems 
browsing internet.
Any clues?

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

[EmailSig-TaglineVersion]



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

2020-12-21 Thread Greenberg, Gary
406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main 
(Launcher.java:347)

Re-run Maven using the -X switch to enable full debug logging.

I tried even with basic template generated by Netbeans. Still this particular 
class cannot be tested and I can't figure why.

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

[EmailSig-TaglineVersion]

From: Andreas Reichel 
Sent: Sunday, December 20, 2020 8:22 PM
To: users@netbeans.apache.org
Subject: Re: One of the unit tests not executed. Why?

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<mailto:ggree...@visa.com>
M: 650-269-7902

[EmailSig-TaglineVersion]

From: Jose Ch mailto:pepnes...@gmail.com>>
Sent: Sunday, December 20, 2020 5:22 PM
To: Greenberg, Gary 
mailto:ggree...@visa.com.invalid>>
Cc: NetBeans Mailing List 
mailto:users@netbeans.apache.org>>
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 
(mailto:ggree...@visa.com.invalid>>) 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.mave

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.si

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

2020-12-19 Thread Greenberg, Gary
ct.Method.invoke(Method.java:564)
[ERROR] at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
[ERROR] at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
[ERROR] at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
[ERROR] at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

And I do not have System.exit() call anywhere.

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

[EmailSig-TaglineVersion]

From: Javier Ortiz Bultron 
Sent: Saturday, December 19, 2020 8:22 AM
To: Andreas Reichel 
Cc: NetBeans Mailing List 
Subject: Re: One of the unit tests not executed. Why?

Newly added? Might need to clean and build the project so the annotations are 
processed.

On Fri, Dec 18, 2020, 9:38 PM Andreas Reichel 
mailto:andr...@manticore-projects.com>> wrote:
Gary,

unfortunately nobody will be able to answer that without having a look at the 
particular Test file.
Also, I am not sure if that is a Netbeans problem. Are you able to run the 
tests with Maven from the shell?

Best regards
Andreas

On Sat, 2020-12-19 at 03:32 +, Greenberg, Gary wrote:
I am working on a pretty large project.
For many of Java classes I have created Junit tests and everything was working 
fine until today.
Today, I finished another class and using Tools->Create/Update Tests generated 
test class for it.
The class has only two public methods but one is not finished yet. So I deleted 
one test template and
updated another one to reflect the method functionality.
Compilation was successful, but when I looked through the build log, I see that 
this newly added test was not executed.
I selected the class in projects and from the context menu clicked on ‘Test’.
As a result I got this:

BUILD FAILURE

Total time:  19.124 s
Finished at: 2020-12-18T19:25:45-08:00

Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-cli) on 
project universal-batch-processor: No tests were executed!  (Set 
-DfailIfNoTests=false to ignore this error.) -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

I didn’t get why the test was not executed? I do not see differences with other 
test. Can anyone give me a hint?
Thanks,
Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggree...@visa.com<mailto:ggree...@visa.com>
M: 650-269-7902

[EmailSig-TaglineVersion]




One of the unit tests not executed. Why?

2020-12-18 Thread Greenberg, Gary
I am working on a pretty large project.
For many of Java classes I have created Junit tests and everything was working 
fine until today.
Today, I finished another class and using Tools->Create/Update Tests generated 
test class for it.
The class has only two public methods but one is not finished yet. So I deleted 
one test template and
updated another one to reflect the method functionality.
Compilation was successful, but when I looked through the build log, I see that 
this newly added test was not executed.
I selected the class in projects and from the context menu clicked on 'Test'.
As a result I got this:

BUILD FAILURE

Total time:  19.124 s
Finished at: 2020-12-18T19:25:45-08:00

Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-cli) on 
project universal-batch-processor: No tests were executed!  (Set 
-DfailIfNoTests=false to ignore this error.) -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

I didn't get why the test was not executed? I do not see differences with other 
test. Can anyone give me a hint?
Thanks,
Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggree...@visa.com
M: 650-269-7902

[EmailSig-TaglineVersion]



RE: How to disable this annoying thing

2020-11-29 Thread Greenberg, Gary
I did change this setting under Options->Java->Maven->Dependencies.
When I clicked on OK to apply these changes, Netbeans showed me a popup window 
“Performing lengthy operation” and hung.
I have killed it after approximately 40 minutes. When I restarted Netbeans 
options were not saved.
I did it again and now it took only 5 minutes to save.
Meanwhile it did start “Downloading Javadoc” and that process stalled at 24%.
About dozen attempts to cancel it did not succeed.
Now my question is: Why these processes are immortal and how do I cancel its 
execution?

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

[EmailSig-TaglineVersion]

From: Geertjan Wielenga 
Sent: Sunday, November 29, 2020 12:54 AM
To: Greenberg, Gary 
Cc: users@netbeans.apache.org
Subject: Re: How to disable this annoying thing


Take a look in the Maven section in the Java tab of the Options window.

Gj

On Sun, 29 Nov 2020 at 06:47, Greenberg, Gary 
mailto:ggree...@visa.com.invalid>> wrote:
I am working with NB 12.0 in Win10 Pro.
Practically right after opening active projects, Netbeans started a task 
“Downloading Sources”
[cid:image002.png@01D6C678.98B285E0]
This task always sits at 1% completion and never finishes.
If I can kill this task (which happens only in ¼ of attempts) it is restarted 
in few minutes.
It makes Netbeans very sluggish.
All these jar files already in my .m2 repository.
What it is trying to achieve and how can I get rid of this task?
Regards,
Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggree...@visa.com<mailto:ggree...@visa.com>
M: 650-269-7902

[EmailSig-TaglineVersion]



How to disable this annoying thing

2020-11-28 Thread Greenberg, Gary
I am working with NB 12.0 in Win10 Pro.
Practically right after opening active projects, Netbeans started a task 
"Downloading Sources"
[cid:image002.png@01D6C5CF.4FBB37A0]
This task always sits at 1% completion and never finishes.
If I can kill this task (which happens only in ¼ of attempts) it is restarted 
in few minutes.
It makes Netbeans very sluggish.
All these jar files already in my .m2 repository.
What it is trying to achieve and how can I get rid of this task?
Regards,
Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggree...@visa.com
M: 650-269-7902

[EmailSig-TaglineVersion]



Type recognition in NB 12

2020-11-18 Thread Greenberg, Gary
If I remember it correctly it did work in NB 8.2 and it is not working now.
For example:
I am defining
Map myMap = new HashMap<>();
Later in the code I am doing
myMap.get("xyz");
and on the left border clicking on the light bulb and selecting "Assign return 
value to a new variable".
New variable is created, but it is of a type Object not Double
Another  example:
I have a List  dictionary defined.
In the code I type
dictionary.
Netbeans give me a list of available methods and I select 
contains method from it.
It fills it with contains(LOG) where at the top of the class I 
have definition
private static final Logger LOG = 
LoggerFactory.getLogger(MyClass.class);
Just few lines above I do have definition of a string I am 
looking for.
It is not a big issue, but just annoying.
I wonder, was it a "new feature" or I am missing something?
How others are dealing with it?

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

[EmailSig-TaglineVersion]



Showing binary fields in DB explorer

2020-10-20 Thread Greenberg, Gary
I am doing a project that involves working with the database (MySQL).
It is not the first such project and I always used built into Netbeans database 
explorer.
However this time I need to query the table that has a 32 bytes binary field.
It is not showing the value of the field:
[cid:image002.png@01D6A6E0.8C22E2F0]
Is there way to show this value in hexadecimal?
I hate to open MySQL workbench for it.

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

[EmailSig-TaglineVersion]



Some strange editor behavior in NB 12.0

2020-10-09 Thread Greenberg, Gary
Just started a new Java project.
While writing the code encountered following :
I wrote this line:
NewClassName myNewClass =  new NewClassName(config);
Where config is an instance of javax.security.auth.login.Configuration
Editor marked the line as an error and offered to create this new class.
I didn't look through the whole list of suggestions and picked up the first 
one: create class in the current project.
New empty class was created, but the line was still marked as erroneous.
I did click on the light bulb again and there were no suggestion to create a 
constructor with parameter.
It offered to create the class again or create a class with the constructor.
Now, I selected the second option and class was created with an empty 
constructor with proper parameter, but file name was NewClassName_1.
So, I deleted the first file and tried to rename the second one into the first.
I got popup window saying that classpath scanning is in progress, although 
status bar does not show any activity.
After waiting for about 10 minutes I cancelled renaming and deleted the this 
file too.
Went back to the original code and repeated the previous action.
class file was created with the empty constructor with parameter.
However, the line of code above was still marked as erroneous.
When I clicked on the light bulb I got a suggestion to create a constructor 
again.
Fine I did select this option and another constructor with the same signature 
was created with a line
throw new UnsupportedOperationException("Not supported yet."); //To 
change body of generated methods, choose Tools | Templates.
Now I got an error in the new class, because of duplicate constructor.
After I did remove the duplicate Netbeans editor finally became happy.

My question is :
Did anyone experienced the same behavior? Have a bug report was created on that?

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

[EmailSig-TaglineVersion]



Recognizing environment variable while running java app in NB 12.0

2020-10-07 Thread Greenberg, Gary
I have created a Java application for some data conversion.
It accepts 2 parameters in the command line: input and output file.
Besides that, some program options are defined by the properties file.
I have several of these properties files for different environments, where
name of the environment included as a suffix of the properties file name.
The environment name I planned to pass as -Denv=value
Now I am trying to run/debug my application from the Netbeans.
First, I specified input and output file in the arguments window of the project 
properties and -Denv=dev in the VM options window.
In this case System.getenv("env") returned null. I.e. environment variable was 
not set.
Then, I tried to move this setting from VM options to attributes and program 
failed with the following stack trace:
Command execution failed.
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit 
value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal 
(DefaultExecutor.java:404)
at org.apache.commons.exec.DefaultExecutor.execute 
(DefaultExecutor.java:166)
at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:764)
at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:711)
at org.codehaus.mojo.exec.ExecMojo.execute (ExecMojo.java:289)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
(DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:81)
at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
 (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
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:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
(Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
(Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
(Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main 
(Launcher.java:347)

Can anyone tells me what is the right way to specify this environment variable?
Thanks,
Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggree...@visa.com
M: 650-269-7902

[EmailSig-TaglineVersion]



How to configure Background scanning

2020-09-13 Thread Greenberg, Gary
Due to so called "security upgrades" pushed to my laptop by the company, it is 
working very slow.
I would compare it with 386 machines from early 90th.

In such environment when Netbeans starting "Background scanning of projects" or 
"checking for external updates"
it practically freezes up for 20-30 minutes.
Can someone tells me how can I configure NB12, so it will not start these 
processes 3 times per hour.

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

[EmailSig-TaglineVersion]



RE: Try out and vote for Apache NetBeans 12.1

2020-08-30 Thread Greenberg, Gary
Exactly. That was it. Indexing was disabled.
When I cleared this checkbox and after 1/2hour of indexing it started working.
Thanks to everybody for your help.

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

[EmailSig-TaglineVersion]

From: Bradley Willcott 
Sent: Sunday, August 30, 2020 9:03 PM
To: users@netbeans.apache.org
Subject: Re: Try out and vote for Apache NetBeans 12.1


Have you checked this? Tools>Options>Java>Maven>Index: "Completely disable 
indexing".

The Visa security may have turned this on.

Brad.
On 31/8/20 11:28 am, HRH wrote:

The Maven dependency search failure on your system might be the concomitant of 
that security update by Visa, which has severely impacted your environment. 
Have you considered to reinstall Netbeans, perhaps the latest stable version 
that comes with Maven 3.6.3 (i.e. Netbeans 12.0)?
On Monday, August 31, 2020, 7:27:51 AM GMT+4:30, Ernie Rael 
<mailto:err...@raelity.com> wrote:


On 8/30/2020 6:59 PM, Greenberg, Gary wrote:
>
> I have deleted .m2 and also installed new version of Maven (3.5.4 ->
> 3.6.3)
>
Did you inform NetBeans about it? Tools>Options>Java>Maven>Execution.
And some of the other Maven Categories might have some bearing on the
problem, like "Index".

-ernie

> Still search for dependencies doesn’t work.
>
> Doesn’t look like it is searching for anything.
>
> In a fraction of a second it pops-up “No matching items” window.
>
> Gary Greenberg
>
> Staff Software Engineer
>
> Data Product Development, BI-A
>
> E: ggree...@visa.com<mailto:ggree...@visa.com>
>
> M: 650-269-7902
>
> EmailSig-TaglineVersion
>
> *From:*Geertjan Wielenga mailto:geert...@apache.org>>
> *Sent:* Sunday, August 30, 2020 2:50 PM
> *To:* Greenberg, Gary 
> mailto:ggree...@visa.com.invalid>>
> *Cc:* users@netbeans.apache.org<mailto:users@netbeans.apache.org>
> *Subject:* Re: Try out and vote for Apache NetBeans 12.1
>
> You must have an .m2 folder somewhere, delete it. NetBeans might not
> be using the latest Maven version, best to use the latest Maven version.
>
> At this point I cannot help you further. I simply suggest setting up
> Maven from scratch.
>
> Gj
>
> On Sun, 30 Aug 2020 at 23:47, Greenberg, Gary
> mailto:ggree...@visa.com.invalid> 
> <mailto:ggree...@visa.com.invalid<mailto:ggree...@visa.com.invalid>>> wrote:
>
>
>What do you mean from scratch?
>
>I was using Maven built-in into Netbeans.
>
>
>Do you suggest to install maven outside of NB?
>
>Gary Greenberg
>
>Staff Software Engineer
>
>Data Product Development, BI-A
>
>E: ggree...@visa.com<mailto:ggree...@visa.com> 
> <mailto:ggree...@visa.com<mailto:ggree...@visa.com>>
>
>M: 650-269-7902
>
>EmailSig-TaglineVersion
>
>*From:*Geertjan Wielenga mailto:geert...@apache.org>
><mailto:geert...@apache.org<mailto:geert...@apache.org>>>
>
>
>*Sent:* Sunday, August 30, 2020 2:14 PM
>
>
>*To:* Greenberg, Gary mailto:ggree...@visa.com> 
> <mailto:ggree...@visa.com<mailto:ggree...@visa.com>>>
>
>*Cc:* users@netbeans.apache.org<mailto:users@netbeans.apache.org> 
> <mailto:users@netbeans.apache.org<mailto:users@netbeans.apache.org>>
>
>*Subject:* Re: Try out and vote for Apache NetBeans 12.1
>
>Well, sounds like something is wrong with your Maven installation.
>I recommend you uninstall, remove the .m2 folder, and set up Maven
>again completely from scratch.
>
>Gj
>
>On Sun, Aug 30, 2020 at 11:05 PM Greenberg, Gary
>mailto:ggree...@visa.com.invalid> 
> <mailto:ggree...@visa.com.invalid<mailto:ggree...@visa.com.invalid>>> wrote:
>
>I found out what was wrong with it.
>
>
>Apparently security update removed almost half of jars in
>JDK1.8 (my project is using this platform).
>
>Why did it do so, I do not know.
>
>Anyway, I reinstalled Java 8 JDK (and upgraded from build 251
>to 265 along the way).
>
>Hanging and problems with opening files disappeared.
>
>However, I still have the problem with Maven dependencies search.
>
>It never worked for me in neither version 11 nor 12.
>
>As I understood, other people do not have this problem and
>this feature works for them.
>
>Can someone help me to find out what is wrong with my
>installation and how do I enable dependency search.
>
>
>Gary Greenberg
>Staff Software Engineer
>
>Data Product 

RE: Try out and vote for Apache NetBeans 12.1

2020-08-30 Thread Greenberg, Gary
I have deleted .m2 and also installed new version of Maven (3.5.4 -> 3.6.3)
Still search for dependencies doesn’t work.
Doesn’t look like it is searching for anything.
In a fraction of a second it pops-up “No matching items” window.

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

[EmailSig-TaglineVersion]

From: Geertjan Wielenga 
Sent: Sunday, August 30, 2020 2:50 PM
To: Greenberg, Gary 
Cc: users@netbeans.apache.org
Subject: Re: Try out and vote for Apache NetBeans 12.1


You must have an .m2 folder somewhere, delete it. NetBeans might not be using 
the latest Maven version, best to use the latest Maven version.

At this point I cannot help you further. I simply suggest setting up Maven from 
scratch.

Gj

On Sun, 30 Aug 2020 at 23:47, Greenberg, Gary 
mailto:ggree...@visa.com.invalid>> wrote:













What do you mean from scratch?

I was using Maven built-in into Netbeans.


Do you suggest to install maven outside of NB?



Gary Greenberg

Staff Software Engineer

Data Product Development, BI-A

E: ggree...@visa.com<mailto:ggree...@visa.com>

M: 650-269-7902



[EmailSig-TaglineVersion]



From: Geertjan Wielenga mailto:geert...@apache.org>>




Sent: Sunday, August 30, 2020 2:14 PM


To: Greenberg, Gary mailto:ggree...@visa.com>>


Cc: users@netbeans.apache.org<mailto:users@netbeans.apache.org>


Subject: Re: Try out and vote for Apache NetBeans 12.1




Well, sounds like something is wrong with your Maven installation. I recommend 
you uninstall, remove the .m2 folder, and set up Maven again completely from 
scratch.






Gj







On Sun, Aug 30, 2020 at 11:05 PM Greenberg, Gary 
mailto:ggree...@visa.com.invalid>> wrote:



I found out what was wrong with it.


Apparently security update removed almost half of jars in JDK1.8 (my project is 
using this platform).


Why did it do so, I do not know.


Anyway, I reinstalled Java 8 JDK (and upgraded from build 251 to 265 along the 
way).


Hanging and problems with opening files disappeared.


However, I still have the problem with Maven dependencies search.


It never worked for me in neither version 11 nor 12.


As I understood, other people do not have this problem and this feature works 
for them.


Can someone help me to find out what is wrong with my installation and how do I 
enable dependency search.





Gary Greenberg


Staff Software Engineer


Data Product Development, BI-A


E: ggree...@visa.com<mailto:ggree...@visa.com>


M: 650-269-7902













RE: Try out and vote for Apache NetBeans 12.1

2020-08-30 Thread Greenberg, Gary
What do you mean from scratch?
I was using Maven built-in into Netbeans.
Do you suggest to install maven outside of NB?

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

[EmailSig-TaglineVersion]

From: Geertjan Wielenga 
Sent: Sunday, August 30, 2020 2:14 PM
To: Greenberg, Gary 
Cc: users@netbeans.apache.org
Subject: Re: Try out and vote for Apache NetBeans 12.1

Well, sounds like something is wrong with your Maven installation. I recommend 
you uninstall, remove the .m2 folder, and set up Maven again completely from 
scratch.

Gj

On Sun, Aug 30, 2020 at 11:05 PM Greenberg, Gary 
mailto:ggree...@visa.com.invalid>> wrote:
I found out what was wrong with it.
Apparently security update removed almost half of jars in JDK1.8 (my project is 
using this platform).
Why did it do so, I do not know.
Anyway, I reinstalled Java 8 JDK (and upgraded from build 251 to 265 along the 
way).
Hanging and problems with opening files disappeared.
However, I still have the problem with Maven dependencies search.
It never worked for me in neither version 11 nor 12.
As I understood, other people do not have this problem and this feature works 
for them.
Can someone help me to find out what is wrong with my installation and how do I 
enable dependency search.

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



RE: Try out and vote for Apache NetBeans 12.1

2020-08-30 Thread Greenberg, Gary
I found out what was wrong with it.
Apparently security update removed almost half of jars in JDK1.8 (my project is 
using this platform).
Why did it do so, I do not know.
Anyway, I reinstalled Java 8 JDK (and upgraded from build 251 to 265 along the 
way).
Hanging and problems with opening files disappeared.
However, I still have the problem with Maven dependencies search.
It never worked for me in neither version 11 nor 12.
As I understood, other people do not have this problem and this feature works 
for them.
Can someone help me to find out what is wrong with my installation and how do I 
enable dependency search.

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




RE: Try out and vote for Apache NetBeans 12.1

2020-08-28 Thread Greenberg, Gary
I do not think it is a hardware failure.
Actually last night Visa pushed security update to my laptop.
May be they messed up something with it.
Last time their security updates wiped out my browser cache, cookies, bookmarks 
and history.
I do not have control over it.

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




-Original Message-
From: Ernie Rael  
Sent: Friday, August 28, 2020 8:49 PM
To: users@netbeans.apache.org
Subject: Re: Try out and vote for Apache NetBeans 12.1

So the

java.lang.AssertionError cannot be found on the bootclasspath:
     ...  Changing source level to 1.3

is unexpected. When does that happen? Only with one project? I guess that could 
mean the classpath is wrong (if it's not the jdk). Does the classpath look 
correct? Could it be a hardware failure? Something has changed.

-ernie

On 8/28/2020 7:40 PM, Greenberg, Gary wrote:
> I haven't try jstack yet.
> I do not think JDK 1.8 is corrupted. Last week it was working fine.
> Couple days ago I started new project. Created 4 java files without 
> problems, but today on the 5-th one I got these un-ending problems.
>
> Gary Greenberg
> Staff Software Engineer
> Data Product Development, BI-A
> E: ggree...@visa.com
> M: 650-269-7902
>
>
>
>
> -Original Message-
> From: Ernie Rael 
> Sent: Friday, August 28, 2020 6:39 PM
> To: users@netbeans.apache.org
> Subject: Re: Try out and vote for Apache NetBeans 12.1
>
> On 8/28/2020 5:57 PM, Greenberg, Gary wrote:
>> I did try it before it hangs and still no thread dump.
> So you're unable to take a thread dump, independent of the hang. I'm on Win7, 
> I got thread dumps with both jdk1.8 and jdk-14. I entered ctrl-break in the 
> window created by the '--console new' option.
>
> Have you tried jstack to get the dump?
>
> When I run into a hang, the thread dump is usually essential.
>
> I've seen parser errors like that, never associated with a hang.
>
> The
>
>  Even though the source level of
>  ...\Projects\batch-merchant-search\src\main\resources is set to:
>  1.8, java.lang.AssertionError cannot be found on the bootclasspath:
>  ...  Changing source level to 1.3
>
> seems troubling. I've never seen anything like that. When/how does that 
> happen? Configuration issue or corrupt jdk?
>
> You're using maven?
>
> -ernie
>
>> However, messages.log contains a lot of the following exceptions:
>>
>> Even though the source level of C:\Users\ggreenbe\OneDrive - Visa 
>> Inc\Development\Projects\batch-merchant-search\src\main\java;C:\Users
>> \
>> ggreenbe\OneDrive - Visa
>> Inc\Development\Projects\batch-merchant-search\src\main\resources is 
>> set to: 1.8, java.lang.AssertionError cannot be found on the
>> bootclasspath: C:\Program
>> Files\Java\jdk1.8.0_251\jre\lib\resources.jar;C:\Program
>> Files\Java\jdk1.8.0_251\jre\lib\rt.jar;C:\Program
>> Files\Java\jdk1.8.0_251\jre\lib\sunrsasign.jar;C:\Program
>> Files\Java\jdk1.8.0_251\jre\lib\jsse.jar;C:\Program
>> Files\Java\jdk1.8.0_251\jre\lib\jce.jar;C:\Program
>> Files\Java\jdk1.8.0_251\jre\lib\charsets.jar;C:\Program
>> Files\Java\jdk1.8.0_251\jre\lib\jfr.jar;C:\Program
>> Files\Java\jdk1.8.0_251\jre\classes
>> Changing source level to 1.3
>> WARNING [org.netbeans.TopSecurityManager]: use of system property 
>> netbeans.user has been obsoleted in favor of 
>> InstalledFileLocator/Places at 
>> org.netbeans.modules.java.source.parsing.JavacParser.dumpSource(Javac
>> P
>> arser.java:1260)
>> SEVERE [org.openide.util.Exceptions]
>> An error occurred during parsing of 'C:\Users\ggreenbe\OneDrive - Visa 
>> Inc\Development\Projects\batch-merchant-search\src\main\java\com\visa\dpd\app\batch\merchant\search\domain\OutputRecord.java'.
>>  Please report a bug against java/source and attach dump file 
>> 'C:\Users\ggreenbe\AppData\Roaming\NetBeans\12.0\var\log\OutputRecord_120.dump'.
>> An error occurred during parsing of 'C:\Users\ggreenbe\OneDrive - Visa 
>> Inc\Development\Projects\batch-merchant-search\src\main\java\com\visa\dpd\app\batch\merchant\search\domain\OutputRecord.java'.
>>  Please report a bug against java/source and attach dump file 
>> 'C:\Users\ggreenbe\AppData\Roaming\NetBeans\12.0\var\log\OutputRecord_120.dump'.
>> Caused: com.sun.tools.javac.util.FatalError: Fatal Error: Unable to find 
>> package java.lang in classpath or bootclasspath
>>   at 
>> jdk.compiler/com.sun.tools.javac.comp.TypeEnter$ImportsPhase.resolveImports(TypeEnter.java:357)
>>   at 
>> jdk.compiler/com.sun.tools.javac.comp.TypeEnter$ImportsPhase

RE: Try out and vote for Apache NetBeans 12.1

2020-08-28 Thread Greenberg, Gary
I haven't try jstack yet.
I do not think JDK 1.8 is corrupted. Last week it was working fine.
Couple days ago I started new project. Created 4 java files without problems,
but today on the 5-th one I got these un-ending problems.

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




-Original Message-
From: Ernie Rael  
Sent: Friday, August 28, 2020 6:39 PM
To: users@netbeans.apache.org
Subject: Re: Try out and vote for Apache NetBeans 12.1

On 8/28/2020 5:57 PM, Greenberg, Gary wrote:
> I did try it before it hangs and still no thread dump.

So you're unable to take a thread dump, independent of the hang. I'm on Win7, I 
got thread dumps with both jdk1.8 and jdk-14. I entered ctrl-break in the 
window created by the '--console new' option.

Have you tried jstack to get the dump?

When I run into a hang, the thread dump is usually essential.

I've seen parser errors like that, never associated with a hang.

The

Even though the source level of
...\Projects\batch-merchant-search\src\main\resources is set to:
1.8, java.lang.AssertionError cannot be found on the bootclasspath:
...  Changing source level to 1.3

seems troubling. I've never seen anything like that. When/how does that happen? 
Configuration issue or corrupt jdk?

You're using maven?

-ernie

>
> However, messages.log contains a lot of the following exceptions:
>
> Even though the source level of C:\Users\ggreenbe\OneDrive - Visa 
> Inc\Development\Projects\batch-merchant-search\src\main\java;C:\Users\
> ggreenbe\OneDrive - Visa 
> Inc\Development\Projects\batch-merchant-search\src\main\resources is 
> set to: 1.8, java.lang.AssertionError cannot be found on the 
> bootclasspath: C:\Program 
> Files\Java\jdk1.8.0_251\jre\lib\resources.jar;C:\Program 
> Files\Java\jdk1.8.0_251\jre\lib\rt.jar;C:\Program 
> Files\Java\jdk1.8.0_251\jre\lib\sunrsasign.jar;C:\Program 
> Files\Java\jdk1.8.0_251\jre\lib\jsse.jar;C:\Program 
> Files\Java\jdk1.8.0_251\jre\lib\jce.jar;C:\Program 
> Files\Java\jdk1.8.0_251\jre\lib\charsets.jar;C:\Program 
> Files\Java\jdk1.8.0_251\jre\lib\jfr.jar;C:\Program 
> Files\Java\jdk1.8.0_251\jre\classes
> Changing source level to 1.3
> WARNING [org.netbeans.TopSecurityManager]: use of system property 
> netbeans.user has been obsoleted in favor of 
> InstalledFileLocator/Places at 
> org.netbeans.modules.java.source.parsing.JavacParser.dumpSource(JavacP
> arser.java:1260)
> SEVERE [org.openide.util.Exceptions]
> An error occurred during parsing of 'C:\Users\ggreenbe\OneDrive - Visa 
> Inc\Development\Projects\batch-merchant-search\src\main\java\com\visa\dpd\app\batch\merchant\search\domain\OutputRecord.java'.
>  Please report a bug against java/source and attach dump file 
> 'C:\Users\ggreenbe\AppData\Roaming\NetBeans\12.0\var\log\OutputRecord_120.dump'.
> An error occurred during parsing of 'C:\Users\ggreenbe\OneDrive - Visa 
> Inc\Development\Projects\batch-merchant-search\src\main\java\com\visa\dpd\app\batch\merchant\search\domain\OutputRecord.java'.
>  Please report a bug against java/source and attach dump file 
> 'C:\Users\ggreenbe\AppData\Roaming\NetBeans\12.0\var\log\OutputRecord_120.dump'.
> Caused: com.sun.tools.javac.util.FatalError: Fatal Error: Unable to find 
> package java.lang in classpath or bootclasspath
>  at 
> jdk.compiler/com.sun.tools.javac.comp.TypeEnter$ImportsPhase.resolveImports(TypeEnter.java:357)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.TypeEnter$ImportsPhase.runPhase(TypeEnter.java:324)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.TypeEnter$Phase.doCompleteEnvs(TypeEnter.java:285)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.TypeEnter$Phase.completeEnvs(TypeEnter.java:254)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.TypeEnter.complete(TypeEnter.java:201)
>  at 
> jdk.compiler/com.sun.tools.javac.code.Symbol.complete(Symbol.java:670)
>  at 
> jdk.compiler/com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1383)
>  at 
> jdk.compiler/com.sun.tools.javac.comp.Enter.complete(Enter.java:584)
>  at jdk.compiler/com.sun.tools.javac.comp.Enter.main(Enter.java:561)
>  at 
> jdk.compiler/com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:1071)
>  at 
> jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.enter(JavacTaskImpl.java:336)
>  at 
> jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.enter(JavacTaskImpl.java:273)
>  at 
> org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:674)
>  at 
> org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:497)
>  at 
> org.netbeans.modules.java.source.parsing.JavacParser.getResult(Javac

RE: Try out and vote for Apache NetBeans 12.1

2020-08-28 Thread Greenberg, Gary
 exception.

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



-Original Message-
From: Ernie Rael  
Sent: Friday, August 28, 2020 5:25 PM
To: users@netbeans.apache.org
Subject: Re: Try out and vote for Apache NetBeans 12.1

The "reflective access" warnings are not unusual.

Not being able to get a thread dump is unusual. Have you tried it
*before* it hangs to insure your process is good? You can also try 
uSoft/SysInternals Process Explorer, if you get properties on a parent, there 
is a threads tab.

Have you taken a look at messages.log?

When I run from a windows shortcut (win7) I always have

--console new

as part of the target command, and start minimized (except for the first time, 
because it will hang asking for imports). And with the property in netbeans.conf

-J-Dnetbeans.logger.console=true

Then all the logging... is put in a second window, you can even open this 
window while it's running to see what stuff is being generated. 
It's basically a the samestuff as messages.log but realtime without the output 
buffering.

-ernie

On 8/28/2020 4:51 PM, Greenberg, Gary wrote:
>
> I was very wrong when I thought that I am back to normal.
>
> It is not throwing me exceptions when I am opening files, but still I 
> cannot do my work.
>
> Netbeans is hanging every 5-10 minutes and I can’t even save my edits.
> I have to kill it with TaskManager and start over again.
>
> In 3 hours I haven’t accomplish anything.
>
> Tried to get a thread dump but it won’t work for unknown reasons.
> I started Netbeans from console window and when it hung I got the 
> following on the console:
>
> The launcher has determined that the parent process has a console and 
> will reuse it for its own console output.
>
> Closing the console will result in termination of the running program.
>
> Use '--console suppress' to suppress console output.
>
> Use '--console new' to create a separate console window.
>
> WARNING: An illegal reflective access operation has occurred
>
> WARNING: Illegal reflective access by 
> org.netbeans.modules.java.source.parsing.JavacParser
> (jar:file:/C:/Program%20Files/Netbeans/12.0/netbeans/java/modules/org-
> netbeans-modules-java-source-base.jar!/)
> to method
> com.sun.tools.javac.code.DeferredCompletionFailureHandler.instance(com
> .sun.tools.javac.util.Context)
>
> WARNING: Please consider reporting this to the maintainers of 
> org.netbeans.modules.java.source.parsing.JavacParser
>
> WARNING: Use --illegal-access=warn to enable warnings of further 
> illegal reflective access operations
>
> WARNING: All illegal access operations will be denied in a future 
> release
>
> However, neither Ctrl-Break, nor Ctrl-Shift-Pause won’t produce thread 
> dump
>
> Anyone, please, help.
>
> Thanks
>
> Gary Greenberg
>
> Staff Software Engineer
>
> Data Product Development, BI-A
>
> E: ggree...@visa.com
>
> M: 650-269-7902
>
> EmailSig-TaglineVersion
>
> *From:*Greenberg, Gary 
> *Sent:* Friday, August 28, 2020 1:41 PM
> *Cc:* users@netbeans.apache.org
> *Subject:* RE: Try out and vote for Apache NetBeans 12.1
>
> No it is just today.
> Yesterday and before it was OK.
>
> Actually, I quit Netbeans and removed userdir and I am back to normal.
> I.e. can open source files and edit them.
>
> Gary Greenberg
>
> Staff Software Engineer
>
> Data Product Development, BI-A
>
> E: ggree...@visa.com <mailto:ggree...@visa.com>
>
> M: 650-269-7902
>
> EmailSig-TaglineVersion
>
> *From:*Geertjan Wielenga  <mailto:geert...@apache.org>>
> *Sent:* Friday, August 28, 2020 1:34 PM
> *To:* Greenberg, Gary  <mailto:ggree...@visa.com.invalid>>
> *Cc:* users@netbeans.apache.org <mailto:users@netbeans.apache.org>
> *Subject:* Re: Try out and vote for Apache NetBeans 12.1
>
> You've never been able to open a file in NetBeans before?
>
> Gj
>
> On Fri, Aug 28, 2020 at 10:31 PM Greenberg, Gary 
> mailto:ggree...@visa.com.invalid>> wrote:
>
> I have to use One-Drive.
> Otherwise my code won’t be backed-up.
>
> That is how Visa environment is set up.
>
> Why Netbeans is so sensitive to the file system?
> Other developers using SDS and JetBrain do not have such problems.
>
> Gary Greenberg
>
> Staff Software Engineer
>
> Data Product Development, BI-A
>
> E: ggree...@visa.com <mailto:ggree...@visa.com>
>
> M: 650-269-7902
>
> EmailSig-TaglineVersion
>
> *From:*Laszlo Kishalmi  <mailto:laszlo.kisha...@gmail.com>>
> *Sent:* Friday, August 28, 2020 1:06 PM
> *To:* users@netbeans.apache.or

RE: Try out and vote for Apache NetBeans 12.1

2020-08-28 Thread Greenberg, Gary
I was very wrong when I thought that I am back to normal.
It is not throwing me exceptions when I am opening files, but still I cannot do 
my work.
Netbeans is hanging every 5-10 minutes and I can’t even save my edits.
I have to kill it with TaskManager and start over again.
In 3 hours I haven’t accomplish anything.
Tried to get a thread dump but it won’t work for unknown reasons.
I started Netbeans from console window and when it hung I got the following on 
the console:

The launcher has determined that the parent process has a console and will 
reuse it for its own console output.
Closing the console will result in termination of the running program.
Use '--console suppress' to suppress console output.
Use '--console new' to create a separate console window.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by 
org.netbeans.modules.java.source.parsing.JavacParser 
(jar:file:/C:/Program%20Files/Netbeans/12.0/netbeans/java/modules/org-netbeans-modules-java-source-base.jar!/)
 to method 
com.sun.tools.javac.code.DeferredCompletionFailureHandler.instance(com.sun.tools.javac.util.Context)
WARNING: Please consider reporting this to the maintainers of 
org.netbeans.modules.java.source.parsing.JavacParser
WARNING: Use --illegal-access=warn to enable warnings of further illegal 
reflective access operations
WARNING: All illegal access operations will be denied in a future release

However, neither Ctrl-Break, nor Ctrl-Shift-Pause won’t produce thread dump
Anyone, please, help.
Thanks
Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggree...@visa.com
M: 650-269-7902

[EmailSig-TaglineVersion]

From: Greenberg, Gary 
Sent: Friday, August 28, 2020 1:41 PM
Cc: users@netbeans.apache.org
Subject: RE: Try out and vote for Apache NetBeans 12.1

No it is just today.
Yesterday and before it was OK.
Actually, I quit Netbeans and removed userdir and I am back to normal.
I.e. can open source files and edit them.

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

[EmailSig-TaglineVersion]

From: Geertjan Wielenga mailto:geert...@apache.org>>
Sent: Friday, August 28, 2020 1:34 PM
To: Greenberg, Gary 
mailto:ggree...@visa.com.invalid>>
Cc: users@netbeans.apache.org<mailto:users@netbeans.apache.org>
Subject: Re: Try out and vote for Apache NetBeans 12.1

You've never been able to open a file in NetBeans before?

Gj

On Fri, Aug 28, 2020 at 10:31 PM Greenberg, Gary 
mailto:ggree...@visa.com.invalid>> wrote:
I have to use One-Drive.
Otherwise my code won’t be backed-up.
That is how Visa environment is set up.
Why Netbeans is so sensitive to the file system?
Other developers using SDS and JetBrain do not have such problems.

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

[EmailSig-TaglineVersion]

From: Laszlo Kishalmi 
mailto:laszlo.kisha...@gmail.com>>
Sent: Friday, August 28, 2020 1:06 PM
To: users@netbeans.apache.org<mailto:users@netbeans.apache.org>
Subject: Re: Try out and vote for Apache NetBeans 12.1


Do not use one-drive mapped files it messes up the filesystem operations 
NetBeans is trying to perform.
On 8/28/20 12:59 PM, Geertjan Wielenga wrote:
But you’re not able to open files:

https://issues.apache.org/jira/browse/NETBEANS-4751<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fissues.apache.org%2Fjira%2Fbrowse%2FNETBEANS-4751=02%7C01%7Cggreenbe%40visa.com%7Cf8ac7257d1c5403d8a6e08d84b92b003%7C38305e12e15d4ee888b9c4db1c477d76%7C0%7C0%7C637342440676965604=vGsY1LIr%2Flbm%2FBH3HKBAzu5MJp%2FqLXV8ojU3Qi1U3Ew%3D=0>

So, not being able to create a GitHub repo (even at home when you’re not at 
Visa) seems the very least of your problems.

Also, sending this to the mailing list, where it belongs.

Let’s figure out how to open a file, first. :-)

Gj


On Fri, 28 Aug 2020 at 20:41, Greenberg, Gary 
mailto:ggree...@visa.com>> wrote:











Unfortunately, I cannot do that. Software on my machine won’t allow me to 
create this repository.

[cid:image002.png@01D67D58.4EAFDAB0]



May be, if you give me existing repository URL, I will be able to store it 
there.

Regards,

Gary Greenberg

Staff Software Engineer

Data Product Development, BI-A

E: ggree...@visa.com<mailto:ggree...@visa.com>

M: 650-269-7902



[EmailSig-TaglineVersion]



From: Geertjan Wielenga mailto:geert...@apache.org>>




Sent: Thursday, August 27, 2020 9:30 PM


To: Greenberg, Gary mailto:ggree...@visa.com>>


Cc: neilcsm...@apache.org<mailto:neilcsm...@apache.org>


Subject: Re: Try out and vote for Apache NetBeans 12.1





Just create your own GitHub repo.







Gj








On Fri, 28 Aug 2020 at 00:55, Greenberg, Gary 
mailto:ggree...@visa.com>> wrote:








































I have created 

RE: Try out and vote for Apache NetBeans 12.1

2020-08-28 Thread Greenberg, Gary
No it is just today.
Yesterday and before it was OK.
Actually, I quit Netbeans and removed userdir and I am back to normal.
I.e. can open source files and edit them.

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

[EmailSig-TaglineVersion]

From: Geertjan Wielenga 
Sent: Friday, August 28, 2020 1:34 PM
To: Greenberg, Gary 
Cc: users@netbeans.apache.org
Subject: Re: Try out and vote for Apache NetBeans 12.1

You've never been able to open a file in NetBeans before?

Gj

On Fri, Aug 28, 2020 at 10:31 PM Greenberg, Gary 
mailto:ggree...@visa.com.invalid>> wrote:
I have to use One-Drive.
Otherwise my code won’t be backed-up.
That is how Visa environment is set up.
Why Netbeans is so sensitive to the file system?
Other developers using SDS and JetBrain do not have such problems.

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

[EmailSig-TaglineVersion]

From: Laszlo Kishalmi 
mailto:laszlo.kisha...@gmail.com>>
Sent: Friday, August 28, 2020 1:06 PM
To: users@netbeans.apache.org<mailto:users@netbeans.apache.org>
Subject: Re: Try out and vote for Apache NetBeans 12.1


Do not use one-drive mapped files it messes up the filesystem operations 
NetBeans is trying to perform.
On 8/28/20 12:59 PM, Geertjan Wielenga wrote:
But you’re not able to open files:

https://issues.apache.org/jira/browse/NETBEANS-4751<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fissues.apache.org%2Fjira%2Fbrowse%2FNETBEANS-4751=02%7C01%7Cggreenbe%40visa.com%7Cba502a00405d4838929908d84b91b3f0%7C38305e12e15d4ee888b9c4db1c477d76%7C0%7C0%7C637342436449630002=gCu1ckJyIa2KmPK288j%2FJVw5fWRexVqTy1A7Im4V%2FxA%3D=0>

So, not being able to create a GitHub repo (even at home when you’re not at 
Visa) seems the very least of your problems.

Also, sending this to the mailing list, where it belongs.

Let’s figure out how to open a file, first. :-)

Gj


On Fri, 28 Aug 2020 at 20:41, Greenberg, Gary 
mailto:ggree...@visa.com>> wrote:












Unfortunately, I cannot do that. Software on my machine won’t allow me to 
create this repository.

[cid:image002.png@01D67D40.C6D49D90]



May be, if you give me existing repository URL, I will be able to store it 
there.

Regards,

Gary Greenberg

Staff Software Engineer

Data Product Development, BI-A

E: ggree...@visa.com<mailto:ggree...@visa.com>

M: 650-269-7902



[EmailSig-TaglineVersion]



From: Geertjan Wielenga mailto:geert...@apache.org>>




Sent: Thursday, August 27, 2020 9:30 PM


To: Greenberg, Gary mailto:ggree...@visa.com>>


Cc: neilcsm...@apache.org<mailto:neilcsm...@apache.org>


Subject: Re: Try out and vote for Apache NetBeans 12.1





Just create your own GitHub repo.







Gj








On Fri, 28 Aug 2020 at 00:55, Greenberg, Gary 
mailto:ggree...@visa.com>> wrote:









































I have created a small dummy project and the problem is perfectly reproducible.



Can you please send me URL of the GIT repository to push this project into it.



I found only GITHub with Netbeans sources.







Thanks,







Gary Greenberg



Staff Software Engineer



Data Product Development, BI-A



E:

ggree...@visa.com<mailto:ggree...@visa.com>



M: 650-269-7902







[EmailSig-TaglineVersion]







From: Geertjan Wielenga mailto:geert...@apache.org>>














Sent: Thursday, August 27, 2020 10:51 AM








To: Greenberg, Gary mailto:ggree...@visa.com>>








Cc: Neil C Smith mailto:neilcsm...@apache.org>>; 
NetBeans Mailing List 
mailto:users@netbeans.apache.org>>








Subject: Re: Try out and vote for Apache NetBeans 12.1










Just create a new dummy project from scratch and try to reproduce it there. If 
you reproduce it, upload it to GitHub and post the URL to it here. If you 
cannot reproduce it, ask

yourself some questions.
















Gj



















On Thu, Aug 27, 2020 at 7:50 PM Greenberg, Gary 
mailto:ggree...@visa.com>> wrote:















Unfortunately, per company policy I cannot share the source code with any 
entity outside Visa.








However, I am seeing the same things on at least five projects on NB 11 and 12.



I tried to clear the cache or even removing userdir. Nothing changes.



If everything works for you, how would you explain what I sent out in snapshots?







My environment:



Windows Pro 10;



OpenJDK14.0.1;



NB 12







Gary Greenberg



Staff Software Engineer



Data Product Development, BI-A



E:





ggree...@visa.com<mailto:ggree...@visa.com>



M: 650-269-7902







[EmailSig-TaglineVersion]







From: Geertjan Wielenga mailto:geert...@apache.org>>














Sent: Thursday, August 27, 2020 10:36 AM








To: Greenberg, Gary mailto:ggree...@visa.com>>








Cc: Neil C Smith mailto:neilcsm...@apache.org>&

RE: Try out and vote for Apache NetBeans 12.1

2020-08-28 Thread Greenberg, Gary
I have to use One-Drive.
Otherwise my code won’t be backed-up.
That is how Visa environment is set up.
Why Netbeans is so sensitive to the file system?
Other developers using SDS and JetBrain do not have such problems.

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

[EmailSig-TaglineVersion]

From: Laszlo Kishalmi 
Sent: Friday, August 28, 2020 1:06 PM
To: users@netbeans.apache.org
Subject: Re: Try out and vote for Apache NetBeans 12.1


Do not use one-drive mapped files it messes up the filesystem operations 
NetBeans is trying to perform.
On 8/28/20 12:59 PM, Geertjan Wielenga wrote:
But you’re not able to open files:

https://issues.apache.org/jira/browse/NETBEANS-4751<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fissues.apache.org%2Fjira%2Fbrowse%2FNETBEANS-4751=02%7C01%7Cggreenbe%40visa.com%7C632bc991277d4476479708d84b8de9c6%7C38305e12e15d4ee888b9c4db1c477d76%7C0%7C0%7C637342420173140831=eGvsNWnSEosBN1OvyFMoZb0V6isu8IqLu7jqHs0elXU%3D=0>

So, not being able to create a GitHub repo (even at home when you’re not at 
Visa) seems the very least of your problems.

Also, sending this to the mailing list, where it belongs.

Let’s figure out how to open a file, first. :-)

Gj


On Fri, 28 Aug 2020 at 20:41, Greenberg, Gary 
mailto:ggree...@visa.com>> wrote:













Unfortunately, I cannot do that. Software on my machine won’t allow me to 
create this repository.

[cid:image002.png@01D67D3F.8C2EFE70]



May be, if you give me existing repository URL, I will be able to store it 
there.

Regards,

Gary Greenberg

Staff Software Engineer

Data Product Development, BI-A

E: ggree...@visa.com<mailto:ggree...@visa.com>

M: 650-269-7902



[EmailSig-TaglineVersion]



From: Geertjan Wielenga mailto:geert...@apache.org>>




Sent: Thursday, August 27, 2020 9:30 PM


To: Greenberg, Gary mailto:ggree...@visa.com>>


Cc: neilcsm...@apache.org<mailto:neilcsm...@apache.org>


Subject: Re: Try out and vote for Apache NetBeans 12.1





Just create your own GitHub repo.







Gj








On Fri, 28 Aug 2020 at 00:55, Greenberg, Gary 
mailto:ggree...@visa.com>> wrote:










































I have created a small dummy project and the problem is perfectly reproducible.



Can you please send me URL of the GIT repository to push this project into it.



I found only GITHub with Netbeans sources.







Thanks,







Gary Greenberg



Staff Software Engineer



Data Product Development, BI-A



E:

ggree...@visa.com<mailto:ggree...@visa.com>



M: 650-269-7902







[EmailSig-TaglineVersion]







From: Geertjan Wielenga mailto:geert...@apache.org>>














Sent: Thursday, August 27, 2020 10:51 AM








To: Greenberg, Gary mailto:ggree...@visa.com>>








Cc: Neil C Smith mailto:neilcsm...@apache.org>>; 
NetBeans Mailing List 
mailto:users@netbeans.apache.org>>








Subject: Re: Try out and vote for Apache NetBeans 12.1










Just create a new dummy project from scratch and try to reproduce it there. If 
you reproduce it, upload it to GitHub and post the URL to it here. If you 
cannot reproduce it, ask

yourself some questions.
















Gj



















On Thu, Aug 27, 2020 at 7:50 PM Greenberg, Gary 
mailto:ggree...@visa.com>> wrote:















Unfortunately, per company policy I cannot share the source code with any 
entity outside Visa.








However, I am seeing the same things on at least five projects on NB 11 and 12.



I tried to clear the cache or even removing userdir. Nothing changes.



If everything works for you, how would you explain what I sent out in snapshots?







My environment:



Windows Pro 10;



OpenJDK14.0.1;



NB 12







Gary Greenberg



Staff Software Engineer



Data Product Development, BI-A



E:





ggree...@visa.com<mailto:ggree...@visa.com>



M: 650-269-7902







[EmailSig-TaglineVersion]







From: Geertjan Wielenga mailto:geert...@apache.org>>














Sent: Thursday, August 27, 2020 10:36 AM








To: Greenberg, Gary mailto:ggree...@visa.com>>








Cc: Neil C Smith mailto:neilcsm...@apache.org>>; 
NetBeans Mailing List 
mailto:users@netbeans.apache.org>>








Subject: Re: Try out and vote for Apache NetBeans 12.1










Just tried that, works perfectly.
















You'll need to put a project that has this problem on GitHub so someone can 
take a look.



















Probably not when you say things like "but nobody cared to answer" -- when no 
one answers it means no one knows or can reproduce.



















Gj



















On Thu, Aug 27, 2020 at 7:33 PM Greenberg, Gary 
mailto:ggree...@visa.com>> wrote:









Here is a way to reproduce the issue:








I have a Maven project that compiles without problems. All dependencies are 
already in my local .m2 repository








I c

Reporting problems with NB12

2020-08-28 Thread Greenberg, Gary
I am periodically getting notifications about exceptions in the IDE.
However, there is no more button to report the problem, that existed in v.8.2:
[cid:image002.png@01D67D32.FE0D7560]
Am I missing something?

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

[EmailSig-TaglineVersion]



RE: Try out and vote for Apache NetBeans 12.1

2020-08-27 Thread Greenberg, Gary
Unfortunately, per company policy I cannot share the source code with any 
entity outside Visa.
However, I am seeing the same things on at least five projects on NB 11 and 12.
I tried to clear the cache or even removing userdir. Nothing changes.
If everything works for you, how would you explain what I sent out in snapshots?

My environment:
Windows Pro 10;
OpenJDK14.0.1;
NB 12

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

[EmailSig-TaglineVersion]

From: Geertjan Wielenga 
Sent: Thursday, August 27, 2020 10:36 AM
To: Greenberg, Gary 
Cc: Neil C Smith ; NetBeans Mailing List 

Subject: Re: Try out and vote for Apache NetBeans 12.1

Just tried that, works perfectly.

You'll need to put a project that has this problem on GitHub so someone can 
take a look.

Probably not when you say things like "but nobody cared to answer" -- when no 
one answers it means no one knows or can reproduce.

Gj

On Thu, Aug 27, 2020 at 7:33 PM Greenberg, Gary 
mailto:ggree...@visa.com>> wrote:
Here is a way to reproduce the issue:
I have a Maven project that compiles without problems. All dependencies are 
already in my local .m2 repository
I comment out one of the dependencies in the POM file. See attachment c1.jpg.
Netbeans shows error badges in the source code.
Right click on the error badge and select "Search dependencies at Maven 
repositories...".
It never finds anything. See attachment c2.jpg

I did post question here twice - for NB 11 and NB 12 but nobody cared to answer.


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



-Original Message-
From: Neil C Smith mailto:neilcsm...@apache.org>>
Sent: Thursday, August 27, 2020 9:51 AM
To: Geertjan Wielenga mailto:geert...@apache.org>>; 
Greenberg, Gary mailto:ggree...@visa.com>>
Cc: NetBeans Mailing List 
mailto:users@netbeans.apache.org>>
Subject: Re: Try out and vote for Apache NetBeans 12.1

On Thu, 27 Aug 2020 at 17:42, Geertjan Wielenga 
mailto:geert...@apache.org>> wrote:
> On Thu, Aug 27, 2020 at 6:37 PM Greenberg, Gary 
> mailto:ggree...@visa.com.invalid>> wrote:
>>
>> Looks like Maven dependencies search still won’t work in NB 12.1.
>> When it is planned to restore it?
>
> What does it mean, what are the steps, what is the issue number?

Yes, pretty sure we've not taken that away!

However, I have noticed an occasional glitch while testing lots of builds when 
exiting while the unpacking index task is running.  Maybe deleting the cache 
dir is enough, and make sure to let that task complete.

Best wishes,

Neil


RE: Try out and vote for Apache NetBeans 12.1

2020-08-27 Thread Greenberg, Gary
Looks like Maven dependencies search still won’t work in NB 12.1.
When it is planned to restore it?
What are plans for recertifying plugins that used to work in version 8.2?

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

[EmailSig-TaglineVersion]

From: Geertjan Wielenga 
Sent: Wednesday, August 26, 2020 11:09 PM
To: NetBeans Mailing List 
Subject: Try out and vote for Apache NetBeans 12.1

Hi all,

Over on the dev mailing list, please join in and try out the 12.1 voting 
candidate and vote:

https://lists.apache.org/thread.html/r336e05a551f56a5b20dc3070f9ddf470cdd3a166c55272ed128d6c39%40%3Cdev.netbeans.apache.org%3E

Main new enhancements:

https://cwiki.apache.org/confluence/display/NETBEANS/Apache+NetBeans+12.1

Schedule:

https://cwiki.apache.org/confluence/display/NETBEANS/Release+Schedule

Thanks,

Gj


JMeter plugin

2020-08-25 Thread Greenberg, Gary
Cannot find JMeter plugin for NB 12 in the update center.
Was it discontinued?
If not, can somebody point me to where I can find it.

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

[EmailSig-TaglineVersion]



RE: NB12 - debugger is not going into the method

2020-07-06 Thread Greenberg, Gary
No, I was not using lambda expressions.

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

[EmailSig-TaglineVersion]

From: András Sik 
Sent: Sunday, July 5, 2020 11:13 PM
Cc: users@netbeans.apache.org
Subject: Re: NB12 - debugger is not going into the method

Is there any chance this had anything to do with lambda expressions? I know NB 
had issues with these before, IDK whether or not it has been fixed.

--
To the optimist, the glass is half-full.
To the pessimist, the glass is half-empty.
To the engineer, the glass is twice as big as it needs to be.


On Mon, Jul 6, 2020 at 8:01 AM Greenberg, Gary 
mailto:ggree...@visa.com.invalid>> wrote:
I do not have a small example and I cannot send out any significant piece of 
code.
However, I believe that I have explained steps to reproduce very clearly.
I do not mind to repeat it, though.
Create a  class bar with a function foo().
Write a method in this class that will be calling function foo.
Run it in the debugger and place a breakpoint on the line where foo() is called.
When it stops, click on “step-in” button and observe the behavior.

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

[EmailSig-TaglineVersion]

From: John Mc mailto:mcdonnell.j...@gmail.com>>
Sent: Sunday, July 5, 2020 5:22 AM
To: Greenberg, Gary 
mailto:ggree...@visa.com.invalid>>
Cc: users@netbeans.apache.org<mailto:users@netbeans.apache.org>
Subject: Re: NB12 - debugger is not going into the method

Do you have a small example of this behaviour?

I've not come across it myself, so without steps to reproduce, or a clear and 
simple example it might be hard to get someone to help you on resolving this 
issue...

Regards

John

On Sun, 5 Jul 2020 at 06:03, Greenberg, Gary 
mailto:ggree...@visa.com.invalid>> wrote:
I am trying to debug a maven project.
One of my methods returns unexpected result.
I placed a breakpoint on the line where method is called and when it stopped 
there, I clicked on the down arrow, planning to step into the method and see 
what is going on.
However, it did not go into the method, but behaved like “Step over” and moved 
to the next line of code.
Repeated it several times and behavior was consistent – “Step In” is not 
working as it should be.
I resolved my problem by putting another breakpoint inside the method, but it 
is not right. Back in version 8.2 it was working correctly.

Have anyone also noticed this problem?
My environment:
DELL Precision 5500
Win 10 Pro
OpenJDK 14
Netbeans 12

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

[EmailSig-TaglineVersion]



RE: NB12 - debugger is not going into the method

2020-07-06 Thread Greenberg, Gary
I do not have a small example and I cannot send out any significant piece of 
code.
However, I believe that I have explained steps to reproduce very clearly.
I do not mind to repeat it, though.
Create a  class bar with a function foo().
Write a method in this class that will be calling function foo.
Run it in the debugger and place a breakpoint on the line where foo() is called.
When it stops, click on “step-in” button and observe the behavior.

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

[EmailSig-TaglineVersion]

From: John Mc 
Sent: Sunday, July 5, 2020 5:22 AM
To: Greenberg, Gary 
Cc: users@netbeans.apache.org
Subject: Re: NB12 - debugger is not going into the method

Do you have a small example of this behaviour?

I've not come across it myself, so without steps to reproduce, or a clear and 
simple example it might be hard to get someone to help you on resolving this 
issue...

Regards

John

On Sun, 5 Jul 2020 at 06:03, Greenberg, Gary 
mailto:ggree...@visa.com.invalid>> wrote:
I am trying to debug a maven project.
One of my methods returns unexpected result.
I placed a breakpoint on the line where method is called and when it stopped 
there, I clicked on the down arrow, planning to step into the method and see 
what is going on.
However, it did not go into the method, but behaved like “Step over” and moved 
to the next line of code.
Repeated it several times and behavior was consistent – “Step In” is not 
working as it should be.
I resolved my problem by putting another breakpoint inside the method, but it 
is not right. Back in version 8.2 it was working correctly.

Have anyone also noticed this problem?
My environment:
DELL Precision 5500
Win 10 Pro
OpenJDK 14
Netbeans 12

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

[EmailSig-TaglineVersion]



NB12 - debugger is not going into the method

2020-07-04 Thread Greenberg, Gary
I am trying to debug a maven project.
One of my methods returns unexpected result.
I placed a breakpoint on the line where method is called and when it stopped 
there, I clicked on the down arrow, planning to step into the method and see 
what is going on.
However, it did not go into the method, but behaved like "Step over" and moved 
to the next line of code.
Repeated it several times and behavior was consistent - "Step In" is not 
working as it should be.
I resolved my problem by putting another breakpoint inside the method, but it 
is not right. Back in version 8.2 it was working correctly.

Have anyone also noticed this problem?
My environment:
DELL Precision 5500
Win 10 Pro
OpenJDK 14
Netbeans 12

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

[EmailSig-TaglineVersion]



RE: Maven dependencies automatically added

2020-07-01 Thread Greenberg, Gary
Strange,
I am working with Maven projects all the time and it never adds anything like 
that.
Actually, starting from 11.1 it never add anything I want it to add either.
I.e. back with NB 8.2, if I specify non-JDK class it asked me if I want to 
search for the dependencies
and find them and present me a list of possible matches and add what I selects 
into the POM.
Now, with NB12 and OpenJDK14 this list is always empty, even when dependency is 
already in my .m2
repository. Now I have to edit my pom.xml manually.

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

[EmailSig-TaglineVersion]

From: Nicolò Boschi - Diennea 
Sent: Wednesday, July 1, 2020 5:22 AM
To: users@netbeans.apache.org
Subject: Maven dependencies automatically added



How I can avoid it? Maybe the responsible is a plugin?
In this example the project already has Junit as dependency but is declared in 
the parent project

I use v11.3 with jdk14


Nicolò Boschi
Software Engineer @ Diennea – MagNews
Tel.: (+39) 0546 066100 - Int. - Mob.:
Viale G.Marconi 30/14 - 48018 Faenza (RA)

[Diennea | MagNews]
www.diennea.com
 | 
www.magnews.it
[In]
[Tw]
[Fb]
[NL]





CONFIDENTIALITY & PRIVACY NOTICE
This e-mail (including any attachments) is strictly confidential and may also 
contain privileged information. If you are not the intended recipient you are 
not authorised to read, print, save, process or disclose this message. If you 
have received this message by mistake, please inform the sender immediately and 
destroy this e-mail, its attachments and any copies. Any use, distribution, 
reproduction or disclosure by any person other than the intended recipient is 
strictly prohibited and the person responsible may incur in penalties.
The use of this e-mail is only for professional purposes; there is no guarantee 
that the correspondence towards this e-mail will be read only by the recipient, 
because, under certain circumstances, there may be a need to access this email 
by third subjects belonging to the Company.


Checking for external changes - suspended

2020-06-02 Thread Greenberg, Gary
I am getting this task initiated every few minutes and it almost immediately 
goes into suspended state.
If I am not cancelling it, it will sit for hours and Netbeans become quite 
sluggish.
Can someone tell me what external changes it is looking for and why it becomes 
suspended.
Can I turn this feature off? How?

My environment NB 11.3, JDK 13, Win10Pro
Thanks,
Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggree...@visa.com
M: 650-269-7902

[EmailSig-TaglineVersion]



RE: Strange JUnit behavior

2020-05-18 Thread Greenberg, Gary
Thank you very much.
It does work. My test have succeeded.
Looks like this org.junit.jupiter release is not quite compatible with 
SpringBootTest.

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

[EmailSig-TaglineVersion]

From: HRH 
Sent: Monday, May 18, 2020 4:02 PM
To: users@netbeans.apache.org; Greenberg, Gary 
Subject: Re: Strange JUnit behavior

I had a similar problem and this was the fix. Perhaps, it may work for you as 
well:

Comment out the following import statments:

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.fail;
import org.junit.jupiter.api.Test;

Add these instead:

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

Ultimately, the annotations should be used as follow:

@BeforeClass
public static void setUpClass() {
}

@AfterClass
public static void tearDownClass() {
}

@Before
public void setUp() {
}

@After
public void tearDown() {
}
Hope this helps.



On Tuesday, May 19, 2020, 3:20:25 AM GMT+4:30, Greenberg, Gary 
mailto:ggree...@visa.com.invalid>> wrote:



Sure, Here is the whole test file attached.



Gary GreenbergError

Staff Software Engineer

Data Product Development, BI-A

E: ggree...@visa.com<mailto:ggree...@visa.com>

M: 650-269-7902



[EmailSig-TaglineVersion]



From: HRH mailto:hrh...@yahoo.com.INVALID>>
Sent: Monday, May 18, 2020 3:30 PM
To: users@netbeans.apache.org<mailto:users@netbeans.apache.org>; Greenberg, 
Gary mailto:ggree...@visa.com.INVALID>>
Subject: Re: Strange JUnit behavior



Can you post the import statments used in your test file?



On Tuesday, May 19, 2020, 2:54:47 AM GMT+4:30, Greenberg, Gary 
mailto:ggree...@visa.com.invalid>> wrote:





I have created a Junit test for one of my classes using Netbeans 
Tools->Create/Update Tests menu.

My class has just a single public method, therefore, test class contains only 
one @Test method.

I did edited it to reflect my functionality, but when I run this test file I am 
getting

[cid:image002.png@01D62D2F.203EFCC0]

Where these two erroneous tests are coming from, is a secret for me.

If someone can give me a clue, how to find why I am getting these errors and 
how to get rid of them,
I will appreciate it greatly.

Thanks,

Gary Greenberg

Staff Software Engineer

Data Product Development, BI-A

E: ggree...@visa.com<mailto:ggree...@visa.com>

M: 650-269-7902



[EmailSig-TaglineVersion]



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

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blists=02%7C01%7Cggreenbe%40visa.com%7Ca2a436a812ee4684789808d7fb7f7911%7C38305e12e15d4ee888b9c4db1c477d76%7C0%7C1%7C637254397251821981=fY1rCGjI1YshFwREfIa%2BxP4xDm1jRiL6nkAoBJwqo1E%3D=0>


RE: Strange JUnit behavior

2020-05-18 Thread Greenberg, Gary
Sure, Here is the whole test file attached.

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

[EmailSig-TaglineVersion]

From: HRH 
Sent: Monday, May 18, 2020 3:30 PM
To: users@netbeans.apache.org; Greenberg, Gary 
Subject: Re: Strange JUnit behavior

Can you post the import statments used in your test file?

On Tuesday, May 19, 2020, 2:54:47 AM GMT+4:30, Greenberg, Gary 
mailto:ggree...@visa.com.invalid>> wrote:



I have created a Junit test for one of my classes using Netbeans 
Tools->Create/Update Tests menu.

My class has just a single public method, therefore, test class contains only 
one @Test method.

I did edited it to reflect my functionality, but when I run this test file I am 
getting

[cid:image002.png@01D62D2B.82986F40]

Where these two erroneous tests are coming from, is a secret for me.

If someone can give me a clue, how to find why I am getting these errors and 
how to get rid of them,
I will appreciate it greatly.

Thanks,

Gary Greenberg

Staff Software Engineer

Data Product Development, BI-A

E: ggree...@visa.com<mailto:ggree...@visa.com>

M: 650-269-7902



[EmailSig-TaglineVersion]




MetricEvaluatorTest.java
Description: MetricEvaluatorTest.java

-
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: Strange JUnit behavior

2020-05-18 Thread Greenberg, Gary


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

[EmailSig-TaglineVersion]

From: HRH 
Sent: Monday, May 18, 2020 3:30 PM
To: users@netbeans.apache.org; Greenberg, Gary 
Subject: Re: Strange JUnit behavior

Can you post the import statments used in your test file?

On Tuesday, May 19, 2020, 2:54:47 AM GMT+4:30, Greenberg, Gary 
mailto:ggree...@visa.com.invalid>> wrote:



I have created a Junit test for one of my classes using Netbeans 
Tools->Create/Update Tests menu.

My class has just a single public method, therefore, test class contains only 
one @Test method.

I did edited it to reflect my functionality, but when I run this test file I am 
getting

[cid:image002.png@01D62D2A.FC3E5C70]

Where these two erroneous tests are coming from, is a secret for me.

If someone can give me a clue, how to find why I am getting these errors and 
how to get rid of them,
I will appreciate it greatly.

Thanks,

Gary Greenberg

Staff Software Engineer

Data Product Development, BI-A

E: ggree...@visa.com<mailto:ggree...@visa.com>

M: 650-269-7902



[EmailSig-TaglineVersion]




Strange JUnit behavior

2020-05-18 Thread Greenberg, Gary
I have created a Junit test for one of my classes using Netbeans 
Tools->Create/Update Tests menu.
My class has just a single public method, therefore, test class contains only 
one @Test method.
I did edited it to reflect my functionality, but when I run this test file I am 
getting
[cid:image002.png@01D62D27.66B6D180]
Where these two erroneous tests are coming from, is a secret for me.
If someone can give me a clue, how to find why I am getting these errors and 
how to get rid of them,
I will appreciate it greatly.
Thanks,
Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggree...@visa.com
M: 650-269-7902

[EmailSig-TaglineVersion]



RE: Error badge on the correct code

2020-05-08 Thread Greenberg, Gary
That was working. Thank you very much.
Still do not understand why it did not clear the error when I deleted the whole 
Cache directory.

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

[EmailSig-TaglineVersion]

From: Bilu 
Sent: Friday, May 8, 2020 2:21 PM
To: users@netbeans.apache.org
Subject: Re: Error badge on the correct code


Hello,

Actually you dont need to delete the entire cache dir, you need to find the 
.err file of your file and delete it.

The Netbeans errors are cached in the index of your cache sub-directory of the 
Netbeans. There is some .err and .warn files, which contain the error and the 
warning messages for each files.

So by deleting your_json_file.json.err it should work.

This works for me some time ago

Regards
Le 08/05/2020 à 08:21, Peter Steele a écrit :
I get this from time to time, clearing cache makes no difference, I normally 
delete the .netbeans directory. This fixes it every time.

Can be quite annoying when it happens.

On Thu, 7 May 2020, 21:30 Greenberg, Gary, 
<mailto:ggree...@visa.com.invalid> wrote:
I have in one of my projects JSON file.
At some point in time, while I was still editing it, it had errors.
However, these errors were fixed long time ago, but in project file marked with 
the red error badge.
Netbeans was restarted several times and my laptop was rebooted recently. The 
badge is still there.
How can I get rid of it, short of removing userdir?
I am working on several projects and have over 30 files open. Hate to reload 
everything.
My environment: NB 11.1, Java 8, Win 10pro.
Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggree...@visa.com<mailto:ggree...@visa.com>
M: 650-269-7902

[EmailSig-TaglineVersion]



RE: Error badge on the correct code

2020-05-07 Thread Greenberg, Gary
I have deleted cache directory, but when I restarted Netbeans, error badge was 
still there.

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



-Original Message-
From: Eirik Bakke  
Sent: Thursday, May 7, 2020 7:05 PM
To: Ernie Rael ; users@netbeans.apache.org
Subject: RE: Error badge on the correct code

> An aficiaonado could tell you which subdirectory of cachedir to remove.

I find removing the "index" subdirectory in the cache directory (after first 
exiting NetBeans) does the trick. At least for Java files with stray error 
badges.

-- Eirik

-Original Message-
From: Ernie Rael 
Sent: Thursday, May 7, 2020 7:48 PM
To: users@netbeans.apache.org
Subject: Re: Error badge on the correct code

This can frequently be cleared up by removing "Cache Directory" only, see Menu 
> Help > About. This won't loose your settings/windows/openFiles/...

An aficiaonado could tell you which subdirectory of cachedir to remove.

-ernie

On 5/7/2020 1:29 PM, Greenberg, Gary wrote:
>
> I have in one of my projects JSON file.
> At some point in time, while I was still editing it, it had errors.
> However, these errors were fixed long time ago, but in project file 
> marked with the red error badge.
>
> Netbeans was restarted several times and my laptop was rebooted 
> recently. The badge is still there.
> How can I get rid of it, short of removing userdir?
>
> I am working on several projects and have over 30 files open. Hate to 
> reload everything.
>
> My environment: NB 11.1, Java 8, Win 10pro.
>
> Gary Greenberg
>
> Staff Software Engineer
>
> Data Product Development, BI-A
>
> E: ggree...@visa.com
>
> M: 650-269-7902
>
> EmailSig-TaglineVersion
>


-
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://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blistsdata=02%7C01%7Cggreenbe%40visa.com%7C12344f9b9fc1449cd89e08d7f2f43bd3%7C38305e12e15d4ee888b9c4db1c477d76%7C0%7C0%7C637245003103436599sdata=A%2BbHG2tAfJJukgehrPyGNPXk6zT81d32If1iNi5aBz4%3Dreserved=0


-
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://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FNETBEANS%2FMailing%2Blistsdata=02%7C01%7Cggreenbe%40visa.com%7C12344f9b9fc1449cd89e08d7f2f43bd3%7C38305e12e15d4ee888b9c4db1c477d76%7C0%7C0%7C637245003103436599sdata=A%2BbHG2tAfJJukgehrPyGNPXk6zT81d32If1iNi5aBz4%3Dreserved=0



Error badge on the correct code

2020-05-07 Thread Greenberg, Gary
I have in one of my projects JSON file.
At some point in time, while I was still editing it, it had errors.
However, these errors were fixed long time ago, but in project file marked with 
the red error badge.
Netbeans was restarted several times and my laptop was rebooted recently. The 
badge is still there.
How can I get rid of it, short of removing userdir?
I am working on several projects and have over 30 files open. Hate to reload 
everything.
My environment: NB 11.1, Java 8, Win 10pro.
Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggree...@visa.com
M: 650-269-7902

[EmailSig-TaglineVersion]



RE: Search for dependencies is not working

2020-04-13 Thread Greenberg, Gary
It means only that 11.3 was hanging on projects scanning and I do not have 
admin permissions to my work computer to change some Windows properties, as it 
was recommended. So, I switched back to 11.1.

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

[EmailSig-TaglineVersion]

From: Geertjan Wielenga 
Sent: Sunday, April 12, 2020 11:23 PM
To: Greenberg, Gary 
Cc: NetBeans Mailing List 
Subject: Re: Search for dependencies is not working


“I am still working with NB 11.1 as I have to use Java 8.”

What does that sentence mean?

Gj


On Mon, 13 Apr 2020 at 02:59, Greenberg, Gary 
mailto:ggree...@visa.com.invalid>> wrote:
I am still working with NB 11.1 as I have to use Java 8.
However, I found that now, when I am starting new project, I have to add all my 
Maven dependencies manually.
In Netbeans 8.2 they were automatically added when it searches .m2 repository.
Now, when I add annotation or variable of class that is not in standard JDK, it 
never finds them. See snapshot.
[cid:image002.png@01D6117A.4BCE4560]
All these jars already in my .m2 repository. I checked.
Was it a bug introduced or something is wrong with my settings.
If I manually add these dependencies, everything works.

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

[EmailSig-TaglineVersion]



Search for dependencies is not working

2020-04-12 Thread Greenberg, Gary
I am still working with NB 11.1 as I have to use Java 8.
However, I found that now, when I am starting new project, I have to add all my 
Maven dependencies manually.
In Netbeans 8.2 they were automatically added when it searches .m2 repository.
Now, when I add annotation or variable of class that is not in standard JDK, it 
never finds them. See snapshot.
[cid:image002.png@01D610F4.1547A5D0]
All these jars already in my .m2 repository. I checked.
Was it a bug introduced or something is wrong with my settings.
If I manually add these dependencies, everything works.

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

[EmailSig-TaglineVersion]



NB 11.2 hangs on project background scan

2020-01-30 Thread Greenberg, Gary
I am trying to run NB 11.2 on Oracle JDK 13.0.2 on Dell Win10.
It hangs 90% of the time just when I start it, during the project background 
scan.
Progress bar shows sometime 2% and sometime goes up to 94%, but hangs anyway.
I tried to get the thread dump, but Ctrl/Break on the console does not produce 
anything.
Can someone advise? I didn't have these problems with 11.2 on Java 8.

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

[EmailSig-TaglineVersion]



RE: Reinstalling NB 11.2

2020-01-23 Thread Greenberg, Gary
That was working.
Thanks

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

[EmailSig-TaglineVersion]

From: zahid 
Sent: Thursday, January 23, 2020 2:51 PM
To: Geertjan Wielenga ; Greenberg, Gary 
Cc: NetBeans Mailing List 
Subject: Re: Reinstalling NB 11.2


make first entry in netbeans.conf  like so netbeans_default_options="--fontsize 
16

Not --fontsize=16

No equals (=)

Also from top menu  go to  help  > about for location of
User directory
Cache directory.

Rename those two directories or delete those two if not needed for a fresh 
install.

On 23/01/2020 22:20, Geertjan Wielenga wrote:
Probably because you're using the same user directory over and over again. 
Change the name of the user directory in netbeans.conf to something different 
so that a new user directory is created.

Gj

On Thu, Jan 23, 2020 at 11:18 PM Greenberg, Gary 
mailto:ggree...@visa.com>> wrote:
Moving this option to the start of the default options didn’t change a thing.

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

[EmailSig-TaglineVersion]

From: Geertjan Wielenga mailto:geert...@apache.org>>
Sent: Thursday, January 23, 2020 2:12 PM
To: Greenberg, Gary mailto:ggree...@visa.com>>
Cc: Greenberg, Gary 
<mailto:ggree...@visa.com.invalid>; Laszlo Kishalmi 
mailto:laszlo.kisha...@gmail.com>>; NetBeans Mailing 
List mailto:users@netbeans.apache.org>>
Subject: Re: Reinstalling NB 11.2

Add it at the start, not the end.

Gj

On Thu, Jan 23, 2020 at 11:10 PM Greenberg, Gary 
mailto:ggree...@visa.com>> wrote:
Added –fontsize=16 to the etc/netbeans.conf. It is now looks like
netbeans_default_options="-J-XX:+UseStringDeduplication 
-J-Djdk.lang.Process.allowAmbiguousCommands=true -J-Xss2m  
-J-Djdk.gtk.version=2.2 -J-Dapple.laf.useScreenMenuBar=true 
-J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true 
-J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true 
-J-Dplugin.manager.check.updates=false 
-J-Dnetbeans.extbrowser.manual_chrome_plugin_install=yes 
-J--add-opens=java.base/java.net<https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fjava.net%2F=02%7C01%7Cggreenbe%40visa.com%7Cd95d95f454b042ab98ed08d7a056cc86%7C38305e12e15d4ee888b9c4db1c477d76%7C0%7C0%7C637154166973641542=ky5pD5%2B8N7vZr85%2F7N88MDcKbNawpBwiRIm6rRem%2BvM%3D=0>=ALL-UNNAMED
 -J--add-opens=java.base/java.lang.ref=ALL-UNNAMED 
-J--add-opens=java.base/java.lang=ALL-UNNAMED 
-J--add-opens=java.base/java.security=ALL-UNNAMED 
-J--add-opens=java.base/java.util=ALL-UNNAMED 
-J--add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED 
-J--add-opens=java.desktop/javax.swing.text=ALL-UNNAMED 
-J--add-opens=java.desktop/javax.swing=ALL-UNNAMED 
-J--add-opens=java.desktop/java.awt=ALL-UNNAMED 
-J--add-opens=java.desktop/java.awt.event=ALL-UNNAMED 
-J--add-opens=java.prefs/java.util.prefs=ALL-UNNAMED 
-J--add-opens=jdk.jshell/jdk.jshell=ALL-UNNAMED -J--add-modules=jdk.jshell 
-J--add-exports=java.desktop/sun.awt=ALL-UNNAMED 
-J--add-exports=java.desktop/java.awt.peer=ALL-UNNAMED 
-J--add-exports=java.desktop/com.sun.beans.editors=ALL-UNNAMED 
-J--add-exports=java.desktop/sun.swing=ALL-UNNAMED 
-J--add-exports=java.desktop/sun.awt.im<https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsun.awt.im%2F=02%7C01%7Cggreenbe%40visa.com%7Cd95d95f454b042ab98ed08d7a056cc86%7C38305e12e15d4ee888b9c4db1c477d76%7C0%7C0%7C637154166973641542=W9RhWSpxXT%2BMDMCkBt5ckTGMn6ruGs1HHENo8S2bNgI%3D=0>=ALL-UNNAMED
 -J--add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED 
-J--add-exports=java.management/sun.management=ALL-UNNAMED 
-J--add-exports=java.base/sun.reflect.annotation=ALL-UNNAMED 
-J--add-exports=jdk.javadoc/com.sun.tools.javadoc.main=ALL-UNNAMED 
-J-XX:+IgnoreUnrecognizedVMOptions --fontsize=16"

Now if I try to start IDE, the banner appears for 2-3 seconds and it quit 
silently.

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

[EmailSig-TaglineVersion]

From: Geertjan Wielenga mailto:geert...@apache.org>>
Sent: Thursday, January 23, 2020 1:39 PM
To: Greenberg, Gary 
mailto:ggree...@visa.com.invalid>>
Cc: Laszlo Kishalmi 
mailto:laszlo.kisha...@gmail.com>>; NetBeans Mailing 
List mailto:users@netbeans.apache.org>>
Subject: Re: Reinstalling NB 11.2

If the default size is 37, then there's something wrong somewhere -- maybe 
system wide settings outside NetBeans, I don't know. I've never heard of this 
problem. But you can go to etc/netbeans.conf in your installation directory 
(i.e., not your user directory) and add --fontsize=16 or something similar in 
your default_options setting there. And maybe there's a network issue of some 
kind preventing the download of nb-javac.

Gj

On Thu, Jan 23,

RE: Reinstalling NB 11.2

2020-01-23 Thread Greenberg, Gary
Moving this option to the start of the default options didn’t change a thing.

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

[EmailSig-TaglineVersion]

From: Geertjan Wielenga 
Sent: Thursday, January 23, 2020 2:12 PM
To: Greenberg, Gary 
Cc: Greenberg, Gary ; Laszlo Kishalmi 
; NetBeans Mailing List 
Subject: Re: Reinstalling NB 11.2

Add it at the start, not the end.

Gj

On Thu, Jan 23, 2020 at 11:10 PM Greenberg, Gary 
mailto:ggree...@visa.com>> wrote:
Added –fontsize=16 to the etc/netbeans.conf. It is now looks like
netbeans_default_options="-J-XX:+UseStringDeduplication 
-J-Djdk.lang.Process.allowAmbiguousCommands=true -J-Xss2m  
-J-Djdk.gtk.version=2.2 -J-Dapple.laf.useScreenMenuBar=true 
-J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true 
-J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true 
-J-Dplugin.manager.check.updates=false 
-J-Dnetbeans.extbrowser.manual_chrome_plugin_install=yes 
-J--add-opens=java.base/java.net<https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fjava.net%2F=02%7C01%7Cggreenbe%40visa.com%7Cc657d7bd29f74830cf4808d7a0514fbe%7C38305e12e15d4ee888b9c4db1c477d76%7C0%7C0%7C637154143400874124=PC5AV14uq3KXSU84QYETD4ZrqqH7qprI%2Fpv1otNDeIo%3D=0>=ALL-UNNAMED
 -J--add-opens=java.base/java.lang.ref=ALL-UNNAMED 
-J--add-opens=java.base/java.lang=ALL-UNNAMED 
-J--add-opens=java.base/java.security=ALL-UNNAMED 
-J--add-opens=java.base/java.util=ALL-UNNAMED 
-J--add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED 
-J--add-opens=java.desktop/javax.swing.text=ALL-UNNAMED 
-J--add-opens=java.desktop/javax.swing=ALL-UNNAMED 
-J--add-opens=java.desktop/java.awt=ALL-UNNAMED 
-J--add-opens=java.desktop/java.awt.event=ALL-UNNAMED 
-J--add-opens=java.prefs/java.util.prefs=ALL-UNNAMED 
-J--add-opens=jdk.jshell/jdk.jshell=ALL-UNNAMED -J--add-modules=jdk.jshell 
-J--add-exports=java.desktop/sun.awt=ALL-UNNAMED 
-J--add-exports=java.desktop/java.awt.peer=ALL-UNNAMED 
-J--add-exports=java.desktop/com.sun.beans.editors=ALL-UNNAMED 
-J--add-exports=java.desktop/sun.swing=ALL-UNNAMED 
-J--add-exports=java.desktop/sun.awt.im<https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fsun.awt.im%2F=02%7C01%7Cggreenbe%40visa.com%7Cc657d7bd29f74830cf4808d7a0514fbe%7C38305e12e15d4ee888b9c4db1c477d76%7C0%7C0%7C637154143400884122=t3qhPnUwIeQ5qwXp8dVXsJC631vNDpjqrUjBTnSNqhc%3D=0>=ALL-UNNAMED
 -J--add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED 
-J--add-exports=java.management/sun.management=ALL-UNNAMED 
-J--add-exports=java.base/sun.reflect.annotation=ALL-UNNAMED 
-J--add-exports=jdk.javadoc/com.sun.tools.javadoc.main=ALL-UNNAMED 
-J-XX:+IgnoreUnrecognizedVMOptions --fontsize=16"

Now if I try to start IDE, the banner appears for 2-3 seconds and it quit 
silently.

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

[EmailSig-TaglineVersion]

From: Geertjan Wielenga mailto:geert...@apache.org>>
Sent: Thursday, January 23, 2020 1:39 PM
To: Greenberg, Gary 
mailto:ggree...@visa.com.invalid>>
Cc: Laszlo Kishalmi 
mailto:laszlo.kisha...@gmail.com>>; NetBeans Mailing 
List mailto:users@netbeans.apache.org>>
Subject: Re: Reinstalling NB 11.2

If the default size is 37, then there's something wrong somewhere -- maybe 
system wide settings outside NetBeans, I don't know. I've never heard of this 
problem. But you can go to etc/netbeans.conf in your installation directory 
(i.e., not your user directory) and add --fontsize=16 or something similar in 
your default_options setting there. And maybe there's a network issue of some 
kind preventing the download of nb-javac.

Gj

On Thu, Jan 23, 2020 at 10:34 PM Greenberg, Gary 
mailto:ggree...@visa.com.invalid>> wrote:
I did remove the user directory and restarted IDE. It asked me (in huge font) 
if I want to import settings from 11.1. I said ‘Yes’ and again list of projects 
appeared in huge font and IDE hung on opening them.
I killed it and removed userdir again and restarted. Now I said ‘No’ on 
importing settings. Nothing in the project list but messages are in this 
enormous font. I opened Options->Fonts and see that default font is size 
37 (Urgh…) I changed it to size 12 and tried to open one of my projects. It 
appeared in the project list in huge font. I restarted IDE again, but nothing 
helps.

Regarding nb-javac plugin – it is not downloading. See attached snapshot.

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

[EmailSig-TaglineVersion]

From: Geertjan Wielenga mailto:geert...@apache.org>>
Sent: Thursday, January 23, 2020 11:08 AM
To: Laszlo Kishalmi 
mailto:laszlo.kisha...@gmail.com>>
Cc: NetBeans Mailing List 
mailto:users@netbeans.apache.org>>
Subject: Re: Reinstalling NB 

RE: Reinstalling NB 11.2

2020-01-23 Thread Greenberg, Gary
Added –fontsize=16 to the etc/netbeans.conf. It is now looks like
netbeans_default_options="-J-XX:+UseStringDeduplication 
-J-Djdk.lang.Process.allowAmbiguousCommands=true -J-Xss2m  
-J-Djdk.gtk.version=2.2 -J-Dapple.laf.useScreenMenuBar=true 
-J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true 
-J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true 
-J-Dplugin.manager.check.updates=false 
-J-Dnetbeans.extbrowser.manual_chrome_plugin_install=yes 
-J--add-opens=java.base/java.net=ALL-UNNAMED 
-J--add-opens=java.base/java.lang.ref=ALL-UNNAMED 
-J--add-opens=java.base/java.lang=ALL-UNNAMED 
-J--add-opens=java.base/java.security=ALL-UNNAMED 
-J--add-opens=java.base/java.util=ALL-UNNAMED 
-J--add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED 
-J--add-opens=java.desktop/javax.swing.text=ALL-UNNAMED 
-J--add-opens=java.desktop/javax.swing=ALL-UNNAMED 
-J--add-opens=java.desktop/java.awt=ALL-UNNAMED 
-J--add-opens=java.desktop/java.awt.event=ALL-UNNAMED 
-J--add-opens=java.prefs/java.util.prefs=ALL-UNNAMED 
-J--add-opens=jdk.jshell/jdk.jshell=ALL-UNNAMED -J--add-modules=jdk.jshell 
-J--add-exports=java.desktop/sun.awt=ALL-UNNAMED 
-J--add-exports=java.desktop/java.awt.peer=ALL-UNNAMED 
-J--add-exports=java.desktop/com.sun.beans.editors=ALL-UNNAMED 
-J--add-exports=java.desktop/sun.swing=ALL-UNNAMED 
-J--add-exports=java.desktop/sun.awt.im=ALL-UNNAMED 
-J--add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED 
-J--add-exports=java.management/sun.management=ALL-UNNAMED 
-J--add-exports=java.base/sun.reflect.annotation=ALL-UNNAMED 
-J--add-exports=jdk.javadoc/com.sun.tools.javadoc.main=ALL-UNNAMED 
-J-XX:+IgnoreUnrecognizedVMOptions --fontsize=16"

Now if I try to start IDE, the banner appears for 2-3 seconds and it quit 
silently.

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

[EmailSig-TaglineVersion]

From: Geertjan Wielenga 
Sent: Thursday, January 23, 2020 1:39 PM
To: Greenberg, Gary 
Cc: Laszlo Kishalmi ; NetBeans Mailing List 

Subject: Re: Reinstalling NB 11.2

If the default size is 37, then there's something wrong somewhere -- maybe 
system wide settings outside NetBeans, I don't know. I've never heard of this 
problem. But you can go to etc/netbeans.conf in your installation directory 
(i.e., not your user directory) and add --fontsize=16 or something similar in 
your default_options setting there. And maybe there's a network issue of some 
kind preventing the download of nb-javac.

Gj

On Thu, Jan 23, 2020 at 10:34 PM Greenberg, Gary 
mailto:ggree...@visa.com.invalid>> wrote:
I did remove the user directory and restarted IDE. It asked me (in huge font) 
if I want to import settings from 11.1. I said ‘Yes’ and again list of projects 
appeared in huge font and IDE hung on opening them.
I killed it and removed userdir again and restarted. Now I said ‘No’ on 
importing settings. Nothing in the project list but messages are in this 
enormous font. I opened Options->Fonts and see that default font is size 
37 (Urgh…) I changed it to size 12 and tried to open one of my projects. It 
appeared in the project list in huge font. I restarted IDE again, but nothing 
helps.

Regarding nb-javac plugin – it is not downloading. See attached snapshot.

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

[EmailSig-TaglineVersion]

From: Geertjan Wielenga mailto:geert...@apache.org>>
Sent: Thursday, January 23, 2020 11:08 AM
To: Laszlo Kishalmi 
mailto:laszlo.kisha...@gmail.com>>
Cc: NetBeans Mailing List 
mailto:users@netbeans.apache.org>>
Subject: Re: Reinstalling NB 11.2

Plus with the font problem, start with a fresh user directory and see if the 
problem persists.

Gj

On Thu, Jan 23, 2020 at 8:04 PM Laszlo Kishalmi 
mailto:laszlo.kisha...@gmail.com>> wrote:

nb-javac caused some issues in 11.2 which were resolved in 11.2u1 (It is a 
NetBeans and an nb-javac update through update centers)

If you are running NetBeans on Java 8, then nb-javac is mandatory. Java toolset 
changed a lot since that, so if you running NetBeans on Java 11 or up you can 
avoid installing nb-javac
On 1/23/20 11:00 AM, Greenberg, Gary wrote:
While version 11.1 was working well for me, 11.2 behaved quite erratically.
Deleting user directory did not help, so I have decided to reinstall it not 
from the installer, but from the binary ZIP archive (Like I did with 11.1).
I did remove installation and unpacked the ZIP file.
Netbeans started, but that was the end of good news.
It displayed project list and messages with unbearably huge fonts and stuck on 
opening projects and updating plugins. See the snapshot.
What do I need to do to make it work properly?
Please advise.
Also I remember, that nb-javac plugin is not needed for 11.2. Why does it want 
to install this plugin.

My environment:
C:\Users\ggreenbe>java -

RE: Why tests aren't executing?

2019-11-04 Thread Greenberg, Gary
I already fixed the problem. It was incorrect surefire configuration.

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

[EmailSig-TaglineVersion]

From: Arnaud bourree 
Sent: Sunday, November 3, 2019 5:03 AM
To: Greenberg, Gary 
Cc: NetBeans Mailing List 
Subject: Re: Why tests aren't executing?

Hi,

Where are unit tests located? src/test/java ?
How are unit test classes named? myTest.java ?
What is surefire plugin configuration?

Regards,

Arnaud

Le jeu. 31 oct. 2019 à 23:41, Greenberg, Gary 
mailto:ggree...@visa.com.invalid>> a écrit :
Still having problems with the project that I have inherited from the 
contractor.
I want to execute unit test, but when I select ‘Test’ from the project context 
menu I am getting:

--- maven-resources-plugin:3.1.0:testResources (default-testResources) @ 
mnsbatch ---
Not copying test resources

--- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ mnsbatch ---
Not compiling test sources

--- maven-surefire-plugin:2.22.2:test (default-test) @ mnsbatch ---
Tests are skipped.

BUILD SUCCESS


I did check project properties and there is no skip-tests = true anywhere in 
the actions.
If I try to run a particular test file, I am getting the same thing.
I am not blaming it on Netbeans, as I am getting the same result if I run “mvn 
test” from the command line, but will appreciate any help.

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

[EmailSig-TaglineVersion]



Why tests aren't executing?

2019-10-31 Thread Greenberg, Gary
Still having problems with the project that I have inherited from the 
contractor.
I want to execute unit test, but when I select 'Test' from the project context 
menu I am getting:

--- maven-resources-plugin:3.1.0:testResources (default-testResources) @ 
mnsbatch ---
Not copying test resources

--- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ mnsbatch ---
Not compiling test sources

--- maven-surefire-plugin:2.22.2:test (default-test) @ mnsbatch ---
Tests are skipped.

BUILD SUCCESS


I did check project properties and there is no skip-tests = true anywhere in 
the actions.
If I try to run a particular test file, I am getting the same thing.
I am not blaming it on Netbeans, as I am getting the same result if I run "mvn 
test" from the command line, but will appreciate any help.

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

[EmailSig-TaglineVersion]



RE: Can't build newly cloned project.

2019-10-30 Thread Greenberg, Gary
Thank you, thank you, thank you.
It works.
Now I am back in business.

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




-Original Message-
From: Neil C Smith  
Sent: Wednesday, October 30, 2019 10:35 AM
To: Greenberg, Gary 
Cc: NetBeans Mailing List 
Subject: Re: Can't build newly cloned project.

On Wed, 30 Oct 2019 at 17:19, Greenberg, Gary  wrote:
>
> Unfortunately, per company policy we all have to work on Java 8 and versions 
> of Java are downloaded automatically.
> Thus, JDK 8u231 was installed on my machine about a week ago. Before I was 
> using JDK 8u221 and did not have this problem.
> Shall I downgrade?

Just edit netbeans.conf as suggested above.  Add in 
-J-Djdk.lang.Process.allowAmbiguousCommands=true as per 
https://github.com/apache/netbeans/pull/1581/files

Or you could edit your desktop shortcut to launch NetBeans with that option 
instead.

> BTW, I did go to the Oracle site and there is no JDK 11.2 there. 11.0.5 is 
> the latest in Java 11.
> https://www.oracle.com/technetwork/java/javase/overview/index.html

11.2 refers to NetBeans 11.2, which has just been voted for release, although 
not announced yet.  That has the fix in netbeans.conf built in.

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: Can't build newly cloned project.

2019-10-30 Thread Greenberg, Gary
Unfortunately, per company policy we all have to work on Java 8 and versions of 
Java are downloaded automatically.
Thus, JDK 8u231 was installed on my machine about a week ago. Before I was 
using JDK 8u221 and did not have this problem.
Shall I downgrade?
BTW, I did go to the Oracle site and there is no JDK 11.2 there. 11.0.5 is the 
latest in Java 11.
https://www.oracle.com/technetwork/java/javase/overview/index.html


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



-Original Message-
From: Neil C Smith  
Sent: Wednesday, October 30, 2019 3:19 AM
To: Richard Grin 
Cc: NetBeans Mailing List 
Subject: Re: Can't build newly cloned project.

On Wed, 30 Oct 2019 at 09:40, Richard Grin  
wrote:
>
> I was not clear enough :
>
> I think that the problem about Java 11.0.5 existed before for other versions 
> ** of Java SE **.

Obviously I was not clear enough either! ;-)  I'm also talking about Java SE.  
The problem affecting NetBeans was introduced by a security update in mid-Oct 
in JDK 8u231, 11.0.5 and 13.0.1.  All of those should be broken in the same way 
with NetBeans 11.0 or 11.1 without applying the workaround.  The workaround 
*just* made it into 11.2.

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: Can't build newly cloned project.

2019-10-29 Thread Greenberg, Gary
That is the only Java installed on my laptop.
Here is  the content of Help->About:

Product Version: Apache NetBeans IDE 11.1
Java: 1.8.0_231; Java HotSpot(TM) 64-Bit Server VM 25.231-b32
Runtime: Java(TM) SE Runtime Environment 1.8.0_231-b32
System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\ggreenbe\AppData\Roaming\NetBeans\11.1
Cache directory: C:\Users\ggreenbe\AppData\Local\NetBeans\Cache\11.1


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

[EmailSig-TaglineVersion]

From: Laszlo Kishalmi 
Sent: Tuesday, October 29, 2019 5:36 PM
To: users@netbeans.apache.org
Subject: Re: Can't build newly cloned project.


That's great, but does NetBeans also runs Java 8?

You can check it in the Help > About dialog
On 10/29/19 4:35 PM, Greenberg, Gary wrote:
No, I am still running it on Java 8.

C:\Users\ggreenbe>java -version
java version "1.8.0_231"
Java(TM) SE Runtime Environment (build 1.8.0_231-b32)
Java HotSpot(TM) 64-Bit Server VM (build 25.231-b32, mixed mode)

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

[EmailSig-TaglineVersion]

From: Laszlo Kishalmi 
<mailto:laszlo.kisha...@gmail.com>
Sent: Tuesday, October 29, 2019 4:32 PM
To: users@netbeans.apache.org<mailto:users@netbeans.apache.org>
Subject: Re: Can't build newly cloned project.


You must be running your IDE on new JDK 11.0.5

You need to install 11.2 to overcome that problem or

Check out these issues: https://issues.apache.org/jira/browse/NETBEANS-3251 and 
https://issues.apache.org/jira/browse/NETBEANS-3253

The workaround is documented there..
On 10/29/19 4:25 PM, Greenberg, Gary wrote:
Just cloned a new project from stash repository and trying to build it.
Getting following error message:
cd P:\dpd_bia_vmssbatch\VMSS-Batch; "JAVA_HOME=C:\\Program 
Files\\Java\\jdk1.8.0_231" cmd /c "\"\"C:\\Program 
Files\\Netbeans\\11.1\\java\\maven\\bin\\mvn.cmd\" 
-Dmaven.ext.class.path=\"C:\\Program 
Files\\Netbeans\\11.1\\java\\maven-nblib\\netbeans-eventspy.jar\" 
-Djava.net.useSystemProxies=true clean install\""
Cannot run program "cmd" (in directory "P:\dpd_bia_vmssbatch\VMSS-Batch"): 
Malformed argument has embedded quote: "C:\Program 
Files\Netbeans\11.1\java\maven\bin\mvn.cmd" -Dmaven.ext.class.path="C:\Program 
Files\Netbeans\11.1\java\maven-nblib\netbeans-eventspy.jar" 
-Djava.net.useSystemProxies=true clean install

Previously I didn’t get anything like that.
Any ideas how to fix it?

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

[EmailSig-TaglineVersion]



RE: Can't build newly cloned project.

2019-10-29 Thread Greenberg, Gary
No, I am still running it on Java 8.

C:\Users\ggreenbe>java -version
java version "1.8.0_231"
Java(TM) SE Runtime Environment (build 1.8.0_231-b32)
Java HotSpot(TM) 64-Bit Server VM (build 25.231-b32, mixed mode)

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

[EmailSig-TaglineVersion]

From: Laszlo Kishalmi 
Sent: Tuesday, October 29, 2019 4:32 PM
To: users@netbeans.apache.org
Subject: Re: Can't build newly cloned project.


You must be running your IDE on new JDK 11.0.5

You need to install 11.2 to overcome that problem or

Check out these issues: https://issues.apache.org/jira/browse/NETBEANS-3251 and 
https://issues.apache.org/jira/browse/NETBEANS-3253

The workaround is documented there..
On 10/29/19 4:25 PM, Greenberg, Gary wrote:
Just cloned a new project from stash repository and trying to build it.
Getting following error message:
cd P:\dpd_bia_vmssbatch\VMSS-Batch; "JAVA_HOME=C:\\Program 
Files\\Java\\jdk1.8.0_231" cmd /c "\"\"C:\\Program 
Files\\Netbeans\\11.1\\java\\maven\\bin\\mvn.cmd\" 
-Dmaven.ext.class.path=\"C:\\Program 
Files\\Netbeans\\11.1\\java\\maven-nblib\\netbeans-eventspy.jar\" 
-Djava.net.useSystemProxies=true clean install\""
Cannot run program "cmd" (in directory "P:\dpd_bia_vmssbatch\VMSS-Batch"): 
Malformed argument has embedded quote: "C:\Program 
Files\Netbeans\11.1\java\maven\bin\mvn.cmd" -Dmaven.ext.class.path="C:\Program 
Files\Netbeans\11.1\java\maven-nblib\netbeans-eventspy.jar" 
-Djava.net.useSystemProxies=true clean install

Previously I didn’t get anything like that.
Any ideas how to fix it?

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

[EmailSig-TaglineVersion]



Can't build newly cloned project.

2019-10-29 Thread Greenberg, Gary
Just cloned a new project from stash repository and trying to build it.
Getting following error message:
cd P:\dpd_bia_vmssbatch\VMSS-Batch; "JAVA_HOME=C:\\Program 
Files\\Java\\jdk1.8.0_231" cmd /c "\"\"C:\\Program 
Files\\Netbeans\\11.1\\java\\maven\\bin\\mvn.cmd\" 
-Dmaven.ext.class.path=\"C:\\Program 
Files\\Netbeans\\11.1\\java\\maven-nblib\\netbeans-eventspy.jar\" 
-Djava.net.useSystemProxies=true clean install\""
Cannot run program "cmd" (in directory "P:\dpd_bia_vmssbatch\VMSS-Batch"): 
Malformed argument has embedded quote: "C:\Program 
Files\Netbeans\11.1\java\maven\bin\mvn.cmd" -Dmaven.ext.class.path="C:\Program 
Files\Netbeans\11.1\java\maven-nblib\netbeans-eventspy.jar" 
-Djava.net.useSystemProxies=true clean install

Previously I didn't get anything like that.
Any ideas how to fix it?

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

[EmailSig-TaglineVersion]



Refactoring - field encapsulation.

2019-08-13 Thread Greenberg, Gary
I am using this feature of Netbeans very often.
In prior versions fields that already have getters and/or setters were marked 
with gray dots on the popup screen.
I do not see them in version 11.1
Was it removed intentionally or I need to tweak some settings to see it?

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

[EmailSig-TaglineVersion]



RE: Error badge on successfully build project

2019-08-10 Thread Greenberg, Gary
You are right. Removing the cache did help.

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

[EmailSig-TaglineVersion]

From: Boris Heithecker 
Sent: Saturday, August 10, 2019 1:11 PM
To: NetBeans Mailing List 
Cc: Greenberg, Gary 
Subject: Re: Error badge on successfully build project

I'm encountering it too, at times. It seems to be related to the caching 
mechanism. If you clear the cache (delete the cache directory) the false error 
marks are gone.
Boris

On Fri, 9 Aug 2019 at 20:28, John Mc 
mailto:mcdonnell.j...@gmail.com>> wrote:
What does it say when you hover over it?

Regards

John

On Fri 9 Aug 2019, 19:18 Greenberg, Gary, 
mailto:ggree...@visa.com>> wrote:
I have a project, where one Java class has import statement marked with the 
error badge.
At the same time project compiles successfully. Snip is attached.
Can anyone explain it to me?
Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggree...@visa.com<mailto:ggree...@visa.com>
M: 650-269-7902




--
Boris Heithecker

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


RE: Error badge on successfully build project

2019-08-09 Thread Greenberg, Gary
It is saying:
package com.visa.dpd.api.platform.commons.handlers does not exist

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

[EmailSig-TaglineVersion]

From: John Mc 
Sent: Friday, August 9, 2019 11:29 AM
To: Greenberg, Gary 
Cc: NetBeans Mailing List 
Subject: Re: Error badge on successfully build project

What does it say when you hover over it?

Regards

John

On Fri 9 Aug 2019, 19:18 Greenberg, Gary, 
mailto:ggree...@visa.com>> wrote:
I have a project, where one Java class has import statement marked with the 
error badge.
At the same time project compiles successfully. Snip is attached.
Can anyone explain it to me?
[cid:image002.png@01D54EA4.0A215F60]
Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggree...@visa.com<mailto:ggree...@visa.com>
M: 650-269-7902

[EmailSig-TaglineVersion]



RE: Can Netbeans 11.0 be updated to 11.1 from the Check for Updates option?

2019-07-22 Thread Greenberg, Gary
You do, or you don’t need to install from scratch?

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

[EmailSig-TaglineVersion]

From: Geertjan Wielenga 
Sent: Monday, July 22, 2019 4:30 AM
To: varuna.senevira...@gmail.com
Cc: users@netbeans.apache.org
Subject: Re: Can Netbeans 11.0 be updated to 11.1 from the Check for Updates 
option?

Yes, as always, you need to install from scratch.

Gj

On Mon, 22 Jul 2019 at 13:27, Varuna Seneviratna 
mailto:varunasenevira...@gmail.com>> wrote:
Hello,
 The option Check for Updates option doesn't seem to update NetBeans 
11.0 to NetBeans 11.1 Must NetBeans 11.1 be downloaded to get the latest 
Netbeans version?

Varuna


RE: Reserved keywords for SQL files

2019-06-26 Thread Greenberg, Gary
There is no such file in the netbeans binary distro.
I haven’t compile it from source, though.

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

[EmailSig-TaglineVersion]

From: Pete Whelpton 
Sent: Wednesday, June 26, 2019 3:29 PM
To: Greenberg, Gary 
Cc: NetBeans Mailing List 
Subject: Re: Reserved keywords for SQL files

netbeans/ide/dbapi/src/org/netbeans/modules/db/api/sql/SQLKeywords.java I 
think..

On Wed, 26 Jun 2019, 23:11 Greenberg, Gary, 
mailto:ggree...@visa.com>> wrote:
I am working with SQL scripts in the NB 11 right now and noticed that good 
portion of keywords in it are marked in blue colors, while tables and column 
names, as well as values displayed in green. That is very convenient and allows 
to catch some misspelling right away.
However some of the keywords are not displayed in blue color. For example 
keyword comment or datatypes bigint or datetime.
I understand that SQL dialects are different for different engines, but is it 
possible to amend the list of keywords to include those?
Thanks,

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

[EmailSig-TaglineVersion]



Reserved keywords for SQL files

2019-06-26 Thread Greenberg, Gary
I am working with SQL scripts in the NB 11 right now and noticed that good 
portion of keywords in it are marked in blue colors, while tables and column 
names, as well as values displayed in green. That is very convenient and allows 
to catch some misspelling right away.
However some of the keywords are not displayed in blue color. For example 
keyword comment or datatypes bigint or datetime.
I understand that SQL dialects are different for different engines, but is it 
possible to amend the list of keywords to include those?
Thanks,

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

[EmailSig-TaglineVersion]



RE: NB11 hangs (as well as NB10) on downloading HTTP Javadoc

2019-06-14 Thread Greenberg, Gary
Let it fail with some error message that I can see and maybe do something about 
it. Why it is freezing, that I have to kill it from the task manager and lose 
all my edits?

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

[EmailSig-TaglineVersion]

From: Geertjan Wielenga 
Sent: Friday, June 14, 2019 3:47 PM
To: Greenberg, Gary 
Cc: users@netbeans.apache.org
Subject: Re: NB11 hangs (as well as NB10) on downloading HTTP Javadoc


artifactory.trusted.visa.com<http://artifactory.trusted.visa.com>

That appears near the start of your problem. NetBeans is a GUI wrapper around 
Maven. If Maven fails, NetBeans fails.

Gj


On Sat, 15 Jun 2019 at 00:35, Greenberg, Gary 
mailto:ggree...@visa.com>> wrote:
Unfortunately, company has not migrated to newer JDK yet.
We all have to use Java 8.

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

[EmailSig-TaglineVersion]

From: Geertjan Wielenga mailto:geert...@apache.org>>
Sent: Friday, June 14, 2019 3:29 PM
To: Greenberg, Gary mailto:ggree...@visa.com>>
Cc: users@netbeans.apache.org<mailto:users@netbeans.apache.org>
Subject: Re: NB11 hangs (as well as NB10) on downloading HTTP Javadoc

Windows 10, JDK 8. Maybe try more recent JDK.

Gj

On Sat, 15 Jun 2019 at 00:28, Geertjan Wielenga 
mailto:geert...@apache.org>> wrote:
Which JDK, which operating system.

Gj

On Fri, 14 Jun 2019 at 23:58, Greenberg, Gary 
mailto:ggree...@visa.com>> wrote:
I was suffering from very frequent freezes in Netbeans 10.
Hoping that maybe it was resolved in NB11, I did install it today.
Unfortunately it freezes even more often – twice during half an hour, which 
makes development practically impossible.
It always happening when I press the dot after class instance and it begins 
displaying list of available methods for that class.
I started it from command prompt and produced a thread dump which I am 
enclosing.
Meanwhile, can someone tell me what I can disable to stop it from going to that 
deadly download mode.
Thanks a lot.

BTW, file includes tons of exceptions generated by NB before it finally locked.

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

[EmailSig-TaglineVersion]


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

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


  1   2   >