Simple number program error
I am trying to create a simple program to input to real numbers and display the largest. This will then be used in a menu selection program that I am creating. I keep getting the error:
---------- Capture Output ----------
"C:\j2sdk1.4.2\bin\javac.exe" SmallestNumber.java
SmallestNumber.java:27: 'else' without 'if'
else
^
1 error
Terminated with exit code 1
But to me - the code looks correct. Can anyone pick up my error?
I am using the SavitchIn class from the book: "An introduction to computer science" by Walter Savitch
public class SmallestNumber {
public static void displayNumber() {
double num1 = 0;
double num2 = 0;
float average, count;
System.out.println("Plese enter a positive number:");
num1 = SavitchIn.readDouble();
System.out.println("Please enter a second postive number:");
num2 = SavitchIn.readDouble();
if (num1 > num2);
System.out.println ("The smallest number is: ");
System.out.println (num2);
else
if (num2 > num1);
System.out.println ("The smallest number is: ");
System.out.println (num1);
} //end main
} //end classI have tried including and removing brackets around both if statemetnts.
Any help would be appreciated.
Thankyou
>
if (num1 > num2);
System.out.println ("The smallest number is:
ber is: ");
System.out.println (num2);
else
if (num2 > num1);
System.out.println ("The smallest number
lest number is: ");
System.out.println (num1);What do you mean "the code looks correct" to you????
You have a semicolon after the if statement. Also if you have more than one statement to execute for an "if" condition, you need to enclose them in brackets { and }
Here's the proper code:
if (num1 > num2) {
System.out.println ("The smallest number is: ");
System.out.println (num2);
} else if (num2 > num1) {
System.out.println ("The smallest number is: ");
System.out.println (num1);
}
Similar Messages
-
Hi:
I followed the step by step at "Your First Cup of Java (for Microsoft Windows)" at
http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html#
all the steps work, esecpt for the run program part, I get Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp. but the HelloWorldApp clases is there. and I set my path and classes path at xp enviroment
classes %CATALINA_HOME%\common\lib\servlet.jar;c:\jdom-b8\build\jdom.jar;c:\jdom-b8\lib\xerces.jar; Library.java;c:\hsqldb\lib\hsqldb.jar
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;c:\jdk1.4.0_02\bin; %path%
hope you can help !
Thank youThe problem with running the HelloWorldApp is because you have set the classpath.
It looks like Tomcat and others are installed on your system. Trying to run before you can walk, eh!
This is your system CLASSPATH and points to directories that contain classes and/or *.jar files that contain classes:
.;%CATALINA_HOME%\common\lib\servlet.jar;c:\jdom-b8\build\jdom.jar;c:\jdom-b8\lib\xerces.jar;c:\hsqldb\lib\hsqldb.jar
I don't know why Libary.java is there in your original post because it is a source file and not a class yet; and you don't point directly at a class, only the folder or JAR it is in.
This is your system PATH and points to directories that contain programs:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;c:\jdk1.4.0_02\bin;
With XP the environment is split into two parts:
1/ the system environment variables and will prepend to:
2/ your user environment variables may have the same name and will append to variables in 1/. So there is no need for the %path% bit.
Make sure that CATALINA_HOME is set to the base folder of the CATALINA(TOMCAT) installation, if you are planning to use it.
You shouldn't need to set PATH or CLASSPATH for your user ID unless you only want that user id to have access.
My advice (if it is your machine) is to uninstall Apache/Tomcat and anything else (such as JDOM) that isn't basic Java until you have learned the language. Then delete the CLASSPATH variable and remove the \system32\WBEM; part of the the PATH variable.
Regards,
Hugh. -
I got no no output in either the server/client terminal for the following pair of server/client code. Can anyone please point where have I made a basic mistake in the flow of things...
Server Code:-
import java.io.*;
import java.net.*;
public class TCP_File_Server
public static void main(String st[])
try
String msg="start";
ServerSocket listen_socket=new ServerSocket(7001);
while(true)
Socket conn_socket=listen_socket.accept();
BufferedReader in_client=new BufferedReader(new InputStreamReader(conn_socket.getInputStream()));
DataOutputStream out_server=new DataOutputStream(conn_socket.getOutputStream());
msg=in_client.readLine();
System.out.println(msg);
out_server.writeBytes("Wassup ?!");
conn_socket.close();
catch(IOException e)
System.out.println(e.toString());
Client Code:
import java.io.*;
import java.net.*;
public class TCP_File_Client
public static void main(String st[])
try
if(st.length==1)
String path=st[0];
Socket clientSocket=new Socket("localhost",7001);
DataOutputStream out_server=new DataOutputStream(clientSocket.getOutputStream());
BufferedReader in_server=new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
out_server.writeBytes(path);
System.out.println(in_server.readLine());
clientSocket.close();
catch(IOException e)
System.out.println(e.toString());
}Have my concepts of Streams thorough bro...! Socket transmission always takes place by byte stream... and even if i use bufferedreader, it has an underlying inputstreamreader which converts byte to char stream, so shouldn't be a problem... :)
Guaranteed to be a problem unless you can guarantee that the bytes you wrote will turn into the characters you expect via the charset used by that implicit InputStreamReader. -
Weblogic error while deplying a simple servlet program
Hi This is a very simple servlet program.
I am trying to deploy it on the weblogic server but i get this error as follow
Unable to access the selected application.
*javax.enterprise.deploy.spi.exceptions.InvalidModuleException: [J2EE Deployment SPI:260105]Failed to create*
DDBeanRoot for application, 'E:\AqanTech\WebApp1\myApp.war'.
I have checked everything, right from my code to my web.xml file. I have used a build.bat file to build my war file.
PLEASE HELP ME TO SOLVE THIS HUGE PROBLEM OF MINE ?
Thanks,
ShoebHi,
The J2EE Error code siply suggest that there is something wrong in your Deployment Descriptors...
Can u please post the XML files available inside your "WEB-INF" directory?
Thanks
Jay SenSharma
http://jaysensharma.wordpress.com (WebLogic Wonders Are Here) -
Custom Interface Program Errors out with ORA-01722: invalid number in R12
Hi,
We were upgrading to R12 in which our custom interface load program errors out with "ORA-01722: invalid number". Please find structure of control file as below :
LOAD DATA
APPEND
INTO TABLE RRAT_RCAP_GIO_MAN_ADJ_STG
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED by '"'
TRAILING NULLCOLS
PERIOD_NAME CHAR "ltrim(rtrim(:PERIOD_NAME))"
,SOURCE_TYPE CHAR "ltrim(rtrim(:SOURCE_TYPE))"
,ADJ_ACCOUNT CHAR "ltrim(rtrim(:ADJ_ACCOUNT))"
,USD_NET INTEGER EXTERNAL
,ERROR_CODE CONSTANT 'LOADED DATA'
,PROCESS_FLAG CONSTANT 1
,CREATED_BY "fnd_global.user_id"
,CREATION_DATE sysdate
,LAST_UPDATED_BY "fnd_global.user_id"
,LAST_UPDATE_DATE sysdate
,LAST_UPDATE_LOGIN "fnd_global.login_id"
,REQUEST_ID "fnd_global.conc_request_id"
=====================================Log file ================
Record 1: Rejected - Error on table "XXATORCL"."XXAT_VCAP_GIO_MAN_ADJ_STG", column USD_NET.
ORA-01722: invalid number
===================sample file ==========================
JUL-11,Manual,8213-880011-00000000-259390-1Z-0000-0000,1001
JUL-11,Manual,8213-880011-00000000-253701-1Z-0000-0000,73
==========================================
I had tried with last successfully uploaded file as well which is also now not uploading.
Please help me in this issue.
Thanks,
Piyushi am using R12 now. Please avoide INTEGER EXTERNAL part from the control file. please refer below :
LOAD DATA
APPEND
INTO TABLE RRAT_RCAP_GIO_MAN_ADJ_STG
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED by '"'
TRAILING NULLCOLS
PERIOD_NAME CHAR "ltrim(rtrim(:PERIOD_NAME))"
,SOURCE_TYPE CHAR "ltrim(rtrim(:SOURCE_TYPE))"
,ADJ_ACCOUNT CHAR "ltrim(rtrim(:ADJ_ACCOUNT))"
,USD_NET
,ERROR_CODE CONSTANT 'LOADED DATA'
,PROCESS_FLAG CONSTANT 1
,CREATED_BY "fnd_global.user_id"
,CREATION_DATE sysdate
,LAST_UPDATED_BY "fnd_global.user_id"
,LAST_UPDATE_DATE sysdate
,LAST_UPDATE_LOGIN "fnd_global.login_id"
,REQUEST_ID "fnd_global.conc_request_id"
====================
Srini,
Just one thing i want to explain you that previously it was working fine but suddenly (might after upgrading in R12) started giving error. I had tested with old data files also which were loaded successfully in the system. but now it is giving error. Please help me in this issue.
Regards, -
Hi experts,
When executing a simple oops program ..i got the following error. Please correct the code.
"VAR" is not type-compatible with formal parameter "I_DATA".
CLASS main DEFINITION
CLASS main DEFINITION.
PUBLIC SECTION.
"// Instance Methods ( Note we use the statement 'METHODS'
"// to define an instance method )
METHODS set_data IMPORTING i_data TYPE string.
METHODS get_data RETURNING value(r_data) TYPE string.
METHODS print_attribute IMPORTING i_data TYPE string.
"// Instance Methods ( Note we use the statement 'CLASS-METHODS'
"// to define a static method )
CLASS-METHODS set_classdata IMPORTING i_data TYPE string.
CLASS-METHODS get_classdata RETURNING value(r_data) TYPE string.
CLASS-METHODS print_classattribute IMPORTING i_data TYPE string.
PROTECTED SECTION.
"// Instance Attribute ( Note we use the statement 'DATA'
"// to define an instance attribute )
DATA attribute TYPE string.
"// Static Attribute ( Note we use the statement 'CLASS-DATA'
"// to define a static attribute )
CLASS-DATA classattribute TYPE string.
PRIVATE SECTION.
"// Instace event ( Note we use the statement 'EVENTS'
"// to define aN instance event )
EVENTS event EXPORTING value(e_data) TYPE string.
"// Instace event ( Note we use the statement 'CLASS-EVENTS'
"// to define a static event )
CLASS-EVENTS classevent EXPORTING value(e_data) TYPE string.
"// For more informations about events see the following example:
"// ABAP Objects - Creating your First Local Class - Using Events
ENDCLASS. "main DEFINITION
CLASS main IMPLEMENTATION
CLASS main IMPLEMENTATION.
METHOD set_data.
CONCATENATE 'Instance Attribute value' i_data
INTO attribute SEPARATED BY space.
ENDMETHOD. "set_data
METHOD get_data.
MOVE attribute TO r_data.
ENDMETHOD. "get_data
METHOD set_classdata.
CONCATENATE 'Static Attribute value' i_data
INTO classattribute SEPARATED BY space.
ENDMETHOD. "set_classdata
METHOD get_classdata.
MOVE main=>classattribute TO r_data.
ENDMETHOD. "get_classdata
METHOD print_attribute.
WRITE: i_data, /.
ENDMETHOD. "print_attribute
METHOD print_classattribute.
WRITE: i_data, /.
ENDMETHOD. "print_classattribute
ENDCLASS. "main IMPLEMENTATION
DATA: var type char20.
START-OF-SELECTION.
"// Calling a Static method (note we don't have a object )
"// instead we use the <class name>=><method name>.
main=>set_classdata( 'SDN' ).
var = main=>get_classdata( ).
"// Print the var value
main=>print_classattribute( var ).
DATA: object_reference TYPE REF TO main.
CREATE OBJECT object_reference.
"// - Calling a Instance Method( Note we have to use a object to
"// access the insntace components of class main )
"// - Note we're using the statment "CALL METHOD", see looking for
"// functional & General methods for more informations
CALL METHOD object_reference->set_data( 'BPX' ).
var = object_reference->get_data( ).
object_reference->print_attribute( var ).
Thanks in Advance.
Regards
NaniHi Nani,
try changing your data definition for var from CHAR20 to STRING.
regards,
Peter -
Hi Experts ,
i have a scenario proxy to soap where i am getting error while getting the response .
we are sending the request successfully and getting response .some times we are getting in proxy level error below
PARSE_APPLICATION_DATA Error during XML => ABAP conversion: Response Message; CX_ST_DESERIALIZATION_ERROR in /1SAI/SAS0446CC11CC6EC1AD4789 Line 24 An error occurred when deserializing in the simple transformation program /1SAI/SAS0446CC11CC6EC1AD4789 (Cha
Please help us to fix this bug in proxy response.
Regards
RaviHello Ravinder,
Can you please post the complete stack trace, it seems to be some fields are getting truncated i,e data sent from the program to the proxy object might be violating some length restrictions.
Please check your message interface field lengths and what is being passed to the proxy.
Regards,
Ravi. -
CO number range program error- Urgent
I am getting a program error while trying to maintain number ranges for CO in KANK . The program gives a dump.
The ABAP guy gave the following reason:
"Controlling area 1000 is the one giving dump. Actually the program is checking entries from the Internal table XINRG.
In the client 120( golden) , this internal table has the entries for the controlling area which we are trying to maintain. But in 140( unit testing), this internal table does not have any entries in this internal table.
In the client 140, If I select controlling area 0001 or US01, it takes me to the next screen.
Looks like for 1000, somewhere some dependency has to be maintained. "
I encountered the same problem long time back and I remeber running a report thru se38.
If anyone is aware of this pls suggest as I have to begin unit testing and without this fixed I cannot proceed.
Thanks very much.Can you give more details:
Which screen where you in (the first with the selection of Area, Interval display/ chane, Status)?
What does the dump say? XINRG does not exist in 46c or ERP6.
Are you able to copy from another co-area?
Cheers
Hein -
Run program error, Message Number: "" BPC NW7.5
Hi Gurus,
Has anyone faced the following error for Currency Conversion in BPC?
*RUN_PROGRAM CURR_CONVERSION
CATEGORY = %CATEGORY_SET%
TID_RA = %TIME_SET%
CURRENCY = %RPTCURRENCY_SET%
OTHER = [ENTITY=%P_CC_SET%]
RATEENTITY = R_GLOBAL
*ENDRUN_PROGRAM
P_CC - Planning Entity
R_GLOBAL is a member in Rate entity.
Error as follows:
RUN_LOGIC:Run program error, Message Number: ""
Failed
EXCEPTION OCCURRED WHEN RUNNING PROGRAMS:
Error found in BPC
I have maintained all the property as per SAP document, wondering why this error appears
Thanks & Regards,
Ramanathan
Edited by: Ramanathan_S04 on Sep 14, 2011 3:47 PMHi Ramanathan,
I am also facing the same problem.
Were you able to fix this issue?if so how?.
Your help will be greatly apprciated.
Regards
Arun -
"Assertion failed" error when executing a simple UCI program
I am using a simple UCI program (tt1.c) with Xmath version 7.0.1 on Sloaris 2.8 that performs the followings:
- Start Xmath701
- Sleep 10 Seconds
- Load a sysbuild model
- Stop Xmath
I am calling the uci executable using the following command:
> /usr/local/apps/matrixx-7.0.1/bin/xmath -call tt1 &
In this way everything works fine and the following printouts from the program are produced.
--------- uci printout ----------
## Starting Xmath 701
## sleep 10 seconds
## load "case_h_cs_ds.xmd";
## Stopping Xmath 701
All the processes (tt1, XMATH, xmath_mon, and sysbld) terminate correctly.
The problem occurs if the 10 second wait after starting xmath is omitted:
- Start Xmath701
- Load a sysbuild model
- Stop Xmath
This results to the following printouts:
--------- uci printout ----------
## Starting Xmath 701
## load "case_h_cs_ds.xmd";
Assertion failed: file "/vob1/xm/ipc/ipc.cxx", line 420 errno 0.
Note that the last line is not produced by the uci program and the tt1 did not
finish (the printout before stopping xmath "## Stopping Xmath 701" was
not produced).
A call to the unix "ps -ef" utility shows that none of the related process has been terminated:
fs085312 27631 20243 0 10:45:29 pts/27 0:00 tt1
fs085312 27643 1 0 10:45:30 ? 0:00 /usr/local/apps/matrixx-7.0.1/solaris_mx_70.1/xmath/bin/xmath_mon /usr/local/app
fs085312 27641 27631 0 10:45:30 ? 0:01 /usr/local/apps/matrixx-7.0.1/solaris_mx_70.1/xmath/bin/XMATH 142606339, 0x8800
fs085312 25473 25446 0 10:45:33 ? 0:01 sysbld ++ 19 4 7 6 5 8 9 0 25446 ++
The questions are as follows:
1- What is "Assertion failed: file "/vob1/xm/ipc/ipc.cxx", line 420 errno 0" and why is that produced?
2- Should the UCI program waits for end of sysbld initialization before issuing commands?
3- If the answer to the above question is yes, is there a way to check the termination of sysbld initialization?
Thanks in advance for you help.
Attachments:
tt1.c 1 KBI tracked down the problem and it is a race condition between the many processes being started up. A smaller delay should also solve the problem. Or, maybe do something else before the first 'load'. The 'load' command tries to launch systembuild and causes the race condition.
-
Simple transformation program debugging
hi ,
can any boby guide me how can we debug a simple transformation program which is used for xml to abap conversion .Hi,
have a look on this.
REPORT YMS_XMLTOSAP.
TYPE-POOLS: IXML.
TYPES: BEGIN OF T_XML_LINE,
DATA(256) TYPE X,
END OF T_XML_LINE.
DATA: L_IXML TYPE REF TO IF_IXML,
L_STREAMFACTORY TYPE REF TO IF_IXML_STREAM_FACTORY,
L_PARSER TYPE REF TO IF_IXML_PARSER,
L_ISTREAM TYPE REF TO IF_IXML_ISTREAM,
L_DOCUMENT TYPE REF TO IF_IXML_DOCUMENT,
L_NODE TYPE REF TO IF_IXML_NODE,
L_XMLDATA TYPE STRING.
DATA: L_ELEM TYPE REF TO IF_IXML_ELEMENT,
L_ROOT_NODE TYPE REF TO IF_IXML_NODE,
L_NEXT_NODE TYPE REF TO IF_IXML_NODE,
L_NAME TYPE STRING,
L_ITERATOR TYPE REF TO IF_IXML_NODE_ITERATOR.
DATA: L_XML_TABLE TYPE TABLE OF T_XML_LINE,
L_XML_LINE TYPE T_XML_LINE,
L_XML_TABLE_SIZE TYPE I.
DATA: L_FILENAME TYPE STRING.
PARAMETERS: PA_FILE TYPE CHAR1024 DEFAULT 'c:\temp\orders_dtd.xml'.
* Validation of XML file: Only DTD included in xml document is supported
PARAMETERS: PA_VAL TYPE CHAR1 AS CHECKBOX.
START-OF-SELECTION.
* Creating the main iXML factory
L_IXML = CL_IXML=>CREATE( ).
* Creating a stream factory
L_STREAMFACTORY = L_IXML->CREATE_STREAM_FACTORY( ).
PERFORM GET_XML_TABLE CHANGING L_XML_TABLE_SIZE L_XML_TABLE.
* wrap the table containing the file into a stream
L_ISTREAM = L_STREAMFACTORY->CREATE_ISTREAM_ITABLE( TABLE = L_XML_TABLE
SIZE = L_XML_TABLE_SIZE ).
* Creating a document
L_DOCUMENT = L_IXML->CREATE_DOCUMENT( ).
* Create a Parser
L_PARSER = L_IXML->CREATE_PARSER( STREAM_FACTORY = L_STREAMFACTORY
ISTREAM = L_ISTREAM
DOCUMENT = L_DOCUMENT ).
* Validate a document
IF PA_VAL EQ 'X'.
L_PARSER->SET_VALIDATING( MODE = IF_IXML_PARSER=>CO_VALIDATE ).
ENDIF.
* Parse the stream
IF L_PARSER->PARSE( ) NE 0.
IF L_PARSER->NUM_ERRORS( ) NE 0.
DATA: PARSEERROR TYPE REF TO IF_IXML_PARSE_ERROR,
STR TYPE STRING,
I TYPE I,
COUNT TYPE I,
INDEX TYPE I.
COUNT = L_PARSER->NUM_ERRORS( ).
WRITE: COUNT, ' parse errors have occured:'.
INDEX = 0.
WHILE INDEX < COUNT.
PARSEERROR = L_PARSER->GET_ERROR( INDEX = INDEX ).
I = PARSEERROR->GET_LINE( ).
WRITE: 'line: ', I.
I = PARSEERROR->GET_COLUMN( ).
WRITE: 'column: ', I.
STR = PARSEERROR->GET_REASON( ).
WRITE: STR.
INDEX = INDEX + 1.
ENDWHILE.
ENDIF.
ENDIF.
* Process the document
IF L_PARSER->IS_DOM_GENERATING( ) EQ 'X'.
PERFORM PROCESS_DOM USING L_DOCUMENT.
ENDIF.
*& Form get_xml_table
FORM GET_XML_TABLE CHANGING L_XML_TABLE_SIZE TYPE I
L_XML_TABLE TYPE STANDARD TABLE.
* Local variable declaration
DATA: L_LEN TYPE I,
L_LEN2 TYPE I,
L_TAB TYPE TSFIXML,
L_CONTENT TYPE STRING,
L_STR1 TYPE STRING,
C_CONV TYPE REF TO CL_ABAP_CONV_IN_CE,
L_ITAB TYPE TABLE OF STRING.
L_FILENAME = PA_FILE.
* upload a file from the client's workstation
CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD
EXPORTING
FILENAME = L_FILENAME
FILETYPE = 'BIN'
IMPORTING
FILELENGTH = L_XML_TABLE_SIZE
CHANGING
DATA_TAB = L_XML_TABLE
EXCEPTIONS
OTHERS = 19.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Writing the XML document to the screen
CLEAR L_STR1.
LOOP AT L_XML_TABLE INTO L_XML_LINE.
C_CONV = CL_ABAP_CONV_IN_CE=>CREATE( INPUT = L_XML_LINE-DATA REPLACEMENT = SPACE ).
C_CONV->READ( IMPORTING DATA = L_CONTENT LEN = L_LEN ).
CONCATENATE L_STR1 L_CONTENT INTO L_STR1.
ENDLOOP.
L_STR1 = L_STR1+0(L_XML_TABLE_SIZE).
SPLIT L_STR1 AT CL_ABAP_CHAR_UTILITIES=>CR_LF INTO TABLE L_ITAB.
WRITE: /.
WRITE: /' XML File'.
WRITE: /.
LOOP AT L_ITAB INTO L_STR1.
REPLACE ALL OCCURRENCES OF CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB IN
L_STR1 WITH SPACE.
WRITE: / L_STR1.
ENDLOOP.
WRITE: /.
ENDFORM. "get_xml_table
*& Form process_dom
FORM PROCESS_DOM USING DOCUMENT TYPE REF TO IF_IXML_DOCUMENT.
DATA: NODE TYPE REF TO IF_IXML_NODE,
ITERATOR TYPE REF TO IF_IXML_NODE_ITERATOR,
NODEMAP TYPE REF TO IF_IXML_NAMED_NODE_MAP,
ATTR TYPE REF TO IF_IXML_NODE,
NAME TYPE STRING,
PREFIX TYPE STRING,
VALUE TYPE STRING,
INDENT TYPE I,
COUNT TYPE I,
INDEX TYPE I.
NODE ?= DOCUMENT.
CHECK NOT NODE IS INITIAL.
ULINE.
WRITE: /.
WRITE: /' DOM-TREE'.
WRITE: /.
IF NODE IS INITIAL. EXIT. ENDIF.
* create a node iterator
ITERATOR = NODE->CREATE_ITERATOR( ).
* get current node
NODE = ITERATOR->GET_NEXT( ).
* loop over all nodes
WHILE NOT NODE IS INITIAL.
INDENT = NODE->GET_HEIGHT( ) * 2.
INDENT = INDENT + 20.
CASE NODE->GET_TYPE( ).
WHEN IF_IXML_NODE=>CO_NODE_ELEMENT.
* element node
NAME = NODE->GET_NAME( ).
NODEMAP = NODE->GET_ATTRIBUTES( ).
WRITE: / 'ELEMENT :'.
WRITE: AT INDENT NAME COLOR COL_POSITIVE INVERSE.
IF NOT NODEMAP IS INITIAL.
* attributes
COUNT = NODEMAP->GET_LENGTH( ).
DO COUNT TIMES.
INDEX = SY-INDEX - 1.
ATTR = NODEMAP->GET_ITEM( INDEX ).
NAME = ATTR->GET_NAME( ).
PREFIX = ATTR->GET_NAMESPACE_PREFIX( ).
VALUE = ATTR->GET_VALUE( ).
WRITE: / 'ATTRIBUTE:'.
WRITE: AT INDENT NAME COLOR COL_HEADING INVERSE, '=',
VALUE COLOR COL_TOTAL INVERSE.
ENDDO.
ENDIF.
WHEN IF_IXML_NODE=>CO_NODE_TEXT OR
IF_IXML_NODE=>CO_NODE_CDATA_SECTION.
* text node
VALUE = NODE->GET_VALUE( ).
WRITE: / 'VALUE :'.
WRITE: AT INDENT VALUE COLOR COL_GROUP INVERSE.
ENDCASE.
* advance to next node
NODE = ITERATOR->GET_NEXT( ).
ENDWHILE.
ENDFORM. "process_dom
Thanks,
Sankar M -
FXTrans Script runs on error: UJK_EXECUTION_EXCEPTION:Run program error
Dear Experts,
I found a couple of messages related to this topic but unfortunately no solution that fits for me. I have the following problem. In 7.0 we implemented a very simple prototype currency translation and it worked just fine. We migrated the appsets etc. to 7.5 SP4 and I was gonna run the currency translation but the script gives me the following error in the package as well as in the script logic tester:
RUN CURRENCY CONVERSION
EXCEPTION OCCURRED WHEN RUNNING PROGRAMS:
Error found in BPC
UJK_EXECUTION_EXCEPTION:Run program error, Message Number: ""
For that reason, the package of course runs on an error.
This is my FXTRANS-Script:
*RUN_PROGRAM CURR_CONVERSION
CATEGORY = %CATEGORY_SET%
CURRENCY = %RPTCURRENCY_SET%
TID_RA = %TIME_SET%
OTHER = [ENTITY=%ENTITY_SET%]
RATEENTITY = GLOBAL
*ENDRUN_PROGRAM
This is my Test-Script for the Checker:
*RUN_PROGRAM CURR_CONVERSION
CATEGORY = V301
CURRENCY = EUR
TID_RA = 2011.JAN
OTHER = [ENTITY=S21001]
RATEENTITY = GLOBAL
*ENDRUN_PROGRAM
I am very sure that I maintained all needed dimensions and properties. I just dont understand why the system gives me such a weird error message. I'm desperate.
Thanks in advance,
CoraDear CoraBo
I hope you 've configured " Currency Conversion Business Rules" in main Financial App, as required.
In the meanwhile, as I could not find much details of error LOG report in your message, I suggest you to have some insight of possibility of error ("UJK_EXECUTION_EXEPTION:Run Program Error") in the following thread for your reference:
Currency Conversion
Hope this will help you, for some extent.
Regards
ukraghu -
I keep getting a message saying "Could not complete your request because of a program error"
I keep getting a message saying ( Could not complete your request because of a program error??
Does anyone know what this means or how to fix?blucoast,
Can you please be more detailed? When are you getting this - what is causing it? Any specific tool or while starting Photoshop itself?
Do you see an error number or error code or a report? Can you post that here? -
[Mac] Could not complete your request because of a program error.
Hello, I've got the problem with opening the file. It was saved in Photoshop CS 6, everything was ok, but after opening the file in few seconds here the message "Could not complete your request because of a program error." What should I do?? It was making all day long!
[Title Edited to reflect OS for clarity - Hunt]Olga Chu,
Thank you for that information.
Yours is not a common error, though I have read of it before. In about 2 decades of using Ps (for most daily), I have never encountered it. However, there are some great folk here, who have seen about everything, and will probably have some solutions - though there might be a few additional questions. You have given them something to work with, so all is not lost yet.
There is likely something specific to your installation (maybe something as simple as a Permissions issue?), or to your system. Since I am a PC-only person, I will not muck about trying to guess what might translate from my PC's to your Mac. Since the Ps Forums were combined, we have a bunch of Mac experts, who are also experts in Ps. Give them a bit of time, to see your post. I am also going to Edit your title, to reflect the OS, and that should trigger those Mac-users to rush in to help.
Unless you have a deadline, give them a bit of time, to sort this issue out - I hate to have to redo my Images, if not totally necessary.
Good luck,
Hunt -
Program error when try to use 3D repousse in Photoshop CS5 extended?
Please help!!!! Unable to use 3D repousse Photoshop CS5 Extended (my system info is described below)
I tried almost everything that is available in Adobe library help, also re-installed programs as requested by Adobe support (suspected to get rid of me), it did not solve the problem.
I used to have 3D capabilities, and also crop tool worked well before (now it changes all layers when using crop even in background). My PC is same, nor I downloaded plugins or changed video cards (these things are too advanced for me!), also restored preferences many times.
My system makes automatic updates, reviewed graphics and adobe as recommended.
OpenGL settings is odd …only can access basic, other modes are not highlighted (normal or advanced).
ERRORS (for 3D Text)
1-“Your 3D scene now exceeds the limits of lights and/or textures for the video card’s hardware-accelerated 3D rendering. As long as the limits are exceeded, 3D rendering will be done in software only, and some features (e.g Repousse)will be disabled.”
2- “Your video card does not meet the requirements for hardware-accelerated 3D rendering. All 3D will be rendered with software only “
3-“ Could no complete the text layer command because of a program error”
ERROR (for object)
Open GL/GPU HARDWARE ACCELERATION IS CURRENTLY DISABLED. 3D WILL NOW BE RENDERED WITH SOFTWARE ONLY. TO ENABLE OPEN/GL ACCELERATION, GO TO PREFERENCES > PERFORMANCE TAB AND CHECK THE “ENABLE OPENGL GRAWING” CHECK BOX.
Is it possible that I have a GPU Sniffer? all these terms I have learned recently =) but I have a healthy & capable graphic card and accepted by adobe standards.
SYSTEM INFO
Adobe Photoshop Version: 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch]) x64
Operating System: Windows 7 64-bit
Version: 6.1 Service Pack 1
System architecture: Intel CPU Family:6, Model:5, Stepping:2 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2
Physical processor count: 4
Processor speed: 2128 MHz
Built-in memory: 3895 MB
Free memory: 2210 MB
Memory available to Photoshop: 3280 MB
Memory used by Photoshop: 70 %
Image tile size: 128K
Image cache levels: 4
OpenGL Drawing: Enabled.
OpenGL Drawing Mode: Basic
OpenGL Allow Normal Mode: True.
OpenGL Allow Advanced Mode: False.
OpenGL Crash File: Not Detected.
OpenGL Allow Old GPUs: Not Detected.
Video Card Vendor: Intel
Video Card Renderer: Intel(R) Graphics Media Accelerator HD
Display: 1
Display Bounds:= top: 0, left: 0, bottom: 768, right: 1360
Video Card Number: 1
Video Card: Intel(R) Graphics Media Accelerator HD
Driver Version: 8.15.10.1968
Driver Date: 20091008000000.000000-000
Video Card Driver: igdumd64.dll,igd10umd64.dll,igdumdx32,igd10umd32
Video Mode: 1360 x 768 x 4294967296 colors
Video Card Caption: Intel(R) Graphics Media Accelerator HD
Video Card Memory: 1723 MB
Serial number:
Application folder: C:\Program Files\Adobe\Adobe Photoshop CS5.1 (64 Bit)\
Temporary file path: C:\Users\Patricia\AppData\Local\Temp\
Photoshop scratch has async I/O enabled
Scratch volume(s):
C:\, 284.6G, 218.5G free
Primary Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CS5.1 (64 Bit)\Plug-ins\
Additional Plug-ins folder: not set
Installed components:
A3DLIBS.dll A3DLIB Dynamic Link Library 9.2.0.112
ACE.dll ACE 2010/12/13-23:37:10 64.449933 64.449933
adbeape.dll Adobe APE 2011/01/17-12:03:36 64.452786 64.452786
AdobeLinguistic.dll Adobe Linguisitc Library 5.0.0
AdobeOwl.dll Adobe Owl 2010/06/03-13:43:23 3.0.93 61.433187
AdobeOwlCanvas.dll Adobe Owl Canvas 3.0.68 61.2954
AdobePDFL.dll PDFL 2010/12/13-23:37:10 64.341419 64.341419
AdobePIP.dll Adobe Product Improvement Program 5.5.0.1265
AdobeXMP.dll Adobe XMP Core 5.0 64.140949
AdobeXMPFiles.dll Adobe XMP Files 5.0 64.140949
AdobeXMPScript.dll Adobe XMP Script 5.0 64.140949
adobe_caps.dll Adobe CAPS 4,0,42,0
adobe_OOBE_Launcher.dll Adobe OOBE Launcher 2.0.0.36 (BuildVersion: 2.0; BuildDate: Mon Jan 24 2011 21:49:00) 1.000000
AFlame.dll AFlame 2011/01/10-23:33:35 64.444140 64.444140
AFlamingo.dll AFlamingo 2011/01/10-23:33:35 64.436825 64.436825
AGM.dll AGM 2010/12/13-23:37:10 64.449933 64.449933
ahclient.dll AdobeHelp Dynamic Link Library 1,6,0,20
aif_core.dll AIF 2.0 53.422628
aif_ogl.dll AIF 2.0 53.422628
amtlib.dll AMTLib (64 Bit) 4.0.0.21 (BuildVersion: 4.0; BuildDate: Mon Jan 24 2011 21:49:00) 1.000000
amtservices.dll AMTServices (64 Bit) 4.0.0.21 (BuildVersion: 4.0; BuildDate: Mon Jan 24 2011 21:49:00) 1.000000
ARE.dll ARE 2010/12/13-23:37:10 64.449933 64.449933
asneu.dll AsnEndUser Dynamic Link Library 1, 7, 0, 1
AXE8SharedExpat.dll AXE8SharedExpat 2011/01/10-23:33:35 64.436825 64.436825
AXEDOMCore.dll AXEDOMCore 2011/01/10-23:33:35 64.436825 64.436825
Bib.dll BIB 2010/12/13-23:37:10 64.449933 64.449933
BIBUtils.dll BIBUtils 2010/12/13-23:37:10 64.449933 64.449933
boost_threads.dll DVA Product 5.0.0
cg.dll NVIDIA Cg Runtime 2.0.0015
cgGL.dll NVIDIA Cg Runtime 2.0.0015
CoolType.dll CoolType 2010/12/13-23:37:10 64.449933 64.449933
data_flow.dll AIF 2.0 53.422628
dvaadameve.dll DVA Product 5.0.0
dvacore.dll DVA Product 5.0.0
dvaui.dll DVA Product 5.0.0
ExtendScript.dll ExtendScript 2011/01/17-17:14:10 61.452840 61.452840
FileInfo.dll Adobe XMP FileInfo 5.0 64.140949
icucnv36.dll International Components for Unicode 2009/06/17-13:21:03 Build gtlib_main.9896
icudt36.dll International Components for Unicode 2009/06/17-13:21:03 Build gtlib_main.9896
image_flow.dll AIF 2.0 53.422628
image_runtime.dll AIF 2.0 53.422628
JP2KLib.dll JP2KLib 2010/12/13-23:37:10 64.181312 64.181312
libifcoremd.dll Intel(r) Visual Fortran Compiler 10.0 (Update A)
libmmd.dll Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r) Fortran Compiler 10.0
LogSession.dll LogSession 2.1.2.1263
MPS.dll MPS 2010/12/13-23:37:10 64.450375 64.450375
msvcm80.dll Microsoft® Visual Studio® 2005 8.00.50727.4940
msvcm90.dll Microsoft® Visual Studio® 2008 9.00.30729.6161
msvcp80.dll Microsoft® Visual Studio® 2005 8.00.50727.4940
msvcp90.dll Microsoft® Visual Studio® 2008 9.00.30729.6161
msvcr80.dll Microsoft® Visual Studio® 2005 8.00.50727.4940
msvcr90.dll Microsoft® Visual Studio® 2008 9.00.30729.6161
pdfsettings.dll Adobe PDFSettings 1.04
Photoshop.dll Adobe Photoshop CS5.1 CS5.1
Plugin.dll Adobe Photoshop CS5 CS5
PlugPlug.dll Adobe(R) CSXS PlugPlug Standard Dll (64 bit) 2.5.0.232
PSArt.dll Adobe Photoshop CS5.1 CS5.1
PSViews.dll Adobe Photoshop CS5.1 CS5.1
SCCore.dll ScCore 2011/01/17-17:14:10 61.452840 61.452840
tbb.dll Threading Building Blocks 2, 1, 2009, 0201
TfFontMgr.dll FontMgr 9.3.0.113
TfKernel.dll Kernel 9.3.0.113
TFKGEOM.dll Kernel Geom 9.3.0.113
TFUGEOM.dll Adobe, UGeom© 9.3.0.113
updaternotifications.dll Adobe Updater Notifications Library 2.0.0.15 (BuildVersion: 1.0; BuildDate: BUILDDATETIME) 2.0.0.15
WRServices.dll WRServices Thursday January 21 2010 12:13:3 Build 0.11423 0.11423
wu3d.dll U3D Writer 9.3.0.113
Installed plug-ins:
3D Studio 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Accented Edges 12.0
ADM 3.11x01
Angled Strokes 12.0
Average 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Bas Relief 12.0
BMP 12.0.2
Camera Raw 6.3
Chalk & Charcoal 12.0
Charcoal 12.0
Chrome 12.0
Cineon 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Clouds 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Collada 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Color Halftone 12.0.2
Colored Pencil 12.0
CompuServe GIF 12.0.2
Conté Crayon 12.0
Craquelure 12.0
Crop and Straighten Photos 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Crop and Straighten Photos Filter 12.0.2
Crosshatch 12.0
Crystallize 12.0.2
Cutout 12.0
Dark Strokes 12.0
De-Interlace 12.0.2
Dicom 12.0
Difference Clouds 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Diffuse Glow 12.0
Displace 12.0.2
Dry Brush 12.0
Eazel Acquire 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Embed Watermark 4.0
Entropy 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Extrude 12.0.2
FastCore Routines 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Fibers 12.0.2
Film Grain 12.0
Filter Gallery 12.0
Fresco 12.0
Glass 12.0
Glowing Edges 12.0
Google Earth 4 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Grain 12.0
Graphic Pen 12.0
Halftone Pattern 12.0
HDRMergeUI 12.0
IFF Format 12.0.2
Ink Outlines 12.0
JPEG 2000 2.0
Kurtosis 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Lens Blur 12.0
Lens Correction 12.0.2
Lens Flare 12.0.2
Lighting Effects 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Liquify 12.0.1
Matlab Operation 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Maximum 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Mean 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Measurement Core 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Median 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Mezzotint 12.0.2
Minimum 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
MMXCore Routines 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Mosaic Tiles 12.0
Multiprocessor Support 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Neon Glow 12.0
Note Paper 12.0
NTSC Colors 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Ocean Ripple 12.0
OpenEXR 12.0.2
Paint Daubs 12.0
Palette Knife 12.0
Patchwork 12.0
Paths to Illustrator 12.0.2
PCX 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Photocopy 12.0
Photoshop 3D Engine 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Picture Package Filter 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Pinch 12.0.2
Pixar 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Plaster 12.0
Plastic Wrap 12.0
PNG 12.0.2
Pointillize 12.0.2
Polar Coordinates 12.0.2
Portable Bit Map 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Poster Edges 12.0
Radial Blur 12.0.2
Radiance 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Range 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Read Watermark 4.0
Reticulation 12.0
Ripple 12.0.2
Rough Pastels 12.0
Save for Web & Devices 12.0
ScriptingSupport 12.1
Shear 12.0.2
Skewness 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Smart Blur 12.0.2
Smudge Stick 12.0
Solarize 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Spatter 12.0
Spherize 12.0.2
Sponge 12.0
Sprayed Strokes 12.0
Stained Glass 12.0
Stamp 12.0
Standard Deviation 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Sumi-e 12.0
Summation 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Targa 12.0.2
Texturizer 12.0
Tiles 12.0.2
Torn Edges 12.0
Twirl 12.0.2
U3D 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Underpainting 12.0
Vanishing Point 12.0
Variance 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Variations 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Water Paper 12.0
Watercolor 12.0
Wave 12.0.2
Wavefront|OBJ 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
WIA Support 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
Wind 12.0.2
Wireless Bitmap 12.1 (12.1x20110328 [20110328.r.145 2011/03/28:10:30:00 cutoff; r branch])
ZigZag 12.0.2
Plug-ins that failed to load: NONE
Flash:
Mini Bridge
Access CS Live
Flash
Kuler
CS Review
Installed TWAIN devices: NONEthank you for replying...but it seems an easy answer again like one given by support....I had photoshop working perfectly before with same video card, I think in one project I clicked something in program (photoshop)that was not ready to correct it by itself... It should be available for the program to give warning several times to the user, I do not know what made Photoshop to disable OpenGL settings, and not be able to reverse action!!!!! How do I change a GPU sniffer? I an not a tech, all these things I just learned reading....had spent hundreds of hours....really dissapointed of Adobe and its support....it is not fair to sell an expensive program without support, it seems to me that I know now more than a live customer support.
Maybe you are looking for
-
If you've updated to OS X and "Photoshop quit unexpectedly" or other strange things happen
Make sure you're operating in 64-bit mode, not 32-bit mode. I had a number of problems after my upgrade until I switched back to 64-bit mode, now it seems to be working properly. Go to the program icon in your Adobe Photoshop folder, right click an
-
How can I add 'AlternateSpace' and 'AlternateColorValue' to my IDML in InDesign?
how can I add 'AlternateSpace' and 'AlternateColorValue' to my IDML in InDesign? I have a document and colors (CMYK) but need also RGB values to display on the web. In IDML in Resources/Graphic.xml in each Color are attributes 'AlternateSpace' and 'A
-
How can I draw on top of an image?
I'm using a JApplet with three JPanel's inside of it. Inside one of those JPanel's I would like to place an image and a button. When the button is clicked, I want to draw an oval on top of the image . Each subsequent time the button is clicked, the o
-
[SOLVED]wma support for banshee
Hey guys, I just installed banshee with all the extra gstreamers and it works like a charm, the only problem though is that it won't play wma files. Is there a certain plugin that must be installed for it to work? When I used other distros banshee w
-
Why is fire fox 8.01 blocking my yahoo emails?
please read all of this message and do not scan it ok i down loaded fire fox 8.0.1 and now i can not read any emails from people i know, i have tried every thing in help and nothing changed. i had to go back to fire fox 3.6.24 in order to get my mess