Actually, I am facing below exception
ERROR : XML Read or Write is not done properly.
org.springframework.oxm.UncategorizedMappingException: Unknown JAXB exception; nested exception is javax.xml.bind.JAXBException: my_ClassName nor any of its super class is known to this context.
While making request that is throwing exception XMLMappingException. There is no code change in existing I just added new wsdl(converted to jar in proper place)but facing issue.
If anyone knows answer this question.
I tried the stack overflow solutions regarding this issue, solutions are not matching to my problem statement.
Related
I'm using Spring Retry 1.2.4 with #Retryable annotation in a library dependency of a SpringBatch.
In the exceptionExpression attribute I specify an expression #root.status.is5xxServerError() of a custom exception for which I mention the class in the include attribute.
But it leads to an error with the following message :
org.springframework.retry.RetryException: Non-skippable exception in recoverer while processing; nested exception is org.springframework.expression.spel.SpelEvaluationException: EL1001E: Type conversion problem, cannot convert from java.lang.String to java.lang.Boolean
What I find strange is that the batch faultTolerant configuration seems to be in conflict with the library configuration, if I have a look at the "Non-skippable exception in recoverer while processing" into the final message.
Also while debugging in SpEL expression evaluation I notice no root object neither any variables are set in the EvaluationContext though it is trying to resolve #root.status.is5xxServerError(). Perhaps it is linked with the observation above.
Thanks for help
Expression support in those annotation is very basic.
I recently opened a GitHub issue to add improvements (runtime evaluation etc).
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I am getting the below exception while creating bean eqSaml11TicketValidator.
I am using IBM Websphere 8.5.5.
Context initialization failed:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eqSaml11TicketValidator' defined in class path resource [META-INF/eQSecurityClient.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
The class you are trying to create cannot be instantiated by the JVM. The error message ExceptionInInitializerError can have several reasons
The constructor of the class failed with an exception
At least one class or instance initialisation failed, e.g.
public class Test {
private static int num = 1/(1-1); // Throws Exception
private Object object = new SomeObject(); // if new SomeObject() throws exception
Another reason could be that you are missing a class on your classpath that this class or any class used by this class including parent classes require.
If the exception happens in you code, you could try to wrap the creation of the object in a try/catch block and print the cought exception including it's cause. The cause will most likely show the real reason of the failure.
how can I get the exception name without getting the stack trace?
I am using exception.toString() to convert the thrown exception into a string, but I only want the exception name likeNullPointerException and not the entire stack trace.
How can I solve this?
exception.getClass().getSimpleName();
Class#getSimpleName()
NOTE: this will not work in case if your exception is an anonymous class (although I have personally never seen an anonymous exception in any production code)
I'm using Play 1.2.7, somehow I found my project become weird, when I start the application, and visit any valid URL, it shows an NullPointerException:
Oops: NullPointerException
An unexpected error occured caused by exception NullPointerException: null
play.exceptions.UnexpectedException: Unexpected Error
at play.Play.start(Play.java:563)
at play.Play.detectChanges(Play.java:637)
at play.Invoker$Invocation.init(Invoker.java:198)
at Invocation.HTTP Request(Play!)
Caused by: java.lang.NullPointerException
at play.classloading.ApplicationCompiler$2.acceptResult(ApplicationCompiler.java:266)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:478)
at play.classloading.ApplicationCompiler.compile(ApplicationCompiler.java:282)
at play.classloading.ApplicationClassloader.getAllClasses(ApplicationClassloader.java:426)
at play.Play.start(Play.java:523)
... 3 more
And then I try to refresh the page, 2 or 3 time later, it become normal. What's going on here?
play doesn't support the following format in one class
public class A{
------
}
class B{
--
}
so make two different class instead of putting both in single class or use nested class.
It is a known bug: http://play.lighthouseapp.com/projects/57987/tickets/1379-unexpectedexception .
Maybe you use nested classes and Play has problems with it.
Can anyone tell me why following exception comes?
java.rmi.ServerException: RuntimeException; nested exception is:
java.lang.IllegalStateException: Cannot obtain inMethodFlag for: getPrimaryKey
How to avoid it?
According to the AllowedOperationsFlags API it will be thrown when the getPrimaryKey() has been called at a wrong time, e.g. during ejbCreate(). It's hard to suggest a solution without more context about your particular problem and/or a SSCCE.