Adrian,

Can you provide a full stack trace of the exception please? It is very
difficult to identify where the problem is without that information.
An example spreadsheet and a sample of your code that causes the
exception would be useful too.

Also note that a NullPointerException is unlikely to be related to
memory issues so no need to get more memory for your server yet :-)

Bruno

2009/10/9 Adrian Butnaru <[email protected]>:
> I made a mistake I use version 3.5 (poi-3.5-FINAL-2009.09.28.jar) not 2.5.
> Excuses!
>
> On Fri, Oct 9, 2009 at 9:11 AM, Adrian Butnaru <[email protected]> wrote:
>> POI version is 2.5 in both cases because I uploaded the war file
>> created bu Netbeans completely.
>> The XLS files are the same.
>> I am trying to identify what happens and If I comment all the lines
>> with setCellValue it happens first time I am trying to get the value
>> from the cell.
>> The differences between development version which works with Netbeans
>> in WIndows and the live version which gets errors on my Linux server
>> is that I am using tomcat 6 in windows and tomcat 5.5 in linux.
>> Another issue may be the fact that the server is actually a virtual
>> server 512 MB RAM and not a real server. I will try to upgrade to
>> tomcat 6. But if is a memory issue I really do not know what to do
>> further. Just pay for more memory on the virtual private server.
>>
>> Thanks for helping,
>> Adrian
>>
>>
>> On Thu, Oct 8, 2009 at 8:39 PM, Josh Micich <[email protected]> wrote:
>>> Platform specific bugs are relatively uncommon in POI, so it's likely
>>> that your bug will be reproducible on windows too if you set up both
>>> environments identically.  Perhaps you have different versions of POI
>>> deployed on Windows and Linux, or maybe the XLS file differs slightly
>>> between the environments.
>>>
>>> From what I understand you have some code like this:
>>>
>>>    cell1.setCellValue(42.0); // works OK
>>>    cell2.setCellValue("March"); // fails with NPE
>>>
>>> Unfortunately, this is not enough information diagnose the problem.
>>> Please attach a stack trace - it usually goes a long way to
>>> identifying the problem.
>>>
>>> After that, if the solution does not become obvious you might need to
>>> open a Bugzilla entry and attach the XLS file and sample java code.
>>>
>>> regards,
>>> Josh
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to