Good day, you try to open a file testplan get the error "Empty TestPlan - see log file"
jmeter.log
2014/08/21 11:11:05 INFO - jmeter.gui.action.Load: Loading file: C:\Users\kislov\Desktop\apache-jmeter-2.11\apache-jmeter-2.11\bin\examples\ProposalRequest_atom1.jmx
2014/08/21 11:11:05 INFO - jmeter.services.FileServer: Set new base='C:\Users\kislov\Desktop\apache-jmeter-2.11\apache-jmeter-2.11\bin\examples'
2014/08/21 11:11:05 ERROR - jmeter.save.SaveService: Conversion error com.thoughtworks.xstream.converters.ConversionException: -1 : -1
---- Debugging information ----
message : -1
cause-exception : java.lang.ArrayIndexOutOfBoundsException
cause-message : -1
class : org.apache.jmeter.testelement.property.FloatProperty
required-type : org.apache.jmeter.testelement.property.FloatProperty
converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree[9]/hashTree[2]/ThroughputController/FloatProperty/name
line number : 948
class[1] : org.apache.jmeter.control.ThroughputController
converter-type[1] : org.apache.jmeter.save.converters.TestElementConverter
class[2] : org.apache.jorphan.collections.ListedHashTree
converter-type[2] : org.apache.jmeter.save.converters.HashTreeConverter
------------------------------- : -1 : -1
---- Debugging information ----
message : -1
cause-exception : java.lang.ArrayIndexOutOfBoundsException
cause-message : -1
class : org.apache.jmeter.testelement.property.FloatProperty
required-type : org.apache.jmeter.testelement.property.FloatProperty
converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree[9]/hashTree[2]/ThroughputController/FloatProperty/name
line number : 948
class[1] : org.apache.jmeter.control.ThroughputController
converter-type[1] : org.apache.jmeter.save.converters.TestElementConverter
class[2] : org.apache.jorphan.collections.ListedHashTree
converter-type[2] : org.apache.jmeter.save.converters.HashTreeConverter
-------------------------------
message : -1 : -1
---- Debugging information ----
message : -1
cause-exception : java.lang.ArrayIndexOutOfBoundsException
cause-message : -1
class : org.apache.jmeter.testelement.property.FloatProperty
required-type : org.apache.jmeter.testelement.property.FloatProperty
converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree[9]/hashTree[2]/ThroughputController/FloatProperty/name
line number : 948
class[1] : org.apache.jmeter.control.ThroughputController
converter-type[1] : org.apache.jmeter.save.converters.TestElementConverter
class[2] : org.apache.jorphan.collections.ListedHashTree
converter-type[2] : org.apache.jmeter.save.converters.HashTreeConverter
-------------------------------
cause-exception : com.thoughtworks.xstream.converters.ConversionException
cause-message : -1 : -1
first-jmeter-class : org.apache.jmeter.save.converters.TestElementConverter.unmarshal(TestElementConverter.java:107)
class : org.apache.jmeter.save.ScriptWrapper
required-type : org.apache.jmeter.testelement.property.FloatProperty
converter-type : org.apache.jmeter.save.ScriptWrapperConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree[9]/hashTree[2]/ThroughputController/FloatProperty/name
line number : 948
version : 2.11 r1554548
-------------------------------
2014/08/21 11:11:05 WARN - jmeter.gui.action.Load: Unexpected error org.apache.jmeter.exceptions.IllegalUserActionException: Empty TestPlan - see log file
at org.apache.jmeter.gui.action.Load.insertLoadedTree(Load.java:174)
at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:136)
at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:105)
at org.apache.jmeter.gui.action.Load.doAction(Load.java:92)
at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:81)
at org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:40)
at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:63)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$400(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
2014/08/21 11:11:51 INFO - jmeter.gui.action.Load: Loading file: C:\Users\kislov\Desktop\apache-jmeter-2.11\apache-jmeter-2.11\bin\examples\ProposalRequest_atom1.jmx
2014/08/21 11:11:51 INFO - jmeter.services.FileServer: Set new base='C:\Users\kislov\Desktop\apache-jmeter-2.11\apache-jmeter-2.11\bin\examples'
2014/08/21 11:11:51 ERROR - jmeter.save.SaveService: Conversion error com.thoughtworks.xstream.converters.ConversionException: -1 : -1
---- Debugging information ----
message : -1
cause-exception : java.lang.ArrayIndexOutOfBoundsException
cause-message : -1
class : org.apache.jmeter.testelement.property.FloatProperty
required-type : org.apache.jmeter.testelement.property.FloatProperty
converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree[9]/hashTree[2]/ThroughputController/FloatProperty/name
line number : 948
class[1] : org.apache.jmeter.control.ThroughputController
converter-type[1] : org.apache.jmeter.save.converters.TestElementConverter
class[2] : org.apache.jorphan.collections.ListedHashTree
converter-type[2] : org.apache.jmeter.save.converters.HashTreeConverter
------------------------------- : -1 : -1
---- Debugging information ----
message : -1
cause-exception : java.lang.ArrayIndexOutOfBoundsException
cause-message : -1
class : org.apache.jmeter.testelement.property.FloatProperty
required-type : org.apache.jmeter.testelement.property.FloatProperty
converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree[9]/hashTree[2]/ThroughputController/FloatProperty/name
line number : 948
class[1] : org.apache.jmeter.control.ThroughputController
converter-type[1] : org.apache.jmeter.save.converters.TestElementConverter
class[2] : org.apache.jorphan.collections.ListedHashTree
converter-type[2] : org.apache.jmeter.save.converters.HashTreeConverter
-------------------------------
message : -1 : -1
---- Debugging information ----
message : -1
cause-exception : java.lang.ArrayIndexOutOfBoundsException
cause-message : -1
class : org.apache.jmeter.testelement.property.FloatProperty
required-type : org.apache.jmeter.testelement.property.FloatProperty
converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree[9]/hashTree[2]/ThroughputController/FloatProperty/name
line number : 948
class[1] : org.apache.jmeter.control.ThroughputController
converter-type[1] : org.apache.jmeter.save.converters.TestElementConverter
class[2] : org.apache.jorphan.collections.ListedHashTree
converter-type[2] : org.apache.jmeter.save.converters.HashTreeConverter
-------------------------------
cause-exception : com.thoughtworks.xstream.converters.ConversionException
cause-message : -1 : -1
first-jmeter-class : org.apache.jmeter.save.converters.TestElementConverter.unmarshal(TestElementConverter.java:107)
class : org.apache.jmeter.save.ScriptWrapper
required-type : org.apache.jmeter.testelement.property.FloatProperty
converter-type : org.apache.jmeter.save.ScriptWrapperConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree[9]/hashTree[2]/ThroughputController/FloatProperty/name
line number : 948
version : 2.11 r1554548
-------------------------------
2014/08/21 11:11:51 WARN - jmeter.gui.action.Load: Unexpected error org.apache.jmeter.exceptions.IllegalUserActionException: Empty TestPlan - see log file
at org.apache.jmeter.gui.action.Load.insertLoadedTree(Load.java:174)
at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:136)
at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:105)
at org.apache.jmeter.gui.action.Load.doAction(Load.java:92)
at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:81)
at org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:40)
at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:63)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$400(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
2014/08/21 11:20:32 INFO - jmeter.gui.action.Load: Loading file: C:\Users\kislov\Desktop\apache-jmeter-2.11\apache-jmeter-2.11\bin\examples\ProposalRequest_atom1.jmx
2014/08/21 11:20:32 INFO - jmeter.services.FileServer: Set new base='C:\Users\kislov\Desktop\apache-jmeter-2.11\apache-jmeter-2.11\bin\examples'
2014/08/21 11:20:32 ERROR - jmeter.save.SaveService: Conversion error com.thoughtworks.xstream.converters.ConversionException: -1 : -1
---- Debugging information ----
message : -1
cause-exception : java.lang.ArrayIndexOutOfBoundsException
cause-message : -1
class : org.apache.jmeter.testelement.property.FloatProperty
required-type : org.apache.jmeter.testelement.property.FloatProperty
converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree[9]/hashTree[2]/ThroughputController/FloatProperty/name
line number : 948
class[1] : org.apache.jmeter.control.ThroughputController
converter-type[1] : org.apache.jmeter.save.converters.TestElementConverter
class[2] : org.apache.jorphan.collections.ListedHashTree
converter-type[2] : org.apache.jmeter.save.converters.HashTreeConverter
------------------------------- : -1 : -1
---- Debugging information ----
message : -1
cause-exception : java.lang.ArrayIndexOutOfBoundsException
cause-message : -1
class : org.apache.jmeter.testelement.property.FloatProperty
required-type : org.apache.jmeter.testelement.property.FloatProperty
converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree[9]/hashTree[2]/ThroughputController/FloatProperty/name
line number : 948
class[1] : org.apache.jmeter.control.ThroughputController
converter-type[1] : org.apache.jmeter.save.converters.TestElementConverter
class[2] : org.apache.jorphan.collections.ListedHashTree
converter-type[2] : org.apache.jmeter.save.converters.HashTreeConverter
-------------------------------
message : -1 : -1
---- Debugging information ----
message : -1
cause-exception : java.lang.ArrayIndexOutOfBoundsException
cause-message : -1
class : org.apache.jmeter.testelement.property.FloatProperty
required-type : org.apache.jmeter.testelement.property.FloatProperty
converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree[9]/hashTree[2]/ThroughputController/FloatProperty/name
line number : 948
class[1] : org.apache.jmeter.control.ThroughputController
converter-type[1] : org.apache.jmeter.save.converters.TestElementConverter
class[2] : org.apache.jorphan.collections.ListedHashTree
converter-type[2] : org.apache.jmeter.save.converters.HashTreeConverter
-------------------------------
cause-exception : com.thoughtworks.xstream.converters.ConversionException
cause-message : -1 : -1
first-jmeter-class : org.apache.jmeter.save.converters.TestElementConverter.unmarshal(TestElementConverter.java:107)
class : org.apache.jmeter.save.ScriptWrapper
required-type : org.apache.jmeter.testelement.property.FloatProperty
converter-type : org.apache.jmeter.save.ScriptWrapperConverter
path : /jmeterTestPlan/hashTree/hashTree/hashTree[9]/hashTree[2]/ThroughputController/FloatProperty/name
line number : 948
version : 2.11 r1554548
-------------------------------
2014/08/21 11:20:32 WARN - jmeter.gui.action.Load: Unexpected error org.apache.jmeter.exceptions.IllegalUserActionException: Empty TestPlan - see log file
at org.apache.jmeter.gui.action.Load.insertLoadedTree(Load.java:174)
at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:136)
at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:105)
at org.apache.jmeter.gui.action.Load.doAction(Load.java:92)
at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:81)
at org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:40)
at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:63)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$400(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
As mentioned above, jMeter 2.11 is not compatible with Java 8. The easiest fix will be changing the java.exe path in jmeter.bat to Java 7 :
Change the below settings in jmeter.bat (apache-jmeter-2.11\bin)
if .%JM_LAUNCH% == . set JM_LAUNCH=java.exe
to
if .%JM_LAUNCH% == . set JM_LAUNCH="C:\Program Files\Java\jdk1.7.0_40\jre\bin\java.exe"
Check:
1/ You are not using it with java 8 ( it is not compatible, next version 2.12 will be). Run java -version in command line to see. Bug is the following:
https://issues.apache.org/bugzilla/show_bug.cgi?id=56080
2/ your test plan is not using third party plugins you need to add in lib/ext of jmeter
Related
trying to set up elastic exporter for a local stack :
https://github.com/prometheus-community/elasticsearch_exporter
I get a connection refused when running with a docker even when xpack security is disabled.
xpack.license.self_generated.type: basic
xpack.security.enabled: false
xpack.monitoring.collection.enabled: true
xpack.monitoring.exporters.my_local_exporter:
type: local
bootstrap.memory_lock: true
search.allow_expensive_queries: true
indices.memory.index_buffer_size: 30%
I use elastic 8.1.2 :
{
"name" : "0a166124ca20",
"cluster_name" : "docker-cluster",
"cluster_uuid" : "xxxxxxxxxxxxxxx",
"version" : {
"number" : "8.1.2",
"build_flavor" : "default",
"build_type" : "docker",
"build_hash" : "xxxxxxxxxxxxxxx",
"build_date" : "2022-03-29T21:18:59.991429448Z",
"build_snapshot" : false,
"lucene_version" : "9.0.0",
"minimum_wire_compatibility_version" : "7.17.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "You Know, for Search"
}
I get limited amount of metrics but missing the majoriy
for example --> elasticsearch_node_stats_up 0
here is my docker-compose:
elasticsearch_exporter:
image: quay.io/prometheuscommunity/elasticsearch-exporter:latest
command:
- '--es.uri=http://localhost:9200'
- '--es.ssl-skip-verify'
- '--es.all'
restart: always
environment:
- 'ES_API_KEY=Apikey xxxxxxxxxx'
ports:
- "9114:9114"
I have created a Google Merchant account which creates a project in Google Cloud Console. I deployed an application in google AppEngine using the service account created by the Merchant account to use the content api for shopping by specifying it in the app.yaml file. Although the same service account credentials are used in my local development setup is fine. I get the following error.
{
2022-05-01 17:42:07 default[20220501t230020] "code" : 403,
2022-05-01 17:42:07 default[20220501t230020] "errors" : [ {
2022-05-01 17:42:07 default[20220501t230020] "domain" : "global",
2022-05-01 17:42:07 default[20220501t230020] "message" : "Insufficient Permission",
2022-05-01 17:42:07 default[20220501t230020] "reason" : "insufficientPermissions"
2022-05-01 17:42:07 default[20220501t230020] } ],
2022-05-01 17:42:07 default[20220501t230020] "message" : "Request had insufficient authentication scopes.",
2022-05-01 17:42:07 default[20220501t230020] "status" : "PERMISSION_DENIED",
2022-05-01 17:42:07 default[20220501t230020] "details" : [ {
2022-05-01 17:42:07 default[20220501t230020] "#type" : "type.googleapis.com/google.rpc.ErrorInfo",
2022-05-01 17:42:07 default[20220501t230020] "reason" : "ACCESS_TOKEN_SCOPE_INSUFFICIENT",
2022-05-01 17:42:07 default[20220501t230020] "domain" : "googleapis.com",
2022-05-01 17:42:07 default[20220501t230020] "metadata" : {
2022-05-01 17:42:07 default[20220501t230020] "service" : "shoppingcontent.googleapis.com",
2022-05-01 17:42:07 default[20220501t230020] "method" : "ads.shopping.contentapi.proto.frontend.v2p1.ContentAccounts.Authinfo"
2022-05-01 17:42:07 default[20220501t230020] }
2022-05-01 17:42:07 default[20220501t230020] } ]
2022-05-01 17:42:07 default[20220501t230020] }
But the service account already has permissions defined to access the content api(since same service account credentials are used locally). I have given permission to access the cloud sql instance for the sam service account and it is working in both locally and in the cloud. I don't know what the issue is any help is appreciated??
I'm working on presto on spark. I have Elasticsearch as datasource. Im not able to run the queries using presto.
Elasticsearch.properties -
elasticsearch.ignore-publish-address=true
elasticsearch.default-schema-name=default
elasticsearch.host=localhost
connector.name=elasticsearch
elasticsearch.port=2900
docker-compose.yaml
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.6.1
container_name: elasticsearch
environment:
- xpack.security.enabled=false
- discovery.type=single-node
- network.host=0.0.0.0
ports:
- '9200:9200'
networks:
- pqp-net
networks:
pqp-net:
driver: bridge
I'm getting below error -
*c.f.p.e.client.ElasticsearchClient - Error refreshing nodes
com.facebook.presto.spi.PrestoException: Connection refused*
Well, Im able to fetch the details of Elasticsearch :
http://localhost:9200
{ "name" : "ab751e0dd0ad", "cluster_name" : "docker-cluster", "cluster_uuid" : "3T66bOexSGOo6Pwtt2Ul4Q", "version" : {
"number" : "7.6.1",
"build_flavor" : "default",
"build_type" : "docker",
"build_hash" : "aa751e09be0a5072e8570670309b1f12348f023b",
"build_date" : "2020-02-29T00:15:25.529771Z",
"build_snapshot" : false,
"lucene_version" : "8.4.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" }
If anyone faced same issue, please help.
Thanks in advance
Resolved: I had an issue with port number mentioned in my application. By changing the port ( some other port ) I was able to connect to Elasticsearch.
root project> 0% CONFIGURING [2s]assLoader
. ____ _ __ _ _ to the maintainers of org.gradle.internal.reflect.JavaMethod
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \able warnings of further illegal reflective access operations
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ll be denied in a future release
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.0.6.RELEASE)
2018-10-27 17:45:35.485 INFO 116 --- [ restartedMain] com.musicapp.api.ApiApplication : Starting ApiApplication on DESKTOP-FS4FN9F with PID 116 (C:\Users\User\Documents\BurchApp\api\build\classes\java\main started by User in C:\Users\User\Documents\BurchApp\api)
2018-10-27 17:45:35.485 INFO 116 --- [ restartedMain] com.musicapp.api.ApiApplication : No active profile set, falling back to default profiles: default
2018-10-27 17:45:35.597 INFO 116 --- [ restartedMain] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext#7b441fd0: startup date [Sat Oct 27 17:45:35 CEST 2018]; root of context hierarchy
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (file:/C:/Users/User/.gradle/caches/modules-2/files-2.1/org.springframework/spring-core/5.0.10.RELEASE/cb270a60ceb573961588f511222984de64b4bc96/spring-core-5.0.10.RELEASE.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2018-10-27 17:45:37.677 INFO 116 --- [ restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$57f070c] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-10-27 17:45:38.523 INFO 116 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8843 (http)
2018-10-27 17:45:38.562 INFO 116 --- [ restartedMain] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2018-10-27 17:45:38.563 INFO 116 --- [ restartedMain] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.34
2018-10-27 17:45:38.575 INFO 116 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\Program Files\Java\jdk-11.0.1\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\ProgramData\Anaconda3;C:\ProgramData\Anaconda3\Library\mingw-w64\bin;C:\ProgramData\Anaconda3\Library\usr\bin;C:\ProgramData\Anaconda3\Library\bin;C:\ProgramData\Anaconda3\Scripts;C:\Windows;C:\Windows\system32;%M2_HOME%\bin;C:\Program Files\Java\jdk-11.0.1\;C:\Program Files\Apache Software Founddation\apache-maven-3.5.4\bin;C:\Program Files\nodejs\;C:\Gradle\gradle-4.10.2\bin;C:\Users\User\AppData\Local\Programs\Python\Python37-32\Scripts\;C:\Users\User\AppData\Local\Programs\Python\Python37-32\;C:\Users\User\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Microsoft VS Code\bin;C:\Users\User\AppData\Local\GitHubDesktop\bin;C:\Users\User\AppData\Roaming\npm;C:\Program Files\Java\jdk-11.0.1\;;.]
2018-10-27 17:45:38.747 INFO 116 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2018-10-27 17:45:38.747 INFO 116 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 3169 ms
2018-10-27 17:45:38.855 INFO 116 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Servlet dispatcherServlet mapped to [/]
2018-10-27 17:45:38.855 INFO 116 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Servlet webServlet mapped to [/h2-console/*]
2018-10-27 17:45:38.861 INFO 116 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
2018-10-27 17:45:38.862 INFO 116 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2018-10-27 17:45:38.862 INFO 116 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2018-10-27 17:45:38.862 INFO 116 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*]
2018-10-27 17:45:38.987 INFO 116 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2018-10-27 17:45:39.237 INFO 116 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2018-10-27 17:45:39.256 INFO 116 --- [ restartedMain] o.s.jdbc.datasource.init.ScriptUtils : Executing SQL script from class path resource [schema-h2.sql]
2018-10-27 17:45:39.294 INFO 116 --- [ restartedMain] o.s.jdbc.datasource.init.ScriptUtils : Executed SQL script from class path resource [schema-h2.sql] in 38 ms.
2018-10-27 17:45:39.296 INFO 116 --- [ restartedMain] o.s.jdbc.datasource.init.ScriptUtils : Executing SQL script from class path resource [data-h2.sql]
2018-10-27 17:45:39.305 INFO 116 --- [ restartedMain] o.s.jdbc.datasource.init.ScriptUtils : Executed SQL script from class path resource [data-h2.sql] in 9 ms.
2018-10-27 17:45:39.471 INFO 116 --- [ restartedMain] j.LocalContainerEntityManagerFactoryBean : Building JPA container EntityManagerFactory for persistence unit 'default'
2018-10-27 17:45:39.508 INFO 116 --- [ restartedMain] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [
name: default
...]
2018-10-27 17:45:39.611 INFO 116 --- [ restartedMain] org.hibernate.Version : HHH000412: Hibernate Core {5.2.17.Final}
2018-10-27 17:45:39.627 INFO 116 --- [ restartedMain] org.hibernate.cfg.Environment : HHH000206: hibernate.properties not found
2018-10-27 17:45:39.633 WARN 116 --- [ restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
2018-10-27 17:45:39.648 WARN 116 --- [ restartedMain] o.s.b.f.support.DisposableBeanAdapter : Invocation of destroy method failed on bean with name 'inMemoryDatabaseShutdownExecutor': org.h2.jdbc.JdbcSQLException: Database is already closed (to disable automatic closing at VM shutdown, add ";DB_CLOSE_ON_EXIT=FALSE" to the db URL) [90121-197]
2018-10-27 17:45:39.649 INFO 116 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
2018-10-27 17:45:39.655 INFO 116 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
2018-10-27 17:45:39.661 INFO 116 --- [ restartedMain] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2018-10-27 17:45:39.687 INFO 116 --- [ restartedMain] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2018-10-27 17:45:39.695 ERROR 116 --- [ restartedMain] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1694) ~[spring-beans-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:573) ~[spring-beans-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495) ~[spring-beans-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317) ~[spring-beans-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315) ~[spring-beans-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1087) ~[spring-context-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:857) ~[spring-context-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:548) ~[spring-context-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) ~[spring-boot-2.0.6.RELEASE.jar:2.0.6.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754) ~[spring-boot-2.0.6.RELEASE.jar:2.0.6.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:386) ~[spring-boot-2.0.6.RELEASE.jar:2.0.6.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) ~[spring-boot-2.0.6.RELEASE.jar:2.0.6.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1242) ~[spring-boot-2.0.6.RELEASE.jar:2.0.6.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1230) ~[spring-boot-2.0.6.RELEASE.jar:2.0.6.RELEASE]
at com.musicapp.api.ApiApplication.main(ApiApplication.java:10) ~[main/:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) ~[spring-boot-devtools-2.0.6.RELEASE.jar:2.0.6.RELEASE]
Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
at org.hibernate.boot.spi.XmlMappingBinderAccess.<init>(XmlMappingBinderAccess.java:43) ~[hibernate-core-5.2.17.Final.jar:5.2.17.Final]
at org.hibernate.boot.MetadataSources.<init>(MetadataSources.java:87) ~[hibernate-core-5.2.17.Final.jar:5.2.17.Final]
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:209) ~[hibernate-core-5.2.17.Final.jar:5.2.17.Final]
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.<init>(EntityManagerFactoryBuilderImpl.java:164) ~[hibernate-core-5.2.17.Final.jar:5.2.17.Final]
at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:51) ~[spring-orm-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) ~[spring-orm-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:390) ~[spring-orm-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:377) ~[spring-orm-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) ~[spring-orm-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1753) ~[spring-beans-5.0.10.RELEASE.jar:5.0.10.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1690) ~[spring-beans-5.0.10.RELEASE.jar:5.0.10.RELEASE]
... 21 common frames omitted
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583) ~[na:na]
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) ~[na:na]
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) ~[na:na]
... 32 common frames omitted
BUILD SUCCESSFUL in 17s
3 actionable tasks: 2 executed, 1 up-to-date
In your build.gradle file , add dependency for javax.xml.bind
compile 'javax.xml.bind:jaxb-api:2.3.0'
When I use the command java -jar mypro-0.0.1-SNAPSHOT.jar --logging.level.root=TRACE ,the springboot failed ,but some computer could works,
the springboot version is 2.0.0.RELEASE,
<group>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
the log as followers:
2018-07-07 18:02:27.487 DEBUG 21534 --- [ main] o.e.j.u.DecoratedObjectFactory : Creating Instance: class org.eclipse.jetty.websocket.jsr356.encoders.LongEncoder
2018-07-07 18:02:27.487 DEBUG 21534 --- [ main] o.e.j.u.DecoratedObjectFactory : Creating Instance: class org.eclipse.jetty.websocket.jsr356.encoders.ShortEncoder
2018-07-07 18:02:27.487 DEBUG 21534 --- [ main] o.e.j.u.DecoratedObjectFactory : Creating Instance: class org.eclipse.jetty.websocket.jsr356.encoders.ByteBufferEncoder
2018-07-07 18:02:27.487 DEBUG 21534 --- [ main] o.e.j.u.DecoratedObjectFactory : Creating Instance: class org.eclipse.jetty.websocket.jsr356.encoders.ByteArrayEncoder
2018-07-07 18:02:27.487 DEBUG 21534 --- [ main] o.e.j.s.h.AbstractHandler : starting org.springframework.boot.web.embedded.jetty.JettyEmbeddedErrorHandler#7d0b7e3c
2018-07-07 18:02:27.488 INFO 21534 --- [ main] o.e.j.s.h.ContextHandler : Started o.s.b.w.e.j.JettyEmbeddedWebAppContext#4310d43{/,[file:///tmp/jetty-docbase.8016560841686360205.13000/],AVAILABLE}
2018-07-07 18:02:27.488 DEBUG 21534 --- [ main] o.e.j.w.WebAppContext : postConfigure o.s.b.w.e.j.JettyEmbeddedWebAppContext#4310d43{/,[file:///tmp/jetty-docbase.8016560841686360205.13000/],AVAILABLE} with org.springframework.boot.web.embedded.jetty.ServletContextInitializerConfiguration#5824a83d
2018-07-07 18:02:27.488 DEBUG 21534 --- [ main] o.e.j.w.WebAppContext : postConfigure o.s.b.w.e.j.JettyEmbeddedWebAppContext#4310d43{/,[file:///tmp/jetty-docbase.8016560841686360205.13000/],AVAILABLE} with org.springframework.boot.autoconfigure.websocket.servlet.JettyWebSocketServletWebServerCustomizer$1#537f60bf
2018-07-07 18:02:27.488 DEBUG 21534 --- [ main] o.e.j.w.WebAppContext : postConfigure o.s.b.w.e.j.JettyEmbeddedWebAppContext#4310d43{/,[file:///tmp/jetty-docbase.8016560841686360205.13000/],AVAILABLE} with org.springframework.boot.web.embedded.jetty.JettyServletWebServerFactory$1#5677323c
2018-07-07 18:02:27.488 DEBUG 21534 --- [ main] o.e.j.w.WebAppContext : postConfigure o.s.b.w.e.j.JettyEmbeddedWebAppContext#4310d43{/,[file:///tmp/jetty-docbase.8016560841686360205.13000/],AVAILABLE} with org.springframework.boot.web.embedded.jetty.JettyServletWebServerFactory$2#18df8434
2018-07-07 18:02:27.488 DEBUG 21534 --- [ main] o.e.j.s.h.AbstractHandler : starting org.eclipse.jetty.server.handler.ErrorHandler#a38c7fe
2018-07-07 18:02:27.489 INFO 21534 --- [ main] o.e.j.s.Server : Started #4487ms
2018-07-07 18:02:27.512 DEBUG 21534 --- [ main] o.e.j.s.Server : doStop org.eclipse.jetty.server.Server#2dc54ad4[9.4.8.v20171121]
2018-07-07 18:02:27.513 DEBUG 21534 --- [ main] o.e.j.s.Server : Graceful shutdown org.eclipse.jetty.server.Server#2dc54ad4[9.4.8.v20171121] by
2018-07-07 18:02:27.514 DEBUG 21534 --- [ main] o.e.j.s.h.AbstractHandler : stopping org.eclipse.jetty.server.Server#2dc54ad4[9.4.8.v20171121]
2018-07-07 18:02:27.514 INFO 21534 --- [ main] o.e.j.s.session : Stopped scavenging
2018-07-07 18:02:27.514 DEBUG 21534 --- [ main] o.e.j.s.h.AbstractHandler : stopping org.eclipse.jetty.server.handler.ErrorHandler#a38c7fe
2018-07-07 18:02:27.514 DEBUG 21534 --- [ main] o.e.j.s.h.AbstractHandler : stopping o.s.b.w.e.j.JettyEmbeddedWebAppContext#4310d43{/,[file:///tmp/jetty-docbase.8016560841686360205.13000/],UNAVAILABLE}
2018-07-07 18:02:27.514 DEBUG 21534 --- [ main] o.e.j.s.h.AbstractHandler : stopping org.springframework.boot.web.embedded.jetty.JettyEmbeddedErrorHandler#7d0b7e3c
2018-07-07 18:02:27.515 DEBUG 21534 --- [ main] o.e.j.s.h.AbstractHandler : stopping org.eclipse.jetty.server.session.SessionHandler1420232606==dftMaxIdleSec=1800
2018-07-07 18:02:27.515 DEBUG 21534 --- [ main] o.e.j.s.h.AbstractHandler : stopping org.eclipse.jetty.security.ConstraintSecurityHandler#26e356f0
2018-07-07 18:02:27.515 DEBUG 21534 --- [ main] o.e.j.s.h.AbstractHandler : stopping org.springframework.boot.web.embedded.jetty.JettyEmbeddedWebAppContext$JettyEmbeddedServletHandler#4b8ee4de
2018-07-07 18:02:27.517 INFO 21534 --- [ main] o.e.j.s.h.ContextHandler : Stopped o.s.b.w.e.j.JettyEmbeddedWebAppContext#4310d43{/,[file:///tmp/jetty-docbase.8016560841686360205.13000/],UNAVAILABLE}
Something called Server.stop() which is performing a graceful stop of the server.
The logging line with ...
o.e.j.s.Server : doStop org.eclipse.jetty.server.Server#2dc54ad4[9.4.8.v20171121]
... is telling you this.
You can add a breakpoint within Server.doStop() (the code that handles the .stop() command from the LifeCycle) and see where that call came from.