java.lang.NoClassDefFoundError: okhttp3/RequestBody - okhttp

I added okhttp4.2.2.jar into module library and I could find the RquestBody.class is available inside of okhttp3, but still get the error java.lang.NoClassDefFoundError: okhttp3/RequestBody. I googled many places and looks like I am missing dependencies jars. Could someone tell me the cause, thanks a lot.
Please view my code and error here

Related

Work Performer Exception: org.apache.soap.transport.SOAPTransport while executing ComponentStep in ProcessConfiguration of IBM FileNet

While running component Step in ProcessConfiguration of workflows, facing below issue. This component includes web service calls. Added soap.jar file in the component but issue remains the same.
Work Performer Exception: org.apache.soap.transport.SOAPTransport
When verified in PCCE logs, I find as below.
CMDp.MAS678A PEPrimary2 [Error] CMExecute[12917].MASMEDOC01.XSHDC510_DS_30.AdapterOperations.Y988309 [UKE_IndexingSME:D5C52E6172F0284385411683A8496EAB:sub_local_ExecuteForAttachment:adaptorCall] FAILED.; Exception: java.lang.ClassNotFoundException: org.apache.soap.transport.SOAPTransport
at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:240)
at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:702)
at java.lang.ClassLoader.loadClass(ClassLoader.java:681)
at com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:133)
at java.lang.ClassLoader.loadClass(ClassLoader.java:664)
at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:62)
at com.ibm.ws.classloader.ProtectionClassLoader.loadClass(ProtectionClassLoader.java:58)
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:617)
at java.lang.ClassLoader.loadClass(ClassLoader.java:664)
Issue : Work Performer Exception: org.apache.soap.transport.SOAPTransport
Can someone help the reason for this issue??
try this
add the supporting jar as a content element within the code module
If 1 doesn't work, add the supporting jar to CPE Websphere library and restart the websphere

stomp-chat web socket with embedded tomcat reactor error - type reactor.tuple.Tuple not found

I am having problems getting web socket subscriptions to work properly using Spring with an embedded Tomcat server.
When running this stomp-chat application I get the following error:
org.springframework.messaging.MessageHandlingException: Expression evaluation failed: #chatRoomSessions[headers.simpDestination].add(T(reactor.tuple.Tuple).of(headers.simpSessionId, headers.simpSubscriptionId));
nested exception is org.springframework.expression.spel.SpelEvaluationException: EL1005E:(pos 58): Type cannot be found 'reactor.tuple.Tuple'
I tried to add the following dependency:
compile ("io.projectreactor:reactor-stream:$reactorVersion")
but it gave the same error. Any help would be appreciated.
OK. I see the problem.
The dependency for the io.projectreactor:reactor-stream:2.0.8 isn't enough.
The Tuple class has been moved to the new reactor.fn.tuple package.
So, you still have to fix all the reactor.tuple.Tuple mentioning in the stomp-server.xml to the new reactor.fn.tuple.Tuple.
The sample will be fixed soon: https://github.com/spring-projects/spring-integration-samples/issues/185
Sorry for inconvenience.

No SchemaFactory that implements the schema language specified by: http://www.w3.org/2001/XMLSchema could be loaded

When trying to expose a Service with Aegis databinding in CXF DOSGi I get this error in Java 8. In java 7 it works fine.
Caused by: java.lang.IllegalArgumentException: No SchemaFactory that implements the schema language specified by: http://www.w3.org/2001/XMLSchema could be loaded
at javax.xml.validation.SchemaFactory.newInstance(SchemaFactory.java:215)
at org.apache.cxf.aegis.type.XMLTypeCreator.(XMLTypeCreator.java:122)
See full stacktrace here
I think the reason is that the code does not see the impl class com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory.
Any ideas how to fix this?
Btw. the exception can be observed by running the CXF-DOSGi build in Java 8.
I still do not have found a real solution for this. For now I have committed a workaround on CXF master to ignore this exception in the static code. So the Aegis binding is not schema checked but at least works. See CXF-6959.
I would be happy about any hints to get this fully working again.

class oracle.adfinternal.view.faces.context.AdfFacesContextImpl....adf-faces-impl-1013.jar

I am getting this error when I execute:
Caused By: java.lang.ClassCastException: class oracle.adfinternal.view.faces.context.AdfFacesContextImpl
and tried and tried in search to download adf-faces-impl-1013.jar but unable to find the jar.
Can any one help me where can I download this jar file?
User, without your exact jdev version nobody can help.
Not sure why you use the class in the "adf-faces-impl-1013.jar"?
The class is part of the specific jdev installation and normally is part of /jlib/adf-faces-impl.jar
However, the fact that you get the error points to a improper configuration of your application or workspace.

maven datanucleus ASM issue

I got following error when build maven datanucleus based project. I have placed maven-datanucleus-plugin under plugin and correctly define the path which contains persistent classes. Can anybody to help in this problem?
Exception in thread "Thread-1" You have selected to use ClassEnhancer "ASM" yet
the JAR for that enhancer does not seem to be in the CLASSPATH!
org.datanucleus.enhancer.NucleusEnhanceException: You have selected to use Class
Enhancer "ASM" yet the JAR for that enhancer does not seem to be in the CLASSPAT
H!
at org.datanucleus.enhancer.DataNucleusEnhancer.init(DataNucleusEnhancer
.java:212)
at org.datanucleus.enhancer.DataNucleusEnhancer.addClasses(DataNucleusEn
hancer.java:370)
at org.datanucleus.enhancer.EnhancerProcessor$EnhanceRunnable.run(Enhanc
erProcessor.java:163)
at java.lang.Thread.run(Thread.java:662)
Thank you.
So you want to use the enhancer and don't put asm.jar in the CLASSPATH, as per the docs. Can't be clearer.

Resources