Velocity is a Java-based template engine. It permits web page
designers to reference methods defined in Java code. Web designers
can work in parallel with Java programmers to develop web sites
according to the Model-View-Controller (MVC) model, meaning that web
page designers can focus solely on creating a well-designed site,
and programmers can focus solely on writing top-notch code. Velocity
separates Java code from the web pages, making the web site more
maintainable over the long run and providing a viable alternative to JSPs.
Velocity - Guide
<HTML>
<BODY>
Hello $customer.Name!
<table>
#foreach( $mud in $mudsOnSpecial )
#if ( $customer.hasPurchased($mud) )
<tr>
<td>
$flogger.getPromo( $mud )
</td>
</tr>
#end
#end
</table>
2 Kasım 2012 Cuma
1 Kasım 2012 Perşembe
Reusing the configurations in each run
Suppose you added some data on to virtual JIRA, how do you retain it when you clean start-up JIRA next time?
This is where a new SDK command comes to our rescue.
After the atlas-run is finished, that is, after you pressed Ctrl + C, execute the following command:
atlas-create-home-zip
This will generate a file named generated-test-resources.zip under the target folder.
Copy this file to the /src/test/resources folder or any other known locations. Now modify the pom.xml to add the following entry under configurations in the maven-jira-plugin:
<productDataPath>${basedir}/src/test/resources/generated-test-
resources.zip</productDataPath>
Modify the path accordingly. This will reuse the configurations the next time you run
atlas-run.
This is where a new SDK command comes to our rescue.
After the atlas-run is finished, that is, after you pressed Ctrl + C, execute the following command:
atlas-create-home-zip
This will generate a file named generated-test-resources.zip under the target folder.
Copy this file to the /src/test/resources folder or any other known locations. Now modify the pom.xml to add the following entry under configurations in the maven-jira-plugin:
resources.zip</productDataPath>
Modify the path accordingly. This will reuse the configurations the next time you run
atlas-run.
13 Eylül 2012 Perşembe
Confluence Increase Maximum Heap Size
You can only view Maximum Heap Size from Confluence > Administration > System Information.
To Edit:
Do not set your memory using CATALINA_OPTS this is overridden by JAVA_OPTS.
On Linux
- In the unpacked Confluence standalone directory, edit the file
bin/setenv.sh - Edit the line beginning with
JAVA_OPTS=substituting new values for -Xms (starting memory) and -Xmx (maximum memory) - Leave the rest of the options in that line unchanged
FishEye Upgrade Guide
1. Download Fisheye
2. Extract the new FishEye archive into a directory such as <New FishEye home directory>.
3. Shut down the old FishEye instance if it is running.
4. Copy <FishEye home directory>/config.xml to <New FishEye home directory>.
5. Copy the <FishEye home directory>/var directory to <New FishEye home directory>/var.
6. Copy the <FishEye home directory>/cache directory to <New FishEye home directory>/cache.
7. Start FishEye from the new installation by running <New FishEye home directory>/bin/run.sh.
linux commands:
wget -c http://www.atlassian.com/software/fisheye/downloads/binary/fisheye-2.8.0.zip
unzip fisheye-2.8.0.zip
<FishEye home directory>/bin ./stop.sh
cp <FishEye home directory>/config.xml <New FishEye home directory>/config.xml
<New FishEye home directory> rm -rf var
<New FishEye home directory> mkdir var
cp <FishEye home directory>/var/* <New FishEye home directory>/var/*
<New FishEye home directory> mkdir cache
cp <FishEye home directory>/cache/* <New FishEye home directory>/cache/*
<New FishEye home directory>/bin ./run.sh
Go to your fisheye 2.8, ex: http://localhost:8060/
12 Eylül 2012 Çarşamba
'java.sql.SQLException Got error 28 from storage engine' Error when Viewing a Page
Symptoms:
Viewing a page fails with this stack trace found in the
Cause:
MySQL database server has no space left to work in its
Resolution:
Verify whether there is sufficient disk space on the MySQL database server.
Reference
Viewing a page fails with this stack trace found in the
atlassian-confluence.log:
...
org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: Could not execute query; uncategorized SQLException for SQL []; SQL state [HY000]; error code [1030]; Got error 28 from storage engine; nested exception is java.sql.SQLException: Got error 28 from storage engine
Caused by: java.sql.SQLException: Got error 28 from storage engine
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1072)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3563)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3495)
...
org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: Could not execute query; uncategorized SQLException for SQL []; SQL state [HY000]; error code [1030]; Got error 28 from storage engine; nested exception is java.sql.SQLException: Got error 28 from storage engine
Caused by: java.sql.SQLException: Got error 28 from storage engine
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1072)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3563)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3495)
...
MySQL database server has no space left to work in its
tmp directory.Resolution:
Verify whether there is sufficient disk space on the MySQL database server.
Reference
30 new and updated Confluence tutorials
We now have 11 new and 19 updated Confluence tutorials – a great resource for plugin developers, nicely timed with the release of Confluence 4.3.
New Confluence tutorials:
Working with the Tasks REST API in Confluence
Sending Emails in a Plugin
Posting notifications in Confluence
Preformatted Table – Example of a User Macro
Panel Preformatted with Specific Colours – Example of a User Macro
Adding an Option to the Editor Insert Menu
Adding Keyboard Shortcuts to Confluence
Writing Integration Tests for your Plugin (to be published after review)
Altering Confluence page output using a Pipeline Transformer module (to be published after completion, some time in October)
Writing Soy Templates (to be published after review)
Defining a Pluggable Service in a Confluence Plugin (to be published after completion, some time in September)
Updated Confluence tutorials:
Extending Autoconvert
Adding Menu Items to Confluence
Creating a Cross-Platform Admin Configuration Form
Writing Macros for pre-4.0 versions of Confluence
Preventing XSS issues with macros in Confluence 4.0
Creating a new Confluence Macro
Extending the Macro Property Panel
Writing a Confluence Theme
Writing Unit Tests for your Plugin
Writing a Macro Using JSON
Developing Technical Documentation on Confluence Wiki
Developing a Knowledge Base on Confluence Wiki
Searching using the V2 Search API (in progress)
Writing a search result renderer (in progress)
Adding a Custom Action to Confluence (to be published after review)
11 Eylül 2012 Salı
confluence suddenly unusable -- java error
System Error
A system error has occurred — our apologies!
For immediate troubleshooting, consult our knowledge base for a solution.
If you would like to receive support from Atlassian's support team, ask your Confluence administrator to create a support issue on Atlassian's support system with the following information:
a description of your problem and what you were doing at the time it occurred
a copy of the error and system information found below
a copy of the application logs (if possible).
Your Confluence administrator can use the support request form to create a support ticket which will include this information.
We will respond as promptly as possible.
Thank you!
Return to site homepage…
The SystemInformationService could not be retrieved from the container. Therefore very limited information is available in this error report.
The SystemInformationService could not be retrieved due to the following error: java.lang.NullPointerException
Cause
com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException
at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:152)
caused by: java.lang.NullPointerException
at com.atlassian.spring.container.ContainerManager.getComponent(ContainerManager.java:33)
If you get this error message, permission error may cause this error.
To solve it,
1. Go to your confluence home directory
2. list all items with ls -al
and restarted Confluence with
it raised up and is working. Hope you will find it useful :)
A system error has occurred — our apologies!
For immediate troubleshooting, consult our knowledge base for a solution.
If you would like to receive support from Atlassian's support team, ask your Confluence administrator to create a support issue on Atlassian's support system with the following information:
a description of your problem and what you were doing at the time it occurred
a copy of the error and system information found below
a copy of the application logs (if possible).
Your Confluence administrator can use the support request form to create a support ticket which will include this information.
We will respond as promptly as possible.
Thank you!
Return to site homepage…
The SystemInformationService could not be retrieved from the container. Therefore very limited information is available in this error report.
The SystemInformationService could not be retrieved due to the following error: java.lang.NullPointerException
Cause
com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException
at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:152)
caused by: java.lang.NullPointerException
at com.atlassian.spring.container.ContainerManager.getComponent(ContainerManager.java:33)
If you get this error message, permission error may cause this error.
To solve it,
1. Go to your confluence home directory
2. list all items with ls -al
testwww1:/usr/local/confluence-data# ls -altotal 152drwx--S--- 19 confluence confluence 4096 2012-08-20 10:27 (...)drwxr-sr-x 2 root confluence 4096 2012-07-10 15:41 plugins-cache
3. Then, (Our) Confluence is running with confluence user, so permissions were
wrong (without writing for group). When I changed owner with:chown -R confluence:confluence confluencechown -R confluence:confluence confluence-data |
/etc/init.d/confluence restart |