Bug#855324: Info received (Bug#855324: pdfsam fails to start)

2017-05-19 Thread Philip Rinn
Hi,

One could probably just advise people to execute this in their terminal:

sed -i 's/[0-9]*<\/LAF>/0<\/LAF>/' ~/.pdfsam/config.xml

Best,
Philip



signature.asc
Description: OpenPGP digital signature


Bug#855324: pdfsam fails to start

2017-05-15 Thread Philip Rinn
Control: reopen -1

Hi,

just updated a machine from jessie -> stretch and stuck with the problem that
pdfsam fails to start. The problem is that existing ~/.pdfsam/config.xml need to
be changed too.

I'd propose to write a NEWS entry to inform people and tell them what to do.

Best,
Philip



signature.asc
Description: OpenPGP digital signature


Bug#855324: pdfsam fails to start

2017-03-05 Thread Markus Koschany
Control: tags -1 pending

On Sun, 5 Mar 2017 19:32:38 +0100 Philip Rinn 
[...]
> Great, so changing the value in the  element ~/.pdfsam/config.xml to '0':
> 
> ...
>   
> 
>   0
>^
>|
> ...
> 
> fixes the crash.
> With this fix I'd keep pdfsam in stable, although it's outdated.

I think this is a suitable workaround. I am going to upload a new
revision that sets LAF to 0 by default. Thanks everyone for contributing
to this solution.

Regards,

Markus






signature.asc
Description: OpenPGP digital signature


Bug#855324: pdfsam fails to start

2017-03-05 Thread Philip Rinn
On 04.03.2017 at 01:13, gregor herrmann wrote:
> On Mon, 20 Feb 2017 18:31:12 +0100, Philip Rinn wrote:
> 
 If you're willing to try with another window
 manager, that might tell us something.  
>>> Hm, I only have awesome installed
>> Oh, I use Gnome3 - might be the difference?
> 
> Found it: I had _JAVA_AWT_WM_NONREPARENTING=1 set in my ~/.Xsession
> which was at some point needed for running java apps under awesome.
> 
> With _JAVA_AWT_WM_NONREPARENTING=0 pdfsam shows me something useful
> (and also freeplane, where I had the same issue, and raccoon (not in
> Debian), where I also only got an empty window).
> 
> Sorry for the confusion!

Great, so changing the value in the  element ~/.pdfsam/config.xml to '0':

...
  

  0
   ^
   |
...

fixes the crash.
With this fix I'd keep pdfsam in stable, although it's outdated.

Best,
Philip



signature.asc
Description: OpenPGP digital signature


Bug#855324: pdfsam fails to start

2017-03-03 Thread gregor herrmann
On Mon, 20 Feb 2017 18:31:12 +0100, Philip Rinn wrote:

> >> If you're willing to try with another window
> >> manager, that might tell us something.  
> > Hm, I only have awesome installed
> Oh, I use Gnome3 - might be the difference?

Found it: I had _JAVA_AWT_WM_NONREPARENTING=1 set in my ~/.Xsession
which was at some point needed for running java apps under awesome.

With _JAVA_AWT_WM_NONREPARENTING=0 pdfsam shows me something useful
(and also freeplane, where I had the same issue, and raccoon (not in
Debian), where I also only got an empty window).

Sorry for the confusion!

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: STS: Lass net los


signature.asc
Description: Digital Signature


Bug#855324: pdfsam fails to start

2017-02-21 Thread Emmanuel Bourg
Le 16/02/2017 à 23:18, Markus Koschany a écrit :

> Given that pdfsam in Debian is pretty much
> outdated it probably makes sense to remove it from Stretch.

I'd also add that upstream provides its own .deb packages built with
jdeb [1], and it's a leaf package. So I wouldn't mind removing it.

Emmanuel Bourg



Bug#855324: pdfsam fails to start

2017-02-20 Thread Markus Koschany
FYI, I had a look at the latest version and worked on a new debian
package which can be found at

https://anonscm.debian.org/cgit/pkg-java/pdfsam.git

(might take a few minutes until it is accessible)

pdfsam is now a JavaFX application and requires at least

https://github.com/torakiki/sejda
https://github.com/haraldk/TwelveMonkeys

as new build-dependencies. I think it would be a nice goal for Buster to
package those for Debian.

No solution for bug #855324 yet.



signature.asc
Description: OpenPGP digital signature


Bug#855324: pdfsam fails to start

2017-02-20 Thread Philip Rinn
On 20.02.2017 at 18:25, gregor herrmann wrote:
> On Mon, 20 Feb 2017 09:20:17 -0800, tony mancill wrote:
> 
>>> With "0" I still get an empty greyish window and nothing more.
>> Ugh!  I'm just guessing, but I suspect you are now seeing a *different*
>> issue related to one of the AWT race conditions we seem to encounter
>> from time to time.  
> 
> Quite possible ...
> 
>> If you're willing to try with another window
>> manager, that might tell us something.  
> 
> Hm, I only have awesome installed

Oh, I use Gnome3 - might be the difference?

Best,
Philip



signature.asc
Description: OpenPGP digital signature


Bug#855324: pdfsam fails to start

2017-02-20 Thread Philip Rinn
On 20.02.2017 at 18:20, tony mancill wrote:
> On Sun, Feb 19, 2017 at 11:36:05PM +0100, gregor herrmann wrote:
>> On Sun, 19 Feb 2017 18:09:22 +0100, Philip Rinn wrote:
>>
>>> On 19.02.2017 at 04:56, gregor herrmann wrote:
 After this change, pdfsam starts for me and shows me an empty white
 window (or grey-ish) with nothing in it.
>>> Uh, strange. So this seems not to be a general fix :(
>>> Gregor, could you try '0'?
>>
>> With "0" I still get an empty greyish window and nothing more.
> 
> Ugh!  I'm just guessing, but I suspect you are now seeing a *different*
> issue related to one of the AWT race conditions we seem to encounter
> from time to time.  If you're willing to try with another window
> manager, that might tell us something.  You can also try exporting
> "NOISY_AWT=true" and hitting CTRL-Shift-F1 to dump the AWT component
> hierarchy [1] (and then sending that to me so I can compare it with the
> hierarchy I see on my system).

Here you go:

philip@debian:~$ NOISY_AWT=true 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

=

18:24:39,603 INFO  JMainFrame  Starting PDF Split and Merge basic Ver. 1.1.4
18:24:39,641 INFO  Configuration  Loading configuration..
18:24:39,676 INFO  Configuration  Getting language...
18:24:39,727 INFO  Configuration  Setting look and feel...
18:24:39,747 INFO  Configuration  Setting logging level...
18:24:39,763 INFO  Configuration  Logging level set to DEBUG
18:24:39,894 INFO  PlugInsLoader  Merge/Extract plugin loaded.
18:24:39,931 INFO  PlugInsLoader  Split plugin loaded.
18:24:40,142 INFO  JMainFrame  PDF Split and Merge basic Ver. 1.1.4 started in 
536ms
Exception in thread "AWT-EventQueue-1" 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 
org.GNOME.Accessibility.AtkWrapper$5.dispatchEvent(AtkWrapper.java:700)
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)
^[[1;6P^\2017-02-20 18:25:13
Verlassen
Full thread dump OpenJDK 64-Bit Server VM (25.121-b13 mixed mode):

"DestroyJavaVM" #22 prio=5 os_prio=0 tid=0x7f16f800a000 nid=0x2ced waiting 
on
condition [0x]
   java.lang.Thread.State: RUNNABLE

"Thread-2" #19 prio=5 os_prio=0 tid=0x7f16f85a1800 nid=0x2d05 in 
Object.wait()
[0x7f169a223000]
   java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on <0xf0175d20> (a java.lang.Object)
at java.lang.Object.wait(Object.java:502)
at

Bug#855324: pdfsam fails to start

2017-02-20 Thread gregor herrmann
On Mon, 20 Feb 2017 09:20:17 -0800, tony mancill wrote:

> > With "0" I still get an empty greyish window and nothing more.
> Ugh!  I'm just guessing, but I suspect you are now seeing a *different*
> issue related to one of the AWT race conditions we seem to encounter
> from time to time.  

Quite possible ...

> If you're willing to try with another window
> manager, that might tell us something.  

Hm, I only have awesome installed

> You can also try exporting
> "NOISY_AWT=true" and hitting CTRL-Shift-F1 to dump the AWT component
> hierarchy [1] (and then sending that to me so I can compare it with the
> hierarchy I see on my system).

Sure, will do so in a minute.
 
> But the larger question of whether pdfsam is fit for stretch is probably
> the more pressing.  The Debian packaging is quite dated at this point
> [2], and while looking into this issue, I noticed that the Debian
> version phones home for an update check during its startup...  :(

Right, that's what I noticed as well :)


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: Bruce Springsteen: Atlantic City


signature.asc
Description: Digital Signature


Bug#855324: pdfsam fails to start

2017-02-20 Thread tony mancill
On Sun, Feb 19, 2017 at 11:36:05PM +0100, gregor herrmann wrote:
> On Sun, 19 Feb 2017 18:09:22 +0100, Philip Rinn wrote:
> 
> > On 19.02.2017 at 04:56, gregor herrmann wrote:
> > > After this change, pdfsam starts for me and shows me an empty white
> > > window (or grey-ish) with nothing in it.
> > Uh, strange. So this seems not to be a general fix :(
> > Gregor, could you try '0'?
> 
> With "0" I still get an empty greyish window and nothing more.

Ugh!  I'm just guessing, but I suspect you are now seeing a *different*
issue related to one of the AWT race conditions we seem to encounter
from time to time.  If you're willing to try with another window
manager, that might tell us something.  You can also try exporting
"NOISY_AWT=true" and hitting CTRL-Shift-F1 to dump the AWT component
hierarchy [1] (and then sending that to me so I can compare it with the
hierarchy I see on my system).

But the larger question of whether pdfsam is fit for stretch is probably
the more pressing.  The Debian packaging is quite dated at this point
[2], and while looking into this issue, I noticed that the Debian
version phones home for an update check during its startup...  :(

Cheers,
tony

[1] http://www.oracle.com/technetwork/java/javase/awt-138016.html#gchlz
[2] https://github.com/torakiki/pdfsam/releases


signature.asc
Description: PGP signature


Bug#855324: pdfsam fails to start

2017-02-19 Thread gregor herrmann
On Sun, 19 Feb 2017 18:09:22 +0100, Philip Rinn wrote:

> On 19.02.2017 at 04:56, gregor herrmann wrote:
> > After this change, pdfsam starts for me and shows me an empty white
> > window (or grey-ish) with nothing in it.
> Uh, strange. So this seems not to be a general fix :(
> Gregor, could you try '0'?

With "0" I still get an empty greyish window and nothing more.
 

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: The Dubliners: The lifeboat Mona


signature.asc
Description: Digital Signature


Bug#855324: pdfsam fails to start

2017-02-19 Thread Philip Rinn
Hi,

On 19.02.2017 at 04:56, gregor herrmann wrote:
> After this change, pdfsam starts for me and shows me an empty white
> window (or grey-ish) with nothing in it.

Uh, strange. So this seems not to be a general fix :(

Gregor, could you try '0'?


> 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:

I see the same, but for me it doesn't affect the functionality of pdfsam.

Best,
Philip



signature.asc
Description: OpenPGP digital signature


Bug#855324: pdfsam fails to start

2017-02-19 Thread Philip Rinn
Hi Tony,

On 19.02.2017 at 03:25, tony mancill wrote:
> As a work-around, would you mind trying to following to see if it
> resolves the problem for you?
> 
> Change the value in the  element ~/.pdfsam/config.xml to '1':
> 
> ...
>
>  
>   1
>^
>|
> ...  

This works for me, thanks! But using '0' is even better, as with '1' some text 
in
the 'split' panel gets cut - see attached screenshots.

But with '0' I get every-now-and-then

philip@debian:~$ 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

=

17:57:39,652 INFO  JMainFrame  Starting PDF Split and Merge basic Ver. 1.1.4
17:57:39,690 INFO  Configuration  Loading configuration..
17:57:39,724 INFO  Configuration  Getting language...
17:57:39,762 INFO  Configuration  Setting look and feel...
17:57:39,775 INFO  Configuration  Setting logging level...
17:57:39,786 INFO  Configuration  Logging level set to DEBUG
17:57:39,910 INFO  PlugInsLoader  Merge/Extract plugin loaded.
17:57:39,952 INFO  PlugInsLoader  Split plugin loaded.
17:57:40,129 INFO  JMainFrame  PDF Split and Merge basic Ver. 1.1.4 started in 
474ms
Exception in thread "AWT-EventQueue-1" 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 
org.GNOME.Accessibility.AtkWrapper$5.dispatchEvent(AtkWrapper.java:700)
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)

but pdfsam works nonetheless.


Best,
Philip


signature.asc
Description: OpenPGP digital signature


Bug#855324: pdfsam fails to start

2017-02-18 Thread gregor herrmann
On Sat, 18 Feb 2017 18:25:32 -0800, tony mancill wrote:

> Change the value in the  element ~/.pdfsam/config.xml to '1':
> 
> ...
>
>  
>   1
>^
>|
> ...  

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)
-hprints 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 

Bug#855324: pdfsam fails to start

2017-02-18 Thread tony mancill
On Fri, Feb 17, 2017 at 12:30:47PM +0100, Philip Rinn wrote:
> If you could point me to some document or tell me how to debug further, I'm
> willing to so but I need some guidance...

Hi Philip,

As a work-around, would you mind trying to following to see if it
resolves the problem for you?

Change the value in the  element ~/.pdfsam/config.xml to '1':

...
   
 
  1
   ^
   |
...  

It is set to '5' in the upstream sources here [1], which corresponds to
the PlasticXP LAF (Look And Feel), and the Debian packaging uses the
upstream template config as-is.  I'm not yet clear on why that LAF is
broken for pdfsam in Debian right now, but I believe it may be a more
general issue with Swing apps using that LAF.  The mapping of LAFs known
to pdfsam can be found in [2].

If you get a chance to test and report back, that would be helpful.

Thank you,
tony

[1] 
https://sources.debian.net/src/pdfsam/1.1.4-2/template-basic-1/config.xml/#L12 
[2] 
https://sources.debian.net/src/pdfsam/1.1.4-2/pdfsam-maine-br1/src/java/org/pdfsam/guiclient/utils/ThemeUtility.java/#L83-L91



signature.asc
Description: PGP signature


Bug#855324: pdfsam fails to start

2017-02-18 Thread tony mancill
On Fri, Feb 17, 2017 at 12:30:47PM +0100, Philip Rinn wrote:
> Hi,
> 
> I tired to locate the error - but I'm no Java expert so I might be totally 
> off...
> 
> Reading the log, I think it throws an error here:
> 
> https://sources.debian.net/src/pdfsam/1.1.4-2/pdfsam-maine-br1/src/java/org/pdfsam/guiclient/gui/panels/JSettingsPanel.java/#L124
> 
> I have no clue about this JFileChooser but it might be a starting point for 
> Java
> experts...
> 
> If you could point me to some document or tell me how to debug further, I'm
> willing to so but I need some guidance...

Hi Philip,

Thank you for reporting this bug.  I have the sinking feeling that it is
related (although not the same as) to the trouble we had related to
jgoodies updates in late 2016 [1], but will take a look this weekend to
see if there's anything straight-forward we can do for the package in
stretch.

Cheers,
tony

[1] https://lists.debian.org/debian-java/2016/12/msg00010.html


signature.asc
Description: PGP signature


Bug#855324: pdfsam fails to start

2017-02-17 Thread Philip Rinn
Hi,

I tired to locate the error - but I'm no Java expert so I might be totally 
off...

Reading the log, I think it throws an error here:

https://sources.debian.net/src/pdfsam/1.1.4-2/pdfsam-maine-br1/src/java/org/pdfsam/guiclient/gui/panels/JSettingsPanel.java/#L124

I have no clue about this JFileChooser but it might be a starting point for Java
experts...

If you could point me to some document or tell me how to debug further, I'm
willing to so but I need some guidance...

Best,
Philip



signature.asc
Description: OpenPGP digital signature


Bug#855324: pdfsam fails to start

2017-02-17 Thread Philip Rinn
On 17.02.2017 at 01:01, Markus Koschany wrote:
> On 17.02.2017 00:46, Philip Rinn wrote:
>> On 16.02.2017 at 23:18, Markus Koschany wrote:
>> [...]
>>
>>> thank you for the report. I can confirm this issue but I'm not sure what
>>> exactly is causing it. Given that pdfsam in Debian is pretty much
>>> outdated it probably makes sense to remove it from Stretch.
>>
>> True, pdfsam is outdated but afaik it's the only GUI tool for 
>> splitting/merging
>> pdfs in Debian. So it might still be worth keeping it - if this bug can be 
>> fixed...
> 
> We also have pdfchain or pdfshuffler in Debian but of course I agree
> that I would like to see a usable Java alternative in Debian too.

Both are not really replacements, pdfchain for example lacks splitting pdfs at
given page numbers and extracting single pages from them. Both can be achieved
with a burst -> catenate session but not very elegant. Anyway, I'm fine with
removing pdfsam.

Best,
Philip




signature.asc
Description: OpenPGP digital signature


Bug#855324: pdfsam fails to start

2017-02-16 Thread Markus Koschany
On 17.02.2017 00:46, Philip Rinn wrote:
> On 16.02.2017 at 23:18, Markus Koschany wrote:
> [...]
> 
>> thank you for the report. I can confirm this issue but I'm not sure what
>> exactly is causing it. Given that pdfsam in Debian is pretty much
>> outdated it probably makes sense to remove it from Stretch.
> 
> True, pdfsam is outdated but afaik it's the only GUI tool for 
> splitting/merging
> pdfs in Debian. So it might still be worth keeping it - if this bug can be 
> fixed...

We also have pdfchain or pdfshuffler in Debian but of course I agree
that I would like to see a usable Java alternative in Debian too.




signature.asc
Description: OpenPGP digital signature


Bug#855324: pdfsam fails to start

2017-02-16 Thread Philip Rinn
On 16.02.2017 at 23:18, Markus Koschany wrote:
[...]

> thank you for the report. I can confirm this issue but I'm not sure what
> exactly is causing it. Given that pdfsam in Debian is pretty much
> outdated it probably makes sense to remove it from Stretch.

True, pdfsam is outdated but afaik it's the only GUI tool for splitting/merging
pdfs in Debian. So it might still be worth keeping it - if this bug can be 
fixed...

Best,
Philip



signature.asc
Description: OpenPGP digital signature


Bug#855324: pdfsam fails to start

2017-02-16 Thread Markus Koschany
Control: tags -1 confirmed

On 16.02.2017 20:19, Philip Rinn wrote:
> Package: pdfsam
> Version: 1.1.4-2
> Severity: grave
> Justification: renders package unusable
> 
> Hi,
> 
> pdfsam fails to start with this error on the console:

[...]

thank you for the report. I can confirm this issue but I'm not sure what
exactly is causing it. Given that pdfsam in Debian is pretty much
outdated it probably makes sense to remove it from Stretch.

Regards,

Markus



signature.asc
Description: OpenPGP digital signature


Bug#855324: pdfsam fails to start

2017-02-16 Thread Philip Rinn
Package: pdfsam
Version: 1.1.4-2
Severity: grave
Justification: renders package unusable

Hi,

pdfsam fails to start with this error on the console:

philip@debian:~$ 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

=

20:14:37,202 INFO  JMainFrame  Starting PDF Split and Merge basic Ver. 1.1.4
20:14:37,238 INFO  Configuration  Loading configuration..
20:14:37,239 INFO  XMLConfig  Copying config.xml from
/usr/share/pdfsam/config.xml to /home/philip/.pdfsam/config.xml
20:14:37,283 INFO  Configuration  Getting language...
20:14:37,321 INFO  Configuration  Setting look and feel...
20:14:37,354 INFO  Configuration  Setting logging level...
20:14:37,366 INFO  Configuration  Logging level set to DEBUG
20:14:37,530 INFO  PlugInsLoader  Merge/Extract plugin loaded.
20:14:37,565 INFO  PlugInsLoader  Split plugin loaded.
20:14:37,646 FATAL JMainFrame  Error starting pdfsam.
java.lang.NullPointerException
at
javax.swing.plaf.metal.MetalFileChooserUI$IndentIcon.getIconWidth(MetalFileChooserUI.java:896)
at
javax.swing.SwingUtilities.layoutCompoundLabelImpl(SwingUtilities.java:963)
at
javax.swing.SwingUtilities.layoutCompoundLabel(SwingUtilities.java:890)
at javax.swing.plaf.basic.BasicLabelUI.layoutCL(BasicLabelUI.java:94)
at
javax.swing.plaf.basic.BasicLabelUI.getPreferredSize(BasicLabelUI.java:238)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1662)
at
javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1363)
at
javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1311)
at
javax.swing.plaf.basic.BasicListUI$Handler.valueChanged(BasicListUI.java:2623)
at
javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:184)
at
javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:164)
at
javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:211)
at
javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:405)
at
javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:415)
at
javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:459)
at javax.swing.JList.setSelectedIndex(JList.java:2210)
at
javax.swing.plaf.basic.BasicComboPopup.setListSelection(BasicComboPopup.java:1179)
at
javax.swing.plaf.basic.BasicComboPopup.access$300(BasicComboPopup.java:63)
at
javax.swing.plaf.basic.BasicComboPopup$Handler.itemStateChanged(BasicComboPopup.java:1008)
at javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1223)
at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1280)
at javax.swing.JComboBox.contentsChanged(JComboBox.java:1330)
at
javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:118)
at
javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.setSelectedItem(MetalFileChooserUI.java:1014)
at
javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.addItem(MetalFileChooserUI.java:985)
at
javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.access$800(MetalFileChooserUI.java:915)
at
javax.swing.plaf.metal.MetalFileChooserUI.doDirectoryChanged(MetalFileChooserUI.java:664)
at
javax.swing.plaf.metal.MetalFileChooserUI.access$1100(MetalFileChooserUI.java:53)
at
javax.swing.plaf.metal.MetalFileChooserUI$5.propertyChange(MetalFileChooserUI.java:753)
at
java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327)
at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)
at java.awt.Component.firePropertyChange(Component.java:8428)
at javax.swing.JFileChooser.setCurrentDirectory(JFileChooser.java:598)
at javax.swing.JFileChooser.(JFileChooser.java:354)
at javax.swing.JFileChooser.(JFileChooser.java:311)
at
org.pdfsam.guiclient.gui.panels.JSettingsPanel.initialize(JSettingsPanel.java:124)
at
org.pdfsam.guiclient.gui.panels.JSettingsPanel.(JSettingsPanel.java:119)
at