CreateProcess (blitzplus) Java permissions issue

Community Forums/General Help/CreateProcess (blitzplus) Java permissions issue

Matty(Posted 2014) [#1]
Hi all,

I've been using the createprocess command in blitzplus to call a java program that was written some time ago for the last 3 years at a company I work for and have suddenly come across an issue.

We've narrowed the code down to the most basic of sets of code.

Basically - create process, while(process running) wend..

What we have found is that it works 100% perfectly at one of our sites and has done for the past 3 years.

Then recently we acquired a new warehouse and moved our despatch to their as well.

Since doing this the createprocess command does not work for any java program called from blitzplus on computers attached to the network at the Dandenong site.

We can get java programs to run.
We can get blitz programs to run.
We can get blitz programs to call java programs at our Braeside office.
The process fails to create at our Dandenong site.

However if we create a process with a standard windows application instead of java then it works as expected.

It is only java files run as a process from within blitz code and only from computers at one of our warehouses.

We've tried permissions settings - trying with full admin access and it still has no effect.

Any pointers?


Matty(Posted 2014) [#2]
Maybe it is a DEP issue?

We're using the latest version of Java just installed. blitzplus version 1.46.

It executes fine on the machines at our Braeside office which are likely older by a number of years though all running either XP or Win7 (mixture).

It fails on all the machines at Dandenong which are newer machines running Win7.

I would love to have some advice on this...I know blitz isn't usually used for mission critical tasks but it was working for years fine in our first warehouse and now it is failing. (In hindsight it may have been better to do the whole thing in a more standard language)


Matty(Posted 2014) [#3]
As a minimum code needed to cause this:

Basically take the createprocess example code and replace the calc.exe with any java .jar file at all.

It works on machines at one office but not the other.

Interestingly if you leave the example untouched with calc.exe it works at both sites.

So there's either something different about the hardware of the PCs at the site or a security setting somewhere that doesn't care about admin settings!


Matty(Posted 2014) [#4]
Nope it's not DEP. Just tried that.

Next attempt will be to take a windows machine from the current site to the new site and see if the program fails on the machines that it currently works on.

Please note the line it fails on is as simple as:

proc = createprocess("java -jar myjavafile.jar")
proc is not getting created we get "invalidstreamhandle" on referring to the variable.

And it only does it on java files, and only on the machines at this warehouse, regardless of permissions set.


Matty(Posted 2014) [#5]
Its something to do with 64bit java ... will try again wednesday when im in next.


Matty(Posted 2014) [#6]
Ok turned out to be 64bit java runtime couldnt be called from blitzpkus...had to use 32bit.