#fieldNameConstant in lombok and compile time error on its usage in #schema of Spring doc - spring

I am using lombok 1.18.24 and have used #FieldNameConstants for using it in Spring-Documentatoin of APIs. It was working fine but sometimes gets compiler errors
'''
error: cannot find symbol
"Mandatory conditional when '" + ASC_RealTimeRevocationUpdateDTO.Fields.useRpHaSettings + "' is 'true'.Empty or null would cause errors:" +
^
symbol: variable Fields
location: class ASC_RealTimeRevocationUpdateDTO
'''
Unable to track why it happens sometimes but often works fine

Related

Integrating Cypress with cucumber is failing

I created a simple Cypress project to automate a website and it was working. Now I am trying to convert it into a cucumber Project and when executing the test cases, I am getting below error:
Running: Features/shopping.feature (1 of 1)
[BABEL] Note: The code generator has deoptimised the styling of C:\Users\001ZGA744\Personal\Cypress\Cucumber\node_modules\lodash\lodash.js as it exceeds the max of 500KB.
1) An uncaught error was detected outside of a test
0 passing (941ms)
1 failing
1) An uncaught error was detected outside of a test:
TypeError: The following error originated from your test code, not from Cypress.
> (0 , _typeof4.default) is not a function
When Cypress detects uncaught errors originating from your test code it will automatically fail the current test.
Cypress could not associate this error to any specific test.
We dynamically generated a new test to display this failure.
at _typeof2 (http://localhost:60964/__cypress/tests?p=cypress\integration\Features\shopping.feature:303:63)
at _typeof (http://localhost:60964/__cypress/tests?p=cypress\integration\Features\shopping.feature:317:39)
at eval (http://localhost:60964/__cypress/tests?p=cypress\integration\Features\shopping.feature:23486:2332)
at Object.eval (http://localhost:60964/__cypress/tests?p=cypress\integration\Features\shopping.feature:32935:14)
at Object.eval (http://localhost:60964/__cypress/tests?p=cypress\integration\Features\shopping.feature:32937:4)
at Object.254.C:\Users\001ZGA744\Personal\Cypress\Cucumber\node_modules\#babel\runtime/helpers/interopRequireDefault (http://localhost:60964/__cypress/tests?p=cypress\integration\Features\shopping.feature:32937:17)
at o (http://localhost:60964/__cypress/tests?p=cypress\integration\Features\shopping.feature:1:265)
at eval (http://localhost:60964/__cypress/tests?p=cypress\integration\Features\shopping.feature:1:316)
at Object.169.babel-runtime/helpers/classCallCheck (http://localhost:60964/__cypress/tests?p=cypress\integration\Features\shopping.feature:9432:15)
at o (http://localhost:60964/__cypress/tests?p=cypress\integration\Features\shopping.feature:1:265)
This is how my Project Structure looks like:
I am unable to understand the reason of the issue.
Please suggest.
Please remember you need a stepDefinitions folder at least. And then, in the package.json file you should declare the Cypress Cucumber Preprocessor Style pattern.
Something like this:
"cypress-cucumber-preprocessor": {
"nonGlobalStepDefinitions": true
}
Or:
"cypress-cucumber-preprocessor": {
"commonPath": "common",
"stepDefinitions": "step_definitions"
}
Depending on what you choose.

App initialization error in neo4j desktop

I installed neo4j desktop on my windows laptop. It works fine for a few days but the app does not launch after that. I tried reinstalling it a lot of times and the same thing happens - Works fine for a few days and then does not launch.
I see this error message in the neo4j logs everytime this error happens-
App initialization error: SyntaxError: Malformed JSON in file: C:\Users\Indra_K\.Neo4jDesktop\persist\projects.json
Unexpected token < in JSON at position 0 {
constructor: 'SyntaxError',
stack: 'SyntaxError: Malformed JSON in file: C:\\Users\\Indra_K\\.Neo4jDesktop\\persist\\projects.json\n' +
'Unexpected token < in JSON at position 0\n' +
' at FileAsync.parse [as deserialize] (<anonymous>)\n' +
' at C:\\Program Files\\Neo4j Desktop\\resources\\app.asar\\node_modules\\lowdb\\adapters\\FileAsync.js:41:35\n' +
' at async C:\\Program Files\\Neo4j Desktop\\resources\\app.asar\\dist\\main.prod.js:1:177229\n' +
' at async C:\\Program Files\\Neo4j Desktop\\resources\\app.asar\\dist\\main.prod.js:1:223470'
Any help would be really appreciated. Thanks.
Uninstall Neo4jDesktop then remove these folders: C:\Program Files\Neo4j Desktopm and C:\Users\Indra_K.Neo4jDesktop then re-install Neo4jDesktop. It works for me before.

Single quote in double quote test name of Spock test leads to 'unexpected token', BUT only when run with gradle and as isolated test

I just installed intellij and downloaded the geb-example-grade (https://github.com/geb/geb-example-gradle). In Intellij settings I configured under gradle/runner: Run test using: Let me choose per test. Then I ran the test "can get to the current Book of Geb" with gradle and it worked fine also running the GebishOrgSpec class worked fine. Then I added a single quote to the methodname of the test, i.e. "can ' get to the current Book of Geb". Running the GebishOrgSpec class (containing that test) with gradle still works fine. But when I run the test with gradle (i.e. after Alt-Shift-F10 in the run menu I choose "GebishOrgSpec.can ' get to the current Book of Geb" instaead of "GebishOrgSpec") i get the following error:
FAILURE: Build failed with an exception.
* Where:
Initialization script '/tmp/ijtestinit3.gradle' line: 6
* What went wrong:
Could not compile initialization script '/tmp/ijtestinit3.gradle'.
> startup failed:
initialization script '/tmp/ijtestinit3.gradle': 6: unexpected token: get # line 6, column 49.
ludes = ['GebishOrgSpec.can ' get to the
^
1 error
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 0s
Cause: startup failed:
initialization script '/tmp/ijtestinit3.gradle': 6: unexpected token: get # line 6, column 49.
ludes = ['GebishOrgSpec.can ' get to the
^
1 error
I also tried run running the test with Junit (after setting the driver path) that also works fine. For me it makes absolutely no sense that the very same test works when running the class but not when running the method of the class. Here just to be complete also the class code:
import geb.spock.GebSpec
class GebishOrgSpec extends GebSpec {
def "can ' get to the current Book of Geb"() {
when:
to GebishOrgHomePage
and:
manualsMenu.open()
then:
manualsMenu.links[0].text().startsWith("current")
when:
manualsMenu.links[0].click()
then:
at TheBookOfGebPage
}
}
Update: I had this behaviour on two different computers, but i would appreciate if others also test this. It should be fairly easy to reproduce (if there are questions on the description above, let me know.) Maybe u won't have the error and i have some bad configurations or u can confirm this bug and we raise the attention for it.

a required argument is missing: /key:[Sonarqube project key]

I am trying to run sonarqube analysis but I am getting the error
"a required argument is missing: /key:[Sonarqube project key]"
C:\Sonarqube\sonarqube-6.7\sonarqube-6.7\bin\sonar-scanner-msbuild-4.0.2.892\SonarQube.Scanner.MSBuild.exe begin /key: {projectkey} /name:{projectname} /version:{1.0}
I have used the following url
I have tried using the "" in Key and Name but still get the same error
can anyone suggest how to do this?
There's a typo in the command line: the space between /key: and {projectkey}. This is what produces this error message.

Can Java Logger do this: logger.fine("foo = " + bar)?

I am trying to debug the value of an object in EJB
If I do logger.fine("foo"), then I can see foo, but if I do logger.fine("foo = " + bar) then i cant see anything. So how do I debug in EJB? I am using netbean 6.8 btw
Are you sure bar.toString() is not throwing some runtime exception? Otherwise it should work.
Try a try...catch block around it to be sure.

Resources