BeanDefinitionStoreException with Play framework - spring

I get this exception when trying to get to first page of my website.
Oops: BeanDefinitionStoreException
An unexpected error occured caused by exception BeanDefinitionStoreException: I/O failure during classpath scanning; nested exception is java.io.FileNotFoundException: /Users/mmm/Documents/work/workspace/BCR/precompiled/java/app/config/AppConfig$WebserviceMode.class (No such file or directory)
play.exceptions.UnexpectedException: Unexpected Error
at play.Play.start(Play.java:545)
I'm using Spring 1.0.2 and Play 1.2.4
Can you please help me on this? I searched the internet but couldn't get a clear response!

I think that you are hitting this issue : https://github.com/pepite/Play--framework-Spring-module/pull/9
Try play compile before starting your app.

I fixed the problem by removing an extra attribute 'xsi' in my application-context.xml on

Related

puppeteer-sharp Failed to launch Base

I have implemented it in my local and works well. But when I moved the changes to the window server it's giving the below error
Failed to launch Base! [0402/075840.212:ERROR:os_crypt_win.cc(70)] Failed to encrypt: The system cannot find the file specified. (0x2)\r\n[0402/075840.212:FATAL:headless_browser_main_parts.cc(103)] Check failed: OSCrypt::Init(local_state_.get()). \r\nBacktrace:\r\n\tIsSandboxedProcess [0x00007FFC31341842+705042]\r\n\tIsSandboxedProcess [0x00007FFC312C39A2+189298]\r\n\tIsSandboxedProcess [0x00007FFC312D2AF8+251080]\r\n\tIsSandboxedProcess [0x00007FFC312D39E0+254896]\r\n\tRelaunchChromeBrowserWithNewCommandLineIfNeeded [0x00007FFC32B12123+12980755]\r\n\tRelaunchChromeBrowserWithNewCommandLineIfNeeded [0x00007FFC32B11E8D+12980093]\r\n\tovly_debug_event [0x00007FFC2F905929+16331561]\r\n\tovly_debug_event [0x00007FFC2FCC5B17+20264215]\r\n\tovly_debug_event [0x00007FFC2F904675+16326773]\r\n\tovly_debug_event [0x00007FFC2F9073BE+16338366]\r\n\tIsSandboxedProcess [0x00007FFC31DB7DB7+11675527]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC3125A837+8179991]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC3125B5AD+8183437]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC3125B20C+8182508]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC3125A1BD+8178333]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC3125A53A+8179226]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC31294D1A+8418810]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC31294BDC+8418492]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC312949E7+8417991]\r\n\tChromeMain [0x00007FFC2E971238+408]\r\n\tOrdinal0 [0x00007FF6E8CF26B8+9912]\r\n\tOrdinal0 [0x00007FF6E8CF1A41+6721]\r\n\tGetHandleVerifier [0x00007FF6E8E3AF42+904642]\r\n\tBaseThreadInitThunk [0x00007FFC68F113F2+34]\r\n\tRtlUserThreadStart [0x00007FFC6AB054F4+52]\r\n\r\n
Can anyone please advise what should be the fix for the above error message?
We had the same error with default browser:
Failed to launch browser! [0428/113352.960:ERROR:os_crypt_win.cc(70)] Failed to encrypt
As #hardkoded suggested, using the revision 851527 we could launch the browser. Thank you!

first steps using Spring

tried to follow the Spring Boot Getting Started.
I used STS-4 IDE with Import Spring Getting Started Content, getting the project gs-consuming-rest-complete.
mvn test failed with a big stack dump followed by the lines
... <<< FAILURE! - in com.example.consumingrest.ConsumingRestApplicationTest
[ERROR] contextLoads Time elapsed: 0.113 s <<< ERROR!
java.lang.IllegalStateException: Failed to load ApplicationContext
Caused by: java.lang.IllegalStateException: Failed to execute CommandLineRunner
Caused by: org.springframework.web.client.HttpClientErrorException$NotFound:
404 Not Found: [404 Not Found: Requested route ('gturnquist-quoters.cfapps.io') does not exist.
]
To me it looks like the URL https://gturnquist-quoters.cfapps.io/api/random is not up. Hence, I cannot use that example. Am I right here or did I do some beginners failure?
here I have put the full console output.
To me it looks like the URL https://gturnquist-quoters.cfapps.io/api/random is not up
Yes you are right, the URL is returning 404.
As per article's discuss comment section it's confirmed that there are some issues with this website.

XCode upload issue with iTMSTransporter

I'm trying to upload my archive to iTunesConnect through xCode but I keep getting this error and I can't find information anywhere about how to resolve it:
App Store Connect Operation Error
An error occurred while trying to start the iTMSTransporter
I'm not even sure what iTMSTransporter is or why it stopped working. Screenshot of the error message.
Also is there a way for me more detailed logs about the failure somewhere or more generally when xCode fails to upload an archive?
Thanks in advance.
Update: I managed to retrieve the logs and seems like Transporter is crashing due to a stack overflow, is there a way of preventing this?
[...]
[2020-01-15 15:40:01 GMT] <main> ERROR: An error occurred while trying to start the iTMSTransporter
java.lang.StackOverflowError
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.spi.DefaultProxySelector.select(DefaultProxySelector.java:207)
at org.apache.http.impl.conn.SystemDefaultRoutePlanner.determineProxy(SystemDefaultRoutePlanner.java:94)
at com.apple.transporter.core.impl.DataCenterRoutePlanner.determineRoute(DataCenterRoutePlanner.java:50)
at org.apache.http.impl.client.InternalHttpClient.determineRoute(InternalHttpClient.java:125)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at com.apple.transporter.JSONService.invoke(JSONService.java:385)
at com.apple.transporter.WebService.invokeStandard(WebService.java:1244)
at com.apple.transporter.WebService.invokeStandard(WebService.java:1203)
at com.apple.transporter.WebService.invokeStandard(WebService.java:1167)
at com.apple.transporter.WebService.invokeStandard(WebService.java:1163)
at com.apple.transporter.WebService.keepSessionAlive(WebService.java:1798)
at com.apple.transporter.WebService.preProcessResult(WebService.java:1750)
at com.apple.transporter.JSONService.invoke(JSONService.java:393)
at com.apple.transporter.WebService.invokeStandard(WebService.java:1244)
at com.apple.transporter.WebService.invokeStandard(WebService.java:1203)
at
[...]

Maven release plugin throwing Hostname Not found exception?

I am trying to release a project in jenkins and getting a host not found exception.
Caused by: java.lang.RuntimeException: java.net.UnknownHostException: XXXXXXXXXXXXXXX: nodename nor servname provided, or not known
at org.apache.maven.scm.provider.perforce.PerforceScmProvider.generateDefaultClientspecName(PerforceScmProvider.java:420)
at org.apache.maven.scm.provider.perforce.PerforceScmProvider.getClientspecName(PerforceScmProvider.java:395)
at org.apache.maven.scm.provider.perforce.command.checkout.PerforceCheckOutCommand.executeCheckOutCommand(PerforceCheckOutCommand.java:75)
at org.apache.maven.scm.command.checkout.AbstractCheckOutCommand.executeCommand(AbstractCheckOutCommand.java:82)
at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:59)
Reading through the source it looks like the exception is thrown on this line:
InetAddress.getLocalHost().getHostName();
Since I don't control the source for the release plugin other than changeing the code is there some way to work around this issue?
I found out the work around. on command line run the command
hostname <your-ip or actual-hostname>

Compilation failed with java.lang.StackOverflowError

Probably due to the following bug - https://play.lighthouseapp.com/projects/82401/tickets/613-stack-overflow-exception-while-trying-to-compile Play 2 project failed to compile when route file becomes larger.
There is the workaround to increase default thread stack size. But this does not work on Heroku. I do not know is it possible to inrease stack size used on Heroku to something that is more than 512k, change of JAVA_OPTS and SBT_OPTS to -Xss2m does not help.
Compilation failed with exception java.lang.StackOverflowError.
Maybe anyone can suggest a workaround to resolve this issue?
Ok. The solution is found.
Stack size should be changed not in config params but in buildpack instead.
To anyone having the same exception on Heroku: just fork buildpack and change line 95 adding +Xss2m to it

Resources