Executing MIDlet in POSE from Forte
This has been working fine all along for me. Just right-click on my midlet's .adContent file in Forte's explorer window, select "execute," and voila: dirty source files are compiled, the jar file is built, the .prc file is created, the emulator comes up, the .prc is loaded into the emulator, and the MIDlet is launched in the emulator.
But now, mysteriously, when I try to execute all I get is a message in the output window:
Warning: no .prc to run
And when I try to launch the converter tool from Forte, nothing happens. I don't know what I did to cause this problem.
The MIDlet builds with no errors. Anybody know what's up?
-k
Hi,
Sorry, though I cannot give you a useful hint I hope you have made out any solutions in the meantime?
I seem to have a similar but a more basic problem, for the Palm OS Emulator from Wireless toolkit 1.0.3 does not launch at all inside Forte for Java 4 ME.
While executing the e.g. example application named UIDemo, Forte Output window states:
"Wrote: C:\Java\Ide\forte4j\emulator\j2mewtk-1_0_3-win\wtklib\devices\PalmOS_Device\UIDemo.prc
java.io.IOException: CreateProcess: C:\Java\Palm\PalmOsEmulator\PalmOsEmulator -load_apps C:\Java\Ide\forte4j\emulator\j2mewtk-1_0_3-win\wtklib\devices\PalmOS_Device\MIDP_g.prc,C:\Java\Ide\forte4j\emulator\j2mewtk-1_0_3-win\wtklib\devices\PalmOS_Device\Params.pdb,C:\Java\Ide\forte4j\emulator\j2mewtk-1_0_3-win\wtklib\devices\PalmOS_Device\UIDemo.prc -run_app UIDemo error=2"
I have also installed POSE.
Any ideas?
Thanks
-tk-
Similar Messages
-
Execute Oracle Package Function call from FORTE
Has anyone EVER successfully execute an Oracle Package Function call from FORTE
via " sql execute procedure "?
Here's my question, I am able to execute a stored procedure but hasn't figured
out a way to execute a function which defined in a package. The syntax goes
like this: sql execute procedure <PackageName>.<FunctionName> ( input
input_parm, output output_parm). If anyone EVER successfully execute a
function, please let me know, thanks.You'll need to provide a column alias for the function call:
select func(val) as alias from dual -
To: [email protected]
cc:
Subject: Calling COBOL from Forte
We have a large complex COBOL program that we've purchased that we
currently run on our mainframe system. We are in the process of re-writing
our system into FORTE but we want to keep this COBOL program. This COBOL
program would need to be called from FORTE and it in turn would need to
call FORTE methods. The interface between FORTE and COBOL would be done by
passing large data structures as parameters containing both Character and
Integer data fields. Can this be done since I'm not looking forward to
having to re-write this entire program in FORTE?
David Wilbur email: [email protected]
University of Windsor phone: 519-253-4232 ext. 2779
Windsor, Ontario Canada
-----------------------------------------------Another alternative is to use the ExternalConnection class (in the
Framework project).
This would entail developing a "COBOL Function Server" on the mainframe to
"serve" the COBOL functions. I don't know if you can use COBOL for that,
but you should be able to use C, or PERL, or some other scripting language
that you can code a simple socket listener with on the mainframe.
This server would listen for requests to execute a COBOL function at a
designated port, call the COBOL function, and return its results via the
socket. On the Forte side you would use ExternalConnection to connect to,
send requests, and receive responses from the COBOL server. You can also
have a Forte server listen in on another port for requests from the COBOL
program and "serve" it Forte functions.
You would, in essence, be developing a COBOL/Forte gateway.
You would need to think about a simple application protocol to make the
requests/responses work. Something based on paramter=value pairs should
work well, is simple to code for, and simple to synchronize. For example :
request=get_employee_data
employee_no = 12345
<end_of_request>
request=produce_payroll_report
report_no=1705
format_no=1001
output_to=xyz
<end_of_request>
ExternalConnection class is a great way to create general Forte interfaces
to external systems. It does require some setting up, but is is worth the
effort.
Hope this helps.
-Nabil
At 03:21 PM 2/6/97 PST, Digital/Forte 06-Feb-1997 1512 wrote:
The only way I am aware of calling COBOL programs from Forte is through
C-wrappering since Forte does not provide a direct interface to COBOL.
This has been done on various platforms but with complex data structures
this can be turn out to be messy.
There are a lot of other middleware supported by Forte like
ObjectBroker&DCE but COBOL is not supported directly by these productseither.
>
I am not aware of what kind of processing your COBOL and Forte apps
do (interactive/batch) or what databases (if any) are involved,but it may be
easier for both to interact with a common database if it is feasible.
Does anyone else have better ideas?
- Arvind
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Arvind Kumar Krishnaswamy
Digital/Forte Software Products Group
Digital Equipment Corporation ______________________
1800,Harrison Street,Suite 1700, | | | | | | | |
Oakland.CA 94612 USA |d |i |g |i |t |a |l |
| | | | | | | |
Tel : 510-251-6537 ----------------------
Fax : 510-251-6531
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
==================================================
Nabil Hijazi Optimum Solutions, Inc.
[email protected] 11654 Plaza America Drive
Phone: (703) 435-3530 #501
Fax: (703) 435-9212 Reston, Va 20190
-------------------------------------------------- -
Reading the Registry from Forte
All,
I recently needed to add the ability to read values
from the Windows Registry using Forte. After searching
through the mailing list archives I discovered that
several others have needed to do the same but the only
solution seemed to be to create a C wrapper for the
Windows API. Currently we do not use a C/C++ compiler
and did not want to do so just to read the registry.
The solution I discovered to this problem is simple
and can easily be added to any Forte application. I
just wanted to share my idea in the hopes that it will
help someone.
The solution is dependent on the Microsoft Windows
Script Host, which allows native execution of VBScript
and JScript on a Windows OS. The host can be
downloaded from Microsoft separately at
http://msdn.microsoft.com/scripting/. Chances are it
is already installed on your machine if you have IE5.
Check the \\windows\ directory for wscript.exe and
\\windows\command directory for cscript.exe. See the
site for further details.
The idea is to run a script (Example script below)
from Forte using the OperatingSystem.RunCommand and
redirect the output like this:
c:\windows\command\cscript.exe //nologo example.js >
example.ini
This will produce something like the following:
[FORTE]
ForteRoot=c:\forte3L2
ForteNsAddress=host.name:5000
ForteModelNode=developer-node
The redirected file can then be read and parsed.
Viola! You can access the registry. Afterwards the
file can be discarded.
In my implementation I am going to keep a file
similiar to the example file in a database so I don't
need to modify code if I change the script (although
it is hard to get away from that) and I can deploy the
script to any node I wish (a big plus). You could
potential deploy the cscript.exe file in the same way
if you are worried about it not being installed on the
target machine.
For my purposes I did not spend the time to create
classes designed to handle this process (i.e. retrieve
script, write script to file system, execute script,
read and parse results, etc.) but it certainly is not
out of the realm of possibility.
Well that's about it. Write me if you have any
questions.
Samer Kanjo
What Technology
skanjoyahoo.com
Keywords: Registry
--------------- START EXAMPLE SCRIPT ---------------
// File: example.js
// Read and echo some of the Forte environment
variables. Any registry keys can
// be accessed. Try it.
// Note: HKCU = HKEY_CURRENT_USER
// Run: c:\windows\command\cscript.exe //nologo
example.js
var WshShell = WScript.CreateObject("WScript.Shell");
var forteRoot =
WshShell.RegRead("HKCU\\Software\\ForteSoftwareInc\\Forte\\FORTE_ROOT");
var forteNsAddress =
WshShell.RegRead("HKCU\\Software\\ForteSoftwareInc\\Forte\\FORTE_NS_ADDRESS");
var forteModelNode =
WshShell.RegRead("HKCU\\Software\\ForteSoftwareInc\\Forte\\FORTE_MODELNODE");
WScript.Echo("[FORTE]");
WScript.Echo("ForteRoot=" + forteRoot );
WScript.Echo("ForteNsAddress=" + forteNsAddress);
WScript.Echo("ForteModelNode=" + forteModelNode);
---------------- END EXAMPLE SCRIPT ----------------
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/Thanks for you reply but I'm still a little lost with the reply.
What is the rest of the commands?
I understand this will query the registry, but what about searching for "LT or DT" and the IF/GOTO Commands?
reg query HKEY_LOCAL_MACHINE\SOFTWARE\IS_DEPT\Simage\HW\Platform
I think my confusion is how to define LT or DT as the variable. I keep finding %errorlevel% variable, but that seems to only define on (1) or off (0)
Here's what I have so far and I dont' think it's correct.
reg query HKEY_LOCAL_MACHINE\SOFTWARE\IS_DEPT\Simage\HW\Platform /f
if "%ERRORLEVEL%" == "LT" GOTO HOME
if "%ERRORLEVEL%" == "DT" GOTO NOOOOPE -
Error while executing a stored procedure from forms6i
When I execute a STORED PROCEDURE from ORACLE DB 10g this procedure works perfectly fine.
But when I execute the same from the FORMs 6i I get the following error:
PDE-PLU022 Don't have access to the stored program unit
XMLPARSERCOVER in schema CARE.
where XMLPARSERCOVER is the class and
CARE is the schema.
Regards,
Jignesh SI have tried this with both the owner of the schema and the intended user, -from both forms and directly.
All rights was granted on the stored procedure. Since posting I have found that one of the tables that the procedure might insert into, was not explicitly granted to the intended user, and after rectifying that the error message went away.
-however, the procedure now silently "finishes" without any evidence that it ever ran, if invoked from the forms application. When invoked from SQL Plus (or JDev, or Toad) it runs as expected.
I have no public synonym for the procedure, -is that necessary?
The stored procedure in question is implemented in java, and published as a stored procedure. It does rather heavy lifting, when running, using a view against another server , updating local tables and quite a lot of data validation/cleansing, and logging. All recourses are within the same schema.
Any ideas? -
Error ORA-04031 while executing a stored procedure from Pro C++ code
I am getting the error ORA-04031(Unable to allocate 4096 bytes of shared memory("Shared Pool",.....)) while trying to execute a stored procedure from my pro*C application. This happens only after a few hours since the application has been running. I am closing the cursor after every database call.
Does anyone know why it is happening and any possible solutions?
TIA
Srithaj.One thing that can be done is to flush the shared pool before starting the application.
alter system flush shared pool;
Another is to increase the shared pool size by setting the parameter shared_pool_size in init_sid.ora file.
null -
Executing a shell script from a java program
Hi,
I'm facing a problem while executing a shell script from a jsp page.
I'm using exec() function.
It's working fine for single statement scripts.But if the script consists of any database processing and some other processing statements,it's not returning the correct exit status of the process.
Will u please help me in this.
If there is any other ways to execute a shell script from a jsp page other than Runtime.exec().If so let me know.
Thanks in advance.I think this shud workMaybe - but it is wrong! Why do you create aReader
and then read bytes which are turned into a String
without worrying about whether or not the bytes area
String and without worrying about the character
encoding if the bytes do represent characters and
without worrying about how many bytes wereactually
read.
Also, both you and the OP should read, digest and
follow the advice given in
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-
traps.htmlI dont care if it is wrong. This code works for me.
We are here to solve problems not to find which post
is wrong.It is wrong! You are posting bad advice that is very wrong! It may work for you but it is wrong in general! WRONG WRONG WRONG.
If you have a solution then post it I did post a solution! The reference I gave will explain to you and the OP exactly how it should be done.
rather then
posting rude comments.I was not rude! I was explaining just some of what was wrong! -
Executing a shell script from a jsp page
Hi,
I'm facing a problem while executing a shell script from a jsp page.
I'm using Runtime.exec() function.
It's working fine for single statement scripts.But if the script consists of any database processing and some other processing statements,it's not returning the correct exit status of the process.
Will u please help me in this.
If there is any other ways to execute a shell script from a jsp page other than Runtime.exec() like RMI etc,.If so let me know.
Thanks in advance.Hello,
It's hard to help you but what you can do is listening to the outputs of your script, you should read the output stream and error stream and send them to the default console.
Check this excellent article : http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html?page=4
Best regards,
Olivier. -
Error while executing unix shell script from java program
Hi All,
I am trying to execute unix shell script from a java program using Runtime.execute() method by passing script name and additional arguments.
Code snippet :
Java Class :
try{
String fileName ="test.ksh";
String argValue ="satish"; // value passed to the script
String exeParam = "/usr/bin/ksh "+fileName+" "+argValue;
Process proc = Runtime.getRuntime().exec(exeParam);
int exitValue = proc.waitFor();
sop("Exit Value is : "+exitValue);
catch(Exception e)
e.printStackTrace();
}Test.ksh
export -- application realated paths..
nohup abc.exe 1> test.log 2>&1;
$1
exit.By running the above java class , i am getting exit Value: 139 and log file test.log of 0 bytes.
when i am running the same command (/usr/bin/ksh test.ksh satish) manually, it's calling abc.exe file successfully
and able generate the logs properly.
Pls let us know where exactly i am stuck..
Thanks in advance,
Regards,
SatishHi Sabre,
As per the guidelines provided by the article, i had done below changes..
InputStream is = null;
InputStreamReader iStreamReader = null;
BufferedReader bReader = null;
String line = null;
try{
String fileName ="test.ksh";
String argValue ="satish"; // value passed to the script
String exeParam = "/usr/bin/ksh "+fileName+" "+argValue;
Process proc = Runtime.getRuntime().exec(exeParam);
is = proc.getErrorStream();
iStreamReader = new InputStreamReader(is);
bReader = new BufferedReader(iStreamReader);
System.out.println("<ERROR>");
while((line = bReader.readLine()) != null)
System.out.println("Error is : "+line);
System.out.println("</ERROR>");
int exitValue = proc.waitFor();
sop("Exit Value is : "+exitValue);
catch(Exception e)
e.printStackTrace();
Now , it's showing something like..
<ERROR>
</ERROR> -
JCO.Server Error while trying to execute a RFC program from SAP
Hi,
We are connecting to an external registered server program from SAP via Web Methods.
The external server program is registered with the SAP Gateway. We have created a TCP/IP RFC destination and are able to connect to the destination successfully via SM59.
An RFC function is created in SAP and is called using the syntax CALL FUNCTION "/NGN/BAPI_STRE_SEARCH_PROCESS" DESTINATION 'PRDB2B'. We have also handled the COMM_FALIURE and SYSTEM_FALIURE exceptions in the function call.
We are monitoring the gateway via SMGW and see a connection log to the RFC destination as below
Number - 10
LUname - dev01
TPName - sapgw00
User - KRAORANE
Status - CONNECTED
Symbolic - PRDB2B
Conversation - 86520353
Prot - REG
SAP return code - 0
CPIC rtn code - 0
The external program returns results as expected.
However sometimes the RFC fails and returns the message JCO.Server could not create server function /NGN/BAPI_STRE_SEARCH_PROCESS.
We are not able to figure what exactly is causing this error. Any help will be highly appreciated.
-KiranHi,
Please see the below links..
JCO.Server Error while trying to execute a RFC program from SAP
Re: JCO.Servcer could not find server function
Re: JCO.Server could not find server function 'SET_SLD_DATA'
/people/kathirvel.balakrishnan2/blog/2005/07/26/remote-enable-your-rfchosttoip-to-return-host-ip-to-jco
Re: interfacing SAP with an existing java applications
http://help.sap.com/saphelp_nw04/helpdata/en/47/80f671ee6e4b41b63c0fe46bd6e4f8/content.htm
http://www.sapgenie.com/faq/jco.htm
Regards
Chilla.. -
Deploying a JAR file from Forte
I have written an application using the Forte CE IDE. Now I want to deploy it to other PCs running JRE1.3, so I used the JAR packager to create a JAR file and I ensured the manifest had the Start class specified. Unfortunately, when I try to run this application via the command line on either another machine or my own (outside of Forte), I get the message
Exception in thread "main" java.lang.NoClassDefFoundError: <start class name>
I have used the "java -jar" command.
The start class is in the jar file.
The start class name is in the manifest.
I must have missed something, and I am at my wits end.
Has anyone else had similar problems deploying applications from Forte? Or can anyone offer advice or a link to some comprehensive documentation on how to accomplish deployment? The help function in Forte was no help at all.
Thanks.Are you sure that there is a newline after your lines in the manifest?
Hit return after each line to make sure! -
Executing a .bat file from java code
Im writing a utility and i need to be able to create and execute a .bat file from my program. I can create the .bat file fine but when i try to execute it nothing happens. I tried to use the following line of code to try to execute the .bat file (called make.bat) :
try
String parameterString = "\"C:\\WINNT\\System32\\cmd.exe\" C:\\ITS_Test\\make.bat";
Runtime.getRuntime().exec(parameterString);
catch (Exception e)
System.out.println(e);
The Runtime.getRuntime()exec() method worked fine when trying to execute an excel file but for some reason it dosen't want to work for the DOS prompt. Any ideas?Thanks everyone for all the replies.
I have tried all the above with no luck. Im using netbeans, does anyone think that it could be a problem with the IDE.
I tired the following code :
String parameterString = "cmd.exe /C \"C:\\ITS_Test\\make.bat\"";
Process pr = Runtime.getRuntime().exec(parameterString);
pr.waitFor();
This code does not throw any exceptions but just hangs. I also tried:
String [] parameterString = {"cmd", "/c", "C:\\ITS_Test\\make.bat"};
Process pr = Runtime.getRuntime().exec(parameterString);
pr.waitFor();
and:
String parameterString = "\"C:\\WINNT\\System32\\cmd.exe\" \"C:\\ITS_Test\\make.bat\"";
Process pr = Runtime.getRuntime().exec(parameterString);
pr.waitFor();
with the same result. Does anyone know why it just hangs and nothing happens (no exceptions thrown)? -
Restrict 'Executing report in background' from selection screen
I want user to not to select option for executing report in background from Selection Screen of the program.
i.e. 'Execute Program in Background' option in 1st menu bar tab should either be disabled OR if user clicks on it then he should get error message on selection screen itself.
Thanks,
FalguniHi Falguni,
Write the code based on function code SJOB in the event AT SELECTION-SCREEN. Write the following code :
AT SELECTION-SCREEN
CASE SY-UCOMM.
WHEN 'SJOB'.
MESSAGE E000 WITH 'You cannot schedule background job'.
ENDCASE.
Thanks & Regards,
Faheem. -
How to execute unix command line from cocoa?
how to execute unix command line from cocoa?
for example, if I want to call "ping" from cocoa, how should I do it? and how can I obtain the return value?
thank you.
Power G5 Quad Mac OS X (10.4.3)The following article may also help:
http://cocoadevcentral.com/articles/000025.php
Mihalis.
Dual G5 @ 2GHz Mac OS X (10.4.6) -
Creating Multiple POs from the shopping cart
Hi
I have a requirement to create multiple POs from shopping cart. we are in SRM 7.0 I have implemented the BADI BBP_SC_TRANSFER_BE GROUP_PO method. modified group_1 field with 1 and Doc_type with custom document type
and udpate the change parameter CT_PROC_ITEM with the above changed data for each line item.
But purchase order always taking original document type and its number range only.
Please help me in this regard,
Regards,
Rama.Hi,
Thanks for your reply. I have implemented the BADI BBP_BS_GROUP_BE method GROUP_PO_BACKEND. I modified BE_DOC_TYPE with the custom document type and REFNUMBER as the group number .
But it is generating number range for the original document type only. when i debug the code i found that it is taking original document type (which is hardcoded contant value mentioned in the code when number range is initial).
Please suggest me after grouping the line items with document types and REFNUMBER how to assign number ranges for each group of line items.
Regards,
Rama.
Maybe you are looking for
-
Active directory copnnection problem
Hi all, I try to connect to an Active Directory using JNDI but I'm not successfull. I always get the same error saying that my credentials are not valid. It seems that I have to use an UPN to connect, but I don't know how to use it. The usual paramet
-
Mainstage crashes every time I try to open it!
Today when I opened (tried to at least) Mainstage, it crashed. This is (unfortunally) not too unusual, but the problem now is that no matter what I try, IT WILL NOT OPEN! I've restarted the MBP several times, and everytime, it crashes. Been trying fo
-
AD Password Filter - SSL Issues with MSFT CA ?
- We have completed implementing one way EXPORT profile sync between OID to AD - SSL configs are complete as per documentation and password synchronizing from OID to AD successfully - We now want to implement a new import profile to synchronize ONLY
-
Row/column counter for tables
Hello, I know this is very basic, but so far examples I dug up don't really anything remotely to what I want. I have 3 databases. Well they are defined as "connections" in SQLDeveloper I hope that's the same I am still not used to Oracle abstractions
-
Spry Tabbed Panel Defaults to home page with recordset paging
I have Spry ver. 1.6.1. A Spry Tabbed Panel titled "Check Ride Activity Report" (Tab 6) accesses a mysql database and shows the records in a table format. Instead of having all the records display at once I want to limit the records displayed to a