× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
funfun reported 2012-08-28T22:30:58Z  · aquaclusters.josekibold last modified 2012-10-17T16:58:51Z

\csv2excel command known problems


Dev
Fun Fun
funfun
QA
Niels Gron
NielsGron
Priority Low
Complexity Unknown
Component App - FluidShell - Command
Version 12.0

Below is the list of known problems on \csv2excel command. CSV test files are attached FYI.

(1) Maximum number of rows per page:
    > cat csv100K.txt | csv2excel > tmp.xls
    > cat csv100K.txt | csv2excel -t 2007 > tmp.xlsx
Excel 2003 has a 65536 rows/page limitation; in the first example above, the input file contains 100K+1 rows, the output file will only have 65536 rows. Excel 2007 does not have this limitation as shown in the second example.

(2) Out of memory:
Aspose APIs does everything in memory which will cause java run out of heap space if the input file is too large. The ADS running in my environment is configured as:
   -Xmx256M -XX:MaxPermSize=128M
and, the command below (input file has 1 million rows)
    > csv2excel < csv1M.txt > tmp.xlsx
generates this error
    •csv2excel: •'standard input': •conversion failed: Java heap space

(3) NPE on writing Excel output to fluid editor:
The command below usually will generate an NPE:
    > cat csv100K.txt | csv2excel
Note that it works if output is not sent to fluid editor as shown below:
    > cat csv100K.txt | csv2excel | cat | tee > tmp-pipe.xls
    > cat csv100K.txt | csv2excel > tmp-pipe.xls

Below is the stack trace of NPE, since it is meaningless to write output to editor, I am not going to worry about this at the moment:
<2012-08-28 15:07:04,828> ERROR [AWT-EventQueue-0] <sun.reflect.GeneratedMethodAccessor47>
java.lang.NullPointerException
    at org.netbeans.lib.terminalemulator.InterpDumb.processChar(InterpDumb.java:248)
    at com.common.terminal.impl.InterpVt100.processChar(InterpVt100.java:439)
    at com.common.terminal.impl.InterpXterm.processChar(InterpXterm.java:266)
    at org.netbeans.lib.terminalemulator.Term.putc_work(Term.java:5057)
    at org.netbeans.lib.terminalemulator.Term.access$5(Term.java:5056)
    at org.netbeans.lib.terminalemulator.Term$BaseTermStream.putChars(Term.java:423)
    at com.aquafold.datastudio.tools.shell.FluidTerminalLineDiscipline.putChars(FluidTerminalLineDiscipline.java:30)
    at org.netbeans.lib.terminalemulator.Term$12.run(Term.java:3493)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:646)
    at java.awt.EventQueue.access$000(EventQueue.java:84)
    at java.awt.EventQueue$1.run(EventQueue.java:607)
    at java.awt.EventQueue$1.run(EventQueue.java:605)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:616)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
 

2 attachments

Issue #7486

Closed
Fixed
Resolved 2012-09-27T00:21:04Z
 
 
Completion
No due date
Fixed Build trunk/29474
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017