Home - Tags

Page / - zuletzt bearbeitet von XIMA Admin am 20.04.2020, 18:37

Tags

zuletzt bearbeitet von XIMA Admin

am 20.04.2020, 18:37

Inhaltsverzeichnis

Failed to execute the [velocity] macro. Cause: [Verbindungsaufbau abgelehnt (Connection refused)]. Click on this message for details.

org.xwiki.rendering.macro.MacroExecutionException: Failed to evaluate Velocity Macro for content [##

## tagCloudSpace - the space to display the tag cloud for. If blank, display cloud for the whole wiki. Default is blank.

#set ($tagCloudSpace = $xcontext.macro.params.get('space'))

#set ($tagCloudSpaces = $xcontext.macro.params.get('spaces'))

##

## Configurable popularity levels. You must enter an even number of levels. Default: 6.

#set ($popularityLevels = ["notPopular", "notVeryPopular", "somewhatPopular", "popular", "veryPopular", "ultraPopular"])

#set ($levelsHalf = $popularityLevels.size() / 2)

##

$xwiki.ssx.use('XWiki.TagCloud')##

##

#if( $tagCloudSpace && $tagCloudSpaces )

{{error}}

##Do not use space and spaces parameter in the same time.

{{translation key="xe.tag.paramerror" /}}

{{/error}}

#break

#end

##If multiple spaces with "spaces" parameter

#if( $tagCloudSpaces )

#set ($tagCount = $xwiki.tag.getTagCountForSpaces($tagCloudSpaces))

#else

##If only one space

## Get tag count map. Key: tag, value: number of occurrences.

#set ($tagCount = $xwiki.tag.getTagCount("$!tagCloudSpace"))

#end

##

## Only build popularity map if at least one tag exists

#if ($tagCount.size() > 0)

##

## Store the minimum and maximum number of occurrences.

#set ($sortedTagCounts = $collectiontool.sort($tagCount.values()))

#set ($maxIndex = $sortedTagCounts.size() - 1)

#set ($minCount = $sortedTagCounts[0])

#set ($maxCount = $sortedTagCounts[$maxIndex])

##

## Calculate the total number of tags in the wiki.

#set ($totalTagNumber = 0)

#foreach ($currentTagCount in $sortedTagCounts)

#set ($totalTagNumber = $totalTagNumber + $currentTagCount)

#end

#set ($countAverage = $mathtool.div($totalTagNumber, $tagCount.size()))

##

## Build popularity map using the difference between minimum / maximum tag occurrences counts, and the average tag occurences count.

#set ($firstHalfIntervalSize = $mathtool.div($mathtool.sub($countAverage, $minCount), $levelsHalf))

#set ($secondHalfIntervalSize = $mathtool.div($mathtool.sub($maxCount, $countAverage), $levelsHalf))

##

## Use a sorted map

#set ($popularityMap = $collectiontool.sortedMap)

#set ($previousPopularityMax = $minCount)

#set ($intervalSize = $firstHalfIntervalSize)

#set ($halfPassed = false)

#foreach ($popularityLevel in $popularityLevels)

#if ($foreach.count > $levelsHalf && !$halfPassed)

#set ($intervalSize = $secondHalfIntervalSize)

#set ($halfPassed = true)

#end

#set ($currentPopularityMax = $mathtool.add($previousPopularityMax, $intervalSize))

##

## round the threshold

#set ($threshold = $mathtool.roundTo(1, $currentPopularityMax))

#set ($discard = $popularityMap.put($threshold, $popularityLevel))

#set ($previousPopularityMax = $currentPopularityMax)

#end

#end

##

## Display tag cloud.

{{html}}

#if ($tagCount.size() > 0)

<ol class="tagCloud">

#foreach ($tagEntry in $tagCount.entrySet())

#foreach ($popularityEntry in $popularityMap.entrySet())

#if ($popularityEntry.Key >= $tagEntry.Value)

#set ($liClass = $popularityEntry.Value)

#break

#end

#end

<li class="$liClass">

<a class="tag" href="$xwiki.getURL('Main.Tags', 'view', "do=viewTag&amp;tag=$escapetool.url($tagEntry.Key)")" title="$services.localization.render('xe.tag.tooltip', [$tagEntry.Value])">$escapetool.xml($tagEntry.Key)</a>

</li>

#end

</ol>

#else

<p class="noitems">

#if("$!tagCloudSpace" == "")

$services.localization.render('xe.tag.notags')

#else

$services.localization.render('xe.tag.notagsforspace', ["$tagCloudSpace"])

#end

</p>

#end

{{/html}}]

at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:139)

at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:52)

at org.xwiki.rendering.macro.script.AbstractScriptMacro.evaluateBlock(AbstractScriptMacro.java:286)

at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:182)

at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:58)

at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:297)

at org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)

at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.transform(AbstractBlockAsyncRenderer.java:76)

at org.xwiki.rendering.wikimacro.internal.DefaultWikiMacroRenderer.transform(DefaultWikiMacroRenderer.java:807)

at org.xwiki.rendering.wikimacro.internal.DefaultWikiMacroRenderer.transform(DefaultWikiMacroRenderer.java:793)

at org.xwiki.rendering.wikimacro.internal.DefaultWikiMacroRenderer.transform(DefaultWikiMacroRenderer.java:579)

at org.xwiki.rendering.wikimacro.internal.DefaultWikiMacroRenderer.execute(DefaultWikiMacroRenderer.java:394)

at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:157)

at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:54)

at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:267)

at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)

at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:267)

at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)

at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.execute(DefaultBlockAsyncRendererExecutor.java:125)

at org.xwiki.rendering.wikimacro.internal.DefaultWikiMacro.execute(DefaultWikiMacro.java:107)

at org.xwiki.rendering.wikimacro.internal.DefaultWikiMacro.execute(DefaultWikiMacro.java:53)

at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:297)

at org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)

at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:101)

at org.xwiki.display.internal.DocumentContentAsyncExecutor.executeInCurrentExecutionContext(DocumentContentAsyncExecutor.java:348)

at org.xwiki.display.internal.DocumentContentAsyncExecutor.execute(DocumentContentAsyncExecutor.java:221)

at org.xwiki.display.internal.DocumentContentAsyncRenderer.execute(DocumentContentAsyncRenderer.java:107)

at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:157)

at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:54)

at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:273)

at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)

at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.execute(DefaultBlockAsyncRendererExecutor.java:125)

at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:67)

at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:43)

at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)

at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:39)

at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:123)

at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:52)

at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:68)

at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:42)

at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1215)

at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1356)

at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1323)

at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1233)

at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1365)

at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:794)

at jdk.internal.reflect.GeneratedMethodAccessor416.invoke(Unknown Source)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.base/java.lang.reflect.Method.invoke(Method.java:566)

at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:565)

at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:548)

at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:219)

at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:369)

at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:490)

at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:144)

at org.apache.velocity.runtime.directive.Foreach.renderBlock(Foreach.java:306)

at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:276)

at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:301)

at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:423)

at org.apache.velocity.Template.merge(Template.java:358)

at org.apache.velocity.Template.merge(Template.java:262)

at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:284)

at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:316)

at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)

at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:217)

at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:180)

at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:137)

at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:53)

at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:267)

at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)

at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:267)

at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)

at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)

at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:772)

at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:745)

at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:725)

at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:711)

at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:78)

at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2506)

at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2484)

at com.xpn.xwiki.pdf.impl.PdfExportImpl.export(PdfExportImpl.java:153)

at com.xpn.xwiki.web.ExportAction.export(ExportAction.java:184)

at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:91)

at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:560)

at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:250)

at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)

at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)

at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)

at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:122)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.xwiki.wysiwyg.filter.ConversionFilter.doFilter(ConversionFilter.java:109)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:132)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)

at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:688)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)

at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:375)

at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)

at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:869)

at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1639)

at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)

at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)

at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

at java.base/java.lang.Thread.run(Thread.java:829)

Caused by: org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with namespace [xwiki:Main.Tags]

at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:292)

at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:316)

at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:131)

... 127 more

Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getTagCount' in class com.xpn.xwiki.plugin.tag.TagPluginApi threw exception com.xpn.xwiki.XWikiException: Error number 0 in 3: Failed to get tag count for query [select elements(prop.list) from XWikiDocument as doc, BaseObject as tagobject, DBStringListProperty as prop where tagobject.name=doc.fullName and tagobject.className='XWiki.TagClass' and tagobject.id=prop.id.id and prop.id.name='tags' and doc.translation=0], with parameters [null] at xwiki:Main.Tags[line 26, column 30]

at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:306)

at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:233)

at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:369)

at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:701)

at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:72)

at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:240)

at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:144)

at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:423)

at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:191)

at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:423)

at org.apache.velocity.Template.merge(Template.java:358)

at org.apache.velocity.Template.merge(Template.java:262)

at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:284)

... 129 more

Caused by: com.xpn.xwiki.XWikiException: Error number 0 in 3: Failed to get tag count for query [select elements(prop.list) from XWikiDocument as doc, BaseObject as tagobject, DBStringListProperty as prop where tagobject.name=doc.fullName and tagobject.className='XWiki.TagClass' and tagobject.id=prop.id.id and prop.id.name='tags' and doc.translation=0], with parameters [null]

at com.xpn.xwiki.plugin.tag.TagQueryUtils.getTagCountForQuery(TagQueryUtils.java:158)

at com.xpn.xwiki.plugin.tag.TagQueryUtils.getTagCountForQuery(TagQueryUtils.java:121)

at com.xpn.xwiki.plugin.tag.TagPlugin.getTagCountForQuery(TagPlugin.java:308)

at com.xpn.xwiki.plugin.tag.TagPlugin.getTagCountForQuery(TagPlugin.java:272)

at com.xpn.xwiki.plugin.tag.TagPlugin.getTagCount(TagPlugin.java:188)

at com.xpn.xwiki.plugin.tag.TagPlugin.getTagCount(TagPlugin.java:211)

at com.xpn.xwiki.plugin.tag.TagPluginApi.getTagCount(TagPluginApi.java:92)

at jdk.internal.reflect.GeneratedMethodAccessor956.invoke(Unknown Source)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.base/java.lang.reflect.Method.invoke(Method.java:566)

at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:565)

at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:548)

at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:219)

... 140 more

Caused by: org.xwiki.query.QueryException: Exception while executing query. Query statement = [select elements(prop.list) from XWikiDocument as doc, BaseObject as tagobject, DBStringListProperty as prop where tagobject.name=doc.fullName and tagobject.className='XWiki.TagClass' and tagobject.id=prop.id.id and prop.id.name='tags' and doc.translation=0]

at com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.execute(HqlQueryExecutor.java:182)

at org.xwiki.query.internal.DefaultQueryExecutorManager.execute(DefaultQueryExecutorManager.java:72)

at org.xwiki.query.internal.DefaultQuery.execute(DefaultQuery.java:306)

at com.xpn.xwiki.plugin.tag.TagQueryUtils.getTagCountForQuery(TagQueryUtils.java:155)

... 152 more

Caused by: com.xpn.xwiki.XWikiException: Error number 0 in 3: Exception while hibernate execute

at com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:826)

at com.xpn.xwiki.store.XWikiHibernateBaseStore.executeRead(XWikiHibernateBaseStore.java:889)

at com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.execute(HqlQueryExecutor.java:170)

... 155 more

Caused by: org.hibernate.exception.JDBCConnectionException: Unable to acquire JDBC Connection

at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:112)

at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:42)

at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:113)

at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:99)

at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.acquireConnectionIfNeeded(LogicalConnectionManagedImpl.java:111)

at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.getPhysicalConnection(LogicalConnectionManagedImpl.java:138)

at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.getConnectionForTransactionManagement(LogicalConnectionManagedImpl.java:273)

at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.begin(LogicalConnectionManagedImpl.java:281)

at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl$TransactionDriverControlImpl.begin(JdbcResourceLocalTransactionCoordinatorImpl.java:246)

at org.hibernate.engine.transaction.internal.TransactionImpl.begin(TransactionImpl.java:83)

at org.hibernate.internal.AbstractSharedSessionContract.beginTransaction(AbstractSharedSessionContract.java:471)

at org.hibernate.engine.spi.SessionDelegatorBaseImpl.beginTransaction(SessionDelegatorBaseImpl.java:486)

at com.xpn.xwiki.internal.store.hibernate.HibernateStore.beginTransaction(HibernateStore.java:799)

at com.xpn.xwiki.internal.store.hibernate.HibernateStore.beginTransaction(HibernateStore.java:749)

at com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:532)

at com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:819)

... 157 more

Caused by: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:174)

at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:64)

at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:836)

at com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:456)

at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:246)

at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:197)

at org.apache.commons.dbcp2.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:55)

at org.apache.commons.dbcp2.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:355)

at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:889)

at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:424)

at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:349)

at org.apache.commons.dbcp2.PoolingDataSource.getConnection(PoolingDataSource.java:134)

at org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:753)

at com.xpn.xwiki.store.DBCPConnectionProvider.getConnection(DBCPConnectionProvider.java:258)

at org.hibernate.internal.NonContextualJdbcConnectionAccess.obtainConnection(NonContextualJdbcConnectionAccess.java:38)

at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.acquireConnectionIfNeeded(LogicalConnectionManagedImpl.java:108)

... 168 more

Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

at jdk.internal.reflect.GeneratedConstructorAccessor10692.newInstance(Unknown Source)

at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)

at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61)

at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:105)

at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:151)

at com.mysql.cj.exceptions.ExceptionFactory.createCommunicationsException(ExceptionFactory.java:167)

at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:91)

at com.mysql.cj.NativeSession.connect(NativeSession.java:144)

at com.mysql.cj.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:956)

at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:826)

... 181 more

Caused by: java.net.ConnectException: Verbindungsaufbau abgelehnt (Connection refused)

at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)

at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:412)

at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:255)

at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:237)

at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)

at java.base/java.net.Socket.connect(Socket.java:609)

at com.mysql.cj.protocol.StandardSocketFactory.connect(StandardSocketFactory.java:155)

at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:65)

... 184 more