I am trying to run runner class in Intelli J idea but getting this error message
cucumber.runtime.CucumberException: No backends were found. Please make sure you have a backend module on your CLASSPATH.
I spend lots of time but I don't know how this will work?
Usually the reason for this is that you are using several cucumber dependencies with different versions.
Make sure that all your cucumber dependencies are using the same version number. You can find which dependencies you need in the installation docs
Related
I'm trying to initialize local Hybris 2205.3 version and getting following error -
ERROR [hybrisHTTP27] [HacInitUpdateFacade] Failed to initialize
java.lang.IllegalArgumentException: Property 'http://javax.xml.XMLConstants/property/accessExternalSchema' is not recognized.
Using Oracle JDK 17.0.4.1. Initialization triggered from HAC.
I've tried adding following property to tomcat.generaloptions also which didn't help -
"-Djavax.xml.accessExternalSchema=all"
Any pointers to fix this? Or need more information?
It could be that one of the custom jar is older version and conflicting with oob. In one of our project we faced a similar issue and found that xerces.jar version in custom code was of lower version.
Both the jars I.e in oob and custom there was xmlconstant class but lower version jar used in custom code didn't have accessExternalSchema as class variable and was being picked up by system on startup because of conflict.
Oracle JDK not supported anymore, you need to try with SapMachine 17.0.
Whole system requirements by version is here.
We resolved the issue with Oracle JDK 17 only. We faced the same issue while upgrade from 2105 to 2211. This is due to jar dependency. We tried with the above given solution but it didn't work for us. We researched more and found the issue with dependency with xerces which caused conflict. We also found there is "xerces-2.12-orbeon' xerces-2.12-orbeon in OOTB. We did two things to resolve the issue
we updated classpath with xerces-2.12-orbeon( OOTB jar) in out custom code
We need to modify few code base as we were using xerces for Base64 encrytion and decryption for SSO
Please let me know if you have any questions, I will try my best to respond in time.
Regards,
Abhijit Das
Please find the link here:
https://answers.sap.com/questions/13781195/hybris-2211-upgradation-error.html?childToView=13818282
What’s the right way to add a third-party dependency to the build file?
I’m trying to build a standalone IDE for a language that uses grammarcells as dependency, but I get an error saying that the dependency cannot be found during the build process.
cannot find used language in dependencies: com.mbeddr.mpsutil.grammarcells
The error only occurs for the Build Solution, in the language solution, I can use grammarcells without issues.
Grammarcells is loaded into my IDE
It is also in my Solution for the Standalone IDE
And model
However I get the same error every time I try to build the project
Any idea how to solve this problem?
To solve the problem, I did the following two steps:
First, I added de.itemis.mps.grammarcells.build to your build model.
Second, I added de.itemis.mps.extensions to the list of dependencies in my build script
Finally, Re-Build :)
Thanks to #arimer from the MPS slack channel for helping me to solve the problem.
I'm getting the following error compiling a program using a 3rd party library:
Error:(xx) No resource identifier found for attribute 'tint' in package 'com.example.mycompany.myapp'
The line xx is inside the xml layout that includes a custom component defined in the library.
cntrlco:tint="42"
The xml namespace documentation says I need the following:
xmlns:cntrlco="http://schemas.android.com/apk/res-auto"
Here's my best guess as to the problem, but if you think otherwise please let me know, this is a guess.
I suspect I don't have the library installed completely. The reason is that the library instructions want the library installed from maven. I'm not up on this technique, but it appears to be a web based auto install that automates dependency installs while performing the primary install. Nice idea, but I can't install using the web (long story), so I included the .aar file locally.
From my research, installing .aar files locally won't look at its dependencies. If this is true and the "tint" property is defined in a dependency, then this would explain the error I'm seeing.
Is there a way to follow the error chain in more detail so I can verify my theory? Along the way, will this help me find the name of the possible missing dependencies so I can see if including them fixes the problem.
This is a very strange error that took a while to find out what was going on. We have multiple jenkins linux slaves that were building a library. When the library was tested from one slave all was well. When it was tested with the other it got a runtime error with where it was trying to call a method signature that was non-existent. After lots of testing, I was able to determine that the order in which the class files were added to the jar determined if the tests would work or not. Does anyone know where to begin trying to remedy this? Is this a bug in groovy classloading? java classloading? Any ideas are appreciated.
I took the approach that the error state was in fact the correct state and started looking at the application config in detail (I'm on build team, so I was not familiar with this app) and found a bad spring configuration object. The issue dealt with order in which classes were processed by annotation scanner. If one class was processed first it would give a bad config which gave a bad app state which caused the error. The other build servers were building the jar with the bad class later in the config which caused a different state to be loaded which essentially ignored the bad file. This is why order in which classes were added to the jar mattered. I was able to correct the bad config and solve the error permanently.
I want to use scala object in node js as one of the modules. After some investigation, I found this npm plugin called scala-node (not sure if this will work).
But I don't know how to use it. It would be helpful if I get few examples if someone has used it to understand the functioning of this plugin.
How much do you want this library?
scala-node is for node interop with scala.js, which is another "compile to js" project, this time using scala. If you manage to compile this scala library with scala.js (may be a headache, depending on its dependencies). You might then need scala-node to modularize the compile scala.js? Not sure.
Probably be easier to have an application in scala that your node.js application communicates with. What library are you wanting to take advantage of?