Exception - why?
I wanted to deploy a webservice with axis and tomcat.
I got the error message:
Exception in thread "main" java.lang.NoClassDefFoundError: javax.xml.rpc.SerciveException.
Can anyone tell me what to do?
thanks,
chiliman
include the jaxb far files and the saaj.jar file into TOMCAT_HOME\common\libs\
Similar Messages
-
The following block is giving an exception.why?
DECLARE
TYPE typ_tab_oid IS TABLE OF ncs_domain.sco_item_results.OID%TYPE;
v_tab typ_tab_oid;
CURSOR cur_oid
IS
SELECT OID
FROM ncs_domain.sco_item_results sir
WHERE sir.is_total = 'Y';
v_error_code number(10);
v_error_mesg varchar2(4000);
BEGIN
OPEN cur_oid;
LOOP
FETCH cur_oid
BULK COLLECT INTO v_tab LIMIT 1000;
FORALL i IN 1 .. v_tab.COUNT
DELETE FROM ncs_domain.sco_item_results_bkp sir
WHERE sir.OID = v_tab (i);
EXIT WHEN cur_oid%NOTFOUND;
END LOOP;
CLOSE cur_oid;
EXCEPTION
WHEN OTHERS
THEN
v_error_code:=sqlcode;
v_error_messg:=sqlerrm;
insert into my_error_log values()
raise_application_error (-20001, v_error_code||''||v_error_messg);
END;
exception that i am getting is ora-30036: unable to extend segment by 8 in undo tablespace........
why??
also prior to script i had no index on the column is_total of table ncs_domain.sco_item_results
when i ran the scipt it gave the output in approx 3 hrs.
once i created bitmap index on the column is_total and it is taking 5 hrs.
SAD Part is that even after 5hrs i get an exception that no space in undo tablespace(mentioned above).
How do i handle this exception.??I am a user.Dont have any sys previliges also.
Can saomebody help in improving the perfomace of the script..
The script is basically deleting approx 10,000,000 records.Hi.
Following is the sript of the table.
It already includes nologging clause.
CREATE TABLE SCO_ITEM_RESULTS_BKP
OID VARCHAR2(32 CHAR) NOT NULL,
TEST_ID NUMBER(22,10),
STUDENT_OID VARCHAR2(32 CHAR),
TEST_TYPE VARCHAR2(32 CHAR),
CUSTOMER_ID NUMBER(9) NOT NULL,
SCORED_DATE DATE,
STATUS VARCHAR2(50 CHAR),
SCORE_VALUE VARCHAR2(10 CHAR),
SCORE_MIN VARCHAR2(10 CHAR),
SCORE_MAX VARCHAR2(10 CHAR),
NUM_ATTEMPTS NUMBER(22,4),
ITEM_ID NUMBER(22,10),
ASSIGNMENT_OID VARCHAR2(32 CHAR),
AUTH_LEVEL_ENTITY_ID NUMBER(10),
SESSION_ID NUMBER(22,10),
CREATEDBY_OID VARCHAR2(32 CHAR),
UPDATEDBY_OID VARCHAR2(32 CHAR),
CREATEDATE DATE,
UPDATEDATE DATE,
ORIGINTYPECD_OID VARCHAR2(32 CHAR),
OWNER_ORGUNIT_OID VARCHAR2(32 CHAR),
APPLICATION_VERSION VARCHAR2(32 CHAR) NOT NULL,
INACTIVESTATUS CHAR(1 CHAR) NOT NULL,
ISDELETED CHAR(1 CHAR) NOT NULL,
JOB_ID VARCHAR2(32 CHAR),
TESTRESULTS_OID VARCHAR2(32 CHAR),
FORM_ID NUMBER(10),
IS_TOTAL CHAR(1 CHAR),
STUDENT_PERSON_OID VARCHAR2(32 CHAR)
TABLESPACE BASE_DATA
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
BUFFER_POOL DEFAULT
NOLOGGING
NOCACHE
NOPARALLEL
MONITORING;
Edited by: user8731258 on Nov 25, 2009 8:16 PM -
AMFConnection never give exception,why?
This is my simple code
import flex.messaging.io.amf.client.AMFConnection;
import flex.messaging.io.amf.client.exceptions.ClientStatusException;
public class AMFClient {
public AMFClient() {
public static void main(String[] args) {
AMFConnection amfConnection = new AMFConnection();
String url = "http://192.168.0.199:9081/testApp/messagebroker/amf";
System.out.println("AMF Client Test");
try
amfConnection.connect(url);
catch (ClientStatusException cse)
System.out.println(cse);
return;
The program never give exception if I give a non-existed url,why?Please help
Thanks
MarkIf you have an iPad 1, the max iOS is 5.1.1. For newer iPads, the current iOS is 6.0.1. The Settings>General>Software Update only appears if you have iOS 5.0 or higher currently installed.
iOS 5: Updating your device to iOS 5 or Later
http://support.apple.com/kb/HT4972
How to install iOS 6
http://www.macworld.com/article/2010061/hands-on-with-ios-6-installation.html
iOS: How to update your iPhone, iPad, or iPod touch
http://support.apple.com/kb/HT4623
If you are currently running an iOS lower than 5.0, connect the iPad to the computer, open iTunes. Then select the iPad under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
Tip - If connected to your computer, you may need to disable your firewall and anitvirus software temporarily. Then download and install the iOS update. Be sure and backup your iPad before the iOS update. After you update to iOS 6.x, the next update can be installed via wifi (i.e., not connected to your computer).
Cheers, Tom -
System error in block parforEach: Exception why is process finished?
Hi everybody,
we split a message in BPM. Then we loop the multiline-container element.
For each line-item we call a WebService synchrounous.
We got a exception branch for system errors.
Now we got the following problem:
Our produces abount 3000 line-items.
While processing e.g. item 1000 we got a system error and the BPM jumped into the execption branch. After processing the exception branch the process FINISHED!
We assumed that the process would go on processing the remaining items!
Is there a workaroud, that the process does go on with processing the remaining items?
Regards MarioHi,
After handling the exception, the process will be continuing after that block. So you can try to put the block within a loop until all the line items get over.
Regards,
P.Venkat -
Cursor finding zero records is not going into an exception - Why?
Hi:
I have a stored procedure I am running that opens and returns a ref cursor but if the cursor doesnt have any records in it, it isnt firing an exception.
Thanks for any help
PROCEDURE GetPaymentHistory
( pi_seq_memb_id IN NUMBER,
out_status OUT NUMBER,
out_message OUT VARCHAR2,
po_curPmtHist OUT P_EBIZ_DIAM_CONN.cursorType)
AS
vsql VARCHAR2(2000);
memb_id NUMBER;
vSpc VARCHAR2(1);
vComma VARCHAR2(1);
vLength NUMBER;
vDescription VARCHAR2(60);
BEGIN
memb_id := pi_seq_memb_id;
vSpc := '';
vComma := ',';
vDescription := '';
vsql := '' || '';
OPEN po_curPmtHist FOR
SELECT
(SELECT DISTINCT BB.BILLING_SCHEDULE_TYPE
FROM HSD_MEMBER_ELIG_HISTORY MEH
INNER JOIN BILLABLE_GROUP_BCONFIG BGB ON BGB.SEQ_GROUP_ID = MEH.SEQ_GROUP_ID
INNER JOIN BILLING_BATCH BB ON BGB.BATCH_ID = BB.BATCH_ID
WHERE MEH.SEQ_MEMB_ID= m.SEQ_MEMB_ID
AND MEH.EFFECTIVE_DATE <= sysdate) AS billFrequency,
i.invoice_id AS InvoiceNumber,
i.INVOICE_DATE AS InvoiceDate,
i.INVOICE_FROM_DATE AS BillFrom,
i.INVOICE_THRU_DATE AS BillTo,
i.REPORTED_INVOICE_BALANCE AS InvoiceAmount,
i.PAYMENT_DUE_DATE AS DueDate,
T.POST_DATETIME AS PaidDate,
T.AMOUNT AS PaidAmount,
i.TOTAL_NEW_CHARGES AS NewCharges,
i.TOTAL_APPLIED_PAYMENTS AS AppliedPayments,
i.TOTAL_APPLIED_ADJUSTMENTS AS AppliedAdjustments,
i.TOTAL_APPLIED_TRANSFERS AS AppliedTransfers,
i.TOTAL_APPLIED_RETRO_TRANS AS AppliedRetroTransactions,
i.CURRENT_INVOICE_BALANCE AS InvoiceBalance,
i.PREVIOUS_ACCOUNT_BALANCE AS PreviousAccountBalance,
i.TOTAL_REPORTED_PAYMENTS AS ReportedPayments,
i.TOTAL_REPORTED_ADJUSTMENTS AS ReportedAdjustments,
i.TOTAL_REPORTED_TRANSFERS AS ReportedTransfers,
i.TOTAL_REPORTED_RETRO_TRANS AS ReportedRetroTransactions,
i.REPORTED_ACCOUNT_BALANCE AS AccountBalance,
F.UNAPPLIED_AMOUNT AS unappTotalCash,
F.POST_DATETIME AS unappPostDate,
F.CREATE_DATETIME AS unappTransDate,
F.FUNDS_TYPE AS unappType,
F.AMOUNT AS unappAmount,
F.DESCRIPTION AS unappDescription
FROM
invoice i
INNER JOIN ar_account a ON i.ar_account_id = a.ar_account_id
INNER JOIN HSD_MEMBER_MASTER m ON a.SEQ_BILL_ENTITY_ID = m.SEQ_FAMILY_ID
LEFT OUTER JOIN AR_TRANSACTION T ON T.APPLIED_INVOICE_ID = i.INVOICE_ID
LEFT OUTER JOIN FUNDS F ON F.funds_id = a.ar_account_id
WHERE
m.seq_memb_id = memb_id AND
a.bill_entity_type='S' ;
--IF po_curPmtHist%ROWCOUNT = 0 THEN
--out_status := -1;
--out_message := 'No record found for Get Payment History';
-- ELSE
out_status := 0;
out_message := 'Get Payment History Success';
--END IF;
EXCEPTION
WHEN NO_DATA_FOUND THEN
out_status := -1;
out_message := 'No record found for Get Payment History';
WHEN OTHERS THEN
out_status := -1;
out_message := 'Exception occured: Error Number:' || SQLCODE || ' Err Msg:' || SUBSTR(SQLERRM,1,100);
END GetPaymentHistory;I have a stored procedure I am running that opens
s and returns a ref cursor but if the cursor doesnt
have any records in it, This is a fairly common misconception. A cursor is simply a pointer to a compiled or prepared SQL statement with a plan for how to return the data.
Cursors do not contain data. With a ref cursor you are passing a pointer that will allow the caller to fetch the data using the prepared SQL statement.
Re: Regarding the data in a cursor -
SOAP Response From ASP Page gives Exceptions-Why ?
Hi Friends,
I am trying to call an ASP Page by sending it a SOAP Request.
The SOAP Request reaches the ASP Page but still i am getting lot of
exceptions.This is my code from Request.java
import javax.xml.soap.*;
import java.util.*;
import java.net.URL;
public class Request {
public static void main(String[] args) {
try {
SOAPConnectionFactory scFactory =
SOAPConnectionFactory.newInstance();
SOAPConnection con = scFactory.createConnection();
MessageFactory factory =
MessageFactory.newInstance();
SOAPMessage message = factory.createMessage();
SOAPPart soapPart = message.getSOAPPart();
SOAPEnvelope envelope = soapPart.getEnvelope();
SOAPHeader header = envelope.getHeader();
SOAPBody body = envelope.getBody();
header.detachNode();
Name bodyName = envelope.createName(
"TestDtls", "m",
"urn:myserver/soap:TestThis");
SOAPBodyElement gltp =
body.addBodyElement(bodyName);
Name name = envelope.createName("PhoneOrigin");
SOAPElement symbol = gltp.addChildElement(name);
symbol.addTextNode("0672324228");
URL endpoint = new URL
("http://john/myservices/testsoap.asp");
message.writeTo(System.out);
SOAPMessage response = con.call(message, endpoint);
response.writeTo(System.out);
SOAPPart sp = response.getSOAPPart();
SOAPEnvelope se = sp.getEnvelope();
SOAPBody sb = se.getBody();
Iterator it = sb.getChildElements(bodyName);
SOAPBodyElement bodyElement =
(SOAPBodyElement)it.next();
String myvalue = bodyElement.getValue();
System.out.print("The Value Retrived is ");
System.out.println(myvalue);
con.close();
} catch (Exception ex) {
System.out.println(ex);
This is what i have in my ASP Page: testsoap.asp
<%
Set objReq = Server.CreateObject("Microsoft.XMLDOM")
objReq.load(Request)
strmycode = "SOAP-ENV:Envelope/SOAP-ENV:Body/m:TestDtls/PhoneOrigin"
varPhoneOrigin=objReq.SelectSingleNode(strmycode).text
status="ok"
strReturn = "<SOAP-ENV:Envelope xmlns:SOAP=""urn:schemas-xmlsoap-org:soap.v1"">" & _
"<SOAP-ENV:Header></SOAP-ENV:Header>" & _
"<SOAP-ENV:Body>" & _
"<m:TestDtlsResponse xmlns:m=""urn:myserver/soap:TestThis"">" & _
"<PhoneStatus>" & Status & "</PhoneStatus>" & _
"</m:TestDtlsResponse>" & _
"</SOAP-ENV:Body>" & _
"</SOAP-ENV:Envelope>"
Response.Write strReturn
%>
The Exceptions i get are as follows:
=====================================
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><S
OAP-ENV:Body><m:TestDtls xmlns:m="urn:myserver/soap:TestThis"><PhoneOrigin>"0672
324228"</PhoneOrigin></m:TestDtls></SOAP-ENV:Body></SOAP-ENV:Envelope>Jul 11, 20
03 6:37:35 PM com.sun.xml.messaging.saaj.soap.MessageImpl identifyContentType
SEVERE: SAAJ0537: Invalid Content-Type. Could be an error message instead of a S
OAP message
com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is
this an error message instead of a SOAP response?
at com.sun.xml.messaging.saaj.soap.MessageImpl.identifyContentType(Messa
geImpl.java:268)
at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:1
35)
at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.<init>(Message1
_1Impl.java:45)
at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl.crea
teMessage(SOAPMessageFactory1_1Impl.java:32)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOA
PConnection.java:361)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedP
ost.run(HttpSOAPConnection.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOA
PConnection.java:126)
at Request.main(Request.java:34)
Jul 11, 2003 6:37:35 PM com.sun.xml.messaging.saaj.soap.MessageImpl <init>
SEVERE: SAAJ0535: Unable to internalize message
com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:2
02)
at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.<init>(Message1
_1Impl.java:45)
at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl.crea
teMessage(SOAPMessageFactory1_1Impl.java:32)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOA
PConnection.java:361)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedP
ost.run(HttpSOAPConnection.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOA
PConnection.java:126)
at Request.main(Request.java:34)
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:te
xt/html. Is this an error message instead of a SOAP response?
at com.sun.xml.messaging.saaj.soap.MessageImpl.identifyContentType(Messa
geImpl.java:268)
at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:1
35)
... 7 more
CAUSE:
com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is
this an error message instead of a SOAP response?
at com.sun.xml.messaging.saaj.soap.MessageImpl.identifyContentType(Messa
geImpl.java:268)
at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:1
35)
at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.<init>(Message1
_1Impl.java:45)
at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl.crea
teMessage(SOAPMessageFactory1_1Impl.java:32)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOA
PConnection.java:361)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedP
ost.run(HttpSOAPConnection.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOA
PConnection.java:126)
at Request.main(Request.java:34)
CAUSE:
com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is
this an error message instead of a SOAP response?
at com.sun.xml.messaging.saaj.soap.MessageImpl.identifyContentType(Messa
geImpl.java:268)
at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:1
35)
at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.<init>(Message1
_1Impl.java:45)
at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl.crea
teMessage(SOAPMessageFactory1_1Impl.java:32)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOA
PConnection.java:361)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedP
ost.run(HttpSOAPConnection.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOA
PConnection.java:126)
at Request.main(Request.java:34)
java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptio
nImpl: Unable to internalize message
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOA
PConnection.java:126)
at Request.main(Request.java:34)
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize m
essage
at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:2
02)
at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.<init>(Message1
_1Impl.java:45)
at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl.crea
teMessage(SOAPMessageFactory1_1Impl.java:32)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOA
PConnection.java:361)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedP
ost.run(HttpSOAPConnection.java:156)
... 3 more
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:te
xt/html. Is this an error message instead of a SOAP response?
at com.sun.xml.messaging.saaj.soap.MessageImpl.identifyContentType(Messa
geImpl.java:268)
at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:1
35)
... 7 more
Actually,i need to see the response in XML format as per my program.
But,What does all this stuff mean ? I have using latest jwsdp 1.2.
Can Anyone Help me on this ?i have the same problem. when i make a test with a VB client, the SOAP message is builded this way "<SOAP.... instead of <SOAP-ENV.... tag generated by java. When a make a test in vb client using this syntax (SOAP-ENV), the asp page returns a error:
<font face="Arial" size=2>
<p>Microsoft VBScript runtime </font> <font face="Arial" size=2>error '800a01a8'</font>
<p>
<font face="Arial" size=2>Object required: 'objXMLDOM.selectSingleNode(...)'</font>
<p>
<font face="Arial" size=2>/rcruz/soap/vbSoap/simplesoap.asp</font><font face="Arial" size=2>, line 6</font>
Anyone have a idea???
Thanks -
While Navigating back Recieved out of Memory Exception: WHY?
i used JHEADSTART to built my Application. Major portion of the Application is Built now. when navigating back to the previous pages i have recieved this exception
23-Jan 13:35:44 DEBUG (JhsNavigationHandlerImpl) -handleNavigation action=#{WizardPageListCreateNewEquip_Acc.getPreviousAction}, outcome=WizardCreateNewEquip_AccbillingProfile
23-Jan 13:35:44 DEBUG (JhsNavigationHandlerImpl) -Executing checkRoles
23-Jan 13:35:46 DEBUG (WizardProcessModel) -Wizard page has changed.
Jan 23, 2008 1:36:21 PM oracle.adf.view.faces.bean.util.StateUtils$Saver restoreState
SEVERE:
java.lang.OutOfMemoryError: Java heap space
23-Jan 13:36:29 DEBUG (JhsPageLifecycle) -Executing prepareModel, page=/pages/CreateNewEquip_AccbillingProfile.jspx, pagedef=CreateNewEquip_AccPageDef
23-Jan 13:36:29 DEBUG (JhsNavigationHandlerImpl) -Executing checkRoles
23-Jan 13:37:26 DEBUG (JhsPageLifecycle) -Executing prepareModel, page=/pages/ProductCatalouge.jspx, pagedef=ProductCatalougePageDef
23-Jan 13:37:26 DEBUG (JhsNavigationHandlerImpl) -Executing checkRoles
I am using Jdeveloper 10.1.3.3
JHEADSTART Version : 10.1.3.1.26
when i again clicked on the link to open the same page it gave same exception i.e. JAVA HEAP SPACE with out f memory.........Seems like your OC4J instance is running out of memory space.
Try starting it with more memory allocated to it.
(or if you only run into this after running your application inside JDeveloper several times - try to stop and restart the embedded OC4J). -
IfsSession.disconnect( ) is throwin an exception. why
ifsSession.disconnect() is throwin the following exception.. what's the reason for this??
Exception in thread "main" org.omg.CORBA.BAD_OPERATION: The delegate has not been set! minor code: 0 completed: No
at org.omg.CORBA.portable.ObjectImpl._get_delegate(ObjectImpl.java:43)
at org.omg.CORBA.portable.ObjectImpl.hashCode(ObjectImpl.java:268)
at java.util.Hashtable.remove(Hashtable.java:422)
at oracle.ifs.search.SQLGenerator.disposeGenerator(SQLGenerator.java:136)
at oracle.ifs.server.S_LibrarySession.disconnect(S_LibrarySession.java, Compiled Code)
at oracle.ifs.server.S_LibrarySession.DMDisconnect(S_LibrarySession.java:1872)
at oracle.ifs.beans.LibrarySession.DMDisconnect(LibrarySession.java:5332)
at oracle.ifs.beans.LibrarySession.disconnect(LibrarySession.java:1541)
at IfsClass.main(IfsClass.java:41)Hi.
Following is the sript of the table.
It already includes nologging clause.
CREATE TABLE SCO_ITEM_RESULTS_BKP
OID VARCHAR2(32 CHAR) NOT NULL,
TEST_ID NUMBER(22,10),
STUDENT_OID VARCHAR2(32 CHAR),
TEST_TYPE VARCHAR2(32 CHAR),
CUSTOMER_ID NUMBER(9) NOT NULL,
SCORED_DATE DATE,
STATUS VARCHAR2(50 CHAR),
SCORE_VALUE VARCHAR2(10 CHAR),
SCORE_MIN VARCHAR2(10 CHAR),
SCORE_MAX VARCHAR2(10 CHAR),
NUM_ATTEMPTS NUMBER(22,4),
ITEM_ID NUMBER(22,10),
ASSIGNMENT_OID VARCHAR2(32 CHAR),
AUTH_LEVEL_ENTITY_ID NUMBER(10),
SESSION_ID NUMBER(22,10),
CREATEDBY_OID VARCHAR2(32 CHAR),
UPDATEDBY_OID VARCHAR2(32 CHAR),
CREATEDATE DATE,
UPDATEDATE DATE,
ORIGINTYPECD_OID VARCHAR2(32 CHAR),
OWNER_ORGUNIT_OID VARCHAR2(32 CHAR),
APPLICATION_VERSION VARCHAR2(32 CHAR) NOT NULL,
INACTIVESTATUS CHAR(1 CHAR) NOT NULL,
ISDELETED CHAR(1 CHAR) NOT NULL,
JOB_ID VARCHAR2(32 CHAR),
TESTRESULTS_OID VARCHAR2(32 CHAR),
FORM_ID NUMBER(10),
IS_TOTAL CHAR(1 CHAR),
STUDENT_PERSON_OID VARCHAR2(32 CHAR)
TABLESPACE BASE_DATA
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
BUFFER_POOL DEFAULT
NOLOGGING
NOCACHE
NOPARALLEL
MONITORING;
Edited by: user8731258 on Nov 25, 2009 8:16 PM -
Why bad padding exception???
hi guys
here i am trying to decrypt the already encrypted string by one different encrpytion algo.
in the example i have encrypted the string by des and then i tried to decrypt it using blowfish but it gives as the output null instead of a random string...because of a bad padding exception(check line 86). help to remove the exception.
if we try to decrypt the des encrypted string by des again it give n padding exception. why with blowfish???
// CIPHER / GENERATORS
import javax.crypto.Cipher;
import javax.crypto.SecretKey;
import javax.crypto.KeyGenerator;
// KEY SPECIFICATIONS
import java.security.spec.KeySpec;
import java.security.spec.AlgorithmParameterSpec;
import javax.crypto.spec.PBEKeySpec;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.PBEParameterSpec;
// EXCEPTIONS
import java.security.InvalidAlgorithmParameterException;
import java.security.NoSuchAlgorithmException;
import java.security.InvalidKeyException;
import java.security.spec.InvalidKeySpecException;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.BadPaddingException;
import javax.crypto.IllegalBlockSizeException;
import java.io.UnsupportedEncodingException;
import java.io.IOException;
public class StringEncrypter {
Cipher ecipher;
Cipher dcipher;
StringEncrypter(SecretKey key, String algorithm) {
try {
ecipher = Cipher.getInstance(algorithm);
dcipher = Cipher.getInstance(algorithm);
ecipher.init(Cipher.ENCRYPT_MODE, key);
dcipher.init(Cipher.DECRYPT_MODE, key);
} catch (NoSuchPaddingException e) {
System.out.println("EXCEPTION: NoSuchPaddingException");
} catch (NoSuchAlgorithmException e) {
System.out.println("EXCEPTION: NoSuchAlgorithmException");
} catch (InvalidKeyException e) {
System.out.println("EXCEPTION: InvalidKeyException");
public String encrypt(String str) {
try {
// Encode the string into bytes using utf-8
byte[] utf8 = str.getBytes("UTF8");
// Encrypt
byte[] enc = ecipher.doFinal(utf8);
// Encode bytes to base64 to get a string
return new sun.misc.BASE64Encoder().encode(enc);
} catch (BadPaddingException e) {
} catch (IllegalBlockSizeException e) {
} catch (UnsupportedEncodingException e) {
} catch (IOException e) {
return null;
public String decrypt(String str) {
try {
// Decode base64 to get bytes
byte[] dec = new sun.misc.BASE64Decoder().decodeBuffer(str);
// Decrypt
byte[] utf8 = dcipher.doFinal(dec);
// Decode using utf-8
return new String(utf8, "UTF8");
} catch (BadPaddingException e) {
System.out.println("BAd padding excception");
} catch (IllegalBlockSizeException e) {
System.out.println("IllegalBlockSizeException");
} catch (UnsupportedEncodingException e) {
System.out.println("UnsupportedEncodingException");
} catch (IOException e) {
System.out.println("IOException");
return null;
public static void testUsingSecretKey() {
try {
String secretString = "code cant be decrypted!";
SecretKey desKey = KeyGenerator.getInstance("DES").generateKey();
SecretKey blowfishKey = KeyGenerator.getInstance("Blowfish").generateKey();
StringEncrypter desEncrypter = new StringEncrypter(desKey, desKey.getAlgorithm());
StringEncrypter blowfishEncrypter = new StringEncrypter(blowfishKey, blowfishKey.getAlgorithm());
String desEncrypted = desEncrypter.encrypt(secretString);
String desDecrypted = desEncrypter.decrypt(desEncrypted);
String blowfishDecrypted = blowfishEncrypter.decrypt(desEncrypted);
System.out.println(desKey.getAlgorithm() + " Encryption algorithm");
System.out.println(" Original String : " + secretString);
System.out.println(" Encrypted String : " + desEncrypted);
System.out.println(" Decrypted String : " + desDecrypted);
System.out.println();
System.out.println(blowfishKey.getAlgorithm() + " Encryption algorithm");
System.out.println(" Original String : " + desEncrypted);
System.out.println(" Decrypted String : " + blowfishDecrypted);
System.out.println();
} catch (NoSuchAlgorithmException e) {
public static void main(String[] args) {
testUsingSecretKey();
}peter_crypt wrote:
you are right but this is my question. why cant we do that?? it should be possible.by the way i am working on a project for cryptanalysis . there i need to implement it.You need to spend more time studying and less time programming -
1) Applied Cryptography, Schneier, Wiley, ISBN 0-471-11709-9
2) Practical Cryptography, Ferguson and Schneier, Wiley, ISBN 0-471-22357-3
3) Java Cryptography, Knudsen, O'Reilly, ISBN 1-56592-402-9 dated but still a good starting point
4) Beginning Cryptography with Java, written by David Hook and published by WROX . -
Run time exception while checking dynamic file name in mesage mapping
Hi Experts,
In my file to idoc scenario i need to know the file name dynamicalyy as i require this file name during mesage mapping.
for that i have created UDF with the following code.
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String ourSourceFileName = conf.get(key);
but when i am testing this code in mesage mapping in IR i am getting runtime exception.why its giving so ?
RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /ns0:Messages/ns0:Message1/ORDERS05/IDOC/EDI_DC40/MANDT. The message is: Exception:http://java.lang.NullPointerException in class com.sap.xi.tf._MM_EDI_HospitalsToORDERS05_ method filename$com.sap.aii.mappingtool.tf3.rt.Context@545f545f
Can we test this in message mapping itself ?
Best Regards,
RohitOne more question - I hope you didn't forget return statement in your java code.
this worx 4 sure:
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String ourSourceFileName = conf.get(key);
return ourSourceFileName; -
Why can't use all the function when deployed Duke Bank successfully
i am use the DukesBankApp.ear in j2eetutorial14 to deployed .When i change the "public Object ejbCreate() throws CreateException" to "public String ejbCreate() throws CreateException",deployed Duke Bank successfully
But,I open the client,i can not use all the function. for example,when i creat new customer or account .Applecation message watch will say "remote exception"
why?or send the true DukesBankApp.ear to me .My mailbox is "[email protected]"
thinks!!!!! i want to receive your help imminence!think you very much!the sever log say:
[#|2005-05-10T22:39:18.609+0800|信息|sun-appserver-pe8.0|javax.enterprise.system.container.ejb|_ThreadID=13;|
javax.ejb.EJBException: createCustomer: Could not create Entity EJB; nested exception is: com.sun.jdo.api.persistence.support.JDOFatalUserException: JDO76604: JNDI lookup for cmp-resource 'jdbc/BankDB' failed.
NestedException: javax.naming.NameNotFoundException: BankDB not found
at com.sun.ebank.ejb.customer.CustomerControllerBean.createCustomer(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.enterprise.security.SecurityUtil$2.run(SecurityUtil.java:146)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.enterprise.security.application.EJBSecurityManager.doAsPrivileged(EJBSecurityManager.java:930)
at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:151)
at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:128)
at $Proxy27.createCustomer(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:117)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:651)
at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:190)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1653)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1513)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:895)
at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:172)
at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:668)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:375)
at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.read(SocketOrChannelConnectionImpl.java:284)
at com.sun.corba.ee.impl.transport.ReaderThreadImpl.doWork(ReaderThreadImpl.java:73)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:382)
|#] -
Call function destination XI exception
Hello,
in R3 i call to function in XI, it's follow:
call function 'XXX'
--destination 'XI'
--exporting
AA = aa
--importing
BB = bb
--exceptions
system_failure = 1
communication_failure = 2
other = 3
when this call produce a exception, why sometimes I can not see anything in XI - SXMB_MONI / runtime workbench -?
thank you very muchHI,
If in case the message failed at entry point i.e. RFC sender communication channel, then it would not be available in SXMB_MONI.
You may trace it from Communciation Channel Monitoring from RWB..
Thanks
Swarup -
Exceptions in Executor.submit
Run the following test code:
public class Test {
public static void main(String[] args) {
ExecutorService executor = Executors.newCachedThreadPool();
executor.submit(new Runnable() {
public void run() {
throw new RuntimeException("This is a runtime exception");
}Why doesn't the stack trace show up on System.out as it would normally do if I had executed the runnable in a new Thread? Is there anyway short of wrapping the whole run method in a try-catch block of getting that stack trace.
TIA.When you submit your Runnable to the ExecutorService you get a Future back. Calling get() on that Future will result in an ExecutionException being thrown. The cause of that exception is your RuntimeException:
import java.util.concurrent.*;
public class Test {
public static void main(String[] args) {
ExecutorService executor = Executors.newCachedThreadPool();
Future<?> f = executor.submit(new Runnable() {
public void run() {
throw new RuntimeException("This is a runtime exception");
try {
f.get();
catch (Exception e) {
e.printStackTrace();
}I've recently started to play around with these things myself, and here is my understanding of it:
An ExecutorService uses a FutureTask by default when you submit a Runnable (see the source code for AbstractExecutorService). That FutureTask basically wraps your Runnable inside atry { ... } catch (Throwable) {... }which explains why your exception doesn't slip through. Instead, the throwable is stored inside the FutureTask. When you call get() on the Future, the throwable is wrapped inside an ExecutionException, as described above. -
Exception ends program execution
Hello everyone!
I'm developing an application that uses a plugin architecture. I had to come up with my own plugin architecture since the ready-made solutions for my problem seemed like overkill (JPF and OSGI) and not exactly what I wanted.
The thing is that with one particular plugin, when the application tries to execute the initialize code and it throws an exception, it brings the whole system down! Obviously not a very good thing to happen. The way that I'm loading each plugin is as follows (just the relevant code):
try{
Object o = Class.forName(className).newInstance();
//Execute the init method
((IHardwareCapsule)o).init();
}catch(Exception e){
logger.debug(e.getMessage());
}I would expect the try/catch above to catch any possible exception, however that is not the case. Also, that code is called from inside a SwingWorker's doInBackground method, and so (I think) the exception should merely kill the background thread and not the whole application. The specific exception that does this is a ConnectException. I tested with another exception (divide by zero) and it gets caught fine.
What am I missing here?Cesaro wrote:
I would expect the try/catch above to catch any possible exception, Why would you expect that? Did you not study exceptions? Or did you not look at Exception's javadocs? -
Unreport exception in file upload
Hi all,
in jsp
DiskFileUpload fu = new DiskFileUpload();
List fileItems = fu.parseRequest(request);
why want I move then to servlet , I get unreport exception, why?
Thank youYou should not rephrase errors. You should know that better after hanging around here that long time.
Copypaste the actual exception type, message and stacktrace.
Maybe you are looking for
-
Simulating Overprint from Illustrator to PDF
Hello Forums, I am asking here because my searches haven't found anything to answer my question. I work in a prepress department and we usually send out PDFs to customers via the Adobe PDF printer with simulate overprint on (This is in Mac OSX Leopa
-
Major Problem with importing application from QA environment to PROD
We did our first ever full move of our application from our QA server to our PROD server tonight. First, I exported the current PROD application version as a backup. Then I did an export of the application on QA and then imported it into PROD using t
-
Sound vs. NetStream: mp3 and m4A - can they both be played the same way?
I have an audio player that works just fine with mp3's. now my client wants it to accept m4a files also. I see that they are handled differently, using the netstream class. But mp3's can't be handled this way.(or can they) Is there a method that will
-
For some reason when I open an email on my Z10 it doesn't seem to appear on my Mac PC? Is there anyway I can alter this?
-
I received notice of and update available for my Superdrive, and accepted to download and install. After downloading, the following problems came up: 1. The installer states (every time I boot up) that no hardware was found that needs such update. 2.