The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
It's the bane of cross platform development. Processes are reasonably consistent from Windows to MacOS to Linux. Threads, on the other hand, are a nightmare to develop cross platform. Take a look at the "single threaded" Excel application and you can see up to 25 threads for a single workbook open.
The real question is how many of those processes are in a sleep state of some sort, thereby taking just swap space and no processor.
I'm getting notifications at stupid times: the "It's out for delivery today" email arrives six hours after the goods reached my door; "order confirmation" turns up 8 hours after the dispatch note; that kind of thing.
And this has been happening for weeks.
OK, I know why - with the lockdowns, their workload has gone massively high, they are overstretched.
But ... they own AWS, "the world's most comprehensive and broadly adopted cloud platform" and I thought the great idea with serverless cloud products was expansion: you need more processing, more bandwidth, more anything you just pour some more in. So presumably their systems run on AWS, which doesn't look good for it, really ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
Amazon is having serious issues, and I'm not quite sure where the disconnect is. It might be in the final delivery, not sure.
The other day I ordered a replacement laptop charger. The first thing I noticed, even if it did say "shipped by amazon" was the two day prime looked like 4 day prime. Okay, whatever, CV19 likely. Email confirming the order arrived. 5 days later, still nothing. After a full week, I get an email apologizing that they could not deliver. Hmmm...
So, I went to the page listing reasons why they could not deliver. Every single one of them is the customer's fault. Now, mind you, in the week I've been waiting on the charger, my wife has received probably a dozen deliveries from Amazon, so, no, I don't think it's my issue. And Amazon makes it impossible to gripe at them with their Indian call centers (no offense to the Indians...).
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Just thought I might rant a bit.
Simply trying to use MS example and driver to use Java to connect to sql server.
The only error I can ever get is: java.sql.SQLException: No suitable driver found for jdbc:sqlserver://
I don't believe it is finding the proper jar file.
I noticed that when I build via javac that even if I provide a bad path to the jar or whatever, the "compiler" happily rolls on. Oy! No way to even tell if javac is incorporating the jar.
Assuming the JAR is already added in your classpath, try adding Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); before the call to DriverManager.getConnection. I think that's still the full name of the SQL Server driver at least. Those are the two things that commonly cause this error.
Also if you're curious why javac doesn't seem to care, from what I understand it's because the SQLServerDriver class is never referenced in your code and therefore unnecessary for javac. DriverManager doesn't explicitly load driver classes, it just fetches them which is why you need to explicitly load the class via Class.forName.