[ 
https://issues.apache.org/jira/browse/JS2-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13710142#comment-13710142
 ] 

Woonsan Ko commented on JS2-1285:
---------------------------------

Fixed.

The NodeManagerImpl created an empty file (size = 0) initially and always tried 
to read and unmarshalled to list object whether or not the file is empty.
So, I changed it to check if the file is empty first in order to avoid possible 
EOFException when the file is empty.
Also, some clean ups (such as file resource closing in finally block) were 
added.
                
> NodeManagerImpl throws exception when the serialized file has empty content
> ---------------------------------------------------------------------------
>
>                 Key: JS2-1285
>                 URL: https://issues.apache.org/jira/browse/JS2-1285
>             Project: Jetspeed 2
>          Issue Type: Bug
>            Reporter: Woonsan Ko
>            Assignee: Woonsan Ko
>             Fix For: 2.2.3
>
>
> If nodeInfo.ser file is an empty file (with size = zero), then it leaves the 
> following error log:
> 16.07.2013 12:16:01 ERROR localhost-startStop-1 
> [org.apache.jetspeed.cluster.NodeManagerImpl.load():97] Failed to read nodes 
> data file from 
> /Users/woonsan/testspace/Fidelity/tcserver/instances/tcserver-demo/webapps/j2pt/WEB-INF/cluster_node/nodeInfo.ser
>  - error : null

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscr...@portals.apache.org
For additional commands, e-mail: jetspeed-dev-h...@portals.apache.org

Reply via email to