Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE in NAESession.getSession #223

Open
davidkhala opened this issue Jun 20, 2024 · 1 comment
Open

NPE in NAESession.getSession #223

davidkhala opened this issue Jun 20, 2024 · 1 comment

Comments

@davidkhala
Copy link

davidkhala commented Jun 20, 2024

Version information

  • Java 21
  • CDAP 8.16.0.000

In the begining of task,

NAESession.getSession("user", "password".toCharArray());

It prompts a generic error like below. While quite hard to identify the root cause, what should we do?

Cannot invoke "com.ingrian.internal.ilc.IngrianLogger.throwing(String, java.lang.Throwable)" because "com.ingrian.security.nae.NAEException.c" is null
java.lang.NullPointerException: Cannot invoke "com.ingrian.internal.ilc.IngrianLogger.throwing(String, java.lang.Throwable)" because "com.ingrian.security.nae.NAEException.c" is null
	at com.ingrian.security.nae.NAEException.<init>(NAEException.java:95)
	at com.ingrian.internal.ilc.IngrianUtils.invoke(IngrianUtils.java:408)
	at com.ingrian.internal.ilc.IngrianLogger.<init>(IngrianLogger.java:100)
	at com.ingrian.security.nae.NAEException.<clinit>(NAEException.java:37)
	at com.ingrian.internal.ilc.IngrianUtils.invoke(IngrianUtils.java:408)
	at com.ingrian.internal.ilc.IngrianLogger.<init>(IngrianLogger.java:100)
	at com.ingrian.internal.ilc.IngrianUtils.<clinit>(IngrianUtils.java:49)
	at com.ingrian.internal.ilc.IngrianLogger.loadTemplates(IngrianLogger.java:365)
	at com.ingrian.internal.ilc.IngrianLogger.<init>(IngrianLogger.java:60)
	at com.ingrian.security.nae.NAESessionBase.<clinit>(NAESessionBase.java:26)
	at com.example.spring.SpringTest.CDAP(SpringTest.java:41)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
@davidkhala davidkhala changed the title Null pointer in NAESession.getSession NPE in NAESession.getSession Jun 20, 2024
@aslanFatih34
Copy link

Version

  • java 17
  • CDAP 8.16.0.000

We are facing the same issue when we upgraded the project from Spring 2.6.6 to 3.0.13. This is creating a blocker for us. Could we get your support?

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMethod.invoke(InitDestroyAnnotationBeanPostProcessor.java:457) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:401) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:219) ... 26 common frames omitted Caused by: java.lang.NullPointerException: Cannot invoke "com.ingrian.internal.ilc.IngrianLogger.throwing(String, java.lang.Throwable)" because "com.ingrian.security.nae.NAEException.c" is null at com.ingrian.security.nae.NAEException.<init>(NAEException.java:95) at com.ingrian.internal.ilc.IngrianUtils.invoke(IngrianUtils.java:408) at com.ingrian.internal.ilc.IngrianLogger.<init>(IngrianLogger.java:100) at com.ingrian.security.nae.NAEException.<clinit>(NAEException.java:37) ... 41 common frames omitted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants