LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-12-2016, 04:17 PM   #1
yankiwi
LQ Newbie
 
Registered: Jan 2013
Posts: 3

Rep: Reputation: Disabled
pdftk java exception


Whenever I attempt to use pdftk invoking the "output" argument, it crashes with the following Java exceptions:

Unhandled Java Exception in create_output():
Unhandled Java Exception in main():
java.lang.NullPointerException
at gnu.gcj.runtime.NameFinder.lookup(libgcj.so.14)
at java.lang.VMThrowable.getStackTrace(libgcj.so.14)
at java.lang.Throwable.getStackTrace(libgcj.so.14)
at java.lang.Throwable.stackTraceString(libgcj.so.14)
at java.lang.Throwable.printStackTrace(libgcj.so.14)
at java.lang.Throwable.printStackTrace(libgcj.so.14)

This situation has persisted for a long time but went away for a short time between two successive dnf updates. I would like to get it solved.

My immediate problem is trying to attach a user_pw to a file, but I have not been able to find a utility other than pdftk to do this for me. Any suggestions would be welcom, but I would really like to restore pdftk to working order as I have quite a few scripts that use it.
 
Old 05-19-2016, 01:19 AM   #2
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Location: Non. Je suis propriétaire – No. I am an owner.
Distribution: Apple-selling shops, markets and direct marketing
Posts: 1,315
Blog Entries: 35

Rep: Reputation: 707Reputation: 707Reputation: 707Reputation: 707Reputation: 707Reputation: 707Reputation: 707
Can you, just for completeness, show us how you invoked pdftk with all options?

A Nullpointer-Exception in the create_output() routine cannot have more than two reasons, one of which we can try to exclude.

Last edited by Michael Uplawski; 05-19-2016 at 02:30 AM. Reason: Awful English, now just downright bad.
 
Old 05-19-2016, 02:22 PM   #3
yankiwi
LQ Newbie
 
Registered: Jan 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Here is an example:
pdftk type1*.pdf type2*.pdf type3*.pdf output portfolio.pdf user_pw 1234

However it seems that any invocation of pdftk that includes the "output" argument fails in the same way.

Cheers.
 
Old 05-20-2016, 12:40 AM   #4
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Location: Non. Je suis propriétaire – No. I am an owner.
Distribution: Apple-selling shops, markets and direct marketing
Posts: 1,315
Blog Entries: 35

Rep: Reputation: 707Reputation: 707Reputation: 707Reputation: 707Reputation: 707Reputation: 707Reputation: 707
Okay, my personal opinion is, that you should try with a different java version. Before I throw stones at pdftk, I suggest that you install a different java environment. OpenJDK 8 or 7 should be okay. You only need the JRE.

There is a bug description on bugs.launchpad.net, but it dates from 2011.

Last edited by Michael Uplawski; 05-20-2016 at 12:50 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java runtime error. Exception in thread "main" java.lang.NoClassDefFoundError: / Priyadivya Red Hat 2 10-26-2010 05:01 AM
java exception: java.lang.NoClassDefFoundError kath Programming 12 05-11-2006 04:37 AM
Java 'Main' exception question magnumbi Programming 2 10-11-2005 12:41 PM
Java getHostAddress Exception scherl SUSE / openSUSE 2 04-22-2005 12:55 AM
Java: try won't catch exception nro Programming 3 09-15-2004 11:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration