SAX problem(plz see the code given)
hi all,
i am using SAX parser for validating my xml file against the dtd,i am getting some errors that i am not able to make out.cud u plz help me.i am sending u my files.
------------------------java file------------------------------------
import java.io.*;
import org.xml.sax.*;
import org.xml.sax.helpers.DefaultHandler;
import javax.xml.parsers.SAXParserFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParser;
public class Echo extends DefaultHandler
public static void main(String argv[]){
if (argv.length != 1) {
System.err.println("Usage: cmd filename");
System.exit(1);
// Use an instance of ourselves as the SAX event handler
//DefaultHandler handler=new DefaultHandler();
Echo handler=new Echo();
// Use the default (non-validating) parser
SAXParserFactory factory = SAXParserFactory.newInstance();
factory.setValidating(true);
try {
// Set up output stream
out = new OutputStreamWriter(System.out, "UTF8");
// Parse the input
SAXParser saxParser = factory.newSAXParser();
saxParser.parse( new File(argv[0]), handler );
catch (SAXParseException spe) {
// Error generated by the parser
System.out.println("\n** Parsing error"
+ ", line " + spe.getLineNumber()
+ ", uri " + spe.getSystemId());
System.out.println(" " + spe.getMessage() );
}catch (Throwable t){
t.printStackTrace();
System.exit(0);
static private Writer out;
public void startDocument()
throws SAXException{
emit("<?xml version='1.0' encoding='UTF-8'?>");
nl();
public void endDocument()
throws SAXException{
try {
nl();
out.flush();
}catch (IOException e) {
throw new SAXException("I/O error", e);
public void startElement(String namespaceURI,
String sName, // simple name (localName)
String qName, // qualified name
Attributes attrs)
throws SAXException
String eName = sName; // element name
if ("".equals(eName)) eName = qName; // namespaceAware = false
emit("<"+eName);
if (attrs != null) {
for (int i = 0; i < attrs.getLength(); i++) {
String aName = attrs.getLocalName(i); // Attr name
if ("".equals(aName)) aName = attrs.getQName(i);
emit(" ");
emit(aName+"=\""+attrs.getValue(i)+"\"");
emit(">");
public void endElement(String namespaceURI,
String sName, // simple name
String qName // qualified name
throws SAXException
emit("</"+qName+">");
public void characters(char buf[], int offset, int len)
throws SAXException
String s = new String(buf, offset, len);
emit(s);
public void ignorableWhitespace(char buf[], int offset, int Len)
throws SAXException
nl();
//emit("IGNORABLE");
private void emit(String s)
throws SAXException
try {
out.write(s);
out.flush();
} catch (IOException e) {
throw new SAXException("I/O error", e);
private void nl()
throws SAXException
String lineEnd = System.getProperty("line.separator");
try {
out.write(lineEnd);
} catch (IOException e) {
throw new SAXException("I/O error", e);
public void error(SAXParseException e)
throws SAXParseException
throw e;
public void warning(SAXParseException e)throws SAXParseException{
System.out.println("WARNING : Line Number:- "+e.getLineNumber());
System.out.println("WARNING : Column Number:- "+e.getColumnNumber());
System.out.println("WARNING : System ID:- "+e.getSystemId());
System.out.println("WARNING : Public Number:- "+e.getPublicId());
--------------------------xml file------------------------------------
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE slideshow SYSTEM "echo.dtd">
<!-- A SAMPLE set of slides -->
<slideshow
title="Sample Slide Show"
date="Date of publication"
author="Yours Truly"
>
<![CDATA[Digram : frobmorten <------------ fuznaten
| <3> ^
| <1> | <1> = fozzle
V | <2> = framboze
Staten+ <3> = frenzle
<2>
]]>
<!-- TITLE SLIDE -->
<slide type="all">
<image src="my.gif" alt="this is my pic" type="image/gif"/>
<title>Wake up to WonderWidgets!</title>
</slide>
<!-- OVERVIEW -->
<slide type="all">
<title>Overview</title>
<item>WonderWidgets are great</item>
<item/>
<item>Who buys WonderWidgets</item>
</slide>
<slide type="all">
<title>Overview</title>
<item>Who buys WonderWidgets</item>
</slide>
</slideshow>
-----------------------------dtd file---------------------------------
<!ELEMENT slideshow (slide+)>
<!ATTLIST slideshow
title CDATA #IMPLIED
date CDATA #IMPLIED
author CDATA #IMPLIED
>
<!ELEMENT slide (image?,title, item*)>
<!ATTLIST slide type CDATA #IMPLIED>
<!ELEMENT title (#PCDATA)>
<!ELEMENT item (#PCDATA | item)* >
<!ELEMENT image EMPTY>
<!ATTLIST image
alt CDATA #IMPLIED
src CDATA #REQUIRED
type CDATA "image/gif"
>
-----------------------ERROR I AM GETTING IS--------------------------
<?xml version='1.0' encoding='UTF-8'?>
<slideshow title="Sample Slide Show" date="Date of publication" author="Yours Tr
uly">
Digram : frobmorten <------------ fuznaten
| <3> ^
| <1> | <1> = fozzle
V | <2> = framboze
Staten+ <3> = frenzle
<2>
<slide type="all">
<image src="my.gif" alt="this is my pic" type="image/gif"></image>
<title>Wake up to WonderWidgets!</title>
</slide>
<slide type="all">
<title>Overview</title>
<item>WonderWidgets are great</item>
<item></item>
<item>Who buys WonderWidgets</item>
</slide>
<slide type="all">
<title>Overview</title>
<item>Who buys WonderWidgets</item>
</slide>
org.xml.sax.SAXException: The content of element type "slideshow" must m
atch "(slide)+".
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
ava:979)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at Echo.main(Echo.java:28)
with my lot efforts i am not able to make out where i am wrong,plz do have a look on the codes.
thanx in advance
best regards
anshul
Hi i have consulted the XML spec and it is not possible to have a CDATA section as element content. A element declaration can have only content that is empty, ANY (i.e. can include any other declared elements in DTD), mixed (i.e. can contain PCDATA or child elements, or child elements. An element cannot include any character data which CDATA represents. i.e it is not valid to do <!ELEMENT slideshow CDATA>
The CDATA can only be used with an attribute declaration. Regard CDATA as a type definition for any attribute variables.
So what do i suggest. You could declare a separate element which has an attribute for the CDATA section
<!ELEMENT input (Name)>
<!ATTLIST input instructions CDATA #REQUIRED>
hope this helps.
Similar Messages
-
Smartforms o/p 2 PDF conversion problem , plz see my code
Hi Smartform Guys
1)I m getting error <b>"CONVT_NO_NUMBER "</b> in converting my Smartform output to PDF.
*Printing of Export Invoice, Packing List,Enclosure to Packing List & *
*Case Marking in one SMART FORMS Layout *
REPORT ZSD_REP_MULTI_PRINT.
TABLES :
vbak,
vbap,
vbpa,
vbfa,
VBRK,
VBRP,
LIKP,
LIPS,
KONV,
objk,
tvko,
ser01,
sadr,
equi,
makt,
mast,
t005t,
kna1,
t001w,
T001,
ADRC,
sscrfields,
zpp_plcmi, "Packing list history For Conf: Item data
zplh, "PACKING LIST HISTORY : HEADER DATA
zpli. "PACKING LIST HISTORY : ITEM DATA
DATA: FM_NAME TYPE RS38L_FNAM,
P_E_DEVTYPE TYPE RSPOPTYPE,
P_JOB_OUTPUT_INFO TYPE SSFCRESCL OCCURS 2000 WITH HEADER LINE,
P_OUTPUT_OPTIONS TYPE SSFCOMPOP OCCURS 0 WITH HEADER LINE,
P_CONTROL_PARAMETERS TYPE SSFCTRLOP OCCURS 0 WITH HEADER LINE ,
P_DOC LIKE DOCS OCCURS 2000 WITH HEADER LINE,
P_LINES LIKE TLINE OCCURS 200,
P_BIN_FILESIZE TYPE I,
P_LANGUAGE TYPE SFLANGU,
P_BIN_FILE TYPE XSTRING.
DATA: T_ITEM TYPE ZSD_TABL_LITEM,
WA_ITEM TYPE ZSD_STRUCT_LITEM,
T_ADRS LIKE ZSD_STRUCT_ADRS OCCURS 0 WITH HEADER LINE,
MSLINES LIKE TLINE OCCURS 1 WITH HEADER LINE,
TIDNO LIKE STXL-TDID,
TNAME LIKE STXL-TDNAME,
TOBJT LIKE STXL-TDOBJECT,
SSORD LIKE VBAK-VBELN,
TOT LIKE VBAK-NETWR,
WORD LIKE SPELL.
SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
PARAMETERS: P_DELNO LIKE LIKP-VBELN OBLIGATORY,
P_INVNO LIKE VBRK-VBELN OBLIGATORY,
P_DATE LIKE SY-DATUM.
SELECTION-SCREEN END OF BLOCK blk1.
AT SELECTION-SCREEN.
CLEAR T_ADRS.
REFRESH T_ITEM.
T_ADRS-INVNO = P_INVNO.
T_ADRS-INVDAT = P_DATE.
SELECT SINGLE VBELV INTO VBFA-VBELV
FROM VBFA
WHERE VBELN = P_DELNO
AND VBTYP_N = 'J' .
SSORD = VBFA-VBELV.
*Exporter's Address
SELECT SINGLE BUKRS_VF INTO VBAK-BUKRS_VF
FROM VBAK
WHERE VBELN = VBFA-VBELV.
SELECT SINGLE ADRNR
INTO T001-ADRNR
FROM T001
WHERE BUKRS = VBAK-BUKRS_VF.
SELECT SINGLE NAME1 STREET CITY1 POST_CODE1 COUNTRY
INTO (T_ADRS-NAME1,T_ADRS-STREET,T_ADRS-CITY1,
T_ADRS-POST_CODE1, ADRC-COUNTRY)
FROM ADRC
WHERE ADDRNUMBER EQ T001-ADRNR.
SELECT SINGLE LANDX
INTO T_ADRS-COUNTRY
FROM T005T
WHERE SPRAS = 'EN'
AND LAND1 = ADRC-COUNTRY.
**BUYERS NO & DATE
SELECT SINGLE BSTNK BSTDK INTO (T_ADRS-BSTNK,T_ADRS-BSTDK)
FROM VBAK
WHERE VBELN = VBFA-VBELV.
*Consignee Address & Buyer Other Than Consignee
SELECT SINGLE KUNNR KUNAG INTO (LIKP-KUNNR, LIKP-KUNAG)
FROM LIKP WHERE VBELN = P_DELNO.
IF LIKP-KUNNR = LIKP-KUNAG.
SELECT SINGLE NAME1 NAME2 STRAS ORT01 PSTLZ REGIO TELF1 ADRNR
INTO (T_ADRS-CNAME1, T_ADRS-CNAME2, T_ADRS-CSTREET,
T_ADRS-CCITY, T_ADRS-CPCODE, T_ADRS-CREGIO,
T_ADRS-CTELF1, KNA1-ADRNR)
FROM KNA1
WHERE KUNNR = LIKP-KUNNR.
SELECT SINGLE COUNTRY INTO ADRC-COUNTRY
FROM ADRC
WHERE ADDRNUMBER EQ KNA1-ADRNR.
SELECT SINGLE LANDX
INTO T_ADRS-CCOUNTRY
FROM T005T
WHERE SPRAS = 'EN'
AND LAND1 = ADRC-COUNTRY.
T_ADRS-ONAME1 = T_ADRS-CNAME1 .
T_ADRS-ONAME2 = T_ADRS-CNAME2 .
T_ADRS-OSTREET = T_ADRS-CSTREET .
T_ADRS-OCITY = T_ADRS-CCITY.
T_ADRS-OPCODE = T_ADRS-CPCODE .
T_ADRS-OREGIO = T_ADRS-CREGIO.
T_ADRS-OTELF1 = T_ADRS-CTELF1 .
T_ADRS-OCOUNTRY = T_ADRS-CCOUNTRY.
ELSE.
SELECT SINGLE NAME1 NAME2 STRAS ORT01 PSTLZ REGIO TELF1 ADRNR
INTO (T_ADRS-CNAME1, T_ADRS-CNAME2, T_ADRS-CSTREET,
T_ADRS-CCITY, T_ADRS-CPCODE, T_ADRS-CREGIO,
T_ADRS-CTELF1, KNA1-ADRNR)
FROM KNA1
WHERE KUNNR = LIKP-KUNNR.
SELECT SINGLE COUNTRY INTO ADRC-COUNTRY
FROM ADRC
WHERE ADDRNUMBER EQ KNA1-ADRNR.
SELECT SINGLE LANDX
INTO T_ADRS-CCOUNTRY
FROM T005T
WHERE SPRAS = 'EN'
AND LAND1 = ADRC-COUNTRY.
*Buyer Other than Consignee
SELECT SINGLE NAME1 NAME2 STRAS ORT01 PSTLZ REGIO TELF1 ADRNR
INTO (T_ADRS-ONAME1, T_ADRS-ONAME2, T_ADRS-OSTREET,
T_ADRS-OCITY, T_ADRS-OPCODE, T_ADRS-OREGIO,
T_ADRS-OTELF1, KNA1-ADRNR)
FROM KNA1
WHERE KUNNR = LIKP-KUNAG.
SELECT SINGLE COUNTRY INTO ADRC-COUNTRY
FROM ADRC
WHERE ADDRNUMBER EQ KNA1-ADRNR.
SELECT SINGLE LANDX
INTO T_ADRS-OCOUNTRY
FROM T005T
WHERE SPRAS = 'EN'
AND LAND1 = ADRC-COUNTRY.
ENDIF.
*Other's Ref
TIDNO = 'Z071'.
TNAME = SSORD.
TOBJT = 'VBBK'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
T_ADRS-OREF = mslines-tdline(25).
EXIT.
ENDLOOP.
*Buyer's Order No Ref
TIDNO = 'Z023'.
TNAME = SSORD.
TOBJT = 'VBBK'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
T_ADRS-BUYER = mslines-tdline(25).
EXIT.
ENDLOOP.
*Exporter Ref
TIDNO = 'Z072'.
TNAME = SSORD.
TOBJT = 'VBBK'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
T_ADRS-XPREF = mslines-tdline(25).
EXIT.
ENDLOOP.
*Pre-Carraige By
TIDNO = 'Z074'.
TNAME = SSORD.
TOBJT = 'VBBK'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
T_ADRS-PCRG = mslines-tdline(25).
EXIT.
ENDLOOP.
*Place Of reciept by Pre-Carraige
TIDNO = 'Z073'.
TNAME = SSORD.
TOBJT = 'VBBK'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
T_ADRS-PLPCRG = mslines-tdline(25).
EXIT.
ENDLOOP.
*Vessel/Flight No
TIDNO = 'Z075'.
TNAME = SSORD.
TOBJT = 'VBBK'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
T_ADRS-VFNO = mslines-tdline(25).
EXIT.
ENDLOOP.
*Port Of Loading
TIDNO = 'Z077'.
TNAME = SSORD.
TOBJT = 'VBBK'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
T_ADRS-PLOAD = mslines-tdline(25).
EXIT.
ENDLOOP.
*Port Of Discharge
TIDNO = 'Z076'.
TNAME = SSORD.
TOBJT = 'VBBK'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
T_ADRS-PDISG = mslines-tdline(25).
EXIT.
ENDLOOP.
*Final Destination
TIDNO = 'Z070'.
TNAME = SSORD.
TOBJT = 'VBBK'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
T_ADRS-FDEST = mslines-tdline(25).
EXIT.
ENDLOOP.
*Terms Of Delivery & Payment
TIDNO = 'Z080'.
TNAME = SSORD.
TOBJT = 'VBBK'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
T_ADRS-TERMS = mslines-tdline(50).
EXIT.
ENDLOOP.
APPEND T_ADRS.
*BODY SECTION FOR LINE ITEMS
SELECT POSNR KWMENG VRKME WAERK
INTO (VBAP-POSNR, VBAP-KWMENG, VBAP-VRKME, VBAP-WAERK)
FROM VBAP
WHERE VBELN = SSORD.
*Mark/Case No
TIDNO = '0002'.
CONCATENATE SSORD
VBAP-POSNR
INTO TNAME.
TOBJT = 'VBBP'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
WA_ITEM-MARKNO = mslines-tdline(40).
EXIT.
ENDLOOP.
*Packing Type
TIDNO = '0003'.
CONCATENATE SSORD
VBAP-POSNR
INTO TNAME.
TOBJT = 'VBBP'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
WA_ITEM-PACKTYP = mslines-tdline(40).
EXIT.
ENDLOOP.
*Goods Description
TIDNO = '0001'.
CONCATENATE SSORD
VBAP-POSNR
INTO TNAME.
TOBJT = 'VBBP'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
WA_ITEM-PACKTYP = mslines-tdline(40).
EXIT.
ENDLOOP.
*Goods Quantity
WA_ITEM-QTY = VBAP-KWMENG.
WA_ITEM-VRKME = VBAP-VRKME.
*Goods Rate
SELECT SINGLE KNUMV INTO VBAK-KNUMV FROM VBAK WHERE VBELN = SSORD.
SELECT SINGLE KBETR WAERS
INTO (WA_ITEM-RATE, WA_ITEM-WAERS)
FROM KONV
WHERE KNUMV = VBAK-KNUMV
AND KPOSN = VBAP-POSNR
AND KSCHL = 'PR00'.
*Goods Amount
WA_ITEM-AMOUNT = WA_ITEM-QTY * WA_ITEM-RATE.
WA_ITEM-WAERK = VBAP-WAERK.
TOT = TOT + WA_ITEM-AMOUNT.
APPEND WA_ITEM TO T_ITEM.
ENDSELECT.
T_ADRS-TOT = TOT.
CALL FUNCTION 'SPELL_AMOUNT'
EXPORTING
AMOUNT = TOT
CURRENCY = VBAP-WAERK
FILLER = ' '
LANGUAGE = SY-LANGU
IMPORTING
IN_WORDS = WORD
EXCEPTIONS
NOT_FOUND = 1
TOO_LARGE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
TEXT = WORD-WORD.
CONCATENATE TEXT
'DECIMAL'
WORD-WORD
INTO TEXT
SEPARATED BY ' '.
T_ADRS-TOT_WORDS = WORD-WORD.
APPEND T_ADRS.
START-OF-SELECTION.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'Z_SD_REP_MULTI_PRINT'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
P_LANGUAGE = 'EN'.
CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
EXPORTING
I_LANGUAGE = P_LANGUAGE
I_APPLICATION = 'SAPDEFAULT'
IMPORTING
E_DEVTYPE = P_E_DEVTYPE.
P_OUTPUT_OPTIONS-XSFCMODE = 'X'.
P_OUTPUT_OPTIONS-XSF = SPACE.
P_OUTPUT_OPTIONS-XDFCMODE = 'X'.
P_OUTPUT_OPTIONS-XDF = SPACE.
P_OUTPUT_OPTIONS-TDPRINTER = P_E_DEVTYPE.
P_OUTPUT_OPTIONS-TDDEST = 'LOCL'.
APPEND P_OUTPUT_OPTIONS.
P_CONTROL_PARAMETERS-NO_DIALOG = 'X'.
P_CONTROL_PARAMETERS-GETOTF = 'X'.
P_CONTROL_PARAMETERS-NO_CLOSE = SPACE.
APPEND P_CONTROL_PARAMETERS.
CALL FUNCTION FM_NAME
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = P_CONTROL_PARAMETERS
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS = P_OUTPUT_OPTIONS
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO = P_JOB_OUTPUT_INFO
JOB_OUTPUT_OPTIONS =
TABLES
T_ADRS = T_ADRS
T_ITEM = T_ITEM
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
P_OTF[] = P_JOB_OUTPUT_INFO-OTFDATA.
CALL FUNCTION 'CONVERT_OTF_2_PDF'
EXPORTING
USE_OTF_MC_CMD = 'X'
ARCHIVE_INDEX =
IMPORTING
BIN_FILESIZE = P_BIN_FILESIZE
TABLES
OTF = P_JOB_OUTPUT_INFO-OTFDATA
DOCTAB_ARCHIVE = P_DOC
LINES = P_LINES
EXCEPTIONS
ERR_CONV_NOT_POSSIBLE = 1
ERR_OTF_MC_NOENDMARKER = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
BREAK-POINT.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
BIN_FILESIZE = P_BIN_FILESIZE
CODEPAGE = ' '
FILENAME = 'C:\TEMP.PDF'
FILETYPE = 'BIN'
MODE = ''
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
COL_SELECT = ' '
COL_SELECTMASK = ' '
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH = P_BIN_FILESIZE
TABLES
DATA_TAB = P_LINES
FIELDNAMES =
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
NO_AUTHORITY = 10
OTHERS = 11
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE = P_BIN_FILESIZE
FILENAME = 'C:\Documents and Settings\pvipin\Desktop\sd.pdf'
FILETYPE = 'BIN'
APPEND = ' '
WRITE_FIELD_SEPARATOR = ' '
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
IMPORTING
FILELENGTH =
*TABLES
DATA_TAB = P_LINES.
FIELDNAMES =
**EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22 .
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*& Form FINDTEXT
text
FORM FINDTEXT.
REFRESH mslines.
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = tidno
language = sy-langu
name = tname
object = tobjt
TABLES
lines = mslines
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
DELETE mslines WHERE tdline IS INITIAL.
ENDFORM. "FINDTEXTThnx in Advnce
Moni
Message was edited by: md monirujjaman
Message was edited by: md monirujjaman
Message was edited by: md monirujjaman
Message was edited by: md monirujjaman
Message was edited by: md monirujjaman
Message was edited by: md monirujjaman
Message was edited by: md monirujjaman
Message was edited by: md monirujjaman
Message was edited by: md monirujjamanHello,
I think the following statement is causing problem.
P_OTF[] = P_JOB_OUTPUT_INFO-OTFDATA.
either give:
P_OTF[] = P_JOB_OUTPUT_INFO-OTFDATA[].
or
directly pass P_JOB_OUTPUT_INFO-OTFDATA into FM parameter.
This is because you are filling only header into P_OTF and NOT the Contents of internal table by the statement
P_OTF[] = P_JOB_OUTPUT_INFO-OTFDATA.
let me know whether it works.
Regards, Murugesh AS
have alook at this thread:
Re: SX_OBJECT_CONVERT_OTF_PDF
this may help you
Message was edited by: Murugesh Arcot
Message was edited by: Murugesh Arcot -
How to stop the encoding ?plz see the code and correct it
public class NewClass
/** Creates a new instance of NewClass */
public NewClass ()
StateHelper sh=null;
Processor p=null;
try
p=Manager.createProcessor (new URL ("file:///ring.wav"));
sh = new StateHelper (p);
p.configure ();
catch (NoProcessorException ex)
ex.printStackTrace ();
catch (IOException ex)
ex.printStackTrace ();
p.setContentDescriptor (new FileTypeDescriptor (FileTypeDescriptor.MPEG_AUDIO));
TrackControl track[] = p.getTrackControls ();
boolean encodingPossible = false;
for (int i = 0; i < track.length; i++)
try
track.setFormat (new AudioFormat (AudioFormat.MPEG));
encodingPossible = true;
catch (Exception e)
track[i].setEnabled (false);
if (!sh.realize (10000))
System.exit (-1);
DataSource source = p.getDataOutput ();
MediaLocator dest = new MediaLocator ("file://ring1.mpg");
DataSink filewriter = null;
try
filewriter = Manager.createDataSink (source, dest);
filewriter.open ();
filewriter.addDataSinkListener (new DataSinkListener ()
public void dataSinkUpdate (DataSinkEvent e)
if(e instanceof javax.media.datasink.EndOfStreamEvent)
DataSink ds=e.getSourceDataSink ();
try
ds.stop ();
System.out.println ("finished write");
catch (IOException ex)
ex.printStackTrace ();
filewriter.start ();
catch (NoDataSinkException e)
System.exit (-1);
catch (IOException e)
System.exit (-1);
catch (SecurityException e)
System.exit (-1);
p.start ();
p.addControllerListener (new ControllerAdapter ()
public void endOfMedia (EndOfMediaEvent e)
Controller controller = (Controller) e.getSource ();
controller.stop ();
controller.deallocate ();
System.out.println ("finished run through");
public static void main (String[] args)
new NewClass ();
o/p is "finished run through",the EndOfStreamEvent never occurs.please correct if anything is wrong.when i manually stop the program then only the encoded file appears on the disk. this has to used from the other class and i cannot afford to use exit().help me.Try this - it seems to work
public class NewClass
Processor p = null;
DataSink sink = null;
/** Creates a new instance of NewClass */
public NewClass ()
try{
p = Manager.createProcessor (new URL ("file:C:/WINDOWS/Media/Windows XP Startup.wav"));
p.addControllerListener (new ControllerAdapter ()
public void configureComplete(ConfigureCompleteEvent e){
System.out.println ("ConfigureCompleteEvent");
Processor p = (Processor)e.getSourceController();
processConfigured(p);
public void realizeComplete(RealizeCompleteEvent e){
System.out.println ("RealizeCompleteEvent");
Processor p = (Processor)e.getSourceController();
processrealized(p);
public void controllerClosed(ControllerClosedEvent e){
System.out.println ("ControllerClosedEvent");
public void endOfMedia (EndOfMediaEvent e)
System.out.println ("EndOfMediaEvent");
Processor p = (Processor)e.getSourceController();
p.stop();
public void stop(StopEvent e){
System.out.println ("StopEvent");
Processor p = (Processor)e.getSourceController();
p.close();
p.configure();
}catch (NoProcessorException ex){
ex.printStackTrace ();
}catch (IOException ex){
ex.printStackTrace ();
private void processrealized(Processor p){
MediaLocator dest = new MediaLocator("file:C:/Workspace/ring1.mpg");
try{
sink = Manager.createDataSink(p.getDataOutput(), dest);
sink.addDataSinkListener(new DataSinkListener(){
public void dataSinkUpdate(DataSinkEvent e){
if(e instanceof EndOfStreamEvent){
System.out.println ("EndOfStreamEvent");
sink.close();
sink.open();
sink.start();
}catch(Exception eX){
p.start();
private void processConfigured(Processor p){
p.setContentDescriptor (new FileTypeDescriptor (FileTypeDescriptor.MPEG_AUDIO));
TrackControl track[] = p.getTrackControls ();
boolean encodingPossible = false;
for (int i = 0; i < track.length; i++){
try{
track.setFormat (new AudioFormat (AudioFormat.MPEG));
encodingPossible = true;
}catch (Exception e){
track[i].setEnabled (false);
p.realize();
public static void main (String[] args)
new NewClass ();
` -
i have a problem i scrape the gift card hard and i cant see the code what should i do??
iTunes Store: Invalid, inactive, or illegible codes
-
Problem making jar..pls see the code.
i have some class files in a folder.
i created a batch file for making jar.
and when i copy this jar file somewhere and write another batch file to run my java application its showing noclassfound error?.
pls see the code below and tell me where did i go wrong?
batch file making jar. 1
jar cvf SpectrobesUploadSimulator.jar *.class
pausebatch file to run the application 2
java SpectrobesSimulator
pausethe batch file 2 will run if i have the classes in the same directory but when i remove the classes and put the jar its not working.i gave the classpaths also
set CLASSPATH=$CLASSPATH:.:Spectrobes.jar
java SpectrobesSimulator
pause -
Can we see the code of GUI UDF functions
Hi All,
Can we see the code of GUI UDF functions?
Which language it has been written?
Cheers!
SamarjitHi,
Have a look at this blog.
Is this what you are looking for?
<a href="/people/venkataramanan.parameswaran/blog/2007/02/06/is-there-a-possibility-to-access-xi-standard-functions-in-user-defined-functions-yes there a possibility to access XI standard functions in User defined Functions?" Yes!</a>
Regards
Bhavesh -
What can i do if I scratch the itunes card and I can´t see the code?
what can i do if I scratch the itunes card and I can´t see the code?
Follow these instructions; iTunes Store: Invalid, Inactive, or Illegible codes, http://support.apple.com/kb/TS1292
-
How see the code of the application
I would like to know how to see the code generated by APEX since I need to stamp(print) it.
Thank youHello,
In FireFox : Right Mouse Click + View Page Source
In IE: Right Mouse Click + View Source
(might be a lot of pages though)
Greetings,
Roel
http://roelhartman.blogspot.com/
You can reward this reply by marking it as either Helpful or Correct ;-) -
Can anybody help me in fixing the problem ? of JTable ( CODE GIVEN )
My problem is
1)when i select the combo box (2nd column) through keyboard the selected item is not visible in the cell
2) i need to press TAB key twice to go to next cell .
3) also before editing i need to press a key to start editing (caret visible) HELP ME
CODE CAN BE RUN TO SEE WHAT I MEANT
<code>
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.table.*;
import java.awt.*;
import java.awt.event.*;
import java.util.Vector;
import java.text.*;
public class BaseTable
public JScrollPane scrollPane;
public JTable table;
public int totalRows;
public int i,numRows,numCols;
public TableModel model;
public int rowCount;
public JComboBox box;
public BaseTable()
String[] items=new String[]{"item1","jItem2","kItem3","Item4","Item5","Item6"};
String[] columns = {"Column1","Column2","Column3","Column4","Column5","Column6","Column7","Column8","Column9"};
box=new JComboBox(items);
box.setEditable(true);
DefaultTableModel baseModel=new DefaultTableModel();
baseModel.setColumnIdentifiers(columns);
table = new JTable(baseModel)
protected void processKeyEvent(KeyEvent e)
if ( e.getID() == KeyEvent.KEY_PRESSED && e.getKeyCode() != e.VK_TAB)
int column = table.getSelectedColumn();
int row = table.getSelectedRow();
Rectangle r = getCellRect(row, column, false);
Point p = new Point( r.x, r.y );
SwingUtilities.convertPointToScreen(p, table);
try
System.out.println("PROCESS KEY EVENT Typing"+e.getKeyCode());
Robot robot = new Robot();
robot.mouseMove(p.x, p.y );
robot.mousePress(InputEvent.BUTTON1_MASK);
robot.mouseRelease(InputEvent.BUTTON1_MASK);
robot.mouseMove(0, 0 );
catch (Exception e2) {}
else
System.out.println("PROCESS KEY EVENT IN ELSE");
if(e.getKeyCode() == e.VK_TAB && table.isEditing())
((DefaultCellEditor)table.getCellEditor()).stopCellEditing();
else
super.processKeyEvent(e);
Vector vectorRow = new Vector();
vectorRow.addElement("");
vectorRow.addElement("");
vectorRow.addElement("");
vectorRow.addElement("");
vectorRow.addElement("");
vectorRow.addElement("");
vectorRow.addElement("");
vectorRow.addElement("");
vectorRow.addElement("");
TableCellEditor tableCellEditor_comboBox = new MyCustomTableCellEditor(box,this);
table.getColumnModel().getColumn(1).setCellEditor(tableCellEditor_comboBox);
((DefaultTableModel)table.getModel()).addRow(vectorRow);
rowCount = table.getRowCount();
((DefaultTableModel)table.getModel()).fireTableRowsInserted(rowCount,rowCount);
scrollPane = new JScrollPane(table);
scrollPane.setForeground(Color.white);
rowCount = table.getRowCount();
numCols = table.getColumnCount();
public class MyCustomTableCellEditor extends DefaultCellEditor
JTable table=null;
BaseTable baseTable=null;
JComboBox box=null;
MyCustomTableCellEditor(JComboBox editorComponent,BaseTable baseTable)
super(editorComponent);
this.table=baseTable.table;
this.baseTable=baseTable;
setClickCountToStart(0);
public Component getTableCellEditorComponent(
JTable table,
Object value,
boolean isSelected,
int row,
int column)
super.getTableCellEditorComponent(table,value,isSelected,row,column);
box=(JComboBox)getComponent();
box.putClientProperty("JComboBox.isTableCellEditor", Boolean.TRUE);
return box;
public static void main(String s1[])
BaseTable t=new BaseTable();
JFrame f=new JFrame();
f.getContentPane().add(t.scrollPane);
f.setSize(800,200);
f.setVisible(true);
</code>sahas@sun, you're very impolite! farukkhan was trying to help, and he's right because when you use code formatting the code is really easier to read.
Perhaps you have lost a chance for getting the answer! -
Problem while executing the code( that covert jpeg images to movie)
http://java.sun.com/products/java-media/jmf/2.1.1/solutions/JpegImagesToMovie.html
here is the code:
* @(#)JpegImagesToMovie.java 1.3 01/03/13
* Copyright (c) 1999-2001 Sun Microsystems, Inc. All Rights Reserved.
* Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
* modify and redistribute this software in source and binary code form,
* provided that i) this copyright notice and license appear on all copies of
* the software; and ii) Licensee does not utilize the software in a manner
* which is disparaging to Sun.
* This software is provided "AS IS," without a warranty of any kind. ALL
* EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
* IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
* NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
* LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
* OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
* LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
* INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
* CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
* OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
* This software is not designed or intended for use in on-line control of
* aircraft, air traffic, aircraft navigation or aircraft communications; or in
* the design, construction, operation or maintenance of any nuclear
* facility. Licensee represents and warrants that it will not use or
* redistribute the Software for such purposes.
import java.io.*;
import java.util.*;
import java.awt.Dimension;
import javax.media.*;
import javax.media.control.*;
import javax.media.protocol.*;
import javax.media.protocol.DataSource;
import javax.media.datasink.*;
import javax.media.format.VideoFormat;
* This program takes a list of JPEG image files and convert them into
* a QuickTime movie.
public class JpegImagesToMovie3 implements ControllerListener, DataSinkListener {
public boolean doIt(int width, int height, int frameRate, Vector inFiles, MediaLocator outML) {
ImageDataSource ids = new ImageDataSource(width, height, frameRate, inFiles);
Processor p;
try {
System.err.println("- create processor for the image datasource ...");
p = Manager.createProcessor(ids);
} catch (Exception e) {
System.err.println("Yikes! Cannot create a processor from the data source.");
return false;
p.addControllerListener(this);
// Put the Processor into configured state so we can set
// some processing options on the processor.
p.configure();
if (!waitForState(p, p.Configured)) {
System.err.println("Failed to configure the processor.");
return false;
// Set the output content descriptor to QuickTime.
p.setContentDescriptor(new ContentDescriptor(FileTypeDescriptor.QUICKTIME));
// Query for the processor for supported formats.
// Then set it on the processor.
TrackControl tcs[] = p.getTrackControls();
Format f[] = tcs[0].getSupportedFormats();
if (f == null || f.length <= 0) {
System.err.println("The mux does not support the input format: " + tcs[0].getFormat());
return false;
tcs[0].setFormat(f[0]);
System.err.println("Setting the track format to: " + f[0]);
// We are done with programming the processor. Let's just
// realize it.
p.realize();
if (!waitForState(p, p.Realized)) {
System.err.println("Failed to realize the processor.");
return false;
// Now, we'll need to create a DataSink.
DataSink dsink;
if ((dsink = createDataSink(p, outML)) == null) {
System.err.println("Failed to create a DataSink for the given output MediaLocator: " + outML);
return false;
dsink.addDataSinkListener(this);
fileDone = false;
System.err.println("start processing...");
// OK, we can now start the actual transcoding.
try {
p.start();
dsink.start();
} catch (IOException e) {
System.err.println("IO error during processing");
return false;
// Wait for EndOfStream event.
waitForFileDone();
// Cleanup.
try {
dsink.close();
} catch (Exception e) {}
p.removeControllerListener(this);
System.err.println("...done processing.");
return true;
* Create the DataSink.
DataSink createDataSink(Processor p, MediaLocator outML) {
DataSource ds;
if ((ds = p.getDataOutput()) == null) {
System.err.println("Something is really wrong: the processor does not have an output DataSource");
return null;
DataSink dsink;
try {
System.err.println("- create DataSink for: " + outML);
dsink = Manager.createDataSink(ds, outML);
dsink.open();
} catch (Exception e) {
System.err.println("Cannot create the DataSink: " + e);
return null;
return dsink;
Object waitSync = new Object();
boolean stateTransitionOK = true;
* Block until the processor has transitioned to the given state.
* Return false if the transition failed.
boolean waitForState(Processor p, int state) {
synchronized (waitSync) {
try {
while (p.getState() < state && stateTransitionOK)
waitSync.wait();
} catch (Exception e) {}
return stateTransitionOK;
* Controller Listener.
public void controllerUpdate(ControllerEvent evt) {
if (evt instanceof ConfigureCompleteEvent ||
evt instanceof RealizeCompleteEvent ||
evt instanceof PrefetchCompleteEvent) {
synchronized (waitSync) {
stateTransitionOK = true;
waitSync.notifyAll();
} else if (evt instanceof ResourceUnavailableEvent) {
synchronized (waitSync) {
stateTransitionOK = false;
waitSync.notifyAll();
} else if (evt instanceof EndOfMediaEvent) {
evt.getSourceController().stop();
evt.getSourceController().close();
Object waitFileSync = new Object();
boolean fileDone = false;
boolean fileSuccess = true;
* Block until file writing is done.
boolean waitForFileDone() {
synchronized (waitFileSync) {
try {
while (!fileDone)
waitFileSync.wait();
} catch (Exception e) {}
return fileSuccess;
* Event handler for the file writer.
public void dataSinkUpdate(DataSinkEvent evt) {
if (evt instanceof EndOfStreamEvent) {
synchronized (waitFileSync) {
fileDone = true;
waitFileSync.notifyAll();
} else if (evt instanceof DataSinkErrorEvent) {
synchronized (waitFileSync) {
fileDone = true;
fileSuccess = false;
waitFileSync.notifyAll();
public static void main(String args[]) {
if (args.length == 0)
prUsage();
// Parse the arguments.
int i = 0;
int width = -1, height = -1, frameRate = 1;
Vector inputFiles = new Vector();
String outputURL = null;
while (i < args.length) {
if (args.equals("-w")) {
i++;
if (i >= args.length)
prUsage();
width = new Integer(args[i]).intValue();
} else if (args[i].equals("-h")) {
i++;
if (i >= args.length)
prUsage();
height = new Integer(args[i]).intValue();
} else if (args[i].equals("-f")) {
i++;
if (i >= args.length)
prUsage();
frameRate = new Integer(args[i]).intValue();
} else if (args[i].equals("-o")) {
i++;
if (i >= args.length)
prUsage();
outputURL = args[i];
} else {
inputFiles.addElement(args[i]);
i++;
if (outputURL == null || inputFiles.size() == 0)
prUsage();
// Check for output file extension.
if (!outputURL.endsWith(".mov") && !outputURL.endsWith(".MOV")) {
System.err.println("The output file extension should end with a .mov extension");
prUsage();
if (width < 0 || height < 0) {
System.err.println("Please specify the correct image size.");
prUsage();
// Check the frame rate.
if (frameRate < 1)
frameRate = 1;
// Generate the output media locators.
MediaLocator oml;
if ((oml = createMediaLocator(outputURL)) == null) {
System.err.println("Cannot build media locator from: " + outputURL);
System.exit(0);
JpegImagesToMovie3 imageToMovie3 = new JpegImagesToMovie3();
imageToMovie3.doIt(width, height, frameRate, inputFiles, oml);
System.exit(0);
static void prUsage() {
System.err.println("Usage: java JpegImagesToMovie -w <width> -h <height> -f <frame rate> -o <output URL> <input JPEG file 1> <input JPEG file 2> ...");
System.exit(-1);
* Create a media locator from the given string.
static MediaLocator createMediaLocator(String url) {
MediaLocator ml;
if (url.indexOf(":") > 0 && (ml = new MediaLocator(url)) != null)
return ml;
if (url.startsWith(File.separator)) {
if ((ml = new MediaLocator("file:" + url)) != null)
return ml;
} else {
String file = "file:" + System.getProperty("user.dir") + File.separator + url;
if ((ml = new MediaLocator(file)) != null)
return ml;
return null;
// Inner classes.
* A DataSource to read from a list of JPEG image files and
* turn that into a stream of JMF buffers.
* The DataSource is not seekable or positionable.
class ImageDataSource extends PullBufferDataSource {
ImageSourceStream streams[];
ImageDataSource(int width, int height, int frameRate, Vector images) {
streams = new ImageSourceStream[1];
streams[0] = new ImageSourceStream(width, height, frameRate, images);
public void setLocator(MediaLocator source) {
public MediaLocator getLocator() {
return null;
* Content type is of RAW since we are sending buffers of video
* frames without a container format.
public String getContentType() {
return ContentDescriptor.RAW;
public void connect() {
public void disconnect() {
public void start() {
public void stop() {
* Return the ImageSourceStreams.
public PullBufferStream[] getStreams() {
return streams;
* We could have derived the duration from the number of
* frames and frame rate. But for the purpose of this program,
* it's not necessary.
public Time getDuration() {
return DURATION_UNKNOWN;
public Object[] getControls() {
return new Object[0];
public Object getControl(String type) {
return null;
* The source stream to go along with ImageDataSource.
class ImageSourceStream implements PullBufferStream {
Vector images;
int width, height;
VideoFormat format;
int nextImage = 0; // index of the next image to be read.
boolean ended = false;
public ImageSourceStream(int width, int height, int frameRate, Vector images) {
this.width = width;
this.height = height;
this.images = images;
format = new VideoFormat(VideoFormat.JPEG,
new Dimension(width, height),
Format.NOT_SPECIFIED,
Format.byteArray,
(float)frameRate);
* We should never need to block assuming data are read from files.
public boolean willReadBlock() {
return false;
* This is called from the Processor to read a frame worth
* of video data.
public void read(Buffer buf) throws IOException {
// Check if we've finished all the frames.
if (nextImage >= images.size()) {
// We are done. Set EndOfMedia.
System.err.println("Done reading all images.");
buf.setEOM(true);
buf.setOffset(0);
buf.setLength(0);
ended = true;
return;
String imageFile = (String)images.elementAt(nextImage);
nextImage++;
System.err.println(" - reading image file: " + imageFile);
// Open a random access file for the next image.
RandomAccessFile raFile;
raFile = new RandomAccessFile(imageFile, "r");
byte data[] = null;
// Check the input buffer type & size.
if (buf.getData() instanceof byte[])
data = (byte[])buf.getData();
// Check to see the given buffer is big enough for the frame.
if (data == null || data.length < raFile.length()) {
data = new byte[(int)raFile.length()];
buf.setData(data);
// Read the entire JPEG image from the file.
raFile.readFully(data, 0, (int)raFile.length());
System.err.println(" read " + raFile.length() + " bytes.");
buf.setOffset(0);
buf.setLength((int)raFile.length());
buf.setFormat(format);
buf.setFlags(buf.getFlags() | buf.FLAG_KEY_FRAME);
// Close the random access file.
raFile.close();
* Return the format of each video frame. That will be JPEG.
public Format getFormat() {
return format;
public ContentDescriptor getContentDescriptor() {
return new ContentDescriptor(ContentDescriptor.RAW);
public long getContentLength() {
return 0;
public boolean endOfStream() {
return ended;
public Object[] getControls() {
return new Object[0];
public Object getControl(String type) {
return null;
on executing with the command:
java JpegImagesToMovie -w <width> -h <height> -f <frame rate per sec.> -o <output URL> <input JPEG file 1> <input JPEG file 2> ...
comes this......
Exception in thread"JMF thread:SendEventQueue:com.sun.media.processor.unknown Handler" java.lang.NullPointerException"
plz helpDon't forget to use the "Code Formatting Tags",
see http://forum.java.sun.com/help.jspa?sec=formatting,
so the posted code retains its original formatting. -
Problem in fetching the code for the line item
Hi,
I am working on a report in which to display the values corresponding to the line item of a PO.
For, ex, if there are 3 line items 10,140,150 and their condition values such zing,zgrd,zbrd are the condition types consist of different values depending on the line item i.e. 10,140,150.
My problem is when i execute the code the data of 1st line item is correctly fetched but the rest 2 line item data is pasted as it is. only the main pricre changes and the code for zing,zbrd,zgrd remains same as it is in the first line item 10.
plzz proivde me guide lines how to solve this problem.
Here's d code:-
DATA : vspl LIKE konv-kbetr.
DATA : vspl1 LIKE konv-kbetr.
DATA : vkwert LIKE konv-kwert.
DATA: VSPL2 LIKE KONV-kbetr. "ZING COST
DATA: VSPL3 LIKE KONV-kbetr. "ZGRD COST
DATA: VSPL4 LIKE KONV-kbetr. "ZBDL COST
LOOP AT item.
SELECT kbetr FROM konv INTO item-rate WHERE knumv = header-knumv AND kposn = item-ebelp
AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
MODIFY item.
ENDSELECT.
ENDLOOP.
LOOP AT item.
SELECT kwert FROM konv INTO vkwert WHERE knumv = header-knumv AND kposn = item-ebelp
AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
ENDSELECT.
ENDLOOP.
CLEAR : vspl , vspl1 , vspl2 , vspl3 , vspl4.
LOOP AT item.
SELECT kbetr FROM konv INTO vspl WHERE knumv = header-knumv AND kposn = item-ebelp
AND kschl = 'ZCOM'.
ENDSELECT.
SELECT kbetr FROM konv INTO vspl1 WHERE knumv = header-knumv AND kposn = item-ebelp
AND kschl = 'ZBR1'.
ENDSELECT.
*******************Begin - new code added on 14.01.2009******************
SELECT kbetr FROM konv INTO vspl2 WHERE knumv = header-knumv AND kposn = item-ebelp
AND kschl = 'ZING'.
ENDSELECT.
SELECT kbetr FROM konv INTO vspl3 WHERE knumv = header-knumv AND kposn = item-ebelp
AND kschl = 'ZGRD'.
ENDSELECT.
SELECT kbetr FROM konv INTO vspl4 WHERE knumv = header-knumv AND kposn = item-ebelp
AND kschl = 'ZBRL'.
ENDSELECT.
*******************End - new code added on 14.01.2009******************
ENDLOOP.
LOOP AT item.
item-rate = item-rate + vspl + vspl1.
*******************Begin - new code added on 14.01.2009******************
item-rate1 = item-rate1 + vspl2.
item-rate2 = item-rate2 + vspl3.
item-rate3 = item-rate3 + vspl4.
********************End - new code added on 14.01.2009*******************
MODIFY item INDEX sy-tabix TRANSPORTING rate.
*******************Begin -11`` new code added on 14.01.2009******************
MODIFY item INDEX sy-tabix TRANSPORTING rate1.
MODIFY item INDEX sy-tabix TRANSPORTING rate2.
MODIFY item INDEX sy-tabix TRANSPORTING rate3.
*********************End - new code added on 14.01.2009******************
ENDLOOP.
PLZ PROIVDE ME GUIDLINES HOW TO SOLVE THIS PROBLEM .
Edited by: ricx .s on Jan 19, 2009 10:16 AM
Edited by: Vijay Babu Dudla on Jan 19, 2009 5:22 AMHello,
Why are you looping at the same internal table so many times, you could probably perform everything within one loop instead.
DATA : vspl LIKE konv-kbetr.
DATA : vspl1 LIKE konv-kbetr.
DATA : vkwert LIKE konv-kwert.
DATA: VSPL2 LIKE KONV-kbetr. "ZING COST
DATA: VSPL3 LIKE KONV-kbetr. "ZGRD COST
DATA: VSPL4 LIKE KONV-kbetr. "ZBDL COST
field-symbols <fs>.
LOOP AT item assigning <fs>.
SELECT kbetr FROM konv INTO <fs>-rate WHERE knumv = header-knumv AND kposn = item-ebelp
AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
MODIFY item.
ENDSELECT.
SELECT kwert FROM konv INTO vkwert WHERE knumv = header-knumv AND kposn = item-ebelp
AND ( kschl = 'ZP00' OR kschl = 'P001' OR kschl = 'PBXX' OR kschl = 'P000' OR kschl = 'PB00' OR kschl = 'ZING' OR kschl = 'ZBRD' OR kschl = 'ZGRD').
ENDSELECT.
ENDLOOP.
CLEAR : vspl , vspl1 , vspl2 , vspl3 , vspl4.
SELECT kbetr FROM konv INTO vspl WHERE knumv = header-knumv AND kposn = item-ebelp
AND kschl = 'ZCOM'.
ENDSELECT.
SELECT kbetr FROM konv INTO vspl1 WHERE knumv = header-knumv AND kposn = item-ebelp
AND kschl = 'ZBR1'.
ENDSELECT.
*******************Begin - new code added on 14.01.2009******************
SELECT kbetr FROM konv INTO vspl2 WHERE knumv = header-knumv AND kposn = item-ebelp
AND kschl = 'ZING'.
ENDSELECT.
SELECT kbetr FROM konv INTO vspl3 WHERE knumv = header-knumv AND kposn = item-ebelp
AND kschl = 'ZGRD'.
ENDSELECT.
SELECT kbetr FROM konv INTO vspl4 WHERE knumv = header-knumv AND kposn = item-ebelp
AND kschl = 'ZBRL'.
ENDSELECT.
*******************End - new code added on 14.01.2009******************
<fs>-rate = <fs>-rate + vspl + vspl1.
*******************Begin - new code added on 14.01.2009******************
<fs>-rate1 = item-rate1 + vspl2.
<fs>-rate2 = item-rate2 + vspl3.
<fs>-rate3 = item-rate3 + vspl4.
ENDLOOP.
Also, use field-symbols and use loop at itab assigning addition so that you can directly change the contents of the table without using modify statment.
regards,
Advait -
A question on JInternalFrame of Swing. Let see the code
Hello everybody,
I am setting up a Frame that contains 2 JInternalFrames in its desktopPane. The first JInternalFrame is to show the map. The second one have some check box. What I wanna do is, when I check the CheckBox in the second JInternalFrame, after getting the result from Database, it show the result on Map. The result will be some red ellipses on the first JInternalFrame.
The code work well with Database. But I really need your help to do with the event on InternalFrame
Thanks in advance !
Quin,
Here is the code of the main Frame:
import java.awt.*;
import java.awt.event.*;
import java.awt.font.*;
import javax.swing.*;
import javax.swing.event.*;
import java.util.*;
import java.io.*;
import java.net.*;
import java.beans.*;
public class MapLocator
public static void main(String [] args)
JFrame frame = new DesktopFrame();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
Create a desktop frames that contains internal frame
class DesktopFrame extends JFrame implements ActionListener
public DesktopFrame()
super("Map Locator v.1.0.0");
this.setSize(new Dimension(WIDTH,HEIGHT));
desktop = new JDesktopPane();
this.setContentPane(desktop);
this.createInternalFrame(
new mapPanel(),"Ban do Thanh pho Ho Chi Minh",0,0,480,515);
this.createInternalFrame(
new commandPanel(),"Chu thich va tim kiem",480,0,320,515);
Create an internal frame on the desktop.
@param c the component to display in the internal frame
@param t the title ofthe internal frame.
public void createInternalFrame(JPanel c, String t,int ifx, int ify, int ifwidth, int ifheight)
final JInternalFrame iframe = new JInternalFrame(t,
true//resizeable
,true//closable
,true//maximizable
,true//iconifiable
iframe.getContentPane().add(c);
desktop.add(iframe);
iframe.setFrameIcon(new ImageIcon("new.gif"));
//add listener to confirm frame closing
iframe.addVetoableChangeListener(new VetoableChangeListener()
public void vetoableChange(PropertyChangeEvent event)
throws PropertyVetoException
String name = event.getPropertyName();
Object value = event.getNewValue();
//we only want to check attempts to close a frame
if(name.equals("closed") && value.equals(Boolean.TRUE))
//ask user if it is ok to close
int result =
JOptionPane.showInternalConfirmDialog(iframe,"OK to close");
//if the user doesn't agree, veto the close
if(result != JOptionPane.YES_OPTION)
throw new PropertyVetoException("User cancel the close",event);
iframe.setVisible(true);
iframe.setLocation(ifx,ify);
iframe.setSize(new Dimension (ifwidth, ifheight));
private static final int WIDTH = 800;
private static final int HEIGHT = 600;
private JDesktopPane desktop;
private int nextFrameX;
private int nextFrameY;
private int frameDistance;
private JMenuBar menuBar;
private JMenu fileMenu, viewMenu, searchMenu, windowMenu, helpMenu;
private JRadioButtonMenuItem javalaf, liquidlaf, motiflaf, windowlaf, threedlaf;
}Below is the code of first JInternalFrame
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
import java.awt.font.*;
import java.awt.geom.*;
import java.awt.image.BufferedImage;
import java.io.*;
import java.util.Random;
import java.util.*;
import com.sun.image.codec.jpeg.*;
Create a canvas that show a map
public class mapPanel extends JPanel
implements MouseMotionListener, MouseListener
public mapPanel()
addMouseMotionListener(this);
addMouseListener(this);
Unbarrier the comment below to see how the map model work
//Unbarrier this to see -->
try
InputStream in = getClass().getResourceAsStream(nameOfMap);
JPEGImageDecoder decoder = JPEGCodec.createJPEGDecoder(in);
mImage = decoder.decodeAsBufferedImage();
in.close();//Close dong nhap
catch(ImageFormatException ie)
{ System.out.println ("Error on formating image");}
catch(IOException ioe)
{ System.out.println ("Error on input/ouput image");}
catch(Exception e){}
Connect to database
connDB();
String addQuery = "";
try
Get the relation amongs points
int idStart = 0;
int idEnd = 0;
addQuery ="SELECT IDStart, IDEnd FROM 2Diem";
rs = stmt.executeQuery(addQuery);
int incre = 0;
while(rs.next())
idStart = rs.getInt(1);
Rel.add(incre, new Integer(idStart));
incre ++;
idEnd = rs.getInt(2);
Rel.add(incre, new Integer(idEnd));
incre ++;
Load the Coordination of the points to hash table
int idPoint = 0;
int XP = 0;
int YP = 0;
addQuery ="SELECT IDDiem, CoorX, CoorY FROM Diem";
rs = stmt.executeQuery(addQuery);
while(rs.next())
idPoint = rs.getInt(1);
XP = rs.getInt(2);
YP = rs.getInt(3);
hashX.put(new Integer(idPoint), new Integer(XP));
hashY.put(new Integer(idPoint), new Integer(YP));
Create Points to draw the Line
line = new Line2D[(Rel.size())/2];
for(int i = 0, k = 0; i < Rel.size();i++, k = k+2)
X1 = Integer.parseInt(""+hashX.get(Rel.elementAt(i)));
Y1 = Integer.parseInt(""+hashY.get(Rel.elementAt(i)));
i++;
X2 = Integer.parseInt(""+hashX.get(Rel.elementAt(i)));
Y2 = Integer.parseInt(""+hashY.get(Rel.elementAt(i)));
line[k/2] = new Line2D.Double(X1,Y1,X2,Y2);
catch(SQLException sqle){}
private Hashtable hashX = new Hashtable();
private Hashtable hashY = new Hashtable();
private Vector Rel = new Vector(100,10);
private Vector vecBackX = new Vector(10,2);
private Vector vecBackY = new Vector(10,2);
private int X1 = 0, X2 = 0, Y1 = 0, Y2 = 0;
Draw the image to show
public void paintComponent(Graphics g)
super.paintComponent(g);
Graphics2D g2 = (Graphics2D) g;
g2.setRenderingHint(
RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
// g2.drawImage(mImage,0,0,null);
Paint the background with light Gray
g2.setPaint(Color.lightGray);
g2.fill(new Rectangle2D.Double(0,0,480,480));
fillBack(g2);
Draw the street with its border is white, its background is orange
g2.setPaint(Color.white);
g2.setStroke(new BasicStroke(14,BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND));
for(int k = 0; k < Rel.size()/2; k++)
g2.draw(line[k]);
g2.setPaint(Color.orange);
g2.setStroke(new BasicStroke(10,BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND));
for(int k = 0; k < Rel.size()/2; k++)
g2.draw(line[k]);
Draw the grid on map
g2.setPaint(Color.white);
g2.setStroke(new BasicStroke(1));
drawGrid(g2);
if(point != null)
g2.setPaint(Color.red);
g2.fillOval(point.x - 3, point.y - 3, 7, 7);
Draw the Background with tree and water
@param g2 the Graphics2D that used to draw shapes
private void fillBack(Graphics2D g2)
Draw the background for map
try
int BackX = 0;
int BackY = 0;
int incre = 0;
backGround = new GeneralPath[3];
for(int idBack = 1; idBack <= 3; idBack++)
Since we use the vector for each background(tree / water), we have to
refresh the vector before it can add new path inside
vecBackX.clear();
vecBackY.clear();
String addQuery = "SELECT CoorX, CoorY FROM BackCoor WHERE "
+ " IDBack =" + idBack;
rs = stmt.executeQuery(addQuery);
while(rs.next())
BackX = rs.getInt(1);
BackY = rs.getInt(2);
This will take the point into vector
vecBackX.add(incre,new Integer(BackX));
vecBackY.add(incre,new Integer(BackY));
incre++;
Design the shapes of path
backGround[(idBack - 1)] =
new GeneralPath(GeneralPath.WIND_EVEN_ODD);
backGround[(idBack - 1)].moveTo(
Integer.parseInt(""+vecBackX.elementAt(0)),
Integer.parseInt(""+vecBackY.elementAt(0)));
for(int i = 1; i < vecBackX.size(); i++)
backGround[(idBack - 1)].lineTo(
Integer.parseInt(""+vecBackX.elementAt(i)),
Integer.parseInt(""+vecBackY.elementAt(i)));
backGround[(idBack - 1)].lineTo(
Integer.parseInt(""+vecBackX.elementAt(0)),
Integer.parseInt(""+vecBackY.elementAt(0)));
backGround[(idBack - 1)].closePath();
Here we have 3 Path that represented to tree and water
The first and second one is tree.
The last one is water.
Draw the path now
if(idBack == 3)
g2.setPaint(Color.cyan);
g2.fill(backGround[(idBack - 1)]);
else
g2.setPaint(Color.green);
g2.fill(backGround[(idBack - 1)]);
incre = 0;
catch(SQLException sqle)
System.out.println ("Khong ve duoc back ground");
Create the grid on map
@param g2 the Graphics2D that used to draw shapes
private void drawGrid(Graphics2D g2)
try
String Query =
"SELECT * FROM Grid";
rs = stmt.executeQuery(Query);
GridX = new Vector(100,2);
GridY = new Vector(100,2);
GridW = new Vector(100,2);
GridH = new Vector(100,2);
int incr = 0;
while(rs.next())
gridX = rs.getInt(2);
gridY = rs.getInt(3);
gridW = rs.getInt(4);
gridH = rs.getInt(5);
GridX.add(incr, new Integer(gridX));
GridY.add(incr, new Integer(gridY));
GridW.add(incr, new Integer(gridW));
GridH.add(incr, new Integer(gridH));
incr ++;
rec = new Rectangle2D.Double[GridX.size()];
for(int i = 0; i < GridX.size(); i++)
gridX = Integer.parseInt(""+GridX.elementAt(i));
gridY = Integer.parseInt(""+GridY.elementAt(i));
gridW = Integer.parseInt(""+GridW.elementAt(i));
gridH = Integer.parseInt(""+GridH.elementAt(i));
rec[i] = new Rectangle2D.Double(gridX, gridY, gridW, gridH);
g2.draw(rec);
catch(SQLException sqle){}
private Vector GridX, GridY, GridW, GridH;
private int gridX = 0, gridY = 0, gridW = 0, gridH = 0;
Fill the point
public void placePoint(Graphics2D g2,Point p)
g2.setPaint(Color.red);
g2.fill(new Ellipse2D.Double(p.x - 3, p.y - 3, 7,7));
Create connection to Database
public void connDB()
System.out.println ("Connecting to Database");
String fileName = "Pro.mdb";
String data = "jdbc:odbc:Driver={Microsoft Access Driver " +
"(*.mdb)};DBQ=" + fileName + ";DriverID=22";
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn = DriverManager.getConnection(data,"","");
stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
ResultSet.CONCUR_UPDATABLE);
catch(ClassNotFoundException ce)
{ System.out.println ("Khong tim thay Driver"); }
catch(SQLException sqle)
{ System.out.println ("Loi SQL trong khi Connect"); }
Statement stmt = null;
ResultSet rs = null;
Connection conn = null;
This one is the model map to draw
private String nameOfMap = "map.jpg";
private BufferedImage mImage;
Initialize the path and shapes to draw
private Line2D line[];
private Rectangle2D.Double rec[];
private GeneralPath backGround[];
private Point point;
private int changeColor = 0;
The last one is:
import java.awt.*;
import java.awt.geom.*;
import javax.swing.*;
import java.awt.event.*;
import java.sql.*;
public class commandPanel extends JPanel implements ActionListener
Initial check box
JCheckBox uyBanNhanDan = new JCheckBox();
JCheckBox nganHang = new JCheckBox();
JCheckBox buuDien = new JCheckBox();
JCheckBox khachSan = new JCheckBox();
JCheckBox benhVien = new JCheckBox();
JCheckBox cho = new JCheckBox();
JCheckBox nhaHat = new JCheckBox();
JCheckBox daiHoc = new JCheckBox();
JCheckBox thuvien = new JCheckBox();
JCheckBox nhaTho = new JCheckBox();
public commandPanel()
this.setLayout(new BorderLayout());
this.setBorder(BorderFactory.createCompoundBorder(
BorderFactory.createTitledBorder("***Chu dan***"),
BorderFactory.createEmptyBorder(5,5,5,5)));
Create the combobox to show information
uyBanNhanDan.setText("Uy Ban ND Quan");
nganHang.setText("Ngan Hang");
buuDien.setText("Buu Dien");
khachSan.setText("Khach San");
benhVien.setText("Benh Vien");
cho.setText("Cho - Mua Sam");
nhaHat.setText("Nha Hat");
daiHoc.setText("Dai Hoc - Dao Tao");
thuvien.setText("Thu Vien - Nha Sach");
nhaTho.setText("Nha Tho - Chua");
uyBanNhanDan.addActionListener(this);
nganHang.addActionListener(this);
buuDien.addActionListener(this);
khachSan.addActionListener(this);
benhVien.addActionListener(this);
cho.addActionListener(this);
nhaHat.addActionListener(this);
daiHoc.addActionListener(this);
thuvien.addActionListener(this);
nhaTho.addActionListener(this);
uyBanNhanDan.setActionCommand("1");
nganHang.setActionCommand("2");
buuDien.setActionCommand("3");
khachSan.setActionCommand("4");
benhVien.setActionCommand("5");
cho.setActionCommand("6");
nhaHat.setActionCommand("7");
daiHoc.setActionCommand("8");
thuvien.setActionCommand("10");
nhaTho.setActionCommand("11");
JPanel secP = new JPanel();
secP.setLayout(new GridLayout(5,2));
secP.add(uyBanNhanDan);
secP.add(nganHang);
secP.add(buuDien);
secP.add(khachSan);
secP.add(benhVien);
secP.add(cho);
secP.add(nhaHat);
secP.add(daiHoc);
secP.add(thuvien);
secP.add(nhaTho);
this.add(secP,BorderLayout.NORTH);
public void actionPerformed(ActionEvent event)
int x = 0;
int y = 0;
try
mapPanel mp = new mapPanel();
int idDiaDanh = 0;
if(event.getActionCommand() == "1")
idDiaDanh = 1;
String Query =
"SELECT CoorX, CoorY FROM MoTa WHERE IDDiaDanh =" + idDiaDanh;
mp.rs = mp.stmt.executeQuery(Query);
while(mp.rs.next())
/*I have problem here*/
/*Process the event for me*/ x = mp.rs.getInt(1);
y = mp.rs.getInt(2);
Graphics g2 = mp.getGraphics();
mp.paintComponents(g2);
g2.setPaint(Color.red);
g2.fill(new Ellipse2D.Double(x - 3, y - 3, 7, 7));
catch(SQLException sqle){}Strings are Objects.
String[] strings = new String[3];
String[0]="abcde";Right here, you are initializing the String array, and the String at index 0.
JButton[] buttons = new JButton[2];
buttons[0].setText("abcde");Right here, you are initializing the JButton array, but not any of the JButtons in the array. You then try to use the setText() method on a null JButton. -
Hi,
I am doing INIT without data transfer.
When I go in monitor and try to see the details I not able to see any thing , its not displaying any of the TABS of monitor like Hedear , Status and Details.
When I go to data target and try to open from again it dont displays anything.
Can anybody let me know if have faced similar problem?
Thanks , JeetuHi Jeetu,
Please can U check the Scheduling options inthe Infopackage screen, plz ensure that the job has been scheduled either immediately or to a specific time period.
If it was a immediate run, plz check the job status in SM37 for both source system and BW. If the job has ran successfully then you should get some logs for that, U will not find logs unless until the job hasn't ran (or) started.
Hope this should help U.
Regards,
Syed -
LWE - Problems to see the service working to the users
Hi to all,
Im trying to implement LWE on ESS1.0, EP7, ERP2005 ECC6.0.
To do that I follow this post: https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/initialsettingstobedoneforLifeandWork+events&
I released all the objects, after I went to GP Design View and went to see the instantiation id (LWE Events in ESS). This is different from the backend but I have a problem:
When I change the Resource ID in the backend to be the same like in the portal, the process to the user disappear, If I dont change the resource ID I get the error Cannot retrieve process template: No active version of the given development object exists
In the default roles I inserted the user in the Overseer and my user on the Administrator
If I test directly in the Design View the process work properly.
Im missing something!!
Can anyone help me?
Thanks in advance
I put this question in the forum of ESS
Message was edited by:
Sonia SantosChange the post to Forum of ESS
-
I'd like to know how can see the code editor for FormBeans y ActionBean
Hi, I'm testing JDeveloper 10 and found this problem: When a created (Struts) FormBeans or ActionBeans I can't see formBean class or where it created and obviusly can't see source code in code editor.
Can you help me?
Sorry for my english
PaioForm beans will be created in the default package for the project. We don't create them for you automatically though - unless you click on an Action in the Diagram, and choose "Go to Form Bean" from the context menu.
If you just create a bean in the Struts Structure pane - that will create the XML entry but not the implementation.
Maybe you are looking for
-
I am trying to delete a large number of songs from my itunes library without having to do it one at a time. How can I do this. All of my songs have check marks by them. Help!
-
Use Call Manager to play media over a paging system.
We have a Bogen overhead paging system and would like to play some music from the Cisco system. It would be for playing Brahms Lullaby when a baby is born. We currently use the phone system to access the paging via a LS port on the back of our 2821 r
-
HOW TO SHOW JLABEL IN JDIALOG USE TIMERTASK WHILE MAIN CLASS IS SLEEPING?
I have done a code below and it is working but the only problem is when the main program start to sleep by use Thread.sleep(10000) for 10 secs and it will prompt out a JDialog contain JLabel inside it with message "Please wait.... program is sleeping
-
Hi experts I would like to know if bid invitations (restrict and public) can be sent to SUS via XML? I configurated it but when I save the bid the syssten not send it to SUS but the log is sent with success, when I go to SUS as supplier bider I can't
-
Partner Determination Problem in Sale Order..
Dear Gurus, Sold-to Party : 6 Shipt-to Party : 7,8 When creating a sales order when I go for selecting a ship to party , in my case the Sold-to party has multiple ship to parties, then the system gives me this message Top node 6 for ship to 7 not ma