Finding Inline::Java on cpanmetadb failed

2015-07-31 Thread Russ Tremain
Hi Patrick, When I use cpanm to install Inline::Java, I get an warning: ==> Found dependencies: Inline::Java ! Finding Inline::Java on cpanmetadb failed. --> Working on Inline::Java Fetching http://www.cpan.org/authors/id/E/ET/ETJ/Inline-Java-0.58.tar.gz ... OK And indeed I cannot find t

Re: Inline-Java Installation using Cygwin and JDK1.8 ERROR /usr/bin/dlltool: Can't open def file: jvm.def

2014-11-14 Thread Ed .
: Inline-Java Installation using Cygwin and JDK1.8 ERROR /usr/bin/dlltool: Can't open def file: jvm.def Hi, I have been trying to install Inline::Java with JNI on Cygwin Windows 7 on jdk1.8.0_25 without much avail. Have anyone been successful with installing in Cygwin on jdk1.8.0.25?

Inline-Java Installation using Cygwin and JDK1.8 ERROR /usr/bin/dlltool: Can't open def file: jvm.def

2014-11-14 Thread Peter Leong
Hi, I have been trying to install Inline::Java with JNI on Cygwin Windows 7 on jdk1.8.0_25 without much avail. Have anyone been successful with installing in Cygwin on jdk1.8.0.25? /usr/bin/dlltool: Can't open def file: jvm.def Checking if your kit is complete... Warning: the following

Re: Inline::Java timeout?

2014-04-19 Thread Patrick LeBoutillier
Hi, I don't recommmend handling the timeout on the Perl side. If the webservice you call from Java is not returning, it's best to handle the timeout on the Java side. A timeout on the Perl side will just leave that Java thread blocked indefinitely ancd will cause the protocol between Perl and Jav

Re: Inline::Java timeout?

2014-04-15 Thread sisyphus1
From: Bill Moseley Sent: Tuesday, April 15, 2014 10:19 AM To: inline@perl.org Subject: Re: Inline::Java timeout? Looks like there’s no-one currently around here to help you out. Maybe try somewhere like perlmonks (http://www.perlmonks.org) if you’re still trying to find a solution. Well, if

Re: Inline::Java timeout?

2014-04-14 Thread Bill Moseley
On Thu, Apr 10, 2014 at 9:07 PM, Bill Moseley wrote: > > > > On Thu, Apr 10, 2014 at 8:52 PM, wrote: > >> >> Looks like there’s no-one currently around here to help you out. >> Maybe try somewhere like perlmonks (http://www.perlmonks.org) if you’re >> still trying to find a solution. >> > > Well

Re: Inline::Java timeout?

2014-04-10 Thread Bill Moseley
On Thu, Apr 10, 2014 at 8:52 PM, wrote: > > Looks like there’s no-one currently around here to help you out. > Maybe try somewhere like perlmonks (http://www.perlmonks.org) if you’re > still trying to find a solution. > Well, if there isn't a specific solution for Inline then I'll go the ALRM ap

Re: Inline::Java timeout?

2014-04-10 Thread sisyphus1
Hi Bill, Looks like there’s no-one currently around here to help you out. Maybe try somewhere like perlmonks (http://www.perlmonks.org) if you’re still trying to find a solution. Cheers, Rob From: Bill Moseley Sent: Monday, April 07, 2014 1:43 PM To: inline@perl.org Subject: Inline::Java

Inline::Java timeout?

2014-04-06 Thread Bill Moseley
I'm just starting to research this issue and I'm not very familiar with Inline. Using Inline::Java in a mod_perl application on CentOS 6.2, Perl v5.10.1, and $Inline::Java::VERSION = '0.53'. At times I find Apache processes that are old (meaning the child process was star

Re: New to Inline::Java and a quick question

2014-01-05 Thread Russ Tremain
for JDBC.pm? This would allow bug https://rt.cpan.org/Public/Bug/Display.html?id=50307 to be closed. Patrick, might be worth a usage note for Inline::Java. The obscurity of this problem could make such a note quite valuable. best, -Russ At 10:02 PM -0500 1/4/14, Patrick LeBoutillier wrote: Russ,

Re: New to Inline::Java and a quick question

2014-01-04 Thread Patrick LeBoutillier
(eval 31) line 344, line 5. # Looks like you planned 4 tests but ran 1. # Looks like your test exited with 255 just after 1. To answer your question, the __validate_prototype is part of the Inline::Java::Object class, which JDBC derives via java::sql::DriverManager. Anyway, here's a quic

Re: New to Inline::Java and a quick question

2014-01-02 Thread Russ Tremain
in main in order to # get the studied classes to be rooted in main package main; use Inline ( Java => q{ }, AUTOSTUDY => 1, DEBUG => 4 ); } use Inline::Java qw(cast caught study_classes); our @EXPORT_OK = qw(cast caught study_classes);

Re: New to Inline::Java and a quick question

2013-12-17 Thread David Wang
Thanks for the great responses. I am glad it is not as dependent as I thought. From: Patrick LeBoutillier To: Russ Tremain Cc: David Wang ; "inline@perl.org" Sent: Monday, December 16, 2013 6:30 PM Subject: Re: New to Inline::Java and a quic

Re: New to Inline::Java and a quick question

2013-12-16 Thread Patrick LeBoutillier
Hi, I just ran the tests without issues on Fedora 17, Perl 5.14 and Java 1.7.0. There's really not much in Inline::Java that is dependant on the perl version. Patrick On Mon, Dec 16, 2013 at 9:08 PM, Russ Tremain wrote: > Well, I'm using JDBC.pm to access the inline::Java stuff

Re: New to Inline::Java and a quick question

2013-12-16 Thread Russ Tremain
Well, I'm using JDBC.pm to access the inline::Java stuff, and I could never get it to work with >5.8.9, and never got any response from Tim Bunce or Patrick, so I eventually gave up on it. It is possible that JDBC is doing something different, but I doubt it, as it is a very simple

Re: New to Inline::Java and a quick question

2013-12-16 Thread David Wang
. Can someone confirm if this will or will not work on Perl version v5.10.0? Thanks David From: Russ Tremain To: David Wang Cc: David Mertens ; "inline@perl.org" Sent: Thursday, December 12, 2013 5:05 PM Subject: Re: New to Inline::Java a

Re: New to Inline::Java and a quick question

2013-12-13 Thread David Wang
Absolutely. Thanks a lot for the help and sorry for the spam again. From: Russ Tremain To: David Wang Cc: Patrick LeBoutillier ; "inline@perl.org" Sent: Friday, December 13, 2013 12:29 PM Subject: Re: New to Inline::Java and a quick question

Re: New to Inline::Java and a quick question

2013-12-13 Thread Russ Tremain
you should also always check for exceptions as per my previousl example. i.e., in your perlAPI.pm: sub new { my $self = {}; bless($self, $class); eval { $self->{CONNECTION} = new perlAPI::MyJAXB(); }; if ($@){ if (Inline::Java::cau

Re: New to Inline::Java and a quick question

2013-12-13 Thread David Wang
Wang To: Patrick LeBoutillier Cc: Russ Tremain ; "inline@perl.org" Sent: Friday, December 13, 2013 11:28 AM Subject: Re: New to Inline::Java and a quick question Hi Patrick and the rest I made a very simple example. This example shows how a Main.java calls the JAXB stuff and the s

Re: New to Inline::Java and a quick question

2013-12-13 Thread Russ Tremain
l/lib/site_perl/5.8.9/darwin-2level/Inline/Java/Object.pm line 49. at testjaxb.pl line 18. at testjaxb.pl line 18. ' Note that Inline::Java::caught() is *not* catching the java exception. Possibly because the MyJAXB object was never created, the exception object was also destroyed.

Re: New to Inline::Java and a quick question

2013-12-13 Thread Patrick LeBoutillier
Hi, If I run this: use strict ; use Inline ( Java => 'DATA', DEBUG => 0, AUTOSTUDY => 1, ); my $t = new MyJAXB() ; __DATA__ __Java__ import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFou

Re: New to Inline::Java and a quick question

2013-12-12 Thread David Wang
If you do the DEBUG =>4, you will see the error [perl][3]   perl doesn't know about 'javax.xml.bind.JAXBException'  ('perlAPI::javax::xml::bind::JAXBException') use Inline (     Java => 'DATA',     J2SDK => $ENV{JAVA_HOME},     CLASSPATH => 'classe

Re: New to Inline::Java and a quick question

2013-12-12 Thread Russ Tremain
can you publish your full example? I can try it my environment to see if it works for me. Also, when you installed inline::Java, did it pass all the tests? At 5:18 PM -0800 12/12/13, David Wang wrote: Thanks. my perl version is v5.8.8 . It works with Java fine. Just not with JAXB at this

Re: New to Inline::Java and a quick question

2013-12-12 Thread David Wang
Thanks. my perl version is v5.8.8 . It works with Java fine. Just not with JAXB at this current moment. From: Russ Tremain To: David Wang Cc: David Mertens ; "inline@perl.org" Sent: Thursday, December 12, 2013 5:05 PM Subject: Re: New to Inline

Re: New to Inline::Java and a quick question

2013-12-12 Thread Russ Tremain
one thing I can tell you is I have never gotten Inline::Java to work with any perl later than 5.8.9. I have used it extensively with JDBC.pm. Example of this can be found here: https://github.com/russt/sqlpj best of luck! -Russ At 4:57 PM -0800 12/12/13, David Wang wrote: Thanks

Re: New to Inline::Java and a quick question

2013-12-12 Thread David Wang
Thanks I am not sure if anybody has any experience with perl Inline::Java to call Java JAXB . Basically, I have added some code in my perl script to call some of my Java API that calls JAXB. System.out.println(“before…”); JAXBContext context = JAXBContext.newInstance("SomeXMLPa

Re: New to Inline::Java and a quick question

2013-12-12 Thread David Mertens
d luck, and don't be afraid to ask more questions as they come up! David On Wed, Dec 11, 2013 at 7:38 PM, David Wang wrote: > Ok, I figured it out. Hope it can be documented somewhere. > > Download Inline-0.53 > go to the dir > cpan Inline::Java << was in

Re: New to Inline::Java and a quick question

2013-12-11 Thread David Wang
Ok, I figured it out. Hope it can be documented somewhere. Download Inline-0.53 go to the dir cpan Inline::Java  << was instructed by some nice guy Thanks David From: David Wang To: "inline@perl.org" Sent: Wednesday, December 11, 2013 4:25

New to Inline::Java and a quick question

2013-12-11 Thread David Wang
Hi I am very new to this stuff, just started to hear about it today. I looked around the web and I find the installation instructions for inline::c like the following perl Makefile.PL; make; make test; make install; But I can't find anywhere else that tells us how to install inline:

Re: Inline::Java

2013-02-22 Thread Patrick LeBoutillier
On Fri, Feb 22, 2013 at 3:51 PM, Iturrate, Eduardo < eduardo.iturr...@nyumc.org> wrote: > Hi there. > > ** ** > > Wondering if you could help out. I am using Lingua::StanfordCoreNLP a > package that use Inline::Java to create several subclasses. The package > work

advise on handling interrupts for Inline::Java?

2013-02-08 Thread Russ Tremain
Hi Patrick! I'm using inline java to implement a commandline monitor that interacts with databases via JDBC. I'm catching interrupts on the perl side, but the interrupt is killing Inline::Java, with a message like this: sqlpjImpl[sql_init_connection]: ERROR on connect: 

Re: persist inline java objects

2013-02-06 Thread Russ Tremain
objects and then persist the perl, but that sounds like a lot more work. /r At 10:12 AM -0800 12/4/12, Giridhar Jayavelu wrote: >Hi, >I'm trying to store and retrieve Perl objects from a file using >Data::Dumper and eval. It works fine if I'm dealing with pure Perl objects

persist inline java objects

2012-12-04 Thread Giridhar Jayavelu
Hi, I'm trying to store and retrieve Perl objects from a file using Data::Dumper and eval. It works fine if I'm dealing with pure Perl objects. With Inline Java objects, I realize it is not straight forward, I probably have to serialize inline java objects first. I couldn't find a

Re: Inline::Java problem dealing with PayPal .jar file

2012-11-01 Thread Tom Kane
For those of you who are reading this post about using Inline::Java with Catalyst, the following is provided so the issue's resolution is shared. Patrick asked me to create a debug dump by adding the option DEBUG => 5. I added the option and created the dump, which was huge (6Mb+). I f

Re: Inline::Java problem dealing with PayPal .jar file

2012-10-31 Thread Patrick LeBoutillier
Tom, I don't know anything about Catalyst, but my guess is that it puts your code into some autogenerated namespace, and that why you can't find your methods. If you set the DEBUG Inline::Java option to 5, you should get a lot of output that should tell you where the methodds are being

Inline::Java problem dealing with PayPal .jar file

2012-10-31 Thread Tom Kane
Hi, I am trying to work with Inline::Java from within a Linux/nginx/fastcgi/Catalyst framework. I need to be able to interface to a PayPal .jar file, which is the only method of access I have to their "Hosted Checkout" credit card processing. I have a perl module (.pm) that executes

Re: JDBC.pm no longer works with Inline::Java?

2012-08-30 Thread Russ Tremain
I was able to get past this by reverting to perl 5.8.9 from macports. I have 2 other machines running leopard (mac osx 10.5.8) that had no trouble, using perl 5.8.8. However 5.10.0 (default on osx 10.6.8) was a no-go. The Inline::Java tests pass on either, but JDBC.pm provokes errors, which

JDBC.pm no longer works with Inline::Java?

2012-08-25 Thread Russ Tremain
Hi, I've been trying to install Inline::Java with JDBC for several hours. I cannot get the JDBC tests to pass. Here is the error: tanami{jdbcpm.41} Build test t/00-load.t ... 1/1 # Testing JDBC 0.01, Perl 5.01, /usr/bin/perl t/00-load.t ... ok t/01-driver.t . 1/4 Can

Re: Inline::Java and DIRECTORY config option

2012-05-17 Thread Patrick LeBoutillier
s and) uses the ./_Inline directory: > > ##### > use warnings; > use Inline Java => "STUDY", >          STUDY => [], >          AUTOSTUDY => 1, >          STARTUP_DELAY => 40, >          PORT => 14567, >          JNI =>

Re: Inline::Java and DIRECTORY config option

2012-05-15 Thread Sisyphus
- Original Message - From: "David Oswald" To: "Sisyphus" Cc: "inline" Sent: Tuesday, May 15, 2012 8:47 PM Subject: Re: Inline::Java and DIRECTORY config option On Tue, May 15, 2012 at 1:39 AM, Sisyphus wrote: Hi all, There's a thread on p

Re: Inline::Java and DIRECTORY config option

2012-05-15 Thread David Oswald
s the ./_Inline directory: > > ##### > use warnings; > use Inline Java => "STUDY", >          STUDY => [], >          AUTOSTUDY => 1, >          STARTUP_DELAY => 40, >          PORT => 14567, >          JNI => 1, >        

Inline::Java and DIRECTORY config option

2012-05-15 Thread Sisyphus
use Inline Java => "STUDY", STUDY => [], AUTOSTUDY => 1, STARTUP_DELAY => 40, PORT => 14567, JNI => 1, EXTRA_JAVA_ARGS => '-Xmx800m', DIRECTORY => "/u/narlab/InlineLib/&q

Re: Accessing enums in Inline::Java

2011-08-22 Thread Ken.Williams
methods. Experimenting again, it looks like the following actually works: use Inline (Java => "STUDY", CLASSPATH => "foo.jar", AUTOSTUDY => 1, STUDY=> ["com.my.company.TokenFSM\$TokenType"],

Re: Accessing enums in Inline::Java

2011-08-19 Thread Patrick LeBoutillier
hat didn't exist when I first wrote Inline::Java can automagically work using the existing framework. In this case they are implemented using an inner class. > I want to get my hands on a specific Enum value.  valueOf() is just a way > to look up an Enum by its string name, I was hopin

Re: Accessing enums in Inline::Java

2011-08-19 Thread Patrick LeBoutillier
e com.my.company; > public class TokenFSM { >    public static enum TokenType { >        ALPHAID, >        APOS >    } > } > > > I'd like to access various enum constants from Perl code, something like > the following (which doesn't work): >

Accessing enums in Inline::Java

2011-08-18 Thread Ken.Williams
esn't work): -------- use Inline (Java => "STUDY", CLASSPATH => "foo.jar", AUTOSTUDY => 1, STUDY=> ["com.my.company.TokenFSM"], JNI=>1); print $com::my::company::TokenFSM::TokenType->valueOf(

Re: Inline::Java::PerlInterpreter cant install!

2011-08-18 Thread James Fraser
James Fraser > wrote: > > Hi, > > > > I am trying to install Inline::Java::PerlInterpreter using cpan. > > > > If I select `y` to `Do you wish to build the PerlInterpreter extension? > > [n]`, I error with the following: > > > > [james@wulfgar-lt]

Re: Inline::Java::PerlInterpreter cant install!

2011-08-17 Thread Patrick LeBoutillier
James, Never seen that error before, seems low-level gcc stuff to me. What OS/distro are you running? Patrick On Tue, Jul 26, 2011 at 5:46 AM, James Fraser wrote: > Hi, > > I am trying to install Inline::Java::PerlInterpreter using cpan. > > If I select `y` to `Do you wi

Inline::Java::PerlInterpreter cant install!

2011-07-26 Thread James Fraser
Hi, I am trying to install Inline::Java::PerlInterpreter using cpan. If I select `y` to `Do you wish to build the PerlInterpreter extension? [n]`, I error with the following: [james@wulfgar-lt][~/Downloads/Inline-Java-0.53]% make make[1]: Entering directory `/home/james/Downloads/Inline-Java

Re: Inline::Java and mod_perl2

2011-04-02 Thread Patrick LeBoutillier
Tim, It's been a while since I've use Inline::Java with mod_perl, but I remember that I was never able to get the JVM component started properly from an Apache child. That was the reason I add some initscript-style command-line options to control the JVM server seperately.

Inline::Java and mod_perl2

2011-03-31 Thread Keefer, Tim
Hi - I'm looking for advice on out to run Inline::Java from within a mod_perl2 app. The test outside of apache/mod_perl works fine. However, it fails under apache/mod_perl. It seems that it's having difficulty starting the vm. The other thing to mention is that once the jvm is starte

Fwd: Passing byte arrays with Inline::Java

2011-03-09 Thread Patrick LeBoutillier
Forgot to put the list in CC: Patrick -- Forwarded message -- From: Patrick LeBoutillier Date: Wed, Mar 9, 2011 at 8:17 PM Subject: Re: Passing byte arrays with Inline::Java To: Alessandro Ranellucci Hi Alessandro, On Wed, Mar 9, 2011 at 2:28 PM, Alessandro Ranellucci wrote

Passing byte arrays with Inline::Java

2011-03-09 Thread Alessandro Ranellucci
Hi all, thanks to the wonderful Inline::Java module I recently published these bindings: http://search.cpan.org/perldoc?Net::RabbitMQ::Java However I'm running into a problem. My Java library needs strings to be passed as byte arrays, so I'm using the following snippet: [

Inline::Java fails with "setProperty must be overridden by all subclasses of SOAPMessage"

2011-01-27 Thread Tapio.Niva
Hello, I'm trying to use Inline::Java to get some information from a vendor's WS-API , but it fails with the above error. I hve seen plenty of issues on the net concerning this error message , but they usually are solved by moving some jars between directories. I cannot do that b

RE: Inline Java - dereferencing

2011-01-27 Thread Scott.Davis8
You could try: print $obj->toString(); Pure Java does this for you automatically whenever any object is used in a String context, but Inline::Java doesn't. Scott -Original Message- From: VANOLE, MICHAEL J (ATTSI) [mailto:mv5...@att.com] Sent: Wednesday, January 26, 2011 7:

RE: Inline Java - dereferencing

2011-01-27 Thread VANOLE, MICHAEL J (ATTSI)
Patrick, this did the trick. AUTOSTUDY => 1 exposed everything I needed to get the data from that object. Perfect. My confusion came from returning arrays from other methods and being able to dereference them. $r = $mstrAdmin->getGroupForUser(myuserid) print $r Inline::Java::Array

Re: Inline Java - dereferencing

2011-01-27 Thread Jason Stelzer
On Jan 26, 2011, at 9:14 PM, VANOLE, MICHAEL J (ATTSI) wrote: > I think so. Thanks Jason. I'll have to change the java to return > something perl can digest. > > > Again, this isn't so much a matter of perl digesting anything. If you've imported your classes and they've been studied, perl s

Re: Inline Java - dereferencing

2011-01-27 Thread Jason Stelzer
On Jan 26, 2011, at 4:58 PM, VANOLE, MICHAEL J (ATTSI) wrote: > Hi, this may be a basic perl question. I'm using inline::java to execute > some public methods like this one: > >public User findUserByLogin(String loginName, boolean populate) > { >

RE: Inline Java - dereferencing

2011-01-26 Thread VANOLE, MICHAEL J (ATTSI)
I think so. Thanks Jason. I'll have to change the java to return something perl can digest. -Original Message- From: Jason Stelzer [mailto:men...@neverlight.com] Sent: Wednesday, January 26, 2011 5:26 PM To: VANOLE, MICHAEL J (ATTSI) Cc: inline Subject: Re: Inline Java - derefere

Inline Java - dereferencing

2011-01-26 Thread VANOLE, MICHAEL J (ATTSI)
Hi, this may be a basic perl question. I'm using inline::java to execute some public methods like this one: public User findUserByLogin(String loginName, boolean populate) { User ret = null; try { ret = impl.findUserByLogin(logi

Re: Using Inline::Java with class without public constructor

2011-01-20 Thread Patrick LeBoutillier
Hi, On Wed, Jan 19, 2011 at 11:21 AM, wrote: > Hello, > as a beginner, I'm trying to use Inline::Java (0.52.90)  to get an object > from an AXIS2-generated Java class ("Operator"), to be used as a parameter to > next Java class ("Condition"), but d

Using Inline::Java with class without public constructor

2011-01-20 Thread Tapio.Niva
Hello, as a beginner, I'm trying to use Inline::Java (0.52.90) to get an object from an AXIS2-generated Java class ("Operator"), to be used as a parameter to next Java class ("Condition"), but don't know how to actually do it - the result is "No public con

Re: Inline::Java - Using callbacks from a jar

2011-01-18 Thread Jay Strauss
> > On Jan 13, 2011, at 9:43 AM, Patrick LeBoutillier < > patrick.leboutill...@gmail.com> wrote: > > > Jay, > > > > I just uploaded 0.53_90 to CPAN, you must use that version for what > > you want to do. There is an example in there: > > >

Re: Inline::Java - Using callbacks from a jar

2011-01-13 Thread Jay Strauss
o do. There is an example in there: > > http://cpansearch.perl.org/src/PATL/Inline-Java-0.53_90/Java/PerlInterpreter/t/02_perl_interpreter.t > > At the end on that file there is a Java program that creates a > PerlInterpreter, loads a Perl script and calls > a function in it. I a

Re: Inline::Java - Using callbacks from a jar

2011-01-13 Thread Patrick LeBoutillier
Jay, I just uploaded 0.53_90 to CPAN, you must use that version for what you want to do. There is an example in there: http://cpansearch.perl.org/src/PATL/Inline-Java-0.53_90/Java/PerlInterpreter/t/02_perl_interpreter.t At the end on that file there is a Java program that creates a

Re: Inline::Java - Using callbacks from a jar

2011-01-12 Thread Jay Strauss
sts) Maybe even walking a java variable? Thanks Jay On Wed, Jan 12, 2011 at 12:25 PM, Patrick LeBoutillier < patrick.leboutill...@gmail.com> wrote: > Jay, > > You need to use the Inline::Java::PerlInterpreter for that: > > http://search.cpan.org/~patl/Inline

Re: Inline::Java - Using callbacks from a jar

2011-01-12 Thread Patrick LeBoutillier
Jay, You need to use the Inline::Java::PerlInterpreter for that: http://search.cpan.org/~patl/Inline-Java-0.53/Java/PerlInterpreter/PerlInterpreter.pod Once your interpreter is created you can call Callback methods on it: require, CallPerlSub, eval... Note: Keep in mind that Inline::Java

Inline::Java - Using callbacks from a jar

2011-01-12 Thread Jay Strauss
ile within Eclipse using a supplied Ant xml, which turns my code into a Jar that is deployed onto the server. The vendor's Java app reads a DB that indicates where the Jar is located and the class and method to call under various situations. I've written a Inline::Java callback in

Re: How to make Inline::Java work in parallel ?

2011-01-04 Thread ant
That could be it in my case, I am using Inline::Java to use a Java API to access a data product in a FastCGI-like environment. I'll have to look into it the next time I get a chance. Thanks. On Tue, 4 Jan 2011 08:23:04 -0500, Patrick LeBoutillier wrote: > Hi, > > If you

Re: How to make Inline::Java work in parallel ?

2011-01-04 Thread Patrick LeBoutillier
essed directly by other processes using Inline::Java. This is meant to be a minimal security mechanism when using SHARED_JVM mode. It helps keep each Perl processe's Java objects somewhat separate. If you really want to keep your current design, you will have to keep your objects on the Java side i

RE: How to make Inline::Java work in parallel ?

2011-01-03 Thread ant
I made this work by turning off SHARED_JVM (because after a while it seemed to cause problems) and then loading the module that had Inline::Java in it at runtime in an eval instead because reconnect_JVM didn't seem to work right at all. so basically I did fork(); eval "use

RE: How to make Inline::Java work in parallel ?

2011-01-03 Thread Scott.Davis8
I found a workaround!!! Just rewrite everything in pure Java. :-) Seriously, the following example works! And without having to make all Java methods static. The trick is to use Java threads rather than Perl fork() or threads. --- use Inline ( Java => 'DATA', PORT =>

RE: How to make Inline::Java work in parallel ?

2011-01-03 Thread Scott.Davis8
that the first step completes on all target servers before moving on to the second step, and so forth. use Inline ( Java => 'DATA', SHARED_JVM => 1, PORT => 17891, ) ; Inline::Java::capture_JVM() ; # Kill JVM on exit my $nb = $ARGV[0] || 5 ; for (my $i

Re: How to make Inline::Java work in parallel ?

2011-01-01 Thread Patrick LeBoutillier
Scott, On Wed, Dec 29, 2010 at 4:53 PM, wrote: > Since we added new servers, users have been complaining that the Perl scripts > are taking a lot longer. After a lot of logging and testing, I discovered > that the Inline::Java module is the bottleneck. Even though the threads >

How to make Inline::Java work in parallel ?

2010-12-29 Thread Scott.Davis8
Hi, I've been using Inline::Java, apparently with great success (no errors), for around a year. The Perl script is using a vendor's JAR file to do automated system administration on the vendor's application server. I have been using Perl with forks.pm to make changes to mult

Re: Issue with installing Inline::Java

2010-06-24 Thread Patrick LeBoutillier
Hi, On Thu, Jun 24, 2010 at 6:01 AM, selva ganapathy wrote: > Thanks Rob,Nick and Patrick , > From your analysis, I guess that JAVA + PERL with inline java and related > modules are at initial level and not to take up for application testing. Actually, that's not really the case

Re: Issue with installing Inline::Java

2010-06-24 Thread selva ganapathy
Thanks Rob,Nick and Patrick , >From your analysis, I guess that JAVA + PERL with inline java and related >modules are at initial level and not to take up for application testing. what I have expected is something like JEPP how PYTHON interacts with JAVA. Hence I have to give up my trail

Re: Issue with installing Inline::Java

2010-06-19 Thread Patrick LeBoutillier
ation procedure. You don't really need it to use PerlInterpreter or Inline::Java. Rob and all: My apologies for not being present on the list lately, I just realized this week that I wasn't getting the messages anymore since about January. Don't know what happened, I had to re-regi

Re: Issue with installing Inline::Java

2010-06-19 Thread Sisyphus
ng the following at the very top of PerlNatives.xs fixes this problem: #include "EXTERN.h" #include "perl.h" #include "XSUB.h" and Inline-Java-0.52 (along with PerlNatives) then builds fine for me. How about for you selva ? Annoyingly, the PerlNatives test script bails out be

Re: Issue with installing Inline::Java

2010-06-19 Thread Nicholas Clark
On Sat, Jun 19, 2010 at 01:20:12PM +1000, Sisyphus wrote: > The problem is this piece of code in ExtUtils::ParseXS: > > # > /* prototype to pass -Wmissing-prototypes */ > STATIC void > S_croak_xs_usage(pTHX_ const CV *const cv, const char *const params); > > STATI

Re: Issue with installing Inline::Java

2010-06-18 Thread Sisyphus
- Original Message - From: "selva ganapathy" To: Sent: Sunday, June 13, 2010 11:18 PM Subject: Issue with installing Inline::Java We have got as far as: # C:\Perl\site\lib\Inline-Java-0.52>dmake [snip - copying lots of files] cp P

Re: Catch complete stack trace from inline java

2010-06-18 Thread mingqiang yu
It's indeed the exactly the same exception. It's just one failed on the try and one failed on the specific line. Thanks! public String indexDocumentByEmail(String inputName, String id, line 77:try { if (inj == null) { init(); } idxDoc i = inj.getInstance(idxDoc.class

Re: Installing Inline::Java

2010-06-17 Thread Patrick LeBoutillier
> I installed Inline::Java regardless of the failed test. Everything > seems to work just fine. It's a problem with the test suite code, not Inline::Java per se. You should be fine., Patrick -- = Patrick LeBoutillier Rosemère, Québec, Canada

Re: Installing Inline::Java

2010-06-17 Thread my600080
;> make test > > > PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" > > "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t > > t/01_init.t 1/1 > > Perl version is 5.01 > > Inline vers

Re: Catch complete stack trace from inline java

2010-06-17 Thread Patrick LeBoutillier
HI, It looks like it's not the same exception (line 77 vs line 81): > at com.image.RemImag.idxDoc(RemImag.java:77) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcc > +essorImpl.java:39) > ... > java.lang.NullPointer

Catch complete stack trace from inline java

2010-06-17 Thread my600080
I need to catch the complete java error stack trace from inline java. For example, the following is my java error stack trace when I run inline java in perl: com.image.exception.ConversionException: Delete: deletion failed: temp +3d5140d9-ef4e-4e36-b8c5-e90166bb02c5.png at

Catch complete stack trace from inline java

2010-06-17 Thread mingqiang yu
I need to catch the complete java error stack trace from inline java. For example, the following is my java error stack trace when I run inline java in perl: com.image.exception.ConversionException: Delete: deletion failed: temp +3d5140d9-ef4e-4e36-b8c5-e90166bb02c5.png at

Re: Issue with installing Inline::Java

2010-06-15 Thread Sisyphus
- Original Message - From: "selva ganapathy" To: ; "Sisyphus" Sent: Monday, June 14, 2010 11:51 PM Subject: Re: Issue with installing Inline::Java Hi Rob, Thanks for the input. Yes it should be dmake and when I tried with that I am getting some there issues.

Re: Issue with installing Inline::Java

2010-06-14 Thread selva ganapathy
command line activity taken at C:\Perl\site\lib\Inline-Java-0.52 where I have extracted the inline::JAVA tar file --- On Mon, 14/6/10, Sisyphus wrote: > From: Sisyphus > Subject: Re: Issue with installing Inline::Java > To: "selva ganapathy" , inline@perl.org > Date: Monday,

Re: Issue with installing Inline::Java

2010-06-13 Thread Sisyphus
- Original Message - From: "selva ganapathy" To: Sent: Sunday, June 13, 2010 11:18 PM Subject: Issue with installing Inline::Java Hi All, Greetings. While installing Inline::Java in win XP box, I am getting this issue while making nma

Re: Issue with installing Inline::Java

2010-06-13 Thread selva ganapathy
gt; From: selva ganapathy > Subject: Issue with installing Inline::Java > To: inline@perl.org > Date: Sunday, 13 June, 2010, 6:48 PM > Hi All, > Greetings. > > While installing Inline::Java in win XP box, I am getting > this issue while making nmake command > --

Issue with installing Inline::Java

2010-06-13 Thread selva ganapathy
Hi All, Greetings. While installing Inline::Java in win XP box, I am getting this issue while making nmake command -- syntax error at -e line 1, next char ) Missing right curly or square bracket at -e line 1, at end of line Execution of -e aborted due to

Re: Installing Inline::Java

2010-04-29 Thread Sisyphus
ib/lib', 'blib/arch')" t/*.t t/01_init.t .... 1/1 Perl version is 5.01 Inline version is 0.46 Inline::Java version is 0.52 J2SDK version is 1.6.0_12, from /usr/lib/jvm/java-6-sun-1.6.0.12/ CLASSPATH is t/01_init.t ok t/02_primitives.t .. ok t/02_primi

Installing Inline::Java

2010-04-29 Thread marcos rebelo
Hy all I'm getting crazy to install Inline::Java. I have, and I would prefer to maintain, the Distribution Java from Sun in 2 PCs. One has the OS Ubuntu, and the other has the OS Debian. they both block in the test In the Debian, I executed: > perl Makefile.PL J2SDK=/usr/lib/jvm/ja

Re: Can't install Inline::Java

2010-04-28 Thread Sisyphus
- Original Message - From: "Alexander Koenig" To: Sent: Tuesday, April 27, 2010 12:10 AM Subject: Can't install Inline::Java Hi all, I already asked this on the Perl beginners list and have been referred here. Hopefully someone on this list is able to help me. Th

Can't install Inline::Java

2010-04-26 Thread Alexander Koenig
Hi all, I already asked this on the Perl beginners list and have been referred here. Hopefully someone on this list is able to help me. I tried to install Inline::Java from CPAN and it didn't work. The install process just stopped after some time. When I tried it the second time it stopped

Re: Dynamically loading Inline::Java modules

2010-01-12 Thread Jason Stelzer
On Jan 11, 2010, at 10:36 PM, Michael wrote: > Hello, > > I currently have a need to be able to import classes dyncamically. Now one of > these classes contains Java and uses Inline::Java. I've not yet successfully > found a way to do this. > > Using an example modu

Re: Dynamically loading Inline::Java modules

2010-01-12 Thread Michael
On Tue, 12 Jan 2010, Jason Stelzer wrote: On Jan 11, 2010, at 10:36 PM, Michael wrote: Hello, I currently have a need to be able to import classes dyncamically. Now one of these classes contains Java and uses Inline::Java. I've not yet successfully found a way to do this. Usi

Dynamically loading Inline::Java modules

2010-01-11 Thread Michael
Hello, I currently have a need to be able to import classes dyncamically. Now one of these classes contains Java and uses Inline::Java. I've not yet successfully found a way to do this. Using an example module as follow: package Foo; use strict; use warnings; # Setup Inline Jav

Status of Inline-Java-0.52 ?

2009-09-29 Thread Wilhelm Pastoors/Denic
Dear colleagues; I work on linux Fedora release 7. I tried to build Inline-Java-0.52.tar.gz but haven't succeeded so far. The output of "make" and "make test" is listet below. The "make test" hangs when executing "t/10_2_shared_start.t .. 1/3" and

  1   2   3   4   5   6   7   >