StackOverflow.com

VN:F [1.9.22_1171]
Rating: 8.5/10 (13 votes cast)

Random snippets of all sorts of code, mixed with a selection of help and advice.

Jarkata cache api

18 March 2026 @ 4:00 pm

Recently trying to migrate spring 5 to 6 where javax.cache into Jakarta.cache but maven dependency is not downloading , if I search for this dependency in maven central not able to find , <dependency> <groupId>jakarta.cache</groupId> <artifactId>jakarta.cache-api</artifactId> </dependency>

How do I delete an entity in a one-to-many relationship?

18 March 2026 @ 3:59 pm

I'm implementing a small e-commerce system, but I've encountered the following problem: I can't delete entities with one-to-many relationships: I have a shopping cart class as follows @Entity @Table(name = "cart") public class Cart extends NameEntity { @OneToMany(mappedBy = "cart",cascade = {CascadeType.ALL},orphanRemoval = true) private List<Item> items = new ArrayList<>(); public void addItem(Item item) { item.setCart(this); this.items.add(item); } public BigDecimal getTotal() { if (items.isEmpty()) return BigDecimal.ZERO; double total = 0; for (Item item : items) { total += item.getCount() * item.getProduct().getPrice().doubleValue(); } return BigDecimal.valueOf(total); } public Item get(Integer id) { for (Item item : items) { if (Objects.equals(item.getId(), id))

Unable to load the service index for source when compiling VS2026 project

18 March 2026 @ 3:59 pm

I am trying to work on an existing dotnet project that uses telerik. I get this error when I try to compile the project:enter image description here When I click the VS2026 Menu -> extensions -> telerik -> licensing -> download key I get this error: enter image description here I have also tried downloading a telerik key manually. Then I create a "Telerik" folder and place the key there. But I still get the first error: enter image description here How can I resolve this problem?

MYSQL server don't start with xampp on win 7 32 bits

18 March 2026 @ 3:55 pm

I can't to start mysql server (xampp 7.3.2 win 7 32 bits) I note the following 1- The mysql service window do not start (the service is enable from panel---green color) In this case only I can see handing or automatic (not start/stop)...showing the message ...Error 87: wrongs parameters.... 2- From win console (cmd + Enter) I can see this ....(10061 "Unknow error") Before that I installing this xampp version ...I was have insatlled mysql 5.6, php5.6 and apache 2.2...I was remove this and later add the xampp 7.3.2..and I do not know if this was a problem too. 3- From the Netstat button in the control panel....do not show nothing about mysql conection or wath happen in 3306 port Anyway....I can't start mysql server and the installation is ok....I write localhost in the browser and the wellcome xampp page is ok I write mysql --version command in the win console and is ok Thanks for your attention Best regar

Is there a mechanism in TCP/IP to limit the number of unacknowledged packages?

18 March 2026 @ 3:54 pm

I am currently working on a project using Adam Dunkels uIP on a very restricted system. But i'm running into the following issue: When my PC sends data to the uIP Stack on the microcontroller - i made sure that the MAC sends and receives the packets correctly - it sometimes happens, that it sends two small packets, without waiting for the acknowledgement of the first. Usually this would not be a problem for a more powerful TCP/IP stack to handle, but uIP is limited to one unacknowledged packet at a time. This leads to uIP not responding with the correct Sequence-Number. The official uIP reference manual states in 1.8.3.2: ...uIP allows only a single TCP segment per connection to be unacknowledged at any given time. and in 1.2: In uIP, all RFC requirements that affect host-to-host communication are implemented.

Moving existing Firebase Storage files to the GCP Archive tier via lifecycle rules?

18 March 2026 @ 3:49 pm

I'm looking to optimize cloud storage costs for my iOS app. The app generates a lot of data that is essentially "write once, seldom read." Right now, everything is sitting in the default Standard tier in Firebase Cloud Storage. Since Firebase is just a wrapper for Google Cloud Storage under the hood, I'm planning to go into the GCP Console and set up an Object Lifecycle rule to transition files to the Archive pricing tier after 30 days. I have two main questions before I pull the trigger on this: 1. Is it safe to modify Firebase buckets directly in GCP? Is this officially supported, or am I risking breaking the Firebase SDK's connection to the bucket by messing with storage classes under the hood? I want to make sure my app can still instantly fetch archived files. 2. How does this affect existing files? If I create this 30-day lifecycle rule toda

Why cant Eclipse find jakarta.mail.Authenticator?

18 March 2026 @ 3:44 pm

When my program runs, it throws an error: Error: Unable to initialize main class javaEmailCleaner.JavaEmailCleaner Caused by: java.lang.NoClassDefFoundError: jakarta/mail/MessagingException It baffles me, I can't see why this class can't be found. Please see screenshot Any Ideas? All (printable) answers appreciated..

JT400 In VS Code Not Being Recognized

18 March 2026 @ 3:43 pm

enter image description hereI have been trying to use JT400 in VS Code to connect to an IBM iSeries. I have added JT400 to the Referenced Libraries - also tried putting JT400 in the LIB as well as add the direct reference in settings.json - all with the same result: package com.ibm.as400.access does not exist. I have attached a screen shot showing the 13 line code. When typing in com.ibm.as400.access, the intellisense does popup to show it recognizes the reference. Any suggestions on how to proceed is appreciated.

JMenuItem rendering offset with 1.8.0_481

18 March 2026 @ 3:39 pm

After updating from 1.8.0_291 to 1.8.481 I noticed that JMenuItems are now rendered with a big offset on the left side, when using the Windows LAF (did not test on other platforms so far). In some cases this even results in the content not being rendered completely and in general it looks really ugly. Here are 2 images as comparission correct rendering rendering with offset The accelerator/mnemonic is pushed to the right without any padding and the icon is hunched up against the text. I tried setting alignment, text position and gap (suggested by different AI agents and online search) but to no avail menuItem.setHorizontalAlignment(SwingConstants.LEFT); menuItem.setHorizontalTextPosition(SwingConstants.RIGHT); menuItem.setIconTextGap(4);

Facing issues in deploying NestJS backend in Google Cloud Run

18 March 2026 @ 3:36 pm

I'm trying to host my NestJS backend on Google Cloud Run, but I keep getting this error consistently. How to resolve this issue? ERROR: (gcloud.run.services.update) The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable within the allocated timeout. This can happen when the container port is misconfigured or if the timeout is too short. The health check timeout can be extended. Logs for this revision might contain more information.