gokuu / jasper-command-line Goto Github PK
View Code? Open in Web Editor NEWPrint a jasper document via the command line
License: MIT License
Print a jasper document via the command line
License: MIT License
Why am I getting this, and how do I fix it?
jasper-command-line --jasper report2.jrxml --data-file sample.xml
produces
Error: Error loading object from file : report2.jrxml
jasper.rb:82:in `method_missing'
...
When I call it from the command line and something is missing, like it cannot find the report or the datafile, the return code that comes back in the bash shell via the echo $?
is always zero. Can you have it return something other than zero if there are problems? Thanks.
https://github.com/gokuu/jasper-command-line/blob/master/lib/jasper-command-line.rb#L5
I had to include require 'active_support'
above this line to make it work-- otherwise I was getting errors like the following
active_support/number_helper.rb:3 uninitialized constant ActiveSupport::Autoload
...
mfrederickson@artemis2:~/projects/light-me-up$ jasper-command-line
/usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.1.6/lib/active_support/number_helper.rb:3:in `<module:NumberHelper>': uninitialized constant ActiveSupport::Autoload (NameError)
from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.1.6/lib/active_support/number_helper.rb:2:in `<module:ActiveSupport>'
from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.1.6/lib/active_support/number_helper.rb:1:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.1.6/lib/active_support/core_ext/numeric/conversions.rb:2:in `require'
from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.1.6/lib/active_support/core_ext/numeric/conversions.rb:2:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.1.6/lib/active_support/core_ext/numeric.rb:3:in `require'
from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.1.6/lib/active_support/core_ext/numeric.rb:3:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.1.6/lib/active_support/core_ext.rb:2:in `require'
from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.1.6/lib/active_support/core_ext.rb:2:in `block in <top (required)>'
from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.1.6/lib/active_support/core_ext.rb:1:in `each'
from /usr/local/rvm/gems/ruby-2.1.2/gems/activesupport-4.1.6/lib/active_support/core_ext.rb:1:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.1.2/gems/jasper-command-line-0.4.1/lib/jasper-command-line.rb:5:in `require'
from /usr/local/rvm/gems/ruby-2.1.2/gems/jasper-command-line-0.4.1/lib/jasper-command-line.rb:5:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.1.2/gems/jasper-command-line-0.4.1/bin/jasper-command-line:3:in `require'
from /usr/local/rvm/gems/ruby-2.1.2/gems/jasper-command-line-0.4.1/bin/jasper-command-line:3:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.1.2/bin/jasper-command-line:23:in `load'
from /usr/local/rvm/gems/ruby-2.1.2/bin/jasper-command-line:23:in `<main>'
from /usr/local/rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `eval'
from /usr/local/rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in `<main>'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.