Spring boot upgrade 2.x throwing Security handshare error - java

We are trying to upgrade one of our application from spring boot 1.5 to spring boot 2.3 (tried 2.6 also). We have made the necessary changes in pom and application.yml. This works fine in local . but, we we are trying to deploy this to dev/stage then deployment is failing( we are using concourse pipeline to deploy). To make sure we tried deploying the previous package(spring boot 1.5) it works fine. we are not seeing any error in our output logs other than the below one. we are just seeing the below error repeatedly and deployment fails. Any help would be highly appreciated. Just to highlight we are using Java 11. Thank you.
Error in output logs:
E0422 19:09:35.020452 4210 throttler_api.cc:71] GRPC: src/core/lib/security/transport/handshake.c:128 Security han
dshake failed: {"created":"#1650654575.020440344","description":"Handshake failed","file":"src/core/lib/security/tr
ansport/handshake.c","file_line":264,"tsi_code":10,"tsi_error":"TSI_PROTOCOL_FAILURE"}
E0422 19:11:35.020635 4210 throttler_api.cc:71] GRPC: src/core/lib/tsi/ssl_transport_security.c:945 Handshake fail
ed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify faile
d.

Related

java.lang.AbstractMethodError: org.springframework.boot.env.EnvironmentPostProcessorApplicationListener error

My Spring moot application was working fine from my local. But all of a sudden I am getting the below error when I start my tomcat server from STS. I am clueless why am getting this error.
The error details,
Exception in thread "main" java.lang.AbstractMethodError:
org.springframework.boot.env.EnvironmentPostProcessorApplicationListener.supportsSourceType(Ljava/lang/Class;)Z
at org.springframework.context.event.GenericApplicationListenerAdapter.supportsSourceType(GenericApplicationListenerAdapter.java)
org.springframework.context.event.GenericApplicationEventMulticaster.supportsEvent(AbstractApplicationEventMultiCaster.java)
org.springframework.context.event.GenericApplicationEventMulticaster.retrieveApplicationListeneres(AbstractApplicationEventMultiCaster.java)
....
at java.util.ArrayList.forEach(ArrayList.java:1257)
....
at org.springframework.boot.SpringApplication.prepareEnvironment(SpringAppliccation.java 362)
at org.Springframework.boot.ApringApplication.run(SpringApplication.java:320)
at org.Springframework.boot.ApringApplication.run(SpringApplication.java:1309)
at org.Springframework.boot.ApringApplication.run(SpringApplication.java:1298)
at com.test.Application.main(Application.java)
Am using java 8 and it is a Spring Boot project of version 2.4.2. I even tried to delete all my jars from the .m2 folder and installed them again. But the same issue, am facing.
Please help me to get a solution for this issue.

DependencyException: Failed to find provider with satisfied dependency set for interface org.ehcache.core.spi.store.Store

I have an app that uses EHCache, it worked when using Payara Application server version 1.0.5 but after upgrading to 1.1.0 it started breaking.
Here's a snippet of the code:
persistentEntityStoreCacheManager
= CacheManagerBuilder.newCacheManagerBuilder().withCache("defaultPersistentEntityStoreCache",
CacheConfigurationBuilder.newCacheConfigurationBuilder(String.class, PersistentEntityStore.class, ResourcePoolsBuilder.heap(100)).build()).build(true);
And it is throwing this error:
java.lang.IllegalStateException: org.ehcache.core.spi.ServiceLocator$DependencyException: Failed to find provider with satisfied dependency set for interface org.ehcache.core.spi.store.Store$Provider [ca
ndidates []]
at org.ehcache.core.spi.ServiceLocator$DependencySet.build(ServiceLocator.java:350)
at org.ehcache.core.EhcacheManager.resolveServices(EhcacheManager.java:154)
at org.ehcache.core.EhcacheManager.<init>(EhcacheManager.java:125)
at org.ehcache.core.EhcacheManager.<init>(EhcacheManager.java:115)
at org.ehcache.core.EhcacheManager.<init>(EhcacheManager.java:111)
at org.ehcache.config.builders.CacheManagerBuilder.newCacheManager(CacheManagerBuilder.java:117)
at org.ehcache.config.builders.CacheManagerBuilder.build(CacheManagerBuilder.java:73)
What's this EHCache and and what could be missing here?
In my case, there are multiple EhCache imported by different modules.After useing the same version of EhCache. The problem solved.

Java web service client giving JaxWsClientProxy.invoke error

I am working on a Java web service client development . I am using STS tool and Maven apache cxf plugin , Java 1.8. While executing it , I am getting following error for JaxWsClientProxy:
javax.xml.ws.soap.SOAPFaultException: Response message did not contain proper response data.
Expected: {<targetNameSpace>}ServerResponseMessage
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:161)
at com.sun.proxy.$Proxy40.createdEndDeviceControls(Unknown Source)
In my pom.xml I have only added the cxf-spring-boot-starter-jaxws for version 3.2.4 dependency.
Can someone please let me know what is the reason for this error . The method createdEndDeviceControls exists in the corresponding Port
Please Help .
Best Regards,
Sudeshna Bhattacharya

Deploy war to JBOSS

I tried to deploy a Vaadin hello world application in JBOSS. The application is as simple as it can be.
My development environment is eclipse for java EE + tomcat
java.lang.RuntimeException: Error configuring property: includeWebInfInClasspath for WarClassLoaderDeployer
at org.jboss.kernel.plugins.dependency.ConfigureAction.dispatchSetProperty(ConfigureAction.java:112)
at org.jboss.kernel.plugins.dependency.ConfigureAction.setAttributes(ConfigureAction.java:85)
(...)
Caused by: java.lang.IllegalArgumentException: No such property includeWebInfInClasspath for bean org.jboss.web.tomcat.service.deployers.WarClassLoaderDeployer available [java2ClassLoadingCompliance, parentFirst, requiredInputs, filteredPackages, allInputs, deploymentRegistry, class, stage, wantComponents, componentsOnly, input, inputs, relativeOrder, output, useUnitName, outputs, topLevelOnly]
I have tried to google this error with no success.
Does anyone have any clues?
Is it a web server configuration or my *.war is missing something?
EDIT:
This error occur when I start the server after placing my *.war in the folder.
My JBOSS version is 5
I guess, you're using an old JBoss 5.
The WarClassLoaderDeployer is configured in the file server/default/deployers/jbossweb.deployer/META-INF/war-deployers-jboss-beans.xml. (The 'default' directory should be changed to whatever you passed as -c parameter) Open the file, find the WarClassLoaderDeployer bean and drop the line defining the property with name includeWebInfInClasspath.

Could not load any resource bundle by com.sun.org.apache.xerces.internal.impl.msg.XMLSchemaMessages

I have a web application and using jenkins for build and deployment to glassfish 3+ server. But now I am facing a problem. The jenkins is building the application successfully but when it tries to deploy the application to the target server then it failed with following error
Deploying /var/lib/jenkins/workspace/Gordon Converter Dev/target/gordons-dev-deployment.war to container GlassFish 3.x Remote
ERROR: Publisher hudson.plugins.deploy.DeployPublisher aborted due to exception
org.codehaus.cargo.util.CargoException: Deployment has failed: Action failed Deploying application to target server failed; Error occurred during deployment: Exception while deploying the app [gordons-dev-deployment] : Could not load any resource bundle by com.sun.org.apache.xerces.internal.impl.msg.XMLSchemaMessages. Please see server.log for more details.
at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.waitForProgressObject(AbstractJsr88Deployer.java:220)
at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.deploy(AbstractJsr88Deployer.java:76)
at org.codehaus.cargo.container.spi.deployer.AbstractJsr88Deployer.redeploy(AbstractJsr88Deployer.java:142)
at hudson.plugins.deploy.CargoContainerAdapter.deploy(CargoContainerAdapter.java:64)
at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:90)
at hudson.plugins.deploy.CargoContainerAdapter$1.invoke(CargoContainerAdapter.java:77)
at hudson.FilePath.act(FilePath.java:920)
at hudson.FilePath.act(FilePath.java:893)
at hudson.plugins.deploy.CargoContainerAdapter.redeploy(CargoContainerAdapter.java:77)
at hudson.plugins.deploy.DeployPublisher.perform(DeployPublisher.java:47)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:756)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1040)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:669)
at hudson.model.Run.execute(Run.java:1735)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:234)
Finished: FAILURE
I just got this error too and I noticed that Java had auto updated itself to the latest version. So I was compiling the application with Java 1.7.0_131, but Glassfish3 was still running under Java 1.7.0_121. My solution was to restart Glassfish so that it was running under the new version of Java 1.7.0_131. I guess I could have also downgraded my Java back to 1.7.0_121 and compiled my application with that... Bottom line here is to make sure that you are compiling with the same version of Java that Glassfish is running.

Categories