Issue Details (XML | Word | Printable)

Key: CONTRB-39
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Shannon Krebs
Reporter: Chandra Shekar J
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Confluence Contributors Plugin

Error formatting macro: contributors-summary: java.lang.NullPointerExceptio

Created: 16/Jan/08 02:16 AM   Updated: 12/May/08 09:46 AM
Component/s: Contributors Summary Macro
Affects Version/s: 1.1
Fix Version/s: 1.1.2

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive atlassian-confluence.zip (262 kB)
2. Java Archive File contributors-1.1.1-SNAPSHOT.jar (38 kB)
3. File UserContribution - NXP wiki.mht (346 kB)

Environment:
System Information
System Date Wednesday, 16 Jan 2008
System Time 08:53:52
System Favourite Colour Myrtle
Java Version 1.5.0_09
Java Vendor Sun Microsystems Inc.
JVM Version 1.0
JVM Vendor Sun Microsystems Inc.
JVM Implementation Version 1.5.0_09-b03
Java Runtime Java(TM) 2 Runtime Environment, Standard Edition
Java VM Java HotSpot(TM) Client VM
User Name SYSTEM
User Timezone Europe/Berlin
Operating System Windows 2003 5.2
OS Architecture x86
Filesystem Encoding Cp1252

Java VM Memory Statistics
Total Memory 508 MB
Free Memory 124 MB
Used Memory 384 MB
Memory Graph
24 % Free

Runtime Information
Database Dialect net.sf.hibernate.dialect.SQLServerDialect
Database Connection URL jdbc:jtds:sqlserver://localhost:1433/confluence
Database Driver Name net.sourceforge.jtds.jdbc.Driver
Database Driver Version 1.2
Application Server Apache Tomcat/5.5.25
Servlet Version 2.4
Confluence Home D:\Confluence\wikidata
Uptime 1 , 1 , 37
Confluence Version 2.5.8
Build Number 814

Labels:


 Description  « Hide
Hello,

I get the error in one of the space 'DTS' using the contributors summary.

{contributors-summary:spaces=DTS|columns=edits}

Error is 'Error formatting macro: contributors-summary: java.lang.NullPointerException '

The same works on other spaces.

Have a nice day.
Regards,
Chandra Shekar



 All   Comments   Work Log   Change History   FishEye   Crucible   Builds      Sort Order: Ascending order - Click to sort in descending order
Shannon Krebs added a comment - 16/Jan/08 04:13 AM
Hi Chandra,

It is strange that the macro would not be working in only one space in your environment. I would suggest raising this request with Atlassian Support initially who might be able to help narrow down if this is a problem with that specific space in your environment or a bug with the macro.


Chandra Shekar J added a comment - 16/Jan/08 05:59 AM
Hello Shannon,

I logged this issue to Atlassian Support https://support.atlassian.com/browse/CSP-14776.
They asked me to log the request here as this was 3rd party plug-in.

Have a nice day.
Regards,
Chandra Shekar


Chandra Shekar J added a comment - 28/Jan/08 10:13 PM
Hello Shannon,

I have attached the logs also, incase they can add some light to the issue.

Have a nice day.
Regards,
Chandra Shekar


Chandra Shekar J added a comment - 30/Jan/08 12:27 AM
Hello Shannon,

Atlassian Support reviewed the logs and has the following comment :-

I reviewed your log files, I spotted :

2008-01-29 05:05:59,640 ERROR [TP-Processor6] [renderer.v2.components.MacroRendererComponent] processMacro Unexpected error formatting macro: contributors-summary
– action: viewpage | page: 31097373
java.lang.NullPointerException
at java.lang.String$CaseInsensitiveComparator.compare(String.java:1048)
at java.lang.String$CaseInsensitiveComparator.compare(String.java:1042)
at java.lang.String.compareToIgnoreCase(String.java:1089)
at com.atlassian.confluence.contributors.util.EditCountAuthorRankingComparator.compare(EditCountAuthorRankingComparator.java:26)
at java.util.Arrays.mergeSort(Arrays.java:1307)

The error is generated by Contributors macros instead of Confluence. Thus, I would suggest you to contact the plugin authors as they have better understanding on how the plugin works.

Thank you.

Regards,
Chandra Shekar


Shannon Krebs added a comment - 01/Feb/08 11:21 PM
Hi Chandra,

It looks like it is erroring when trying to get the full name of a user that has a null full name. I am having trouble reproducing that situation here because Confluence normally doesn't let you enter a user with no full name.

I have made some updates that should catch this situation, if possible can you please test with the snapshot version of the plugin attached to this issue to verify your problem has gone away (or if it fails somewhere else).


Chandra Shekar J added a comment - 10/Feb/08 11:00 PM
Hello Shannon,

I loaded the plug in provided by you and the page is working OK.

Yes, i confirm that it shows the user's names 'null', so as you suspect the issue is with the names.
Attached is the file for your reference ( UserContribution - NXP wiki.mht )

So, would you make a new release of the plug-in or i continue using the same provided by you now ?

Have a nice day.
Regards,
Chandra Shekar


Shannon Krebs added a comment - 10/Feb/08 11:12 PM
The fix in this issue will be in the next release, but I am not sure when that will be. The SNAPSHOT version attached to this should provide a workaround for any sites that experience this problem with null user names.