8 – Plug-in exception not found

I implements REST in Drupal 8. I created a custom plug-in for a REST resource, enabled the plug-in, and configured the permissions for that REST endpoint.

After a few days, I removed the plug-in code without disabling the REST endpoint. I am experiencing a plug-in function not found for this REST endpoint.

Due to this Drupal Component Plugin Exception PluginNotFoundException: The "glossify_taxonomy" plug-in does not exist., I have made changes to the config and cache configuration table. I still encounter an exception plugin not found when I click Permissions and Expand in the menu.

How can I remove this exception?

Exception in the thread "AWT-EventQueue-0" java.lang.NumberFormatException: for the input string: "927392849234"

I'm trying to convert a jtextfield to int and then check if there is a user with that title in the voter, but this error pops up.

<img src = "https://i.stack.imgur.com/k55Zy.png" alt = "[![COnsulta no banco][1]][1]">

C # – SystemOverflowException Exception Handling

I create an instance between a class and this gives an error asking to create an empty method in the form. I therefore create and can display the form information in the class normally, but when I run it, the following error is displayed.
"Unhandled Exception" —– System.StackOverflowException

 Cadastrar cad = new Cadastrar();// essa é a instancia que estou fazendo, fica numa classe

public cadHorario()//esse é o metodo vazio que ele pede para ser criado, e é nele que acontece o erro

java – What is a NullPointerException exception and how to solve it?

Question: What is causing a NullPointerException (NPE)?

As you must know, Java types are divided into primitive types (boolean, int, etc.) and reference types. The reference types in Java allow you to use the special value null that's the way Java says "no object".

A NullPointerException is launched at the time of execution whenever your program is trying to use a null as if it was a real reference. For example, if you write this:

public class Test {
    public static void main(String() args) {
        String foo = null;
        int length = foo.length();   // HERE

the statement entitled "HERE" will attempt to execute the length() method on a null reference, and this will throw a NullPointerException.

There are many ways to use a null value that will result in a NullPointerException. In fact, the only things you can do with a null without causing NPE are:

  • assign it to a reference variable or read it from a reference variable,
  • assign it to an array element or read it in a array element (provided that the array reference itself is not null!),
  • pass it as a parameter or return it afterwards, or
  • test it using the == or != operators, or instanceof.

Question: How to read NPE stacktrace?

Suppose I compile and run the program above:

$ javac Test.java 
$ java Test
Exception in thread "main" java.lang.NullPointerException
    at Test.main(Test.java:4)

First observation: the compilation succeeds! The problem in the program is not a compilation error. It's a runtime Fault. (Some IDEs can warn you that your program will always throw an exception … but the standard javac the compiler does not do it.)

Second observation: when I run the program, it generates two lines of "gobbledy-gook". FALSE!! This is not gobbledy-gook. It's a stacktrace … and it provides vital information this will help you locate the error in your code if you take the time to read it carefully.

So let's look at what he says:

Exception in thread "main" java.lang.NullPointerException

The first line of the stack trace tells you a few things:

  • It tells you the name of the Java thread in which the exception was thrown. For a simple program with a thread (like this one), it will be "main". Let's move on …
  • It tells you the full name of the exception that was thrown. that is to say. java.lang.NullPointerException.
  • If an error message is associated with the exception, it will be displayed after the exception name. NullPointerException is unusual in this regard because it rarely contains an error message.

The second line is the most important to diagnose an NPE.

at Test.main(Test.java:4)

This tells us a number of things:

  • "at Test.main" says we were in the main method of Test class.
  • "Test.java:4" gives the source file name of the class AND tells us that the statement in which this occurred is in line 4 of the file.

If you count the lines of the file above, line 4 is the one I tagged with the comment "HERE".

Note that in a more complex example, the trace of the NPE stack will have many lines. But you can be sure that the second line (the first line "at") will tell you where the NPE was launched.1.

In short, the stack trace will unambiguously tell us which program statement launched the NPE.

1 – Not quite true. There are things called nested exceptions …

Question: How to find the cause of the NPE exception in my code?

It's the hard part. The short answer is to apply a logical inference to the evidence provided by the stack trace, the source code, and the relevant API documentation.

Let's first illustrate by simple example (above). We begin by examining the line indicated by the trace of the stack at the point where the NPE has passed:

int length = foo.length(); // HERE

How can this start an NPE?

In fact, there is only one way: this can only happen if foo value null. We then try to launch the length() method on null and …. BANG!

But (I hear you saying), if the NPE was thrown inside the length() method call?

Well, if that happened, the stack trace would look different. The first line "at" would indicate that the exception was thrown in a line of java.lang.String class and line 4 of Test.java would be the second line "at".

So where is null comes from? In this case, it is obvious, and what we must do to solve it is obvious. (Assign a non-zero value to foo.)

OK, let's try a more complicated example. This will require A logical deduction.

public class Test {

    private static String() foo = new String(2);

    private static int test(String() bar, int pos) {
        return bar(pos).length();

    public static void main(String() args) {
        int length = test(foo, 1);

$ javac Test.java 
$ java Test
Exception in thread "main" java.lang.NullPointerException
    at Test.test(Test.java:6)
    at Test.main(Test.java:10)

So now we have two lines "at". The first is for this line:

return args(pos).length();

and the second is for this line:

int length = test(foo, 1);

Looking at the first line, how could this launch an NPE? There are two ways:

  • If the value of bar is null then bar(pos) will throw an NPE.
  • If the value of bar(pos) is null and then calling length() on it will launch an NPE.

Then we need to determine which of these scenarios explains what is really happening. We will start by exploring the first one:

Where is bar comes from? This is a parameter to the test method call, and if we look at how test has been called, we can see that it comes from the foo static variable. In addition, we can clearly see that we have initialized foo at a non-zero value. This is enough to temporarily rule out this explanation. (In theory, something else could change foo at null … but that does not happen here.)

So, what about our second scenario? Well, we can see that pos is 1so that means that foo(1) must be null. Is it possible?

Indeed, that's it! And that's the problem. When we initialize like this:

private static String() foo = new String(2);

we allocate a String() with two elements which are initialized to null. After that, we have not changed the content of foo … so foo(1) will always be null.

mobile – Erro Unhandled Exception: type _InternalLinkedHashMap & # 39; is not a type subtype & # 39; String & # 39;

Boa is late!
Do you want to download your converter?

UsuarioSessao class {
Nome of chain;
Cargo of string;
Director null;
String cnpj;
String centroCusto;
Pontos list;
Horario list;

UsuarioSessao (

UsuarioSessao.fromJson (Json Card) {
nome = json (& nbsp; & nbsp; & nbsp;)
worse (worse);
cargo = json ("cargo");
admin = json (& # 39; admin & # 39;);
cnpj = json (& # 39; cnpj & # 39;);
centroCusto = json ("centroCusto");
if (json (& # 39; pontos & # 39;) !! = null) {
pontos = new list ();
json (& # 39; pontos & # 39;). forEach ((v) {
pontos.add (new Pontos.fromJson (v));
if (json ('horarios')! = null) {
horarios = new list ();
json (horarios & # 39;). forEach ((v) {
horarios.add (new Horarios.fromJson (v));

Map toJson () {
final map data = new map ();
data (# nome) = this.nome;
data (& # 39; upp;) = this.pis;
data ("cargo") = this.cargo;
data (& # 39; admin) = this.admin;
data (& # 39; cnpj & # 39;) = this.cnpj;
data (& # 39; centroCusto & # 39;) = this.centroCusto;
if (this.pontos! = null) {
data (& # 39; pontos & # 39;) = this.pontos.map ((v) => v.toJson ()). toList ();
if (this.horarios! = null) {
data ('horarios') = this.horarios.map ((v) => v.toJson ()). toList ();
return data;

Pontos class {
Chain dia;
Null entrada1;
Null saida1;
Null entrada2;
Null saida2;
Null entrada3;
Null saida3;

Pontos (

Pontos.fromJson (Json map) {
dia = json (& dquo; dia & # 39;);
entrada1 = json (& # 39; entrada1 & # 39;);
saida1 = json (& # 39; saida1 & # 39;);
entrada2 = json (& # 39; entrada2 & # 39;);
saida2 = json (& # 39; saida2 & # 39;);
entrada3 = json (& # 39; entrada3 & # 39;);
saida3 = json (& # 39; saida3 & # 39;);

Map toJson () {
final map data = new map ();
data (& # 39; dia & # 39;) = this.dia;
data (& # 39; entrada1 & # 39;) = this.entrada1;
data (& # 39; saida1 & # 39;) = this.saida1;
data (& # 39; entrada2 & # 39;) = this.entrada2;
data (& # 39; saida2 & # 39;) = this.saida2;
data (& # 39; entrada3 & # 39;) = this.entrada3;
data (& # 39; saida3 & # 39;) = this.saida3;
return data;

Horarios class {
DiaDaSemana chain;
String entrada1;
String saida1;
String entrada2;
String saida2;
Null entrada3;
Null saida3;
flexivel bool;
bool ehFolga;

Horarios (

Horarios.fromJson (Json Card) {
diaDaSemana = json (& diaDaSemana & # 39;)
entrada1 = json (& # 39; entrada1 & # 39;);
saida1 = json (& # 39; saida1 & # 39;);
entrada2 = json (& # 39; entrada2 & # 39;);
saida2 = json (& # 39; saida2 & # 39;);
entrada3 = json (& # 39; entrada3 & # 39;);
saida3 = json (& # 39; saida3 & # 39;);
flexivel = json (& # 39; flexivel & quot;);
ehFolga = json ("ehFolga");

Map toJson () {
final map data = new map ();
data (& dquo; diaDaSemana & dquo;) = this.diaDaSemana;
data (& # 39; entrada1 & # 39;) = this.entrada1;
data (& # 39; saida1 & # 39;) = this.saida1;
data (& # 39; entrada2 & # 39;) = this.entrada2;
data (& # 39; saida2 & # 39;) = this.saida2;
data (& # 39; entrada3 & # 39;) = this.entrada3;
data (& # 39; saida3 & # 39;) = this.saida3;
data ("flexivel") = this.flexivel;
data (& # 39; ehFolga & # 39;) = this.ehFolga;
return data;

GetDado future (JsonUser user) async {
var url = "";
var uri = & # 39; / servico / sessao / funcionario / obter-dados-gerais & # 39 ;;
var token = user.token;
// envia enviado no Header com a chave
// Authorization and bearer value {token}.
Dio dio = new Dio ();
dio.options.headers = {
& # 39; Authorization & # 39 ;: & # 39; bearer & # 39; + token,
& # 39; idFuncionario & # 39 ;: user.id
dio.options.contentType = ContentType.parse ("application / x-www-form-urlencoded");
Answer answer = wait dio. post (url + uri, data: {
"idFuncionario": user.id
var body = answer;
/print (body);/
var responseJson = json.decode (response.data);
return responseJson;

Eu chamo aqui
// container makes botão of login
Child: Padding (
padding: EdgeInsets.symmetric (vertical: 10.0),
child: RaisedButton (
child: Text ("Login"),
color: Colors.red,
() async {
var respLogin = wait _loginUser (_emailController.text, _senhaController.text);
JsonUser user = JsonUser.fromJson (respLogin);
var respDados = wait getDado (user);
UsuarioSessao usuario = UsuarioSessao.fromJson (respDados);
if (usuario! = null) {
Browser.of (context) .push (MaterialPageRoute (
constructor: (BuildContext context) {
return the new home page (
usuario: usuario,
} other {
Scaffold.of (context) .showSnackBar (
SnackBar (content: Text ("Bad email or")));

typescript – tsc of node_modules does not throw console exception when there are type checking problems

I added small typecheck command to execute during my ci to make sure there is no type error. It uses tsc from node modules, that is,

./node_modules/.bin/tsc --noEmit;

This works correctly and the console logs the errors, but the command passes with the correct exit code. Ideally, I want it to throw an exception and leave with an error code.

Is there an indicator or tsconfig option that allows me?

Unity gets the component returning a NullReferenceException exception only in a standalone version

I have a very frustrating problem with GetComponent().

private void Show()
    var transition = GetComponent();

    Debug.Log($"Transition: {transition}");

In the editor, it works very well. transition is not zero and FadeIn() is called. In the autonomous construction, GetComponent() returns null, throws a NullReferenceExceptionand the execution stops even before you can print transition at the Consol.

This is the output of the log file.

Uploading Crash Report
  at (wrapper managed-to-native) UnityEngine.Component.get_gameObject(UnityEngine.Component)
  at UnityEngine.Component.GetComponentInChildren (System.Type t, System.Boolean includeInactive) (0x00001) in :0 
  at UnityEngine.Component.GetComponentInChildren(T) (System.Boolean includeInactive) (0x00001) in :0 
  at Winglett.RR.UI.Gradient.Show () (0x00001) in /Users/redacted/Documents/repos/radical-relocation/Assets/_Core/Scripts/UI/Gradient.cs:63 
  at (wrapper delegate-invoke) .invoke_void()
  at Winglett.RR.Gameplay.GameState.SetPause () (0x00001) in /Users/redacted/Documents/repos/radical-relocation/Assets/_Core/Scripts/Gameplay/GameState.cs:46 
  at Winglett.RR.Gameplay.GameState.SetPause_STATIC () (0x00000) in /Users/redacted/Documents/repos/radical- relocation/Assets/_Core/Scripts/Gameplay/GameState.cs:70 
  at Winglett.RR.UI.Wrapper.SetGameStatePause () (0x00000) in /Users/redacted/Documents/repos/radical-relocation/Assets/_Core/Playground/ui/Wrapper.cs:27 
  at UnityEngine.Events.InvokableCall.Invoke () (0x00011) in :0 
  at UnityEngine.Events.UnityEvent.Invoke () (0x00023) in :0 
  at Winglett.RR.Utils.ESCButton.Update () (0x00026) in /Users/redacted/Documents/repos/radical-relocation/Assets/_Core/Scripts/Utilities/Other/ESCButton.cs:21 

I was wondering if the problem may be due to the fact that the gameobject was disabled. So I tried GetComponentInChildren(true); where true is an overload for inactive gameobjects. It has not changed anything.

ssl – Exception: System.Net.WebException: The underlying connection has been closed – IIS

I have very strange problems and it is difficult for me to find a solution to this error.

Currently, some services (.NET) are hosted on IIS on different servers.

On one of the servers, it happens that the logs contain errors such as those described below (requests addressed to various services and occurring in greater numbers for 2 to 3 minutes). That's why I know the problem should be with the service that sends requests.

An unexpected error occurred on a receive.Status: ReceiveFailureUri:
Exception: System.Net.WebException: The underlying connection was
closed: An unexpected error occurred during a reception. —>
System.IO.IOException: Can not read transport data
connection: an existing connection was forcibly closed by the remote control
host. —> System.Net.Sockets.SocketException: an existing connection
was forcibly closed by the remote host at
System.Net.Sockets.NetworkStream.Read (Byte () buffer, Int32 offset,
Size Int32) — End of Internal Exception Stack Trace — to
System.Net.Sockets.NetworkStream.Read (Byte () buffer, Int32 offset,
Size Int32) at System.Net.FixedSizeReader.ReadPacket (Byte () buffer,
Int32 offset, Int32 count) to
System.Net.Security._SslStream.StartFrameHeader (Byte () buffer, Int32
offset, number Int32, AsyncProtocolRequest asyncRequest) to
System.Net.Security._SslStream.StartReading (Byte () buffer, Int32
offset, number Int32, AsyncProtocolRequest asyncRequest) to
System.Net.Security._SslStream.ProcessRead (Byte () buffer, Int32
offset, number Int32, AsyncProtocolRequest asyncRequest) to
System.Net.TlsStream.Read (Byte buffer (), Int32 offset, size Int32) to
System.Net.PooledStream.Read (Byte buffer), Int32 offset, Int32 size)
to System.Net.Connection.SyncRead (request HttpWebRequest, Boolean
userRetrievedStream, Boolean probeRead) — Exit internal exception
stack trace — to System.Net.HttpWebRequest.GetResponse () to

It is incomprehensible that the service receiving this request returns OK. At first, it appeared that the sockets on the server sending the request might be busy. But the netstat result from the moment these problems occurred does not show more than 500 reserved sockets.

Has anyone encountered a similar problem?

Exception in the CompactionExecutor thread – Cassandra

I have a Cassandra key space whose tables are partitioned by a string that results from the concatenation of the current year and month. In most tables, there are no problems, but one of them has partitions of more or less 40 GB. I do not know if these partitions are too big, but when Cassandra performs automatic compaction tasks, a strange exception is issued:

ERROR (CompactionExecutor:1811) 2019-08-13 13:48:46,384 CassandraDaemon.java:228 - Exception in thread Thread(CompactionExecutor:1811,1,main)
java.lang.RuntimeException: null
    at org.apache.cassandra.io.util.DataOutputBuffer.validateReallocation(DataOutputBuffer.java:134) ~(apache-cassandra-3.11.4.jar:3.11.4)
    at org.apache.cassandra.io.util.DataOutputBuffer.calculateNewSize(DataOutputBuffer.java:152) ~(apache-cassandra-3.11.4.jar:3.11.4)
    at org.apache.cassandra.io.util.DataOutputBuffer.expandToFit(DataOutputBuffer.java:159) ~(apache-cassandra-3.11.4.jar:3.11.4)
    at org.apache.cassandra.io.util.DataOutputBuffer.doFlush(DataOutputBuffer.java:119) ~(apache-cassandra-3.11.4.jar:3.11.4)
    at org.apache.cassandra.io.util.BufferedDataOutputStreamPlus.write(BufferedDataOutputStreamPlus.java:195) ~(apache-cassandra-3.11.4.jar:3.11.4)
    at org.apache.cassandra.io.util.BufferedDataOutputStreamPlus.writeUnsignedVInt(BufferedDataOutputStreamPlus.java:258) ~(apache-cassandra-3.11.4.jar:3.11.4)
    at org.apache.cassandra.utils.ByteBufferUtil.writeWithVIntLength(ByteBufferUtil.java:295) ~(apache-cassandra-3.11.4.jar:3.11.4)
    at org.apache.cassandra.db.marshal.AbstractType.writeValue(AbstractType.java:413) ~(apache-cassandra-3.11.4.jar:3.11.4)
    at org.apache.cassandra.db.ClusteringPrefix$Serializer.serializeValuesWithoutSize(ClusteringPrefix.java:317) ~(apache-cassandra-3.11.4.jar:3.11.4)
    at org.apache.cassandra.db.Clustering$Serializer.serialize(Clustering.java:131) ~(apache-cassandra-3.11.4.jar:3.11.4)
    at org.apache.cassandra.db.ClusteringPrefix$Serializer.serialize(ClusteringPrefix.java:260) ~(apache-cassandra-3.11.4.jar:3.11.4)
    at org.apache.cassandra.db.Serializers$NewFormatSerializer.serialize(Serializers.java:167) ~(apache-cassandra-3.11.4.jar:3.11.4)
    at org.apache.cassandra.db.Serializers$NewFormatSerializer.serialize(Serializers.java:154) ~(apache-cassandra-3.11.4.jar:3.11.4)
    at org.apache.cassandra.io.sstable.IndexInfo$Serializer.serialize(IndexInfo.java:103) ~(apache-cassandra-3.11.4.jar:3.11.4)
    at org.apache.cassandra.io.sstable.IndexInfo$Serializer.serialize(IndexInfo.java:82) ~(apache-cassandra-3.11.4.jar:3.11.4)
    at org.apache.cassandra.db.ColumnIndex.addIndexBlock(ColumnIndex.java:216) ~(apache-cassandra-3.11.4.jar:3.11.4)
    at org.apache.cassandra.db.ColumnIndex.add(ColumnIndex.java:264) ~(apache-cassandra-3.11.4.jar:3.11.4)
    at org.apache.cassandra.db.ColumnIndex.buildRowIndex(ColumnIndex.java:111) ~(apache-cassandra-3.11.4.jar:3.11.4)
    at org.apache.cassandra.io.sstable.format.big.BigTableWriter.append(BigTableWriter.java:173) ~(apache-cassandra-3.11.4.jar:3.11.4)
    at org.apache.cassandra.io.sstable.SSTableRewriter.append(SSTableRewriter.java:135) ~(apache-cassandra-3.11.4.jar:3.11.4)
    at org.apache.cassandra.db.compaction.writers.DefaultCompactionWriter.realAppend(DefaultCompactionWriter.java:65) ~(apache-cassandra-3.11.4.jar:3.11.4)
    at org.apache.cassandra.db.compaction.writers.CompactionAwareWriter.append(CompactionAwareWriter.java:142) ~(apache-cassandra-3.11.4.jar:3.11.4)
    at org.apache.cassandra.db.compaction.CompactionTask.runMayThrow(CompactionTask.java:201) ~(apache-cassandra-3.11.4.jar:3.11.4)
    at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) ~(apache-cassandra-3.11.4.jar:3.11.4)
    at org.apache.cassandra.db.compaction.CompactionTask.executeInternal(CompactionTask.java:85) ~(apache-cassandra-3.11.4.jar:3.11.4)
    at org.apache.cassandra.db.compaction.AbstractCompactionTask.execute(AbstractCompactionTask.java:61) ~(apache-cassandra-3.11.4.jar:3.11.4)
    at org.apache.cassandra.db.compaction.CompactionManager$BackgroundCompactionCandidate.run(CompactionManager.java:266) ~(apache-cassandra-3.11.4.jar:3.11.4)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~(na:1.8.0_222)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~(na:1.8.0_222)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~(na:1.8.0_222)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) (na:1.8.0_222)
    at org.apache.cassandra.concurrent.NamedThreadFactory.lambda$threadLocalDeallocator$0(NamedThreadFactory.java:81) (apache-cassandra-3.11.4.jar:3.11.4)
    at java.lang.Thread.run(Thread.java:748) ~(na:1.8.0_222)

The compaction strategy is org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy

Any ideas on what could be the problem?

Thank you so much. Cordially.

boot – Machine Check Exception (MCE) Decode in Ubuntu 18.04

I have a system running Ubuntu 18.04, which freezes randomly. In the startup log entries as

mce: [Hardware Error]: CPU 0: Machine Check: 0 Bank 4: e600000000020408

appear. In older versions of Ubuntu, mcelog could be used to decode these entries. mcelog has since been removed. How to decode the log entries to determine the origin of the error in Ubuntu 18.04?