on 07-14-2011 2:55 PM
I desighned a idoc-jdbc scenario.When I am triggedring idoc from sap r3,in 'we05' it's coming as sucess message and in sap pi in sxi_monitor txcode also it's showing 'processed sucessfully' message.but while i am doing 'communication channel testing' in RWB that time it's giving error message as:
Message processing failed. Cause: java.lang.NullPointerException
please suggest what needed ti be done.
[ note: here the non-sap database is: Oracle.
in receiver 'JDBC cc' configured: JDBC driver: oracle.jdbc.driver.OracleDriver
connection: jdbc:oracle:thin:@10.0.19.120:1527:IDS
(where ip/host : 10.0.19.120
port : 1527
*database name: IDS.)
(here the 'connection parameter' is in the form of: [ jdbc:oracle:thin:@<hostname>:<listner port number>:<database name> ] ]
please,suggest.
Regards,
Rasmiraj Tripathy.
Edited by: rasmiraj tripathy on Jul 14, 2011 3:56 PM
Hi Tripathy,
I didnot understand how you are doing 'communication channel testing' ?
You mentioned that if you do from SAP it is working end to end and if we do from RWB you are having error. If I am correct then you are doing from RWB > Adapter engine> test. If you are doing this, then you are doing wrong.
Instead you should test from RWB --> Integration Engine --> Test then it should work. So please check accordingly.
Regards,
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> Please suggest
You get message processing failed.
This shows problem might be due to data. Are you getting no error after configuring the communication channel (db connection string ) and activate the channel? If so then no problem with your configuration
Do the following...
a) See in your mapping you pass the data from idoc to jdbc variables properly... If your mapping during runtime does not pass data for your insert or update query then you will have this issue.
b) If possible test the SQL query using toad or sqlplus using mapping data directly in database.
c) Also in your communication channel add logSQLStatement = true as parameter in the advanced tab. This will help for debugging
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Baskar,
I took each step as per your instruction.However,the problem still ersists.below is the error i am getting in 'Audit log'
of communication channel monitoring:
[ Audit Log for Message: 4e1fee13-5bc3-300c-e100-00000a001367
Time Stamp Status Description
15.07.2011 17:31:26 Success Message successfully received by messaging system. Profile: XI URL: http://deveppi103:50200/MessagingSystem/receive/AFW/XI Credential (User): PIISUSER
15.07.2011 17:31:26 Success Using connection JDBC_http://sap.com/xi/XI/System. Trying to put the message into the receive queue.
15.07.2011 17:31:26 Success Message successfully put into the queue.
15.07.2011 17:31:26 Success The message was successfully retrieved from the receive queue.
15.07.2011 17:31:26 Success The message status set to DLNG.
15.07.2011 17:31:26 Success Delivering to channel: JDBC_RCV_HCM_CH1
15.07.2011 17:31:26 Success MP: Entering module processor
15.07.2011 17:31:26 Error MP: Exception caught with cause java.lang.NullPointerException
15.07.2011 17:31:26 Error Exception caught by adapter framework: null
15.07.2011 17:31:26 Error Delivery of the message to the application using connection JDBC_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.NullPointerException. ]
please,suggest.
>15.07.2011 17:31:26 Success MP: Entering module processor
>15.07.2011 17:31:26 Error MP: Exception caught with cause java.lang.NullPointerException
>15.07.2011 17:31:26 Error Exception caught by adapter framework: null
Please check few things..
1) Check whether database port you are using is valid one?
2) Have you checked the same connection string outside PI using toad and see whether you are able to query? Please answer for it?
3) Provide your jdbc target structure here. I suspect the target structure seems to be not in proper order... Are you using sap help document to construct structure?
You can see it in Netweaver Adaministrator(NWA) under log section (Alert Java)
For this you have to login to NWA.
All error messages from J2EE applications are written to the applications.<number>.log file. The file can be found in the file system under.j2ee\cluster\server<number>\log.
To analyze the logs, use the LogViewer plug-in in the SAP NetWeaver Administrator.
1. To start SAP NetWeaver Administrator, choose the URL http://<server:port>/nwa.
2. Choose Problem Management -> Logs and Traces -> Log Viewer.
I want to make sure that SQL command returns values using toad or some db client tool. Since you get null pointer exception, I suspect problem might be due missing or invalid target structure or so. If you have connection string problem, you get errors such as "connection could not be established" and so
i saw the traces in the 'NWA'.the traces are mentioned below:
[ Details Severity Date Time Message Category Location Application Host Node
error 2011-07-27 15:13:31:842 Retries exceded, set message 4e2fa9e8-2af2-2a8c-e100-00000a001367(INBOUND) to status NON_DELIVERED.
n/a com.sap.aii.af.ra.ms.impl.core.queue.consumer.ReceiveConsumer.handleRetriesOnException(MessagingException, QueueMessage, MessageController) n/a deveppi103.vsp.rinl.in Server 0 2_58766
Full Message Text
Retries exceded, set message 4e2fa9e8-2af2-2a8c-e100-00000a001367(INBOUND) to status NON_DELIVERED.
error 2011-07-27 15:13:31:834 Failed to transmit message 4e2fa9e8-2af2-2a8c-e100-00000a001367(INBOUND) due to com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.NullPointerException.
n/a com.sap.aii.af.ra.ms.impl.core.queue.consumer.ReceiveConsumer.handleRetriesOnException(MessagingException, QueueMessage, MessageController) n/a deveppi103.vsp.rinl.in Server 0 2_58766
Full Message Text
Failed to transmit message 4e2fa9e8-2af2-2a8c-e100-00000a001367(INBOUND) due to com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.NullPointerException.
error 2011-07-27 15:13:31:822 Transaction rolled back for meesage 4e2fa9e8-2af2-2a8c-e100-00000a001367(INBOUND) due to: <null>
n/a com.sap.aii.af.ra.ms.impl.core.queue.consumer.ReceiveConsumer.invokeHandler(QueueMessage, MessageController) n/a deveppi103.vsp.rinl.in Server 0 2_58766
Full Message Text
Transaction rolled back for meesage 4e2fa9e8-2af2-2a8c-e100-00000a001367(INBOUND) due to: <null>
error 2011-07-27 15:13:31:821 Rolling back transaction for message 4e2fa9e8-2af2-2a8c-e100-00000a001367(INBOUND) due to: <null>
n/a com.sap.aii.af.ra.ms.impl.core.queue.consumer.ReceiveConsumer.invokeHandler(QueueMessage, MessageController) n/a deveppi103.vsp.rinl.in Server 0 2_58766
Full Message Text
Rolling back transaction for message 4e2fa9e8-2af2-2a8c-e100-00000a001367(INBOUND) due to: <null> ]
Pleae,suggest.
Baskar,
I provided the JDBC target structure as per the SAP convention(i tooj\k the help of 'help.sap.com').so,no doubt of wrong format structure.but,only one doubt of Me is there for the message mapping.can You guide me on the 'Message mapping' part for the idoc2jdbc(this scenario)(node-to-node) mapping.
Eagerly waiting for the valuable suggsetion.Thank You.
Hi Baskar,
please find My data structure,Mapping & receiver communication channel confrig in : http://www.4shared.com/file/s-l5i9Lh/guidance_on_data_mapping_idoc2.html
please suggest me on these prospectives.
In the communication channel advanced tab do the following. Add the parameter as below and the value is true. This might help for log tracing the error.
logSQLStatement value is true
a) Problem might be mismatch field name between structure and table
b) value is mapped from idoc to jdbc field elements completely.
c) Basically some mandatory field elements of jdbc structure is not getting values at run time.
Hope that helps
Hi Bhaskar,
1. here as per your instruction i did the settings in receiver JDBC comm ch in 'advance' tab. please go through link for detail view: http://www.4shared.com/file/3w1kzJZR/JDBC_comm_ch_settings_advance_.html.
however,please explain me how we can see the detail description of the error by setting the above instructed parameter.
2. please go through my data type,message type and mapping for a better clarity in the below mentioned link:
http://www.4shared.com/file/s-l5i9Lh/guidance_on_data_mapping_idoc2.html
3. i checked about field name matching of database structure,it's perfectly right.
please,suggest.
hi debasis,
can you provide me some input about my data type,message type & mapping by going about the following link:
http://www.4shared.com/file/s-l5i9Lh/guidance_on_data_mapping_idoc2.html
Edited by: rasmiraj tripathy on Aug 5, 2011 7:31 AM
Hi Rasmi,
Message processing failed. Cause: java.lang.NullPointerException
Please provide the detail error message from audit log.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Debasis,
Which 'audit log' you are talking about.from which path can i get that?
[in 'communi channel monitoring' ,in 'cluster node' tab i am getting these details:
Cluster Node Details for Channel JDBC_RCV_HCM_CH
In the Last 10 Seconds Server 0 2_58766 Functioning
Line 1 / 1
Processing Details for Cluster Node Server 0 2_58766
7/15/11 10:15:21 AM 4e1fdeec-5bc3-300c-e100-00000a001367 Message processing failed. Cause: java.lang.NullPointerException
7/15/11 10:15:21 AM 4e1fdeec-5bc3-300c-e100-00000a001367 Message processing started
7/15/11 10:14:54 AM 4e1f5334-5b96-300b-e100-00000a001367 Message processing failed. Cause: java.lang.NullPointerException
7/15/11 10:14:54 AM 4e1f5334-5b96-300b-e100-00000a001367 Message processing started
7/15/11 10:09:54 AM 4e1f5334-5b96-300b-e100-00000a001367 Message processing failed. Cause: java.lang.NullPointerException
7/15/11 10:09:54 AM 4e1f5334-5b96-300b-e100-00000a001367 Message processing started
7/15/11 10:04:54 AM 4e1f5334-5b96-300b-e100-00000a001367 Message processing failed. Cause: java.lang.NullPointerException ]
please,suggest.
Debasis,
I got the detail 'Audit Log' file, which is mentioned below:
Audit Log for Message: 4e1fe1e8-5bc3-300c-e100-00000a001367
[
Time Stamp Status Description
15.07.2011 11:52:13 Success Message successfully received by messaging system. Profile: XI URL: http://deveppi103:50200/MessagingSystem/receive/AFW/XI Credential (User): PIISUSER
15.07.2011 11:52:13 Success Using connection JDBC_http://sap.com/xi/XI/System. Trying to put the message into the receive queue.
15.07.2011 11:52:13 Success Message successfully put into the queue.
15.07.2011 11:52:13 Success The message was successfully retrieved from the receive queue.
15.07.2011 11:52:13 Success The message status set to DLNG.
15.07.2011 11:52:13 Success Delivering to channel: JDBC_RCV_HCM_CH1
15.07.2011 11:52:13 Success MP: Entering module processor
15.07.2011 11:52:13 Error MP: Exception caught with cause java.lang.NullPointerException
15.07.2011 11:52:13 Error Exception caught by adapter framework: null
15.07.2011 11:52:13 Error Delivery of the message to the application using connection JDBC_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.NullPointerException. ]
please,suggest.
regrads,
Rasmiraj Tripathy
You can see it in Netweaver Adaministrator(NWA) under log section (Alert Java)
For this you have to login to NWA.
All error messages from J2EE applications are written to the applications.<number>.log file. The file can be found in the file system under.j2eeclusterserver<number>log.
To analyze the logs, use the LogViewer plug-in in the SAP NetWeaver Administrator.
1. To start SAP NetWeaver Administrator, choose the URL http://<server:port>/nwa.
2. Choose Problem Management -> Logs and Traces -> Log Viewer.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.