Bug#855324: pdfsam fails to start
gregor herrmann
gregoa at debian.org
Sun Feb 19 03:56:32 UTC 2017
On Sat, 18 Feb 2017 18:25:32 -0800, tony mancill wrote:
> Change the value in the <LAF> element ~/.pdfsam/config.xml to '1':
>
> ...
> <settings>
> <lookAndfeel>
> <LAF>1</LAF>
> ^
> |
> ...
After this change, pdfsam starts for me and shows me an empty white
window (or grey-ish) with nothing in it.
On the console I see:
% pdfsam
[warning] /usr/bin/pdfsam: No java runtime was found
=========================================================================
pdfsam
JAVA: java
JAVA_OPTS: -Xmx256m
CLASSPATH: /usr/share/pdfsam/pdfsam-1.1.4.jar:/usr/share/pdfsam/lib/dom4j.jar:/usr/share/pdfsam/lib/emp4j-1.0.1.jar:/usr/share/pdfsam/lib/itext.jar:/usr/share/pdfsam/lib/jaxen.jar:/usr/share/pdfsam/lib/log4j-1.2.jar:/usr/share/pdfsam/lib/looks.jar:/usr/share/pdfsam/lib/pdfsam-console-2.0.6e.jar:/usr/share/pdfsam/lib/pdfsam-jcmdline-1.0.3.jar:/usr/share/pdfsam/lib/pdfsam-langpack.jar
=========================================================================
04:39:40,246 INFO JMainFrame Starting PDF Split and Merge basic Ver. 1.1.4
04:39:40,299 INFO Configuration Loading configuration..
04:39:40,347 INFO Configuration Getting language...
04:39:40,406 INFO Configuration Setting look and feel...
04:39:40,414 INFO Configuration Setting logging level...
04:39:40,415 INFO Configuration Logging level set to DEBUG
04:39:40,634 INFO PlugInsLoader Split plugin loaded.
04:39:40,667 INFO PlugInsLoader Merge/Extract plugin loaded.
04:39:40,927 INFO JMainFrame PDF Split and Merge basic Ver. 1.1.4 started in 677ms
04:39:45,906 DEBUG UpdateManager Checking if a new version is available.
04:39:46,458 INFO UpdateCheckerMediator$UpdateChecker New version available.
(Note the phoning home "feature" at the bottom.)
So there is still a (spurious?) warning at the top, and I have no
idea what I could do with the empty window :)
[The warning indeed disappears with
`JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 pdfsam'.]
Another try with the companion binary:
% pdfsam-console -h
[warning] /usr/bin/pdfsam-console: No java runtime was found
=========================================================================
pdfsam console
available properties:
pdfsam.log.console.level
pdfsam.log.file.level
pdfsam.log.file.filename
JAVA: java
JAVA_OPTS: -Dlog4j.configuration=console-log4j.xml
CLASSPATH: :/usr/share/pdfsam/lib/dom4j.jar:/usr/share/pdfsam/lib/emp4j-1.0.1.jar:/usr/share/pdfsam/lib/itext.jar:/usr/share/pdfsam/lib/jaxen.jar:/usr/share/pdfsam/lib/log4j-1.2.jar:/usr/share/pdfsam/lib/looks.jar:/usr/share/pdfsam/lib/pdfsam-console-2.0.6e.jar:/usr/share/pdfsam/lib/pdfsam-jcmdline-1.0.3.jar:/usr/share/pdfsam/lib/pdfsam-langpack.jar
=========================================================================
04:42:35,502 DEBUG Console log level set to DEBUG
04:42:35,522 DEBUG Starting arguments parsing.
java -jar pdfsam-console-2.0.6e.jar - merge, split, mix, setviewer, unpack,
encrypt, slideshow, decrypt.
Usage: java -jar pdfsam-console-2.0.6e.jar [options] command
where:
command = command to execute {[concat], [split], [encrypt], [mix], [unpack],
[setviewer], [slideshow], [decrypt]} (required)
and options are:
-? prints usage to stdout; exits (optional)
-h prints usage to stdout; exits (optional)
-help displays verbose help information (optional)
-license displays license information (optional)
-version displays command's version (optional)
Option tags are not case sensitive, and may be truncated as long as they remain
unambiguous. Option tags must be separated from their corresponding values by
whitespace, or by an equal sign. Boolean options (options that require no
associated value) may be specified alone (=true), or as 'tag=value' where value
is 'true' or 'false'.
And now it gets weird: I tried `DEBUG_WRAPPER=1 pdfsam' several
times, and at more or less each second invocation, I get java
exceptions:
% DEBUG_WRAPPER=1 pdfsam
[warning] /usr/bin/pdfsam: No java runtime was found
=========================================================================
pdfsam
JAVA: java
JAVA_OPTS: -Xmx256m
CLASSPATH: /usr/share/pdfsam/pdfsam-1.1.4.jar:/usr/share/pdfsam/lib/dom4j.jar:/usr/share/pdfsam/lib/emp4j-1.0.1.jar:/usr/share/pdfsam/lib/itext.jar:/usr/share/pdfsam/lib/jaxen.jar:/usr/share/pdfsam/lib/log4j-1.2.jar:/usr/share/pdfsam/lib/looks.jar:/usr/share/pdfsam/lib/pdfsam-console-2.0.6e.jar:/usr/share/pdfsam/lib/pdfsam-jcmdline-1.0.3.jar:/usr/share/pdfsam/lib/pdfsam-langpack.jar
=========================================================================
04:47:28,346 INFO JMainFrame Starting PDF Split and Merge basic Ver. 1.1.4
04:47:28,398 INFO Configuration Loading configuration..
04:47:28,453 INFO Configuration Getting language...
04:47:28,558 INFO Configuration Setting look and feel...
04:47:28,566 INFO Configuration Setting logging level...
04:47:28,568 INFO Configuration Logging level set to DEBUG
04:47:28,750 INFO PlugInsLoader Split plugin loaded.
04:47:28,792 INFO PlugInsLoader Merge/Extract plugin loaded.
04:47:29,080 INFO JMainFrame PDF Split and Merge basic Ver. 1.1.4 started in 728ms
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at javax.swing.text.FlowView$FlowStrategy.layoutRow(FlowView.java:563)
at javax.swing.text.FlowView$FlowStrategy.layout(FlowView.java:477)
at javax.swing.text.FlowView.layout(FlowView.java:201)
at javax.swing.text.BoxView.setSize(BoxView.java:397)
at javax.swing.text.BoxView.updateChildSizes(BoxView.java:366)
at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:348)
at javax.swing.text.BoxView.layout(BoxView.java:708)
at javax.swing.text.BoxView.setSize(BoxView.java:397)
at javax.swing.plaf.basic.BasicTextUI$RootView.setSize(BasicTextUI.java:1722)
at javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1046)
at javax.swing.text.DefaultCaret.repaintNewCaret(DefaultCaret.java:1308)
at javax.swing.text.DefaultCaret$1.run(DefaultCaret.java:1287)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Ok, same without DEBUG_WRAPPER; every second or third call to pdfsam
ends with this exception.
Somethings phishy here -- and I'm sorry but I have no clue what else
to try ...
Cheers,
gregor
--
.''`. https://info.comodo.priv.at/ - Debian Developer https://www.debian.org
: :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D 85FA BB3A 6801 8649 AA06
`. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
`- NP: Die Tontauben: talk to me
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: Digital Signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20170219/fc91d146/attachment.sig>
More information about the pkg-java-maintainers
mailing list