I got this error when trying to deploy a MES service extension using NWDS 7.5:
java.lang.ClassCastException: Cannot cast class java.lang.reflect.WeakCache to interface java.util.Map
SourceName: com.sap.me.trace
Location: com.sap.me.trace
Did anyone face this issue before?
Could it be an IDAT problem or some incorrect configurations?
Some guidance or a HelloWorld tutorial for service extension would be helpful.
Thanks.
Related
I've been trying to run Flutter's basic demo project in VS Code, but I'm having some trouble. I keep getting this error:
java.lang.IllegalAccessError: class org.gradle.internal.compiler.java.ClassNameCollector (in unnamed module #0x1b1c397f) cannot access class com.sun.tools.javac.code.Symbol$TypeSymbol (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.code to unnamed module #0x1b1c397f
And I honestly have no idea what it means or how to even start fixing it. Any guidance would be appreciated! Thanks so much in advance.
While running $ sails lift command , I am getting this error.
info: Starting app...
error: Trying to use unknown adapter, "sailspostgresql", in model `adminintro`.
error: Are you sure that adapter is installed in this Sails app?
error: If you wrote a custom adapter with identity="sailspostgresql", it should be in this app's adapters directory.
error: Otherwise, if you're trying to use an adapter named `sailspostgresql`, please run `npm install sails-sailspostgresql#0.10.x`
Please help me out guys ...
Got the answer ... It was unicode mistake . I have copy n pasted the code for local.js from one of my coworker's pdf file. So when I pasted that code in my local.js "-" was replaced with some unicode http://www.fileformat.info/info/unicode/char/00AD/index.htm .. and that was causing this issue..
after running ./sbt assembly, I'm trying to run the
./bin/runscala.sh src/main/scala/com/wordnik/swagger/codegen/BasicPHPGenerator.scala ~/Desktop/myspec.json
and I get the following error:
./src/main/scala/com/wordnik/swagger/codegen/BasicPHPGenerator.scala:17: error: illegal start of definition
package com.wordnik.swagger.codegen
What is the cause and how can I fix it?
I'd strongly recommend using the develop_2.0 branch of swagger-codegen which uses Java, is simpler, and is under active development. Please try it first and see if you still experience a problem.
https://github.com/swagger-api/swagger-codegen/tree/develop_2.0
I've been trying to use EclEmma 2.1.0.201202261248 to measure integration test coverage for DAOs. Unfortunately, any test which extends AbstractTransactionalJUnit4SpringContextTests (that is, anything which actually uses part of the spring framework) throws the following exception:
07:35:11 ERROR [main] (ASMLogger.java:72) - Exception thrown < findByFilter > exception message could not resolve property: $jacocoData of: com.asentria.asm.persistence.krp.ProductData with params :: DataFilter{SerialNum:66,KeyNum:1967,Index1:1,Index2:2,HasPendingValue:null,OrderByDesc:null,OrderByAsc:null,Class:class com.asentria.asm.filter.ProductDataFilter}
org.hibernate.QueryException: could not resolve property: $jacocoData of: com.asentria.asm.persistence.krp.ProductData
at org.hibernate.persister.entity.AbstractPropertyMapping.propertyException(AbstractPropertyMapping.java:81)
at org.hibernate.persister.entity.AbstractPropertyMapping.toType(AbstractPropertyMapping.java:75)
at org.hibernate.persister.entity.AbstractEntityPersister.getSubclassPropertyTableNumber(AbstractEntityPersister.java:1468)
...
We have an odd combination of persistence -- 1 spring-managed context which uses Hibernate directly, and one JPA-compliant context which is not managed by spring, but which also uses Hibernate for the implementation.
I know EclEmma is injecting the jacocoData field, but I have no idea how to correct the problem.
I'd be grateful for any suggestions, including ideas how how to even troubleshoot this.
Try to exclude all problem packages in Preferences
Java/Code Coverage/Excludes
I can successfully run tests with com.arjuna.* added to this setting.
I have deployed JAX-WS web services in Tomcat and when i restarting the tomcat server. I am getting this error on console.
I have putted entry in web.xml and sun-jaxws.xml as per guidelines given in this link -
http://www.jroller.com/eldaaran/entry/using_jax_ws_2_0
Please advise.
SEVERE: WSSERVLET11: failed to parse runtime descriptor: com.sun.xml.ws.util.exception.LocatableWebServiceException: class not found in runtime descriptor: webservices.jaxws.Math
at line 6 of jndi:/localhost/jaxws/WEB-INF/sun-jaxws.xml
com.sun.xml.ws.util.exception.LocatableWebServiceException: class not found in runtime descriptor: webservices.jaxws.Math at line 6 of jndi:/localhost/jaxws/WEB-INF/sun-jaxws.xml
at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.getImplementorClass(DeploymentDescriptorParser.java:525)
at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:201)
at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:132)
at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:93)
It looks like the class webservices.jaxws.Math can't be found.
I can't find any reference to this class on the web, so I can only assume that it's a custom class, or the wrong namespace is being used.
Is there a webservices/jaxws/Math.class file?
Do you have a reference to Math in sun-jaxws.xml? I think it is slightly more likely that java.lang.Math is being misnamed than that there is a webservices.jaxws.Math class (I don't see a copy in my version of jax-ws).
webservices.jaxws.Math seems to be your endpoint implementation class. Is this class well packaged and deployed? Are you sure it's in the classpath?