Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!

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
2
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

The problem is happening with other application, so it's definitely not my code.
15 hours ago
No  XML or annotations so far; in the first place the problem doesn't occur when the application is run, it happens when the application is debugged. I think that the class is the Boot starter class because the problem happens immediately after clicking on the debug button. Yes, I should have mentioned this, my apology. I am still working on the application, I just can't debug the controllers; it is taking me time because I am learning Thymeleaf, but I don't think that's the problem.
1 day ago
Thank you Junilu for your prompt reply;unfortunately I don't get a stack trace, I cannot see the name in the Variables View and I cannot write code in the URLClassLoader class. If anyone could instruct me I would post more information.
1 day ago
I am developing a Spring Boot application and everything has been working fine for some weeks; but suddenly I cannot run the application in the debugger (Boot Workbench) although it works fine for running. The problem is that I am getting a ClassNotFoundException in class java.net.URLClassLoader (line 382). I have exhausted my search on the Internet but haven't found a solution. I thought that it was a problem caused by an update to Spring Boot and tried running the original version but to no avail.
1 day ago
Thanks to all, but I solved my problem without a cookie; the web page just returns the userName  with a thymeleaf variable

The controller gets the value as a request param
3 days ago
Thanks to all for the replies. First I apologize for writing "Swing" where I should have written "Spring".
In my controller I have

But so far I am only getting "Atta".

Thanks too for the links, but I didn't find the answer there.

Yesterday, I found something promising in a web page https://community.apigee.com/questions/6587/modify-set-cookie-header-addchange-in-javascript.html; it says
"I am able to set multiple cookies in JavaScript callouts,

example which works:

context.setVariable('response.header.set-cookie.1',
  'Oatmeal=delicious; path=/;');
context.setVariable('response.header.set-cookie.2',
  'Trefoil=donotwant; path=/;');
 
resulting outbound response headers:
Set-Cookie: Oatmeal=delicious; path=/;
Set-Cookie: Trefoil=donotwant; path=/;"

Unfortunatelly, the JavaScript code

Run on a click to Submmit does't work because "context" is not define.



I am writing a web application where I want to use Cookies. I Managed to learn how to create Cookies, but know I need to receive a Cookie in a Swing Controller; after many hours in the Internet I have only found references that I should use "Set-Cookie:name=userName" in HTTP response header, but I have not been able to determine how to do it. Do I do it in HTML or in Java Script? I haven't found anything.
Thank you Bob for your replay. I did somehow understand that the problem was with the JVM; I wished to find out how to solve the problem; I didn't see any indication in the message. What I manged to do was to reverse the version of Eclipse to a previous one; so far it is working fine. I am only hoping that that the next update will work fine; so far I haven't found out how to stop the updates.
1 week ago
Thank you Mikalai for your prompt response. However, I am not particularly interested in the cause of the problem; I wish I could find a solution. A short time ago, I wanted to run with an earlier version of java, but I only found version 5 in the IDE (Eclipse) and when I selected it I got syntax errors, so I installed JDK 8 and the application runs fine. Unfortunately, running on debug, the findClass method of URLClassLoader throws a ClassNotFoundException. The problem that I cannot debug the application continues; I am still hoping for a solution.
1 week ago
I have a web application created with Spring Boot under Maven and compiled for JDK 14; for a few days it has run perfectly under both run and debug, but today, although it runs fine,  I am getting an error message trying to debug
"Java HotSpot(TM) 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release."
Maybe I was compiling for JDK 8 before, but I want to use JDK 14 for the future. I have seen many discussion in the Internet but I haven't found a solution.
1 week ago
I finally found a class in the internet working with ucanaccess that worked for me, but worked for a SELECT not for an UPDATE; I changed my code for a SELECT and it works fine. The question now is why can I not use UPDATE? It worked in previous years; the program from the Internet doesn't use user name or password and my program also runs without them.
Thank you Stephan; the only file I am using is the one specifying the location of the database.
I was using Maven to load the ucanaccess jars, and eliminated it to load difrectly  the jar files but to no avail I still have the same problem. In Access I created a use  with a login name and password and now to the the database I have to use login name and password; I also gave that user all the permissions in ACCESS. It appears I am going to have to do it the old fashioned way "No ucanaccess just a DNS".
Thank you Paul for your prompt reply; well the message doesn't include password so it appears the reason for the problem is different. I have connected to copies of that database many times in the last ten years with exactly that code for "getConnection()", but is an old program in Eclipse full of syntax errors today for some ungodly reason and I haven't been able to find out what values of userName and password I was using; on the other hand something may have changed in my computer or Microsoft may have changed Access. The messages indicates that I am using ucanaccess although the cause is a java.sql.SQLSyntaxErrorException, of course I have ran the SQL statement directly in Access and it works. At this time I am trying to create a user in Access with a userName and password  but I haven't found a way yet. Currently I am using the Maven dependency for ucanaccess but I will try the jar files from the old program
This is my code

I have  been using the getConnection method for years; it gets a connection to a MS Access database using ucanaccess, but the problem is not with ucanaccess. The Exception error message is

I am getting the connection with this code

I am using userName Admin and password "" because in Access the default username is Admin and there is no password; but I could be wrong. I have exhausted the Internet and I have not found the solution.
I create a web page to display an image with he following line:

I apologize but "<,> didn't  display as code.
The html is in the templates folder of my application and the image file "paperless.gif" is in folder "templates/images"; I am assuming that I am using a relative path.
I haven't been able to find a solution after googling for a long time.
3 weeks ago