Using annotation to ensure that value returned by method is not discarded

String in Java is immutable. The following snippet is, broadly speaking, "wrong". String s = "hello world!"; s.toUpperCase(); // "wrong"!! System.out.println(s); // still "hello...

Declare a method that always throws an exception?

I have a method like: int f() { try { int i = process(); return i; } catch(Exception ex) { ThrowSpecificFault(ex); } } This produces a compiler error, "not all code paths...

Function "fn:encode-for-uri" causes XSLT to error

I need to URL Encode a string in XSLT but the function: fn:encode-for-uri breaks the script. I checked it out online and apparently it's part of the...

Classic ASP : C0000005 Error on execution

I'm trying to execute classic ASP pages on a windows 2008 64 bit R2 box. Initially the problem was with registering dlls : That's now...

Android activity not displaying

I have an application which uses official facebook sdk for downloading facebook albums. Recently, I updated my code to incorporate new FB android sdk 3.0. My first activity starts FB...

ClassNotFoundException: org.hibernate.hql.ast.HqlToken when ever I am trying to execute HQL

The following exception is occurring when I try to execute HQL in my code. I checked this in various sites and found that antlr.2.7.6.jar shd be in class path. I checked this in my project and...

Value cannot be null. Parameter name: extent

I'm using EF6 code first to create my db. Everything was working well last night, now when i run update-database command, I get the following exception: PM> update-database Specify the '-Verbose'...

why do i get "Must translate autoresizing mask into constraints to have _setHostsLayoutEngine:YES" in xcode 6 beta

I have the following code in a swift UITableViewController, but i get a "Must translate autoresizing mask into constraints to have _setHostsLayoutEngine:YES exception at the 2nd line. I didnt...

Report error: ORA-0000: normal, successful completion In Oracle APEX Tabular Form

Im getting Report error: ORA-0000: normal, successful completion Oracle Apex in a Tabular Form Report. I cant able to proceed with any operations in the Tabular Forms such as Add Rows and Delete...

How can I throw CHECKED exceptions from inside Java 8 streams?

How can I throw CHECKED exceptions from inside Java 8 streams/lambdas? In other words, I want to make code like this compile: public List<Class> getClasses() throws ClassNotFoundException { ...

No overflow exception in a method called in checked block

checked block is used to make sure if overflow happens, an exception is thrown. For example, The below code throws overflow exception which is fine. checked { int a = 123456; int b = 123456; ...

How to manage Angular2 "expression has changed after it was checked" exception when a component property depends on current datetime

My component has styles that depend on current datetime. In my component I've got the following function. private fontColor( dto : Dto ) : string { // date d'exécution du dto let...

Faulting module name: KERNELBASE.dll

My application crashes without any application error logging, when I checked Event viewer I found below info. Can some explain why this would happen and how to prevent it? Faulting application...

Exception doesn't need to be thrown to be caught, but IOException does

Why does the following code compile fine, but the method being called does not need to throw Exception? Isn't Exception a checked exception and not an unchecked exception? Please clarify. class...

kubernetes: api-server and controller-manager cant start

I have a running k8s-cluster, setup with kubeadm. I have the problem, that the api-server and controller-manager pod cant start, due to a bind-exception: failed to create listener: failed to...

Docker and Java - FontConfiguration issue

We've got a Java application that generates word documents using a 3rd party (Asposee but I don't think it matters here). The app is built from a simple Docker file: FROM openjdk:10-jdk-slim COPY...

Why is Azure app service not reliably reading my connection strings when I am using the production (base app service) slot

I have an ASP.NET Core 2.1 API that I am deploying to an Azure App Service. I use Azure SQL Server for my backing databases. Below is a screenshot of the App Service (base) Application Settings...

"Insert Into" statement causing errors due to "Parameter 7 (""): The supplied value is not a valid instance of data type float."

I'm loading a batch of CSV files into a SQL Server table using Python one row at a time. The files each contain a number of free text fields and erroneous data which I trim and rename before...

PostgreSQL database regularly in recovery mode

We are getting this error quite regularly, database is being thrown into recovery mode, application runs out of connections. After a while ~ 3 to 5 minutes it recovers. This is...

How to fix "Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/core/io/support/SpringFactoriesLoader" in Spring Tool Suite

Spring Tool Suite editor is not giving any errors in my code but when I try to run as Spring Boot App, it gives me an exception of class def not found. All I am trying to do here is run the Spring...

How do I log the details of network traffic with .NET network tracing?

My app is using its manifest's configuration settings (app.config; see xml below) to control .NET Network Tracing (as per...

How to fix the exception, when I call new Microsoft.Office.Interop.Word.Application()

When I call new Microsoft.Office.Interop.Word.Application() to initialize, an error occurred. The message is as follows: Unable to cast COM object of type...

Weird malformed cookies returned from REST api (sometimes)

I have an interesting problem - sometimes malformed cookies are returned from my web API hosted on AWS (.NET Core 2.2), behind Incapsula WAF and AWS elb. This messes up my .NET framework SDK which...

How to find the tag from the error: Trying to update non-existent view with tag 85273 in React Native Android

In production of React Native app get the error on Android from crashlytics of firebase: Fatal exception: com.facebook.react.uimanager.IllegalViewOperationException. Trying to update...

Hyperledger Fabric GetHistoryForKey get null pointer exception on java

I have the fabric samples project. I modified one of the examples there to experiment. I enabled couchDB and try to get the history of transactions. in core.yaml i enabled the history. ...

How to access custom model data in Odoo env using shell command?

I am getting key error in the accessing custom model data in shell command. I have added custom addons_path in odoo.conf. For example, addons_path = E:\Odoo\odoogithub\odoo\addons,...

Crbug/1173575, non-JS module files deprecated. chromewebdata/(index)꞉5305:9:5551

I just created a new project and have run it for the first time using F5 or Ctrl + F5, the result in Chrome is: The site can't be reached err_connection_refused I checked the option at the...

How to ignore @SneakyThrows of Lombok in Jacoco code coverage?

I use JaCOCO to see code coverage (and use the Intellij plugin for it). I have @SneakyThrows of lombok on my code. Since @SneakyThrows does nothing but converting a checked exception to a...

_reactNative.Keyboard.removeListener is not a function

I just upgraded from RN 0.63.2 to 0.64.2 then to 0.65.0-rc.3. Now I started to get this exception while trying to navigate between screens: _reactNative.Keyboard.removeListener is not a...

PHPSeclib Public Key Authentication Successful on Localhost; Failing when deployed

I've created a script which connects to a server using the phpseclib extension, using public key autentication (as you see here), by generating a key pair using ssh-keygen. What I'm facing now is...

Relevant tags