How find out error in Preparestatement?
i am using jdbc,servlet,html client msaccess database have 155
fields in database.there is no errors in compile.
i am inserting data from html to database thro servlet
i am inserting data thro preparedstatement using( ?) marks.
but executeUpdate is not executing?
and i am not getting any exception or error
i checked up all lines (with (PrintWriter)out.println() statement.)
line after the executeUpdate is not executed .tell me how to find the error
Without the code, it is tough to debug the problem. You can email the code to me if you want instead of posting it, [email protected]
- Have you confirmed that you can you get a connection to the database via JDBC?
- Try creating a simple table with a subset of the data (3-4 rows) and doing an insert on that or else doing a simple select in a test page.
- What kind of table is this that has 155 fields? That seems a bit excessive.
Similar Messages
-
How to find out error segments in a group of Idocs
Hi,
1. For every 5 minutes Idocs are coming in to R3 from some third party systems, and this scenerio some of the Idocs are in failed status as well.
My doubt is how to see the all segments at a time, since there might be some problem with the data, so I need to check the each and every segment all time. Is there any way to findout all segments at a time for the group of the idocs of the same message type.
2. How to find out the error in segments of the idoc.
Many thanks in advance.
Thanks.
Ahmed.Hi Mujeeb Ahmed
I dont have SAP System in front. Any way check the menu bar, there you can fine SEGMENT WITH ERROR OPTION
Regards
Kumar -
How do u find out error in procedure
Hi,
I have procedure that 10000 lines of codes.How do i find out the error in the procedure.And again i have a package there is 10 procedure and 20 funcction
there are 2000 lines or more of code in each procedure and function.How do i find out the error in which procdure or function .One more question in about procedure .i have a procedure that contain 2000 lines of code when i execute a procedure at the time it will take time 30 minute.but i want to execute the procedure in less time .what are those step plz help me.
thanks"How do i find out the error in the procedure"
Do you refer to compilation error or runtime errors...????
For compilation errors , you can write "show errors" after the try of package creation....
For runtime errors... - assuming you call one - by -one the most if not all the routines in this package - you can execute the first(main) routine which calls the second , and then the third ... e.t.c. . When the runtime error occurs , the routine / line of it will be displayed.....
If the above is not true (the packaged routines are not called , at least most of them ) you should add exception portions in your code and messages in them (dbms_output.put_line)...
Greetings...
Sim -
Source for finding out error codes PB 17"
I ran hardware test and it returned an error code of:
21 SS / 1 / 5 : 0 x 42 (5)
and it was at the logic board test section...
Anyone know this code, or how I can find out what it is?Google shows one result for this error code without the "(5)" and it seems to have indicated a sound-related problem.
In any event, when AHT shows errors, you really are best advised to take the machine in to have it looked at.
Good luck. -
How find out print program for smartform?
i know smart form name but i want printprogram name for that.how to find?pls help me.
Hi
There's no method.
If you're speaking about a smartforms for logistics module (SD,MM), you can you the transaction NACE (or table TNAPR) in order to findout which program is assigned to that smartforms.
U can also try to find out all programs using the fm SSF_FUNCTION_MODULE_NAME and get only the program where the string containing the name of your smartform.
Max -
hi all
need help to solve this problem
In a file called AllBalancedOfSize.java write a method with the signature:
public void printBalanced(int len)
that uses recursion (either directly or indirectly) and prints all balanced strings, composed solely of the characters a and b of length len in lexical (dictionary) order. A balanced string is a string with an equal number of a and b characters. So, for example, abab is a balanced string and bbab is not a balanced string.
As an example, the call printBalanced(4) must print:
aabb
abab
abba
baab
baba
bbaa
A call printBalanced(5) must print nothing because there are no balanced strings of length 5 (same for any odd parameter value). A call printBalanced(0) must print an empty line because there is one balance string of length zero, the empty string! You may assume that len is always greater than or equal to zero.
i have done this
public class AllBalancedOfSize {
public static void main(String[] args) {
AllBalancedOfSize q4 = new AllBalancedOfSize();
q4.printBalanced(4);
public void printBalanced(int len) {
if (len == 0) {
System.out.println();
} else {
if (len % 2 == 0)
printBalanced(len, "");
public void printBalanced(int len, String prefix) {
if (len == 0) {
int numofa = 0, numofb = 0;
for (int i = 0; i <= prefix.length(); i++) {
char tmp = prefix.charAt(i);
if (tmp == 'a') {
numofa++;
} else {
numofb++;
if (numofa == numofb) {
System.out.println(prefix);
} else {
printBalanced(len - 1, prefix + "a");
printBalanced(len - 1, prefix + "b");
}but i got this from compiler
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 4
at java.lang.String.charAt(String.java:687)
at AllBalancedOfSize.printBalanced(AllBalancedOfSize.java:20)
at AllBalancedOfSize.printBalanced(AllBalancedOfSize.java:31)
at AllBalancedOfSize.printBalanced(AllBalancedOfSize.java:31)
at AllBalancedOfSize.printBalanced(AllBalancedOfSize.java:31)
at AllBalancedOfSize.printBalanced(AllBalancedOfSize.java:31)
at AllBalancedOfSize.printBalanced(AllBalancedOfSize.java:12)
at AllBalancedOfSize.main(AllBalancedOfSize.java:4)
need help to find out what is the error.
Edited by: dttl on May 10, 2009 11:44 AMdttl wrote:
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 4
at java.lang.String.charAt(String.java:687)
need help to find out what is the error.When a String has a length of 4 characters, you can access them though indexes 0 through 3.
When a String has a length of N characters, you can access them though indexes 0 through N-1. -
How find out type of resource (folder/doc) ...
Hi all!
I need to classify KM resourses in a taxonomy and I don't know how can I find out type of the resourses (whether the resourse is folder or document). Is the type stored in any indexable property?
Thanks in advance for any idea!
Regards
ZbynekHi there,
IResource resource = ...;
I think you can check the <i>resource</i> object you have is an <b>instanceof</b> <i>ICollection</i> or not.. like..
if(resource <b>instanceof</b> ICollection){
If Yes, it's a folder
If No, it's a file
or you can also try
if(resource.isCollection() ) {
ICollection collection = (ICollection)resource;
How'z that?
Regards,
SK.
<i>PS: Plz rewards points if helpful!</i> -
Lost iPhone 4, how find out IMEI-number
Hello, i lost my iPhone, how i can find out IMEI number with out phone, may be in iTunes, or else
Go to iTunes on your computer. Click on your phone in the devices menu. Where it lists your phone number, click on that until your IMEI number comes up.
-
How find out the URL of a Transaction like se80 called by an iview
Hi Everybody,
instead of a transaction-iview i want to use only the URL in the browser to call the screen of a ITS-Transcation. How can i find out the needed URL without using a transaction ivew?
regards,
Sid
Edited by: sid_mopo on Mar 23, 2009 2:18 PM
Edited by: sid_mopo on Mar 23, 2009 2:19 PMGo to the Transaction iview and open as object.
Go to the property Quick Link and add a name to it. (say 'abc').
Then open the url
http://<urportal>:<port>/irj/portal/abc
After login, it will directly open the iview in the portal.
Note that the iview should assingn to a role and this role is assigned to a user
Raghu -
Help in finding out error in include ---se37
Hello everyone,
This is regarding the include in the function module .
Where we define constants , i have to define like this
If plant EQ 'ita' OR plant EQ 'del' OR plant EQ 'net' .
c_form LIKE itcta-tdform VALUE 'form1' .
ELSE .
c_form LIKE itcta-tdform VALUE 'form2' .
ENDIF .
The error that i get while activating is "unable to interpret PLANT -possible causes -incorrect spelling or comma error".
I am not able to find out where i am going wrong .
Can anyone help me find out the error or where and what i missed out .
Any help will be appreciated .
Thanks
SumitHi,
U have not defined the varibale PLANt.
Defin ethe same in Tcode = SE37
Give the function module name and clcik on change.
Use menu GOTO----
>GLOBAL DATA. define the plant here as below.
data: plant type werks.
Regards,
Pravin -
How find out the duplicate value from each columns.
I have below four columns,
How can i find out the duplicate value from each columns.
with All_files as (
select '1000' as INVOICE,'2000' AS DELIVERYNOTE,'3000' CANDELINVOICE,'4000' CANDELIVERYNOTE from dual union all
select '5000','6000','7000','8000' from dual union all
select '9000','1000','1100','1200' from dual union all
select '1200','3400','6700','8790' from dual union all
select '1000','2000','3000','9000' from dual union all
select '1230','2340','3450','4560' from dual
SELECT * FROM All_files
Output should be as per below.
1000 2000 3000 4000
9000 1000 1100 1200
1200 3400 6700 8790
1000 2000 3000 9000
Required to check uniqueness in cross columns.
Thanks.Try this (sorry about the formatting)...
WITH all_files AS (SELECT '1000' AS INVOICE,
'2000' AS DELIVERYNOTE,
'3000' CANDELINVOICE,
'4000' CANDELIVERYNOTE
FROM DUAL
UNION ALL
SELECT '5000',
'6000',
'7000',
'8000'
FROM DUAL
UNION ALL
SELECT '9000',
'1000',
'1100',
'1200'
FROM DUAL
UNION ALL
SELECT '1200',
'3400',
'6700',
'8790'
FROM DUAL
UNION ALL
SELECT '1000',
'2000',
'3000',
'9000'
FROM DUAL
UNION ALL
SELECT '1230',
'2340',
'3450',
'4560'
FROM DUAL),
t_base
AS (SELECT invoice
|| ','
|| deliverynote
|| ','
|| candelinvoice
|| ','
|| candeliverynote
str
FROM all_files),
t_str
AS (SELECT str || ',' AS str,
(LENGTH (str) - LENGTH (REPLACE (str, ','))) + 1
AS no_of_elements
FROM t_base),
t_n_rows
AS ( SELECT LEVEL AS i
FROM DUAL
CONNECT BY LEVEL <=
( SELECT SUM (no_of_elements) FROM t_str)),
t_build AS (SELECT t_str.str,
nt.i AS element_no,
INSTR (t_str.str,
DECODE (nt.i, 1, 0, 1),
DECODE (nt.i, 1, 1, nt.i - 1))
+ 1
AS start_pos,
INSTR (t_str.str,
1,
DECODE (nt.i, 1, 1, nt.i))
AS next_pos
FROM t_str
JOIN
t_n_rows nt
ON nt.i <= t_str.no_of_elements),
t_build2
AS (SELECT RTRIM (str, ',') AS original_string,
SUBSTR (str, start_pos, (next_pos - start_pos))
AS single_element,
element_no
FROM t_build),
t_build3
AS (SELECT single_element,
COUNT( * )
OVER (PARTITION BY single_element
ORDER BY single_element)
ele_count
FROM t_build2)
SELECT DISTINCT INVOICE,
DELIVERYNOTE,
CANDELINVOICE,
CANDELIVERYNOTE
FROM all_files, t_build3
WHERE ele_count > 1
AND ( INVOICE = single_element
OR DELIVERYNOTE = single_element
OR CANDELINVOICE = single_element
OR CANDELIVERYNOTE = single_element)I think this will be faster than the previous solution?
Cheers
Ben
Edited by: Munky on Feb 17, 2011 2:11 PM - "I think this will be faster than the previous solution?", nope - it's not :( -
How find out which user is using which company code?
Hi Gurus,
I am having more than 500 users in Production System.I need to find out which user is using which company code?I can get the roles and users separately from two different SAP tables.
Is it possible to get it from a single table or Tcode?
Best Regards,
RahmanHi,
Thanks for the update.Yes I tried with SUIM.But I was unable to find any clue.
Regards,
Rahman -
Please try to find out error in this program
Hi abapers,
when i execute this report , i got the error. please anybody find the error "Runtime Errors GETWA_NOT_ASSIGNED"
Short text
Field symbol has not yet been assigned." this error i got..
please help me..
REPORT ZBLOCKED_ALV_CLS.
*Data Objects to avoid tables work area.
DATA: V_KUNNR TYPE KNA1-KUNNR,
V_LIFNR TYPE LFA1-LIFNR.
*Logiv to maintain frist block.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS: CUSTOMER FOR V_KUNNR.
SELECTION-SCREEN END OF BLOCK B1.
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
SELECT-OPTIONS: VENDOR FOR V_LIFNR.
SELECTION-SCREEN END OF BLOCK B2.
TYPES: BEGIN OF TY_VBAK,
VBELN TYPE VBELN_VA,
ERDAT TYPE ERDAT,
END OF TY_VBAK.
TYPES: BEGIN OF TY_EKKO,
EBELN TYPE EBELN,
AEDAT TYPE ERDAT,
END OF TY_EKKO.
DATA: WA_VBAK TYPE TY_VBAK,
WA_EKKO TYPE TY_EKKO,
I_VBAK TYPE STANDARD TABLE OF TY_VBAK,
I_EKKO TYPE STANDARD TABLE OF TY_EKKO.
TYPE-POOLS: SLIS.
DATA: REPID TYPE SY-REPID.
DATA: LAYOUT TYPE SLIS_LAYOUT_ALV,
FCAT TYPE SLIS_FIELDCAT_ALV,
F_VBAK LIKE STANDARD TABLE OF FCAT,
F_EKKO LIKE STANDARD TABLE OF FCAT,
I_EVENTS TYPE SLIS_T_EVENT.
START-OF-SELECTION.
REPID = SY-REPID.
* REPID TYPE SY-REPID.
PERFORM: GET_DATA,
COL_HEAD.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_INIT'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID.
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
IS_LAYOUT = LAYOUT
IT_FIELDCAT = F_VBAK
I_TABNAME = 'I_VBAK'
IT_EVENTS = I_EVENTS
* IT_SORT =
* I_TEXT = ' '
TABLES
T_OUTTAB = I_VBAK
* EXCEPTIONS
* PROGRAM_ERROR = 1
* MAXIMUM_OF_APPENDS_REACHED = 2
* OTHERS = 3
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_APPEND'
EXPORTING
IS_LAYOUT = LAYOUT
IT_FIELDCAT = F_EKKO
I_TABNAME = 'I_EKKO'
IT_EVENTS = I_EVENTS
* IT_SORT =
* I_TEXT = ' '
TABLES
T_OUTTAB = I_EKKO
* EXCEPTIONS
* PROGRAM_ERROR = 1
* MAXIMUM_OF_APPENDS_REACHED = 2
* OTHERS = 3
CALL FUNCTION 'REUSE_ALV_BLOCK_LIST_DISPLAY'.
*& Form GET_DATA
* text
* --> p1 text
* <-- p2 text
FORM GET_DATA .
SELECT VBELN ERDAT FROM VBAK INTO TABLE I_VBAK WHERE KUNNR IN CUSTOMER.
SELECT EBELN AEDAT FROM EKKO INTO TABLE I_EKKO WHERE LIFNR IN VENDOR.
ENDFORM. " GET_DATA
*& Form COL_HEAD
* text
* --> p1 text
* <-- p2 text
FORM COL_HEAD .
PERFORM BUILD_CAT USING:
'VBELN' 'VBAK' 'VBELN' 'I_VBAK' 'SD',
'ERDAT' 'VBAK' 'ERDAT' 'I_VBAK' 'SD',
'EBELN' 'EKKO' 'EBELN' 'I_EKKO' 'MM',
'AEDAT' 'EKKO' 'AEDAT' 'I_EKKO' 'MM'.
ENDFORM. " COL_HEAD
*& Form BUILD_CAT
* text
* -->P_0238 text
* -->P_0239 text
* -->P_0240 text
* -->P_0241 text
* -->P_0242 text
FORM BUILD_CAT USING VALUE(P_0238)
VALUE(P_0239)
VALUE(P_0240)
VALUE(P_0241)
VALUE(P_0242).
CLEAR FCAT.
IF P_0242 = 'SD'.
FCAT-REF_FIELDNAME = P_0238.
FCAT-REF_TABNAME = P_0239.
FCAT-FIELDNAME = P_0240.
FCAT-TABNAME = P_0241.
APPEND FCAT TO F_VBAK.
ENDIF.
IF P_0242 = 'MM'.
FCAT-REF_FIELDNAME = P_0238.
FCAT-REF_TABNAME = P_0239.
FCAT-FIELDNAME = P_0240.
FCAT-TABNAME = P_0241.
APPEND FCAT TO F_VBAK.
ENDIF.
ENDFORM. " BUILD_CAT
Thanks,
Vinay.
Edited by: abapvinay on Apr 19, 2011 4:56 AMHi,
You have passed as shown below :
IF p_0242 = 'SD'.
fcat-ref_fieldname = p_0238.
fcat-ref_tabname = p_0239.
fcat-fieldname = p_0240.
fcat-tabname = p_0241.
APPEND fcat TO f_vbak.
ENDIF.
IF p_0242 = 'MM'.
fcat-ref_fieldname = p_0238.
fcat-ref_tabname = p_0239.
fcat-fieldname = p_0240.
fcat-tabname = p_0241.
APPEND fcat TO f_vbak. " Change this to F_EKKO
ENDIF.
Hope this helps
Regards,
Madhukar Shetty -
How find the errors (sdo_geom.validate TRUE) in objects
Hi, I've many layers of polygons with topologycal errors (loaded from Mapinfo 7.5 , the function sdo_geom.validate_geometry_with_context give error 13349, probably there are some ring, edge etc...
But there is a metod, program, utility to find where the errors are to correct them?Fabio,
Error 13349 indicates that the polygons intersect with themselves.
You need to fix these errors. There are tools in MapInfo Professional 7.5 to check and automatically fix them. There are other tools commercially available which also fix geometry errors.
If you know MapInfo I would fix these errors there.
Ivan -
How find out what percent of JRE's ar 1.4, 5, 6?
Does anyone know of a study or website that has info on what JRE's are really in use out there? For example, are 30% of people still on 1.4? Is 6 widely used yet? I ask because I don't want to waste my time making my app 1.4-compliant if there's pretty much no one on it anymore.
What does everyone here do?jschell wrote:
If you want to run in 1.4 then you need to use a 1.4 compiler and VM for testing.
It is much more likely that if you develope in 1.4 that it will run in 1.5/1.6 without problems than the reverse.That's what I figured. But if 10% of java apps use 1.4 and the rest are 5 or 6, then i don't mind forcing that 10% to upgrade. But if it's 30% or more, that's a lot of people to annoy.
(But man, it would be nice to do 1.5+ collections with generics!)
Any idea if using 1.5 and using generics can reliably compile back to 1.4? Can i compile with a 1.4 flag if I've used generics?
Maybe you are looking for
-
Downloading an App in someone else's ID?
If I download an App in someone else's Apple ID, like some sort of Apple update, will I have to log into their account everytime to do stuff on my computer? Thanks!
-
Touch is resetting during video playback
I was watching a podcast on my iPod Touch and it seems that every 4-5 minutes or so it will reset itself. Is this a widespread issue?
-
The agent 18 case is awesome.
-
Dropdown list in a module pool screen
Hi, There are 2 radio buttons in module pool for 2 Plants. Now another plant has to be added in the screen. The radio button has to be replaced with a drop down list for these 3 plants. How can we acheive this? Thanks, Kumar.
-
Using IOS 6, why does it keep adding an unwanted alert?
I have deleted all entries of this particular event and then re entered it as new and a week later it did it again! It starts adding an alert the day before at 9am. Not to all entries, it just seems as if it is this particular set, or if I try to del