Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp

Alejandro Barrero

Ranch Hand
+ Follow
since Aug 01, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Alejandro Barrero

For years I have been using in my programs statements like "SELECT * FROM user WHERE user_name=mgr", but I just learned that nowadays I have to use "user_name='mgr'". Now I am trying to verify that I also have to use "'" for Date and Number; the following code is giving me the error
net.ucanaccess.jdbc.UcanaccessSQLException: UCAExc:::4.0.4 user lacks privilege or object not found: DATE_CREATED
I am getting the same error if I don't use "'".

Similar code works fine for strings.

Thank you Tim; "user_name=mgr" has been working for years, but nowadays I have to use "user_name='mgr'", which I learned from Knute. I wish here was a way to continue using the old code.
I am working on my personal computer and nobody else uses it. I think that Microsoft made the changes and my computer updated itself.
Thanks for your reply Knute; The application has been working as is for years, apparently Microsoft has made changes and my computer has just received them. It is regrettable that I have to change many lines of code, but I can make it work again.
I have been using UCanAccess for years in a Java application, but recently I have getting  an error with a Select statement:

net.ucanaccess.jdbc.UcanaccessSQLException: UCAExc:::4.0.4 user lacks privilege or object not found: MGR

The following code is not from the application but gives the same error. It appears that the problem is with the value "mgr" because "SELECT * FROM user" works fine. The code has been working for years; I started getting this error two days ago. I have not been able to find any solution in the Internet.
I have been using UCanAccess for years in a Java application, but recently I have been getting  an error with a Select statement:

net.ucanaccess.jdbc.UcanaccessSQLException: UCAExc:::4.0.4 user lacks privilege or object not found: MGR

The following code is not from the application but gives the same error.

It appears that the problem is with the value "mgr" because "SELECT * FROM user" works fine. The code has been working for years; I started getting this error two days ago. I have not been able to find any solution in the Internet.
Solved; the Maven files in my computer were wrong. I had to delete folder .m2 in my hard drive.
2 weeks ago
In my STS I only see:
Web
Reactive Web
Rest Repositories
Rest Repositories HAL Browser
HATEOAS
Web Services For SOAP
Jersey For Restfull Web Services with JAX-RS
REST Docs
Vaading

Maybe I have to use Jersey, although I don't care for JAX-RS, but I don't see anything for JASON.
2 weeks ago
It doesn't show how to select the dependencies in Spring Initializr; it just gives a pom.
2 weeks ago
I am creating an application with Spring Starter project and I am selecting 'Web' as a dependency; I cannot use @RestController in a class. The same problem happens if I use Spring Initializr. I have tried additional dependencies like 'Web Services' and 'REST Docs' to no avail. I am new to Spring Boot and I have faille to find a solution in the Internet
2 weeks ago
Please forgive my ignorance; I understand then an SSCCE is a "Short, Self Contained, Correct (Compilable), Example"; the code I added is not short but it is a "Self Contained, Correct (Compilable), Example"; please explain how I can modify the code presented to make it acceptable for review; is it acceptable to present only the methods that use the JCombobox?
3 weeks ago
Thanks for your help; I presented the entire class.
3 weeks ago
3 weeks ago
The JCombobox is in a Jdialog with 758 lines; I will display it entirely if requested; the constructor shows what I consider is important; how is the list set up and a mouse listener that allows the debugger to verify that the list is correct. I have searched the internet without luck.
3 weeks ago
Thank you Claude for your reply. Allow me to clarify; if I run ipconfig in every computer in a network I will get a different IP address for each one (perhaps I am wrong and I get the network IP address); I have been searching the Internet for "Network IP address" and some code that some people think works to get it (some use java.net.InetAddress). I am creating a Java desktop application and I want to make sure it only woks in the network where it has been installed.
4 months ago