youngmon/atlassian-qna huggingface dataset:
Confluence 4.0 says "Could not open Hibernate Session for transaction" and "GenericJDBCException: Cannot open connection"
Asked by Asmo Tuomisto:

Hi!

We have Confluence 4.0 and it's using MySql-database. Once for a while it crashes and we must reboot it. Sometimes when shutting it down fails and trying to start again it says:

```
Error occurred during initialization of VM Could not reserve enough space for object heap
```

But that is maybe a different issue. When checking the logs I find error messages:

```
SEVERE: Exception Processing ErrorPage[errorCode=500, location=/500page.jsp]org.apache.jasper.JasperException: org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is net.sf.hibernate.exception.GenericJDBCException: Cannot open connection
```

What could couse this? And what could solve the problem?

One more thing that wonders me:

```
# ls -lalrwxrwxrwx.  1 root root   18 Jan 17  2012 confluence -&gt; confluence-3.5-stddrwxr-xr-x. 13 1506 root 4096 Oct  3 09:48 confluence-3.5-std
```

There seems to be difference in permissions between actual confluence-folder and its virtual path..


Answers:
author: Harry Chan
body: Hi Zacharias,

Your error on shutdown is a result of a lack of memory. Tomcat actually requires the same amount of memory to startup and shutdown to some extent and so in effect you need almost double the minimum memory required.


author: AlysonA
body: Hi Zacharias,

The most concerning errors seems to be the "Cannot Open Connection" one, and for that we have this KB: <https://confluence.atlassian.com/display/CONFKB/Unable+to+Start+Due+to+net.sf.hibernate.exception.GenericJDBCException+Cannot+open+connection>

It usually indicates that your instance cannot reach the database, but there are another possible causes that it's worth to check.

Hope it helps.


author: NicoDeluxe
body: In my case its postgres, the postgres service stops after some hours but i dont know why, after restart it works again


Tags: hibernate

jdbc
OpenSearch query string problems
Asked by Thomas Krause:

\* simple query not encoded works fine

http://%myserver%/plugins/servlet/opensearch?query=ancestorIds:%pageid%\&format=rss_2.0

\* simple query encoded works fine as well

http://%myserver%/plugins/servlet/opensearch?query=ancestorIds%3A%pageid%\&format=rss_2.0

\* restricting query using type parameter not encoded doesn't work (this is expected, it ignores the type parameter because it is part of the outer Url)

http://%myserver%/plugins/servlet/opensearch?query=ancestorIds:%pageid%\&type=page\&format=rss_2.0

\* restricting query using type parameter encoded doesn't work (this is unexpected!)

http://%myserver%/plugins/servlet/opensearch?query=ancestorIds%3A%pageid%%26type=page\&format=rss_2.0

Though, the last version does contain the right search syntax in the results, but not the results.

Search results for query: ancestorIds:%pageid%\&type=page

http://%myserver%

Search results for query: ancestorIds:%pageid%\&type=page. Search returned 0 results in 16ms


Answers:
author: Alejandro Conde Carrillo
body: This seems to be a known issue. The tickets for reference are:

* [OPNSRCH-16](https://studio.atlassian.com/browse/OPNSRCH-16 "Search more than one parameter")
* [CONF-26813](https://jira.atlassian.com/browse/CONF-26813 "OpenSearch: search more than one parameter ")


Tags: opensearch

search
Identifying Duplicate Page Titles while merging several spaces
Asked by Andrew Jackson:

Hello

I am currently in the process of converging several spaces on our internally hosted Confluence and I keep hitting the 'A descendent page shares the same title of another page in the selected space.' message.

However I am unable to manually identify the offending page.

We only have a few hundred pages and not many of these have yet been moved to the new space so identifying this manually should of been easy but I cannot see a page with the same name.

My questions are;

Can you provide a SQL statement that would help identify duplicate page names across spaces so we can work through renaming them?

Are attachment names possibly causing this and if so can I again use a SQL statement to identify offending attachment names?

Please advise how best to proceed.

Thanks


Answers:
author: MatthewC
body: First, you can have attachments of the same name in a space so they shouldn't be causing the problem.

here is a SQL query (mssql \& pgsql) that should give you duplicate names between spaces

```
selectc.titlefrom content c, spaces s where c.contenttype='PAGE' and c.content_status='current'and c.prevver is null and c.spaceid=s.spaceidand s.spacekey in ('SPACEKEY1', 'SPACEKEY2')group by c.title having count(*) &gt; 1
```

Just replace your space keys for the examples in the 2nd last line. It ignores deleted pages \& only checks the titles of the current version of pages.

if you want a report of all the pages, this will also work

```
selectc.contentid, c.title, c.content_status, s.spacename, s.spacekeyfrom content c, spaces s where c.contenttype='PAGE' and c.content_status='current'and c.prevver is null and c.spaceid=s.spaceidand s.spacekey in ('SPACEKEY1', 'SPACEKEY2')order by c.title
```

comments: author: Sorin Sbarnea (Citrix)
body: Also, do not forget to vote/comment on [](https://jira.atlassian.com/browse/CONF-27598)<https://jira.atlassian.com/browse/CONF-27598>-- unless you fancy patching wiki using SQL.


author: Sorin Sbarnea (Citrix)
body: This is a bug in Confluence, vote/comment on it <https://jira.atlassian.com/browse/CONF-27598>


author: Andrew Jackson
body: This has now been resolved.


Tags: duplicate

page
How to update Applinks manually?
Asked by Karola Schaeuble:

We are currently running Confluence 3.5.13 and won't be able to update for a while.

We also have a JIRA instance and want to use the Application Link feature. Unfortunately we are running into this bug: <https://ecosystem.atlassian.net/browse/APL-663>

The AppLinks version bundled with our Confluence is 3.3 and if I understand the [version matrix](https://confluence.atlassian.com/display/APPLINKS/Application+Links+Version+Matrix) AppLinks 3.4 should also be compatible with Confluence 3.5.13. Is that correct?

If that is the case how can I update the AppLinks Plugin in my current installation?

Thanks a lot!

Karola Schaeuble


Answers:
author: GuilhermeA
body: Hello Karola,

I have not tested this, but it does not mean that you can't try! You could pickup the AppLinks Plugin and install it to your Confluence.

You can pickup the file inside `<confluence-install>/confluence/WEB-INF/classes/com/atlassian/confluence/setup, `*Bundled* plugins are included in a zip of jars called **atlassian-bundled-plugins.zip**

So you can pickup the new plugin and upload it though Confluence UI at Plugins \> Upload Plugin.

There is no guarantees, there might be dependencies for the plugin to run, but its worth a try.

Cheers,

Guilherme
Can not create Apllication Link
Asked by Tomohiro Hirano:

i click the application link, display "Bad Request" like file(in Japanese display)

But be able to click new one, so click and enter the URL(JIRA) and next.

But no return.

I see <https://confluence.atlassian.com/pages/viewpage.action?pageId=181536632>

But its right server id in DB, no ERROR log is.

![](../../upfiles/BadRequest_2.png)

Please help. thank you.


Answers:
author: Tomohiro Hirano
body: Hi, Felipe Cuozzo. Thank you for your reply. But sorry, i found my mistakes.

In server.xml, I added "useBodyEncodingForURL" at Connector tag.

So, i reset my server.xml, and set Context and restart server, and able to re-construct application link to JIRA from Confluence.

Thank you.


author: Felipe Cuozzo
body: If you are under a valid Maintenance period on your license I would advise to create a ticket at <https://support.atlassian.com> so some of our Support Enginners can help diagnose your problem.

Can you provide a step by step with Screenshoots of what you're trying to do?

The only thing I can think of now that may be a problem is the presence of Japanese characters on the request/response being mishandled and generating the 'Bad Request' error.

Regards,  
Felipe  
Atlassian OnDemand Dev

comments: author: Tomohiro Hirano
body: Thank you, Felipe, but now i can't support with them because maintenace user of our company left no one about this...

This error occored by changing context for JIRA and Confluence.  
Before changing, this error not, and display the application link for JIRA.

But from JIRA, i can look the application link to Confluence, and it works good...  
Only from Confluence to JIRA the error occored...


author: Felipe Cuozzo
body: Ok, I'm keen to help but I need more information to be able to determine better what may be going wrong, can you provide the requested screenshots and possible the log messages from the Confluence log when the error happens? Also what version of the products you're running.

Without that it's very hard to understand what is the actual problem. I understood that you can't link from Confluence to JIRA using the Application Links, correct?
choice of excel sheet size
Asked by Mariusz Sepczuk:

Hi,

I want put in Confluence excek sheet but not real size. I want choose size of frame in witch I can put sheet. Can \|I do that using any macro?


Answers:
author: Renjith Pillai
body: I have not tried this. But section/column macros allow you to specify the percentage to fill in the page. Probably you can enclose the excel macro inside a section/column macro.


author: Bob Swift (personal)
body: By that I would suspect you mean to limit the number of rows and columns initially shown. No, that is not possible. Please [create an issue](https://bobswift.atlassian.net/secure/CreateIssue!default.jspa) for that.

It does support hidden rows and columns. Also columns can be selected for display.


Tags: ms-excel
Is it possible to schedule a PDF export of specified spaces in Confluence ?
Asked by Benjamin Laulan:

Hello,

I would like to kow if a PDF auto-export of spaces is possible in Confluence ?

If so, can you please tell me how to do it ?

Thank you very much for your answer.


Answers:
author: Bob Swift (personal)
body: [Confluence Command Line Interface](https://bobswift.atlassian.net/wiki/display/CSOAP) [exportSpace](https://bobswift.atlassian.net/wiki/display/CSOAP/Documentation#Documentation-exportSpace) action with --exportType PDF . Use in your favorite job scheduler or if you are a Bamboo user, then [CLI Plugin for Bamboo](https://bobswift.atlassian.net/wiki/display/BCLIP) makes it easier.


author: Jonas Andersson
body: Hi Bob,

I love your tool, but we are running into issues with the confluence cli when doing PDF exports of a handful of spaces. Most spaces can be exported, but the same spaces keep failing. Server side catalina.out dont report of any error, and the only thing i see from the client is: Remote error: (502)Proxy Error

Is there any way to raise logging on anything to help figure out what fails, or is there some reserved characters that you know breaks the PDF export? We are prepared to pay for the tool, but we need to be able to rely on it.

Kind regards

Jonas Andersson


Tags: export

pdf
how can we add new plugin & macro?
Asked by Bharati Pandya:

We do not get upload or install option in plugin manager


Answers:
author: RianA
body: You aren't able to upload plugin to OnDemand due to [restricted function](https://confluence.atlassian.com/display/AOD/Restricted+Functions+in+Atlassian+OnDemand) there. And there are only a [couple of plugin](https://confluence.atlassian.com/display/AOD/Atlassian+OnDemand+Plugin+Policy) that can be used in OnDemand.


Tags: cloud

confluence-cloud
Can I Publish the content from one Confluence Wiki site to another Confluence Wiki site
Asked by Mritunjay Kumar:

I want to publish the content from one Confluence Wiki site to another Confluence Wiki site or different platform site.


Answers:
author: JohnA
body: Hi Mirtunjay,

It is possible to publish from one Confluence to another, but generally it requires some kind of 3rd-party plugin such as the [Confluence Remote Publishing plugin](https://marketplace.atlassian.com/plugins/com.comalatech.remotepublishing) or the [Command Line Interface plugin](https://marketplace.atlassian.com/plugins/org.swift.confluence.cli) in order to achieve this.

All the best,  
John

comments: author: Mritunjay Kumar
body: Thanks John for prompt response .


Tags: publish
Moving On Premise Jira/Confluence to On Demand
Asked by Martin Hambalek:

Is it possible, and if so how hard, would it be to move multiple Jira projects and Confluence databases from my servers to Atlassian's on demand model? I've got different versions of Jira and Confluence and different servers and dozens of projects.


Answers:
author: RianA
body: Hi Martin. Yes you can, you could just import the data to your ondemand instance. Make sure you did upload the data to webdav. For more information please refer to this documentation.  
\* <https://confluence.atlassian.com/display/AOD/Importing+Data>


Tags: atlassian-support
How to display Panel titles on the left of the panel heading?
Asked by Karina Clemente:

How to display Panel titles on the left of the panel heading? They currently display in the center of the panel.


Answers:
author: Alejandro Conde Carrillo
body: Which panel titles do you mean exactly?

I am sure you can do that by adding some custom CSS.

comments: author: Karina Clemente
body: Hi, do you know how to do in CSS? We have not found anything related to this....
Playing MP4 video on iPad over https
Asked by Roland Leibundgut:

we have a couple of MP4 videos as attachments in confluence, they don't play on iPad (or any iOS devices).

If i donwload the video to the iPad it plays =\> so it can't be the video format

On any other devices it works =\> so it can't be the confluence installation as such

Note: our site is accessible via https only.

Anyboy has any ideas how to make this work ?


Answers:
author: pschaff01
body: You could check [this KB](https://confluence.atlassian.com/display/CONFKB/Unable+to+play+embedded+Mp4+videos+on+iPad+or+iPhone "KB") I made today to help you solve your problem.

Cheers :)


author: pschaff01
body: Hello there mate!

I've found a forum [here](http://help.videojs.com/discussions/problems/143-mp4-videos-wont-play-on-ipad-iphone "Link") that says "iDevices" doesn't have an HTML5 player yet. It's actually a forum from a specific audio player but you can find some information and workarounds about the problem you are having.

Cheers
Excel file that is uploaded to Confluence. Confluence shows a button to Edit in Office. However, Office shows an error because the Confluence servers is not SSL encrypted. See attached image.
Asked by Alex Mobasser:

![](../../../upfiles/error_12.png)Excel file that is uploaded to Confluence. Confluence shows a button to Edit in Office. However, Office shows an error because the Confluence servers is not SSL encrypted. See attached image.

Does Atlassian have any suggestions.


Answers:
author: Alex Mobasser
body: In the plugin settings for the WebDav Office Connector, allow authentication settings in the URL path must be turned on. It seems basic authentication is not supported by Microsoft, but allowing the authentication settings to pass before attempting to open the file fixes the problem.


author: Harry Chan
body: Hi, refer to https://confluence.atlassian.com/display/CONFKB/'Edit+in+Word'+Requires+Login+or+Doesn't+Work+at+All for more information.

It looks like the operating system you have used disabled basic authentication when you do not support SSL. You will need to add SSL to fix this or to change the registry settings to allow for normal HTTP request.
Hi, I overrided the CSS and made a mistake and now the Browse button dissappeared and I cannot get to the Administration Console to revert. Does someone know how to fix something like this?
Asked by Karina Clemente:

Hi, I overrided the CSS and made a mistake and now the Browse button dissappeared and I cannot get to the Administration Console to revert. Does someone know how to fix something like this?


Answers:
author: Bruna Griebeler
body: Hi Karina

If you want to access the Administration Console you may access by the URL:

\<YourConfluenceURL\>/admin/console.action

And if you need to change the Custom HTML/CSS to revert the process you may access:

\<YourConfluenceURL\>/admin/editcustomhtml.action

Hope it helps!

comments: author: Karina Clemente
body: Hi Bruna, we restored a backup and re made the last updates but thank so much for your anwer. It is great info to have in case it happens again...
Output of UWC is text files.
Asked by Jay Hill:

The output of the export step of my Universal Wiki Converter is .txt files, not xml or html. When I then run the converter step, it gives me the "CONVERTER_ERROR Error while parsing xml. Skipping" message. I don't see anythin in the exporter.mediawiki.properties file that sets the output.

Assuming the converter for Confluence needs .xml, what do I do to get .xml out of the exporter?

I'm working with an old (1.5.8, 1996) Mediawiki installation, and a recent (3.13.0) UWC.


Answers:
author: Jay Hill
body: Looks like the files are supposed to be output as .txt.


author: Jay Hill
body: lkj


author: Ellen Feaheny [AppFusions]
body: |------------------------------------------------------------------------------------------------|
| UWC for Confluence 4.X are posted.. <https://twitter.com/appfusions/status/253905889482903552> |
How can I have a special form when I create a subtask?
Asked by George Carvill:

I have created some special forms tied to workflow. For example, when a QA subtask fails a test Issue, the user gets a special form that asks for some test information.

I would like to use a special form when a subtask is first created. I want to hide some fields that aren't needed on the form. But it appears in the workflow that I can't specify the form at create time.

I can uncheck the fields I don't want to see. But then they aren't checked if I am creating a parent Issue. And that is too manual any way.

Am I missing something?


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: You need to define a new screen for the creation of subtasks.

See <https://confluence.atlassian.com/display/AOD/Associating+a+Screen+with+an+Issue+Operation>

comments: author: George Carvill
body: Thanks. Worked it out. But like much of the "scheme" stuff in JIRA, setting it up is somewhat less than intiuitive.

Thanks for pointime me in the right direction.


Tags: cloud

jira-software-cloud
CLI: HowTo export page text instead of confluence source (pseudo html)
Asked by Jakob Erber:

I would like to export plain text or rich formated text for confluence pages instead of confluence source. Is this possible? Or can I converst source to text after export?

regards

Jakob


Answers:
author: Bob Swift (personal)
body: [renderPage](https://bobswift.atlassian.net/wiki/display/CSOAP/Documentation#Documentation-renderPage) is the action you use to get the render page (in HTML).


author: Kelly mcdaniel
body: Check with [www.k15t.com](http://www.k15t.com.). They make Confluence exporter plugins. The Microsoft Word or HTML exporter should be able to get the job done.


Tags: cli
When navigating back and forth between JIRA and Confluence using the tabs, users "lose their place" in Confluence
Asked by Tor Flatebo:

We are trying out the On Demand version of Confluence, and one of the first things that our users found is that when they navigate from the Wiki tab to the Issues tab, then back to the Wiki tab, they land back at the home page of the space/project that they are in, regardless of the Wiki page they were viewing before they went into JIRA.

Is there any way to have the system remember which Wiki page they were viewing when they navigate back? Obvisouly they would have to still be in the same project/space, and the space I am dealing with is linked to a JIRA project.


Answers:
author: Harry Chan
body: Hi, the Wiki tab is simply a link to the home page. I've noticed this as well though I normally use the back button. Maybe you can raise a feature request?


Tags: cloud

confluence-cloud

jira-cloud

navigation

tab
Team Calendar Name Change
Asked by Ethan Foulkes:

On some of our team calendars I can change the name but on others the field is locked. There are no edit or view restrictions in place.

Is it because some calendars are being viewed by other people or embedded in a page or something?


Answers:
author: Ethan Foulkes
body: I believe the issue is due to having exported and reimported from a site backup. The best solution we found was to simply permanently remove the calendar (making sure someone is subscribed to it). That person gets emailed an export file which can then be reimported when creating a new calendar bringing back all your event data. The newly created calendar can then be edited. You may need to re add the associated space and any restrictions...


author: Rodrigo Girardi Adami
body: Hi Ethan,

I believe that this happens because the calendar you are trying to change the name is from another place, like JIRA for example. If you create the calendar manually inside Confluence, you'll have the ability to change the name, however if you try to change a name of a calendar from another source, probably that will be blocked.

I might be wrong, so I'll leave this question open for others to help.

Cheers,

Rodrigo

comments: author: Ethan Foulkes
body: We only use confluence =(
license count problem
Asked by Sabin Ungureanu:

We have confluence and jira. We use authentication in Jira. Users from confluence are authenticating in Jira. Confluence is totaly synchronized with Jira

We have license for 50 users.

The number of users from confluence-users and confluence-admin are 47, BUT CONFLUENCE REPORTS 51. Why is that?

The problem is that we can't login to Confluence.


Answers:
author: Tiago Comasseto
body: Hi Sabin,

Please refer to this [answer](/questions/90201/user-count-exceeded-but-users-disabled-and-removed-from-global-can-use-flag/90232) for an explanation how Confluence calculates the license.

I hope this information has helped.

Cheers


Tags: licence
Tableplus macro breaks the table view in Rich Text in Confluence v3.3.3
Asked by Pawan Modi:

Hi,

We are working with Confluence v3.3.3 and using 'tableplus' with one of our table.

However, this breaks the table view in 'Rich Text' view.

Can anyone please suggest a workaorund ?

Thanks,

Pawan


Answers:
author: Bob Swift (personal)
body: There is no workaround. You will need Confluence 4.x to have table-plus and the editor work together.

comments: author: Pawan Modi
body: Thanks a lot Bob.

Regds,

Pawan