Exception when executing commands in Runtime
I'm trying to execute some system command in Java code:
Runtime.getRuntime().exec("dir");
But I get this exception:
java.io.IOException: CreateProcess: dir error=2
Can someone tell me what is wrong? Thanks!
This does not work either:
Runtime.getRuntime().exec("cmd /c dir");
No exception thrownThings to watch out for when using Runtime.exec():
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
Similar Messages
-
Exception when executing rules using portal
Sorry for the unformatted post, but this is all I can do with the HTML client.....
It looks like the p13nConsoleApp is not deployed properly.
We are receiving the following exception when we execute a 'rule' in portal.
ava.rmi.RemoteException: Error in ejbCreate:; nested exception is: javax.ejb.CreateException:
javax.management.InstanceNotFoundException: Unable to find EventServiceConfig=null
with parent twistDomain:ApplicationConfig=soe,Location=twist,Name=soe,Type=ApplicationConfigurationConfig.
javax.ejb.CreateException: javax.management.InstanceNotFoundException: Unable
to find EventServiceConfig=null with parent twistDomain:ApplicationConfig=soe,Location=twist,Name=soe,Type=ApplicationConfigurationConfig.
at com.bea.p13n.events.internal.EventServiceBean.ejbCreate(EventServiceBean.java:154)
at com.bea.p13n.events.internal.EventServiceBean_kh7q5h_Impl.ejbCreate(EventServiceBean_kh7q5h_Impl.java:117)
at java.lang.reflect.Method.invoke(Native Method) at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:151)
at weblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:101)
at weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.java:148)
at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:127) at
weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java:61)
at com.bea.p13n.events.internal.EventServiceBean_kh7q5h_EOImpl.dispatchEvent(EventServiceBean_kh7q5h_EOImpl.java:29)
at com.bea.p13n.tracking.TrackingEventHelper.dispatchEvent(TrackingEventHelper.java:132)
at com.bea.p13n.rules.advislets.RulesAdvisletImpl.sendRuleEvent(RulesAdvisletImpl.java:386)
at com.bea.p13n.rules.advislets.RulesAdvisletImpl.getAdvice(RulesAdvisletImpl.java:211)
at com.bea.p13n.advisor.internal.AdvisorImpl.getAdvice(AdvisorImpl.java:89) at
com.bea.p13n.advisor.internal.CompoundAdvisletImpl.getAdvice(CompoundAdvisletImpl.java:102)
at com.bea.p13n.advisor.internal.AdvisorImpl.getAdvice(AdvisorImpl.java:89) at
com.bea.p13n.advisor.internal.EjbAdvisorImpl.getAdvice(EjbAdvisorImpl.java:77)
at com.bea.p13n.advisor.internal.EjbAdvisorImpl_8wtzgj_EOImpl.getAdvice(EjbAdvisorImpl_8wtzgj_EOImpl.java:102)
at com.bea.p13n.servlets.jsp.taglib.DivTag.includeBody(DivTag.java:115) at com.bea.p13n.servlets.jsp.taglib.DivTag.doStartTag(DivTag.java:181)
at jsp_servlet.__billinginformation_mainsummary._jspService(__billinginformation_mainsummary.java:822)
On the console it appears that the p13nConsoleApp is not deployed.
Here is our config.xml file
<?xml version="1.0" encoding="UTF-8"?> <!--Last updated on: Tue Mar 11 12:56:06
GMT-07:00 2003, If your domain is active, please do not edit the config.xml file.
Any changes made to that file while the domain is active will not have any effect
on the domain's configuration and are likely to be lost. If your domain is inactive,
you may edit this file with an XML editor. If you do so, please refer to the BEA
Weblogic Server Configuration Reference documentation available from http://edocs.bea.com/wls/docs70/config_xml.
In general, we recommend that changes to your configuration file be made through
the Administration Console.--> <Domain ConfigurationVersion="7.0.0.0" Name="twistDomain">
app tag removed <!--- Application Deployed="true" Name="p13nConsoleApp" Path="/opt/bea7sp1/weblogic700/portal/lib"
TwoPhase="true"> <WebAppComponent Name="p13nConsole" Targets="twist" URI="p13nConsole.war"/>
</Application> <Application Deployed="true" Name="soe" Path="./applications/soeApp.ear"
StagedTargets="" TwoPhase="true"> <ApplicationConfiguration Name="soe" Targets="twist"
URI="META-INF/application-config.xml"/> <EJBComponent Name="SOE_usermgmt" Targets="twist"
URI="SOE_usermgmt.jar"/> <EJBComponent Name="accountMgmt" Targets="twist" URI="accountMgmt.jar"/>
<EJBComponent Name="c2kmaintenance" Targets="twist" URI="c2kmaintenance.jar"/>
<EJBComponent Name="ejbadvisor" Targets="twist" URI="ejbadvisor.jar"/> <EJBComponent
Name="events" Targets="twist" URI="events.jar"/> <EJBComponent Name="failOver"
Targets="twist" URI="failOver.jar"/> <EJBComponent Name="orderMgmt" Targets="twist"
URI="orderMgmt.jar"/> <EJBComponent Name="pipeline" Targets="twist" URI="pipeline.jar"/>
<EJBComponent Name="property" Targets="twist" URI="property.jar"/> <EJBComponent
Name="referenceData" Targets="twist" URI="referenceData.jar"/> <EJBComponent Name="rules"
Targets="twist" URI="rules.jar"/> <EJBComponent Name="services" Targets="twist"
URI="services.jar"/> <EJBComponent Name="tuxedoServices" Targets="twist" URI="tuxedoServices.jar"/>
<WebAppComponent Name="masterDataSync.war" URI="masterDataSync.war"/> <WebAppComponent
Name="orderService" Targets="twist" URI="orderService.war"/> <WebAppComponent
Name="orderServiceDataSync" Targets="twist" URI="dataSync.war"/> </Application>
<ApplicationManager Name="twistDomain"/> <CachingRealm BasicRealm="C2kCustomRealm"
CacheCaseSensitive="true" Name="SoeCachingRealm"/> <CustomRealm ConfigurationData="IgnorePrincipals=system,Administrators,everyone,guest,SoeUsers,admin;GroupName=SoeUsers"
Name="C2kCustomRealm" RealmClassName="com.qwest.wireless.soe.security.C2kSecurityRealm"/>
<EmbeddedLDAP Credential="{3DES}fEhMlTXHx3AEUUOg/nNBOWobvlCzwMdsztHoPLEE5Kc="
Name="twistDomain"/> <FileRealm Name="wl_default_file_realm"/> <JDBCConnectionPool
DriverName="oracle.jdbc.driver.OracleDriver" InitialCapacity="1" MaxCapacity="5"
Name="dataSyncPool" Properties="user=portal7;password=portal7;dll=ocijdbc8;protocol=thin"
Targets="twist,twist" TestConnectionsOnReserve="true" TestTableName="dual" URL="jdbc:oracle:thin:@pcsdev05:1521:soews104"/>
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver" InitialCapacity="1"
MaxCapacity="5" Name="jmsPool" Properties="user=jmstore;password=jmstore;dll=ocijdbc8;protocol=thin"
Targets="twist" TestConnectionsOnReserve="true" TestTableName="dual" URL="jdbc:oracle:thin:@pcsdev05:1521:soews104"/>
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver" InitialCapacity="1"
MaxCapacity="10" Name="oracleCommercePool" Properties="user=portal7;password=portal7;dll=ocijdbc8;protocol=thin"
Targets="twist" TestConnectionsOnReserve="true" TestTableName="dual" URL="jdbc:oracle:thin:@pcsdev05:1521:soews104"/>
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver" InitialCapacity="1"
MaxCapacity="20" Name="oraclePool" Properties="user=supdt;password=supdt;dll=ocijdbc8;protocol=thin"
Targets="twist" TestConnectionsOnReserve="true" TestTableName="dual" URL="jdbc:oracle:thin:@pcsdev05:1521:soews104"/>
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver" InitialCapacity="1"
MaxCapacity="5" Name="pdb" Properties="user=supdt;password=supdt;dll=ocijdbc8;protocol=thin"
RefreshMinutes="2" Targets="twist" TestConnectionsOnReserve="true" TestTableName="dual"
URL="jdbc:oracle:thin:@pcsdev05:1521:soews104"/> <JDBCConnectionPool ConnLeakProfilingEnabled="false"
DriverName="oracle.jdbc.driver.OracleDriver" EnableResourceHealthMonitoring="true"
InitialCapacity="1" JDBCXADebugLevel="0" KeepLogicalConnOpenOnRelease="false"
KeepXAConnTillTxComplete="false" MaxCapacity="5" Name="rtma" NeedTxCtxOnClose="false"
NewXAConnForCommit="false" PrepStmtCacheProfilingEnabled="false" PrepStmtCacheProfilingThreshold="10"
PreparedStatementCacheSize="10" Properties="user=rtma;password=rtma;dll=ocijdbc8;protocol=thin"
RecoverOnlyOnce="false" RefreshMinutes="2" SqlStmtMaxParamLength="10" SqlStmtParamLoggingEnabled="false"
SqlStmtProfilingEnabled="false" Targets="twist" TestConnectionsOnReserve="true"
TestTableName="dual" URL="jdbc:oracle:thin:@pcsc2k:1521:rtmatst" XAEndOnlyOnce="false"/>
<JDBCDataSource JNDIName="jmsPool" Name="jmsPool" PoolName="jmsPool" Targets="twist"/>
<JDBCDataSource JNDIName="oraclePool" Name="oraclePool" PoolName="oraclePool"
Targets="twist"/> <JDBCDataSource JNDIName="oracleProductCatalogPool" Name="pdbsource"
PoolName="pdb" Targets="twist"/> <JDBCDataSource JNDIName="oracleRtmaPool" Name="rtmasource"
PoolName="rtma" RowPrefetchEnabled="false" RowPrefetchSize="48" StreamChunkSize="256"
Targets="twist"/> <JDBCTxDataSource JNDIName="weblogic.jdbc.jts.commercePool"
Name="commercePool" PoolName="oracleCommercePool" Targets="twist"/> <JDBCTxDataSource
JNDIName="weblogic.jdbc.jts.dataSyncPool" Name="dataSyncPool" PoolName="dataSyncPool"
Targets="twist,twist"/> <JDBCTxDataSource EnableTwoPhaseCommit="true" JNDIName="txOraclePool"
Name="txOraclePool" PoolName="oraclePool" Targets="twist"/> <JMSJDBCStore ConnectionPool="jmsPool"
Name="RebateMsgStore" PrefixName="rebate"/> <JMSServer Name="SoeJMSServer" Store="RebateMsgStore"
Targets="twist"> <JMSQueue JNDIName="SoeOrderResubmit" Name="OrderResubmitJMSQueue"
StoreEnabled="false"/> <JMSQueue JNDIName="SoeOrderSubmit" Name="OrderSubmitJMSQueue"
StoreEnabled="false"/> <JMSQueue JNDIName="SoeReferenceDataRefresh" Name="ReferenceDataJMSQueue"
StoreEnabled="false"/> <JMSQueue JNDIName="SoeTransactionHistoryLog" Name="TransactionHistoryLogJmsQueue"
StoreEnabled="false"/> <JMSQueue JNDIName="CCARefundSubmit" Name="TuxServicesJMSQueue"
RedeliveryDelayOverride="30000" StoreEnabled="true"/> <JMSTopic JNDIName="SoeFailoverReload"
Name="FailoverReloadTopic" StoreEnabled="false"/> </JMSServer> <JTA Name="twistDomain"
TimeoutSeconds="120"/> <Log FileCount="14" FileMinSize="1" FileName="logs/domain.log"
Name="twistDomain" NumberOfFilesLimited="true" RotationType="byTime"/> <PasswordPolicy
LockoutDuration="15" LockoutThreshold="4" Name="wl_default_password_policy"/>
<Realm CachingRealm="SoeCachingRealm" FileRealm="wl_default_file_realm" Name="soe_security_realm"/>
<SNMPAgent Name="twistDomain"/> <Security CompatibilityMode="true" Name="twistDomain"
PasswordPolicy="wl_default_password_policy" Realm="soe_security_realm" RealmSetup="true"/>
<SecurityConfiguration Credential="{3DES}x9Dc91liWeYhTCNCdL6p4XSuwuE/vQYuxUx00OHkQfou++Nz7ir8dA5r54wIVykPJ9ELRmVMKEUYFP33OWI2AyxwRZpHGZWv"
Name="twistDomain"/> <Server Name="blank"> <COM Name="blank"/> <ExecuteQueue Name="default"/>
<IIOP Name="blank"/> <JTAMigratableTarget Cluster="" Name="blank" UserPreferredServer="blank"/>
<JTARecoveryService Name="blank"/> <KernelDebug Name="blank"/> <Log Name="blank"/>
<SSL Name="blank"/> <ServerDebug Name="blank"/> <ServerStart Name="blank"/> <WebServer
Name="blank"/> </Server> <Server ListenPort="4501" Name="twist" ServerVersion="7.0.1.0"
TransactionLogFilePrefix="tlogs/"> <COM Name="twist"/> <ExecuteQueue Name="default"
ThreadCount="15"/> <IIOP Name="twist"/> <JTAMigratableTarget Cluster="" Name="twist"
UserPreferredServer="twist"/> <JTARecoveryService Name="twist"/> <KernelDebug
Name="twist"/> <Log FileCount="14" FileMinSize="1" FileName="logs/twist.log" Name="twist"
NumberOfFilesLimited="true" RotationType="byTime"/> <SSL ListenPort="4502" Name="twist"/>
<ServerDebug Name="twist"/> <ServerStart Name="twist"/> <WebServer LogFileName="logs/access.log"
LogRotationPeriodMins="1440" LogRotationType="date" LoggingEnabled="true" Name="twist"/>
</Server> <StartupClass ClassName="com.qwest.wireless.soe.services.ejb.C2kTransactionHistoryQueueRefreshStartup"
Name="C2kTransactionHistoryLogging queue refresh scheduler startup class" Targets="twist"/>
<StartupClass ClassName="com.qwest.wireless.soe.services.ejb.C2kServiceReportStartup"
Name="MyStartup Class" Targets="twist"/> <StartupClass ClassName="com.qwest.wireless.soe.referenceData.ejb.ReferenceDataStartup"
Name="ReferenceDataStartupClass" Targets="blank"/> <WLECConnectionPool MaximumPoolSize="5"
MinimumPoolSize="1" Name="ProductAvailabilityPool" PrimaryAddresses="//pcsdev50:14502"
Targets="twist" WLEDomain="PA_WLE_JAVA"/> <WLECConnectionPool FailoverAddresses="//sia-co5:31011"
MaximumPoolSize="5" MinimumPoolSize="1" Name="SIAWLECConnectionPool" PrimaryAddresses="//sia-co6:31011"
Targets="twist" WLEDomain="SIA_DASC"/> <WTCServer Name="twist" Targets="twist">
<WTCExport EJBName="com.qwest.wireless.soe.tuxedoServices.ejb.TuxCCAAdapter" LocalAccessPoint="TWIST_DOM"
Name="Refund" ResourceName="CCA_REFUND"/> <WTCImport LocalAccessPoint="TWIST_DOM"
Name="C2k_1" RemoteAccessPointList="TWISTELINK1,TWISTELINK2" ResourceName="ASMBLR_SOE"/>
<WTCImport LocalAccessPoint="TWIST_DOM" Name="C2k_2" RemoteAccessPointList="TWISTELINK2,TWISTELINK1"
ResourceName="ASMBLR_SOE"/> <WTCLocalTuxDom AccessPoint="TWIST_DOM" AccessPointId="TWIST_DOM"
BlockTime="70" ConnectionPolicy="ON_DEMAND" Interoperate="Yes" NWAddr="//nexus:4503"
Name="TWIST_DOM" Security="NONE"/> <WTCRemoteTuxDom AccessPoint="TWISTELINK1"
AccessPointId="TWISTELINK1" LocalAccessPoint="TWIST_DOM" NWAddr="//pcsdev53:14548"
Name="TWISTELINK1"/> <WTCRemoteTuxDom AccessPoint="TWISTELINK2" AccessPointId="TWISTELINK2"
LocalAccessPoint="TWIST_DOM" NWAddr="//nowhere:9999" Name="TWISTELINK2"/> </WTCServer>
</Domain>
Cheers PhilippHi Karol,
thanks for your answer.
I also had this SP synchronization issue regarding other problems with the execution of web templates. See my post <a href="https://forums.sdn.sap.com/thread.jspa?threadID=209587">https://forums.sdn.sap.com/thread.jspa?threadID=209587</a>.
I will once again ask the basis team, if the two SP-levels are identical.
Regards,
Philipp -
Exception when executing a report: Field I_REPORT_ID not a member of INPUT
Hello,
I created a simple Report with the Report Designer. When I try to execute it in the portal hitting the "Execute"-button i get the following BI Runtime Exception:
Exception in BI runtime
[code]Initial cause
Message:
Field I_REPORT_ID not a member of INPUT
Stack trace:
com.sap.mw.jco.JCO$Exception: (127) JCO_ERROR_FIELD_NOT_FOUND: Field I_REPORT_ID not a member of INPUT[/code]
I omitted the rest of the stack trace. It was too long to fit into this post (probably there is a restriction on the maximum number of characters in a forum post )
We are on SP 08 at the backend BI-System and the front-end tools are on patch level 8, hotfix 2.
Any ideas what's the reason behind that error?
Thanks to any answers in advance and best regards,
PhilippHi Karol,
thanks for your answer.
I also had this SP synchronization issue regarding other problems with the execution of web templates. See my post <a href="https://forums.sdn.sap.com/thread.jspa?threadID=209587">https://forums.sdn.sap.com/thread.jspa?threadID=209587</a>.
I will once again ask the basis team, if the two SP-levels are identical.
Regards,
Philipp -
Raise Exception when execute UCMON
Dear all,
I need help. When we execute the transaction UCMON we have a Dump.
Erro tpo.exec. RAISE_EXCEPTION
Data e hora 31.01.2011 17:44:30
Dump breve ABAP não está complet.gravado (demas.extenso)
TxtBreve
Exception condition "NOT_FOUND" raised.
O que aconteceu ?
The current ABAP/4 program encountered an unexpected
situation.
O que pode ser feito?
Print out the error message (using the "Print" function)
and make a note of the actions and input that caused the
error.
To resolve the problem, contact your SAP system administrator.
You can use transaction ST22 (ABAP Dump Analysis) to view and administer
termination messages, especially those beyond their normal deletion
date.
is especially useful if you want to keep a particular message.
Análise do erro
A RAISE statement in the program "CL_UC_METHOD==================CP" raised the
exception
condition "NOT_FOUND".
Since the exception was not intercepted by a superior program
in the hierarchy, processing was terminated.
Short description of exception condition:
For detailed documentation of the exception condition, use
Transaction SE37 (Function Library). You can take the called
function module from the display of active calls.
as p/eliminação de erros
You may able to find an interim solution to the problem
in the SAP note system. If you have access to the note system you
use the following search criteria:
"RAISE_EXCEPTION" C
"CL_UC_METHOD==================CP" or "CL_UC_METHOD==============
"CREATE_ACCOUNT"
or
"CL_UC_METHOD==================CP" "NOT_FOUND"
or
"UCUWB000 " "NOT_FOUND"
If you cannot solve the problem yourself and you wish to send
an error message to SAP, include the following documents:
1. A printout of the problem description (short dump)
To obtain this, select in the current display "System->List->
Save->Local File (unconverted)".
2. A suitable printout of the system log
To obtain this, call the system log through transaction SM21.
Limit the time interval to 10 minutes before and 5 minutes
after the short dump. In the display, then select the function
"System->List->Save->Local File (unconverted)".
3. If the programs are your own programs or modified SAP programs,
supply the source code.
To do this, select the Editor function "Further Utilities->
Upload/Download->Download".
4. Details regarding the conditions under which the error occurred
or which actions and input led to the error.
Ambiente de sistema
SAP Release.............. "640"
Application server....... "cpsapbwp01"
Network address.......... "172.16.21.222"
Operating system......... "Linux"
Release.................. "2.6.18-238.1.1.el5"
Hardware type............ "x86_64"
Character length......... 16 Bits
Pointer length........... 64 Bits
Work process number...... 2
Short dump setting....... "full"
Database server.......... "bwdb"
Database type............ "ORACLE"
Database name............ "BWP"
Database owner........... "SAPCSB"
Character set............ "C"
SAP kernel............... "640"
Created on............... "May 2 2010 20:07:20"
Created in............... "Linux GNU SLES-10 x86_64 cc4.1.2"
Database version......... "OCI_102 "
Patch level.............. "327"
Patch text............... " "
Supported environment....
Database................. "ORACLE 9.2.0.., ORACLE 10.1.0.., ORACLE
10.2.0.."
SAP database version..... "640"
Operating system......... "Linux 2.6"
Memory usage.............
Roll..................... 16192
EM....................... 29328992
Heap..................... 0
Page..................... 65536
MM Used.................. 23444056
MM Free.................. 1691488
SAP Release.............. "640"
Usuário e transação
Client.............. 600
User................ "CS096152"
Language key........ "P"
Transaction......... "UCWB_INT "
Program............. "CL_UC_METHOD==================CP"
Screen.............. "SAPLUCUM_00 1000"
Screen line......... 3
Infos p/ponto de cancelamento
The termination occurred in the ABAP program "CL_UC_METHOD==================CP"
in "CREATE_ACCOUNT".
The main program was "UCUWB000 ".
The termination occurred in line 27 of the source code of the (Include)
program "CL_UC_METHOD==================CM009"
of the source code of program "CL_UC_METHOD==================CM009" (when
calling the editor 270).
Segmento texto fonte
Linha Txt.fonte
1 * bal080305 090305 826099 pass exception not_found to caller
2 method CREATE_ACCOUNT .
3
4 data:
5 lo_instance type ref to if_uc_cust_data,
6 lo_account type ref to cl_uc_account.
7
8 clear: eo_account, e_accid. "bal080305
9
10 if do_account_factory is initial.
11 do_account_factory = do_factory->get_account_factory( ).
12 endif.
13
14 if i_accid is initial.
15 call method do_account_factory->create
16 exporting io_model = do_model
17 importing eo_instance = lo_instance.
18 call method lo_instance->get_guid
19 importing e_guid = e_accid.
20 else.
21 call method do_account_factory->get_instance_by_guid
22 exporting io_model = do_model
23 i_guid = i_accid
24 importing eo_instance = lo_instance
25 exceptions not_found = 1. "begin bal080305
26 if not sy-subrc is initial.
>>>>> raise not_found.
28 endif. "end bal080305
29 e_accid = i_accid.
30 endif.
31 call method lo_instance->set_ffix( dt_ffix ).
32
33 if if_stm_timestamp = gc_true.
34 lo_account ?= lo_instance.
35 call method lo_account->set_task_stm_timestamp( gc_true ).
36 endif.
37
38 eo_account ?= lo_instance.
39
40 endmethod. 31 call method lo_instance->set_ffix( dt_ffix ).
What happens?
Thanks a lot
Marilia CostaHi,
I could recollect same kind of issue in our system. In production system we were facing a short dump. however not in Development and quality.
Is it the same issue with you?
If yes. please check the single selections consistency in development & production.
thanks
Kamal -
Raise Exception when Executing Native SQL
Hi ALL,
when i am executing native sql, it raises following exception:
CX_SY_NATIVE_SQL_ERROR
code as shown below:
REPORT ZABC2.
data:begin of ty_final occurs 0,
vkorg type vbrk-vkorg,
vtweg type vbrk-vtweg,
spart type vbrp-spart,
werks type vbrp-werks,
fkart type vbrk-fkart,
vbeln_invoice type vbrk-vbeln,
matnr type vbrp-matnr,
arktx type vbrp-arktx,
fkimg type vbrp-fkimg,
ntgew type vbrp-ntgew,
mwsbp type vbrp-mwsbp,
posnr type vbrp-posnr,
vbeln type likp-vbeln,
bldat type likp-bldat,
erdat type likp-erdat,
traid type likp-traid,
ernam type likp-ernam,
posnr_do type lips-posnr,
vbeln_so type vbak-vbeln,
audat_so type vbak-audat,
erdat_so type vbak-erdat,
ernam_so type vbak-ernam,
posnr_so type vbap-posnr,
vbeln_contract type vbak-vbeln,
audat_contract type vbak-audat,
erdat_contract type vbak-erdat,
ernam_contract type vbak-ernam,
vbtyp_contract type vbak-vbtyp,
posnr_contract type vbap-posnr,
end of ty_final.
TRY.
break-point.
EXEC SQL .
select
i1.inv_vkorg,
i1.inv_vtweg,
i1.inv_spart,
i1.inv_werks,
i1.inv_fkart,
i1.inv_vbeln,
i1.inv_matnr,
i1.inv_arktx,
i1.inv_fkimg,
i1.inv_ntgew,
i1.inv_mwsbp
i1.inv_posnr,
d.do_vbeln,
d.do_bldat,
d.do_erdat,
d.do_traid,
d.do_ernam,
d.do_posnr,
s.so_vbeln,
s.so_audat,
s.so_erdat,
s.so_ernam,
s.so_posnr,
c.co_vbeln,
c.co_audat,
c.co_erdat,
c.co_ernam,
c.co_vbtyp,
c.co_posnr
into :ty_final
from (SELECT
VBAK.VBELN co_vbeln,
VBAK.AUDAT co_audat,
VBAK.ERDAT co_erdat,
VBAK.ERNAM co_ernam,
VBAK.VBTYP co_vbtyp,
VBAP.POSNR CO_POSNR
FROM VBAK , VBAP
WHERE VBAK.VBELN=vbap.vbeln
and vbak.vbtyp='G') c,
(SELECT
vbak.vbeln so_vbeln,
vbak.audat so_audat,
vbak.erdat so_erdat,
vbak.ernam so_ernam,
vbap.posnr so_posnr
FROM VBAK ,VBAP
WHERE vbak.VBELN=vbap.vbeln
and vbak.vbtyp='C') s,
(SELECT
likp.vbeln do_vbeln,
likp.bldat do_bldat,
likp.erdat do_erdat,
likp.traid do_traid,
likp.ernam do_ernam,
lips.posnr do_posnr
FROM LIKP , LIPS
WHERE likp.VBELN=lips.vbeln
and likp.vbtyp='J'.
) d,
(SELECT
vbrk.vkorg inv_vkorg,
vbrk.vtweg inv_vtweg,
vbrp.spart inv_spart,
vbrp.werks inv_werks,
vbrk.fkart inv_fkart,
vbrk.vbeln inv_vbeln,
vbrp.matnr inv_matnr,
vbrp.arktx inv_arktx,
vbrp.fkimg inv_fkimg,
vbrp.ntgew inv_ntgew,
vbrp.mwsbp inv_mwsbp,
vbrp.posnr inv_posnr
FROM VBRK , VBRP
WHERE vbrk.VBELN=vbrp.vbeln
AND vbrk.VBTYP='M'
AND vbrk.FKART NOT IN ('S1','S2','S3')
AND vbrk.FKSTO<>'X') i1,
(SELECT
vbelv,
POSNV,
vbtyp_v,
vbeln,
POSNN,
vbtyp_n
FROM VBFA
where VBTYP_V='G'
AND VBTYP_N='C'
) f1,
(SELECT
vbelv,
POSNV,
vbtyp_v,
vbeln,
POSNN,
vbtyp_n
FROM VBFA
where VBTYP_V='C'
AND VBTYP_N='J'
) f2,
(SELECT
vbelv,
POSNV,
vbtyp_v,
vbeln,
POSNN,
vbtyp_n
FROM VBFA
where VBTYP_V='J'
AND VBTYP_N='M'
) f3
where c.vbeln=f1.vbelv(+)
and f1.vbeln=f2.vbelv(+)
and s.vbeln=f2.vbelv(+)
and f2.vbeln=f3.vbelv(+)
and d.vbeln=f3.vbelv(+)
and i1.vbeln=f3.vbeln(+)
ENDEXEC.
**and c.vbeln=f3.vbelv(+)
**and i1.vbeln=d.vbeln(+)
*if sy-subrc <> 0.
CATCH CX_SY_NATIVE_SQL_ERROR.
ENDTRY.
*ENDIF.
break-point.Hi,
Try using this ..
data ref1 type ref to CX_SY_NATIVE_SQL_EROR.
try.
exec sql.
endexec.
catch CX_SY_NATIVE_SQL_EROR.
write 'Error ', ref1->SQL_ERROR.
RAISE EXCEPTION myref.
endtry.
Edited by: Vasavi Kotha on Jan 6, 2009 11:26 AM -
BAPI exception when executing from external system.
Hi Experts,
I using the Function Module BAPI_MATERIAL_GET_ALL to get the Material and Plant attributes by giving Material and Plant data.I am able to get all the required
attributes when I execute this Funtion Module in SAP but when I try to execute this
Function Module from external system I am getting all the details except plant details.
When I give plant data the Function module is throwing the below exception.
java.lang.Exception: BapiWarning: I:MM:376 0001
(0001 is the plant value)
Please help me out over this issue.
Thanks,
Kiran.Hi ,
i think u are getting this error
W MM376 No planning data exists in plant 1000, u will get this message only if u pass the plant values to this FM , bcos its trying to get planning data from this plant.
Regards
Prabhu -
Uncaught exception when executing web dynpro application
Hello all,
I'm getting run time error exception CX_WDR_RR_EXCEPTION not caught when running web dynpro application
The error analysis shows the custom component is locked by the user and cannot be regenerated. But I checked in SM12 for locked entries and component was not listed there.
The program terminated in the include LWDR_RUNTIME_REPOSITORYF12
Please suggest how to resolve the isse?
Regards,
anilDear Anil,
What type of WD is it ?
Do you get the error when you trigger some sort of event ?
Is it when first launch the WD ?
Can you be more specific and share with us the code where this is dumping ?
You can also check this link
[CX_WDR_RT_EXCEPTION' - How to catch it?;
Kind Regards
/Ricardo Quintas -
Hey huys...
I am facing this problem in my first day of Go Live.
I have being working with web dynpro for some time and this is the first time I get an error like this.
The WD App works fine on Developmen, but not in productive. The bapi also runs perfeclty on the R/3 (Prod)
I got the exception from the Defaultrace. This happens just after I call the wdContext.currentZsd_Fn_Clientes_Del_Dia_InputElement().modelObject().execute(); method.
Could you please show me some light?
Date : 10/17/2008
Time : 10:15:57:572
Message : Exception occured during processing of Web Dynpro application local/Orden_Pedido_Internet/Reporte_Estado_Cta_Clientes. The causing exception is nested.
[EXCEPTION]
java.lang.NullPointerException
at com.sap.tc.webdynpro.modelimpl.dynamicrfc.AiiModelClass.createNewBaseTypeDescriptor(AiiModelClass.java:256)
at com.sap.tc.webdynpro.modelimpl.dynamicrfc.AiiModelClass.descriptor(AiiModelClass.java:222)
at com.pcd.inventario.cliente.model.Zsd_Fn_Estado_Cuenta_Clte_All_Input.<init>(Zsd_Fn_Estado_Cuenta_Clte_All_Input.java:51)
at com.pcd.reportes.Reporte_Esdo_Cta_Clte.wdDoInit(Reporte_Esdo_Cta_Clte.java:100)
at com.pcd.reportes.wdp.InternalReporte_Esdo_Cta_Clte.wdDoInit(InternalReporte_Esdo_Cta_Clte.java:186)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:430)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:756)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:291)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:733)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:668)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:860)
at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.create(AbstractApplicationProxy.java:220)
at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1288)
at com.sap.portal.pb.PageBuilder.createPage(PageBuilder.java:355)
at com.sap.portal.pb.PageBuilder.init(PageBuilder.java:548)
at com.sap.portal.pb.PageBuilder.wdDoRefresh(PageBuilder.java:592)
at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:864)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:755)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:717)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:136)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:684)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(AccessController.java:207)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)Hi ,
i think u are getting this error
W MM376 No planning data exists in plant 1000, u will get this message only if u pass the plant values to this FM , bcos its trying to get planning data from this plant.
Regards
Prabhu -
Processor noise when executing commands
Whenever I am using my earphones through a Bose amplifier, I can clearly hear the processor on my new iMac making white noise upon executing and command?
Is this considered "Normal"??Hi Topher,
Thanks for the reply, however, I spent way too much money on this desktop to just accept disk drive noise.
I am still in warranty, and think Apple should make it right, especially in the fact that this is my second machine, as the first one had other hardware issues where all the fans came on as soon as I powered down that machine.
I am disappointed in their quality so far. You can't just open this iMac to work on it anyway!
Now what do I do?
BTW, I used to sell Amphenol connectors for a living to Apple and many other OEM Mfg. -
Exception when remotely executing Export-CsArchivingData cmdlet from C# managed code
Hi,
Hopefully this is the right forum.
The issue is specifically about remotely executing Export-CsArchivingData cmdlet from C# managed code.
I use RunspacePool to connect to remote Lync server as described here:
http://msdn.microsoft.com/en-us/library/ee706598(v=vs.85).aspx
I can connect to remote Lync server and execute many Lync cmdlets (e.g. Get-CsUser, Get-CsSite, Get-CsPool, etc) and get the results just fine.
However, when it tries to execute Export-CsArchivingData cmdlet remotely, it throws the following exception:
System.AggregateException: One or more errors occurred. ---> System.Management.Automation.RemoteException: The term 'Export-CsArchivingData' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
at System.Management.Automation.Runspaces.AsyncResult.EndInvoke()
at System.Management.Automation.PowerShell.EndInvoke(IAsyncResult asyncResult)
Additional info:
1. I created a custom RBAC role and added Export-CsArchivingData to it. Then, assign this new role to the account that runs the application.
2. Using regular powershell (not Lync powershell) from the machine (that I run my app from) with Lync admin tool installed and ran with the account that has the custom RBAC role assigned, I can connect to remote Lync server and execute Export-CsArchivingData
just fine.
3. Execute the app using the same above account (that has custom RBAC role) on two machines (one with Lync admin tool installed, one without) and connect to remote Lync server.
Same behavior on both machine, I got the above the exception when executing Export-CsArchivingData and no problem when executing other Lync cmdlets mentioned above.
Yes, even from a machine without Lync admin tool installed, I can execute other Lync cmdlets mentioned above.
At this point, I am not sure why I get the above exception when Export-CsArchivingData is executed from my app while I can connect to remote Lync server and call Export-CsArchivingData just fine via regular Powershell, both on the same machine.
Note: I do not call Import-Module Lync in C# managed code since it is not necessary so far for executing other Lync cmdlets remotely.
Any idea on what to look for?
Thanks in advance.I would recommend you call Import-Module Lync first, the command is not recognized.
Lisa Zheng
TechNet Community Support -
External commands in runtime exec
Im trying to run commands from the Sleuthkit in a java GUI. These commands have no problem running from the konsole as all the paths etc. have been set up, but when I try to run them with the java runtime exec() they wont work. Similarly,i run standard linux commands in this gui aswell and they run without problem.
Any ideas whats weong?
Thanks.You didn't tell us exactly what you're doing.Its a forensic GUI that runs konsole based commands
and displays the ouput in a JText areaThat tells us nothing useful. By "exactly what you're doing," I mean the Java code and the command it's exec()ing.
>
You didn't tell us what "doesn't work" means.The 'basic' linux commands work fine in the gui, its
just the sleuthkit ones that wont run or return
anything when executed using the runtime exec(). Even
though running these commands in a konsole works
fine. THis means all paths have been set.
Any ideas on a different way to run them or should I
include more than just the command used on the
konsole?That still doesn't tell us what "doesn't work" means.
My previous response still applies. -
DUMP when execute any tasks - OBJECTS_OBJREF_NOT_ASSIGNED_NO
Hi Experts,
I need help. When we try to execute any tasks at UCMON we have the following DUMP:
Erro tpo.exec. OBJECTS_OBJREF_NOT_ASSIGNED_NO
Exceção CX_SY_REF_IS_INITIAL
Data e hora 16.03.2011 11:53:29
Dump breve ABAP não está complet.gravado (demas.extenso)
TxtBreve
Access with 'ZERO' object reference not possible.
O que aconteceu ?
Error in ABAP application program.
The current ABAP program "CL_UC_COMPOUND================CP" had to be
terminated because one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
O que pode ser feito?
Print out the error message (using the "Print" function)
and make a note of the actions and input that caused the
error.
To resolve the problem, contact your SAP system administrator.
You can use transaction ST22 (ABAP Dump Analysis) to view and administer
termination messages, especially those beyond their normal deletion
date.
is especially useful if you want to keep a particular message.
Análise do erro
An exception occurred. This exception is dealt with in more detail below
. The exception, which is assigned to the class 'CX_SY_REF_IS_INITIAL', was
neither
caught nor passed along using a RAISING clause, in the procedure
"GET_GUI_DATA_SELACC" "(METHOD)"
Since the caller of the procedure could not have expected this exception
to occur, the running program was terminated.
The reason for the exception is:
There was an attempt to access a component using a 'NULL' object
reference (points to nothing).
An object reference must indicate an object (an instance of a class),
before it can be used to access components.
Either the reference was never set or it was set to 'NULL' using a
CLEAR statement.
Notas p/eliminação de erros
Probably the only way to eliminate the error is to correct the program.
You may able to find an interim solution to the problem
in the SAP note system. If you have access to the note system yourself,
use the following search criteria:
"OBJECTS_OBJREF_NOT_ASSIGNED_NO" CX_SY_REF_IS_INITIALC
"CL_UC_COMPOUND================CP" or "CL_UC_COMPOUND================CM00H"
"GET_GUI_DATA_SELACC"
If you cannot solve the problem yourself and you wish to send
an error message to SAP, include the following documents:
1. A printout of the problem description (short dump)
To obtain this, select in the current display "System->List->
Save->Local File (unconverted)".
2. A suitable printout of the system log
To obtain this, call the system log through transaction SM21.
Limit the time interval to 10 minutes before and 5 minutes
after the short dump. In the display, then select the function
"System->List->Save->Local File (unconverted)".
3. If the programs are your own programs or modified SAP programs,
supply the source code.
To do this, select the Editor function "Further Utilities->
Upload/Download->Download".
4. Details regarding the conditions under which the error occurred
or which actions and input led to the error.
The exception must either be prevented, caught within the procedure
"GET_GUI_DATA_SELACC"
"(METHOD)", or declared in the procedure's RAISING clause.
Someone help me please?
Thanks
MariliaIs it a Groundhog Day again:
TSV_TNEW_PAGE_ALLOC_FAILED - BCS load from data stream task
Raise Exception when execute UCMON
and this very thread
in all these cases, IMHO, the proper way was the following:
1. Try to find the proper OSS note
2. if not succesfull - properly regenerate the data basis,
3. if not succesfull - open a new OSS note to SAP.
Edited by: Eugene Khusainov on Mar 16, 2011 10:42 PM -
Error when executing jar from command window pla help
Hello
I have a project which calls a webservice, I am using Jdeveloper 10.1.3.4
I deployed the project in a jar file and included all the necessary libraries in it,
but when executing the jar from command window I am getting the exceptions below
the statement which cause the error is : PROXY= new JoPayWebServiceClient();
please help
Exception in thread "main" java.lang.NoClassDefFoundError
at oracle.j2ee.ws.common.encoding.soap.StandardSOAPTypeMappings.class$(S
tandardSOAPTypeMappings.java:125)
at oracle.j2ee.ws.common.encoding.soap.StandardSOAPTypeMappings.<init>(S
tandardSOAPTypeMappings.java:558)
at oracle.j2ee.ws.client.BasicService.createSoapMappings(BasicService.ja
va:259)
at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
BasicService.java:236)
at has.proxy.runtime.JoPayWebServiceService_SerializerRegistry.getRegist
ry(JoPayWebServiceService_SerializerRegistry.java:26)
at has.proxy.runtime.JoPayWebServiceService_Impl.<init>(JoPayWebServiceS
ervice_Impl.java:26)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
Impl.java:92)
at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
pl.java:121)
at has.proxy.JoPayWebServiceClient.<init>(JoPayWebServiceClient.java:18)
at moict.Main.confirmPayment(Main.java:142)
at moict.Main.main(Main.java:93)
Caused by: java.lang.ClassNotFoundException: javax.activation.DataHandler
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
... 17 more
C:\>Hi Arun
I added all the jars I found in jdeveloper log as you told me , but still I have this error:-
standard type mapping initialization error: javax.xml.rpc.JAXRPCException: javax
.xml.soap.SOAPException: Unable to create SOAP Factory: Provider com.sun.xml.mes
saging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
.java:282)
at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
BasicService.java:244)
at has.proxy.runtime.JoPayWebServiceService_SerializerRegistry.getRegist
ry(JoPayWebServiceService_SerializerRegistry.java:26)
at has.proxy.runtime.JoPayWebServiceService_Impl.<init>(JoPayWebServiceS
ervice_Impl.java:26)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
Impl.java:92)
at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
pl.java:121)
at has.proxy.JoPayWebServiceClient.<init>(JoPayWebServiceClient.java:18)
at moict.Main.confirmPayment(Main.java:142)
at moict.Main.main(Main.java:93)
CAUSE:
javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable to create SO
AP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl n
ot found
at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
.java:282)
at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
BasicService.java:244)
at has.proxy.runtime.JoPayWebServiceService_SerializerRegistry.getRegist
ry(JoPayWebServiceService_SerializerRegistry.java:26)
at has.proxy.runtime.JoPayWebServiceService_Impl.<init>(JoPayWebServiceS
ervice_Impl.java:26)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
Impl.java:92)
at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
pl.java:121)
at has.proxy.JoPayWebServiceClient.<init>(JoPayWebServiceClient.java:18)
at moict.Main.confirmPayment(Main.java:142)
at moict.Main.main(Main.java:93)
Caused by: javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable t
o create SOAP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFacto
ry1_1Impl not found
at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
t>(LiteralFragmentSerializer.java:95)
at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
t>(LiteralFragmentSerializer.java:62)
at oracle.j2ee.ws.common.encoding.literal.LiteralAnyElementSerializer.<i
nit>(LiteralAnyElementSerializer.java:16)
at oracle.j2ee.ws.common.encoding.literal.StandardLiteralTypeMappings.<i
nit>(StandardLiteralTypeMappings.java:198)
at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
.java:280)
... 14 more
Caused by: javax.xml.soap.SOAPException: Unable to create SOAP Factory: Provider
com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
at javax.xml.soap.SOAPFactory.newInstance(SOAPFactory.java:33)
at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
t>(LiteralFragmentSerializer.java:93)
... 18 more
CAUSE:
javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable to create SO
AP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl n
ot found
at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
.java:282)
at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
BasicService.java:244)
at has.proxy.runtime.JoPayWebServiceService_SerializerRegistry.getRegist
ry(JoPayWebServiceService_SerializerRegistry.java:26)
at has.proxy.runtime.JoPayWebServiceService_Impl.<init>(JoPayWebServiceS
ervice_Impl.java:26)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
Impl.java:92)
at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
pl.java:121)
at has.proxy.JoPayWebServiceClient.<init>(JoPayWebServiceClient.java:18)
at moict.Main.confirmPayment(Main.java:142)
at moict.Main.main(Main.java:93)
Caused by: javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable t
o create SOAP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFacto
ry1_1Impl not found
at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
t>(LiteralFragmentSerializer.java:95)
at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
t>(LiteralFragmentSerializer.java:62)
at oracle.j2ee.ws.common.encoding.literal.LiteralAnyElementSerializer.<i
nit>(LiteralAnyElementSerializer.java:16)
at oracle.j2ee.ws.common.encoding.literal.StandardLiteralTypeMappings.<i
nit>(StandardLiteralTypeMappings.java:198)
at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
.java:280)
... 14 more
Caused by: javax.xml.soap.SOAPException: Unable to create SOAP Factory: Provider
com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
at javax.xml.soap.SOAPFactory.newInstance(SOAPFactory.java:33)
at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
t>(LiteralFragmentSerializer.java:93)
... 18 more
Exception in thread "main" java.lang.NullPointerException
at has.proxy.runtime.JoPayWebServiceService_SerializerRegistry.registerS
erializer(JoPayWebServiceService_SerializerRegistry.java:45)
at has.proxy.runtime.JoPayWebServiceService_SerializerRegistry.getRegist
ry(JoPayWebServiceService_SerializerRegistry.java:32)
at has.proxy.runtime.JoPayWebServiceService_Impl.<init>(JoPayWebServiceS
ervice_Impl.java:26)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
Impl.java:92)
at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
pl.java:121)
at has.proxy.JoPayWebServiceClient.<init>(JoPayWebServiceClient.java:18)
at moict.Main.confirmPayment(Main.java:142)
at moict.Main.main(Main.java:93)
C:\> -
Error when executing jar from command window PLZ HELP URGENT
Hello
I have a project which calls a webservice, I am using Jdeveloper 10.1.3.4
I deployed the project in a jar file and included all the necessary libraries in it,
but when executing the jar from command window I am getting the exceptions below
the statement which cause the error is : PROXY= new JoPayWebServiceClient();
please help
Exception in thread "main" java.lang.NoClassDefFoundError
at oracle.j2ee.ws.common.encoding.soap.StandardSOAPTypeMappings.class$(S
tandardSOAPTypeMappings.java:125)
at oracle.j2ee.ws.common.encoding.soap.StandardSOAPTypeMappings.<init>(S
tandardSOAPTypeMappings.java:558)
at oracle.j2ee.ws.client.BasicService.createSoapMappings(BasicService.ja
va:259)
at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
BasicService.java:236)
at has.proxy.runtime.JoPayWebServiceService_SerializerRegistry.getRegist
ry(JoPayWebServiceService_SerializerRegistry.java:26)
at has.proxy.runtime.JoPayWebServiceService_Impl.<init>(JoPayWebServiceS
ervice_Impl.java:26)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
Impl.java:92)
at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
pl.java:121)
at has.proxy.JoPayWebServiceClient.<init>(JoPayWebServiceClient.java:18)
at moict.Main.confirmPayment(Main.java:142)
at moict.Main.main(Main.java:93)
Caused by: java.lang.ClassNotFoundException: javax.activation.DataHandler
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
... 17 more
C:\>I added all required jars but still I get this error :-
standard type mapping initialization error: javax.xml.rpc.JAXRPCException: javax
.xml.soap.SOAPException: Unable to create SOAP Factory: Provider com.sun.xml.mes
saging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
.java:282)
at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
BasicService.java:244)
at has.proxy.runtime.JoPayWebServiceService_SerializerRegistry.getRegist
ry(JoPayWebServiceService_SerializerRegistry.java:26)
at has.proxy.runtime.JoPayWebServiceService_Impl.<init>(JoPayWebServiceS
ervice_Impl.java:26)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
Impl.java:92)
at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
pl.java:121)
at has.proxy.JoPayWebServiceClient.<init>(JoPayWebServiceClient.java:18)
at moict.Main.confirmPayment(Main.java:142)
at moict.Main.main(Main.java:93)
CAUSE:
javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable to create SO
AP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl n
ot found
at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
.java:282)
at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
BasicService.java:244)
at has.proxy.runtime.JoPayWebServiceService_SerializerRegistry.getRegist
ry(JoPayWebServiceService_SerializerRegistry.java:26)
at has.proxy.runtime.JoPayWebServiceService_Impl.<init>(JoPayWebServiceS
ervice_Impl.java:26)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
Impl.java:92)
at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
pl.java:121)
at has.proxy.JoPayWebServiceClient.<init>(JoPayWebServiceClient.java:18)
at moict.Main.confirmPayment(Main.java:142)
at moict.Main.main(Main.java:93)
Caused by: javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable t
o create SOAP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFacto
ry1_1Impl not found
at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
t>(LiteralFragmentSerializer.java:95)
at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
t>(LiteralFragmentSerializer.java:62)
at oracle.j2ee.ws.common.encoding.literal.LiteralAnyElementSerializer.<i
nit>(LiteralAnyElementSerializer.java:16)
at oracle.j2ee.ws.common.encoding.literal.StandardLiteralTypeMappings.<i
nit>(StandardLiteralTypeMappings.java:198)
at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
.java:280)
... 14 more
Caused by: javax.xml.soap.SOAPException: Unable to create SOAP Factory: Provider
com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
at javax.xml.soap.SOAPFactory.newInstance(SOAPFactory.java:33)
at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
t>(LiteralFragmentSerializer.java:93)
... 18 more
CAUSE:
javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable to create SO
AP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl n
ot found
at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
.java:282)
at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
BasicService.java:244)
at has.proxy.runtime.JoPayWebServiceService_SerializerRegistry.getRegist
ry(JoPayWebServiceService_SerializerRegistry.java:26)
at has.proxy.runtime.JoPayWebServiceService_Impl.<init>(JoPayWebServiceS
ervice_Impl.java:26)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
Impl.java:92)
at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
pl.java:121)
at has.proxy.JoPayWebServiceClient.<init>(JoPayWebServiceClient.java:18)
at moict.Main.confirmPayment(Main.java:142)
at moict.Main.main(Main.java:93)
Caused by: javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable t
o create SOAP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFacto
ry1_1Impl not found
at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
t>(LiteralFragmentSerializer.java:95)
at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
t>(LiteralFragmentSerializer.java:62)
at oracle.j2ee.ws.common.encoding.literal.LiteralAnyElementSerializer.<i
nit>(LiteralAnyElementSerializer.java:16)
at oracle.j2ee.ws.common.encoding.literal.StandardLiteralTypeMappings.<i
nit>(StandardLiteralTypeMappings.java:198)
at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
.java:280)
... 14 more
Caused by: javax.xml.soap.SOAPException: Unable to create SOAP Factory: Provider
com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
at javax.xml.soap.SOAPFactory.newInstance(SOAPFactory.java:33)
at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
t>(LiteralFragmentSerializer.java:93)
... 18 more
Exception in thread "main" java.lang.NullPointerException
at has.proxy.runtime.JoPayWebServiceService_SerializerRegistry.registerS
erializer(JoPayWebServiceService_SerializerRegistry.java:45)
at has.proxy.runtime.JoPayWebServiceService_SerializerRegistry.getRegist
ry(JoPayWebServiceService_SerializerRegistry.java:32)
at has.proxy.runtime.JoPayWebServiceService_Impl.<init>(JoPayWebServiceS
ervice_Impl.java:26)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
Impl.java:92)
at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
pl.java:121)
at has.proxy.JoPayWebServiceClient.<init>(JoPayWebServiceClient.java:18)
at moict.Main.confirmPayment(Main.java:142)
at moict.Main.main(Main.java:93)
C:\> -
Error while Executing Unix Shell Commands Using Runtime clas
I am trying to run the following code in java on unix machine to execute cat command.
Runtime runtime = Runtime.getRuntime();
try {
System.out.println("before catexecute");
Process process = runtime.exec("cat /export/home/shankerr/local.profile > /export/home/shankerr/local1.txt");
try {
if (process.waitFor() != 0) {
System.err.println("exit value = " +
process.exitValue());
catch (InterruptedException e) {
System.err.println(e);
But i get the following error on the console
exit value = 2
cat: cannot open >
cat: cannot open /export/home/shankerr/local1.txt
The same command if i run on unix console directly it creates a new file and copies the content into the new file local1.txt
kindly help me on the sameThe redirection operator > along with stuff like pipe | history !$ etc. is interpreted by the shell, not by the cat program.
When you do cat X > Ycat only sees the X. The rest is interpreted by the shell to redirect the cat program's stdout.
However, when you Runtime.exec(), you don't have the shell, so cat sees X > Y as its arguments, and interprets them all as file names. Since there's no file named > you get the error.
The solution is to first man cat on your system and see if it happens to have a -o or somesuch operator that lets it (rather than the shell) send its output to a file. If not, then you need to invoke a shell, and pass it cat and all of cat's args as the command to execute.
Read the man pages for you shell of choice, but for bash, I believe you'd give Runtime.exec() something like /bin/bash -c 'cat X > Y'
Maybe you are looking for
-
Unknown error -50 when syncing
When I try to sync my 4th generation ipod to windows XP i get the error message
-
Multipart/form-data and file attachment
Hi , This question has probably been asked before, but if not then here it is. Any replies will be appreciated: Q. When using "Enctype=Multipart/form-data", with file attachment alongwith other form fields, is it mandatory to attach a file ? What if
-
there isn't an edit option in firefox. therefore i can't copy from email and paste to word processor. why?
-
Potential problem with all new Macbook Aluminum Displays
I have read in several threads across the internet (including this one) that people who have received the new aluminum Macbooks have been disappointed with the "greyish" quality of the displays, as well as the color saturation when compared to the ol
-
Hi all, I could use some help (using version CS5.5). I want to import (via Javascript) an XML file similar to this: <movieRoot> <dvds> <movie> <title>2001: A Space Odyssey</title> <edition>Special Edition<