Problems obtaining POST data / content using Sockets
Hi,
I have a servlet which needs to listen on a specific port for HTTP post requests.
At present I have the following code:
try{
inputStream=client.getInputStream();
streamReader=new InputStreamReader(inputStream);
reader=new BufferedReader(streamReader);
}catch(IOException e){
//Write error entry in the log file.
//Get the request and HOPEFULLY the params...
try{
System.out.println("encoder "+streamReader.getEncoding());
for (String thisLine = reader.readLine();thisLine!=null;thisLine = reader.readLine()){
if (thisLine!=null){
System.out.println(thisLine);
} This produces the following....
POST /sms HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-
powerpoint, application/vnd.ms-excel, application/msword, */*
Referer: http://localhost/test.html
Accept-Language: en-gb
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
Host: 127.0.0.1:9999
Content-Length: 74
Connection: Keep-Alive
Cache-Control: no-cache
I can see that the content is there 74 bytes of it, and it is encoded application/x-www-form-urlencoded, however I don't understand what I need to do to get the FORM information???????
It works fine if it is an HTTP Get, however I have to get it to work with a POST.
Can Anyone help??????????
Thanks
Glenn
client is a java.net.Socket.
Found some further information:
I'm actually getting an exception I've just noticed from the log files see below:
java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.InputStreamReader.fill(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at com.nokia.wap.server.IM.service.hd.run(hd.java:108)
the offending line in my code from above is line 108:
for (String thisLine = reader.readLine();thisLine!=null;thisLine = reader.readLine()){though i'm not sure if this is a code problem / when I close the html browser and hence cancel the http request?!
sorry to add to the situation. :o(
Similar Messages
-
Document Splitting problem while posting asset acquisition using F-90
Hi,
We are using ECC 6.0 with document splitting functionality and are facing problem while posting asset acquisition using F-90.
The transaction entry details are as below:
Document Type - KR
Vendor Line Item PKey - 31
Amount - 10000
Asset Line Item with PKey - 70, Transaction Type - 100
Amount - 10000
The Document Splitting Rule - 0000000012 is used and the Field Status Group for the Vendor Reconciliation Account and Asset Reconciliation account have Cost Center, Profit Center and Segment as "Optional" field.
The Balance Sheet Item - Asset Reconciliation Account has been created as
Secondary Cost Element - 90.
The Profit Center and Segment field have been made mandatory and zero balancing is also set in the settings for Document Splitting.
While posting asset acquisition using F-90, we are getting the error message - "Balancing Field "Profit Center" in line item 001 not filled"
The first line refers to the Vendor Line item.
Please let me know how to overcome this error.
Regards,
RamanandPlease follow the below path and do config :-
IMG>FA>Asset Accounting>Integration with the General Ledger>Additional Account Assignment Objects>Specify Account Assignment Types for Account Assignment Objects
here you have to put KOSTL (Cost center) for both against APC and Dep run for each Dep area.
Thanks
Pyare -
Dear all,
How can I control the Post Date (WADAT_IST) when I use BAPI_OUTB_DELIVERY_CONFIRM_DEC to PGI?
Thanks to help me.In ECC 6.0, I used this BAPI to perform the picking using this way:
1. Implement enhancement point BAPI_OUTB_DELIVERY_CONFIRM_D01 in enhancemnt spot ES_SAPLV50I to set the update picking flag on delivery control structure.
GS_DLV_BAPI_CONTROL-UPDATE_PICKING = 'X'
2. Implement enhancement of standard BADI SMOD_V50B0001. Use method EXIT_SAPLV50I_004 to loop at table CT_VBPOK and update the fields VBELN and POSNN with suitable values.
There is one problem with this solution, though. The delivery quantity cannot be updated. Any increase in the delivery qty ITEM_DATA-DLV_QTY actually updates the picked quantity on the delivery. Consequently, there is little practical use of this technique.
John -
Problem in POST data preserve in Policy Agent 2.2 for SJSWS 7.0
Hi
Appreciate your help.
I am using SJSWS 7.0 U1 and the PA for the same.
I have a requirement to preserve the POST data when during the following situation.
Consider a situation where in the user has logged in to our webapp and the user remains in a page which has a form with Post method .
Mean while the session (of AM) times out and now the user enters the data in the data and submits the form.
The user will be redirected to the login page and then the requested service should be performed, which is not happening in this case(POST). Suppose in if the form used a GET method this works fine.
I get 500 internal server in the browser.
I have set the following property to true in AMAgent.properties to true.
com.sun.am.policy.agents.config.postdata.preserve.enable
My obj.conf has the following entry.
<Object ppath="*/dummypost/sunpostpreserve*">
Service type=text/* method=(GET|HEAD|POST) fn=append_post_data
(note It had only GET originally)
</Object>
<Object ppath="*/UpdateAgentCacheServlet*">
Service type=text/* method=(POST) fn=process_notification
</Object>
The amAgent Logfile has the following errors
2007-10-03 07:03:05.735 Error 22984:92e14d8 PolicyAgent: Error Registering POST content body
2007-10-03 07:03:05.735MaxDebug 22984:92e14d8 PolicyAgent: Register POST content body : (null)
2007-10-03 07:03:05.735 Debug 22984:92e14d8 PolicyAgent: Register POST data key :2007-10-0307:03:05.735
2007-10-03 07:03:05.735 Error 22984:92e14d8 PolicyAgent: am_web_postcache_insert(): Unknown exception encountered.
2007-10-03 07:03:05.735 Warning 22984:92e14d8 PolicyAgent: Register POST data insert into hash table failed:2007-10-0307:03:05.735
2007-10-03 07:03:09.093MaxDebug 22984:92e14d8 PolicyAgent: validate_session_policy(): Completed handling request with status: success.
2007-10-03 07:03:09.093 Debug 22984:92e14d8 PolicyAgent: POST Magic Query Value : 2007-10-0307:03:05.735
2007-10-03 07:03:09.093 Debug 22984:92e14d8 PolicyAgent: Found magic URI but entry not in POST Hash table :2007-10-0307:03:05.735
And the errors log in the SJSWS.
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: fn="uri-clean" Directive="PathCheck" returned 0 (REQ_PROCEED)
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: executing fn="find-pathinfo" Directive="PathCheck"
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: fn="find-pathinfo" Directive="PathCheck" returned -2 (REQ_NOACTION)
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: executing fn="find-index-j2ee" Directive="PathCheck"
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: fn="find-index-j2ee" Directive="PathCheck" returned -2 (REQ_NOACTION)
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: executing fn="find-index" index-names="index.html,home.html,index.jsp" Directive="PathCheck"
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: fn="find-index" index-names="index.html,home.html,index.jsp" Directive="PathCheck" returned -2 (REQ_NOACTION)
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: executing fn="validate_session_policy" Directive="PathCheck"
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: fn="validate_session_policy" Directive="PathCheck" returned 0 (REQ_PROCEED)
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: executing fn="type-j2ee" Directive="ObjectType"
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: fn="type-j2ee" Directive="ObjectType" returned 0 (REQ_PROCEED)
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: executing fn="type-by-extension" Directive="ObjectType"
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: fn="type-by-extension" Directive="ObjectType" returned 0 (REQ_PROCEED)
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: executing fn="force-type" type="text/plain" Directive="ObjectType"
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: fn="force-type" type="text/plain" Directive="ObjectType" returned 0 (REQ_PROCEED)
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: executing type="text/*" method="(GET|HEAD|POST)" fn="append_post_data" Directive="Service"
[03/Oct/2007:06:50:39] failure (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: HTTP2302: Function append_post_data aborted the request without setting the status code
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: type="text/*" method="(GET|HEAD|POST)" fn="append_post_data" Directive="Service" returned -1 (REQ_ABORTED)
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: executing fn="error-j2ee" Directive="Error"
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: fn="error-j2ee" Directive="Error" returned -2 (REQ_NOACTION)
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: executing fn="flex-log" Directive="AddLog"
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: fn="flex-log" Directive="AddLog" returned 0 (REQ_PROCEED)
[03/Oct/2007:06:50:40] fine (22984): Updating accelerator cache
regards
Madhu MHi
Appreciate your help.
I am using SJSWS 7.0 U1 and the PA for the same.
I have a requirement to preserve the POST data when during the following situation.
Consider a situation where in the user has logged in to our webapp and the user remains in a page which has a form with Post method .
Mean while the session (of AM) times out and now the user enters the data in the data and submits the form.
The user will be redirected to the login page and then the requested service should be performed, which is not happening in this case(POST). Suppose in if the form used a GET method this works fine.
I get 500 internal server in the browser.
I have set the following property to true in AMAgent.properties to true.
com.sun.am.policy.agents.config.postdata.preserve.enable
My obj.conf has the following entry.
<Object ppath="*/dummypost/sunpostpreserve*">
Service type=text/* method=(GET|HEAD|POST) fn=append_post_data
(note It had only GET originally)
</Object>
<Object ppath="*/UpdateAgentCacheServlet*">
Service type=text/* method=(POST) fn=process_notification
</Object>
The amAgent Logfile has the following errors
2007-10-03 07:03:05.735 Error 22984:92e14d8 PolicyAgent: Error Registering POST content body
2007-10-03 07:03:05.735MaxDebug 22984:92e14d8 PolicyAgent: Register POST content body : (null)
2007-10-03 07:03:05.735 Debug 22984:92e14d8 PolicyAgent: Register POST data key :2007-10-0307:03:05.735
2007-10-03 07:03:05.735 Error 22984:92e14d8 PolicyAgent: am_web_postcache_insert(): Unknown exception encountered.
2007-10-03 07:03:05.735 Warning 22984:92e14d8 PolicyAgent: Register POST data insert into hash table failed:2007-10-0307:03:05.735
2007-10-03 07:03:09.093MaxDebug 22984:92e14d8 PolicyAgent: validate_session_policy(): Completed handling request with status: success.
2007-10-03 07:03:09.093 Debug 22984:92e14d8 PolicyAgent: POST Magic Query Value : 2007-10-0307:03:05.735
2007-10-03 07:03:09.093 Debug 22984:92e14d8 PolicyAgent: Found magic URI but entry not in POST Hash table :2007-10-0307:03:05.735
And the errors log in the SJSWS.
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: fn="uri-clean" Directive="PathCheck" returned 0 (REQ_PROCEED)
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: executing fn="find-pathinfo" Directive="PathCheck"
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: fn="find-pathinfo" Directive="PathCheck" returned -2 (REQ_NOACTION)
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: executing fn="find-index-j2ee" Directive="PathCheck"
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: fn="find-index-j2ee" Directive="PathCheck" returned -2 (REQ_NOACTION)
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: executing fn="find-index" index-names="index.html,home.html,index.jsp" Directive="PathCheck"
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: fn="find-index" index-names="index.html,home.html,index.jsp" Directive="PathCheck" returned -2 (REQ_NOACTION)
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: executing fn="validate_session_policy" Directive="PathCheck"
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: fn="validate_session_policy" Directive="PathCheck" returned 0 (REQ_PROCEED)
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: executing fn="type-j2ee" Directive="ObjectType"
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: fn="type-j2ee" Directive="ObjectType" returned 0 (REQ_PROCEED)
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: executing fn="type-by-extension" Directive="ObjectType"
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: fn="type-by-extension" Directive="ObjectType" returned 0 (REQ_PROCEED)
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: executing fn="force-type" type="text/plain" Directive="ObjectType"
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: fn="force-type" type="text/plain" Directive="ObjectType" returned 0 (REQ_PROCEED)
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: executing type="text/*" method="(GET|HEAD|POST)" fn="append_post_data" Directive="Service"
[03/Oct/2007:06:50:39] failure (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: HTTP2302: Function append_post_data aborted the request without setting the status code
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: type="text/*" method="(GET|HEAD|POST)" fn="append_post_data" Directive="Service" returned -1 (REQ_ABORTED)
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: executing fn="error-j2ee" Directive="Error"
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: fn="error-j2ee" Directive="Error" returned -2 (REQ_NOACTION)
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: executing fn="flex-log" Directive="AddLog"
[03/Oct/2007:06:50:39] finest (22984): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0306:50:35.348, func_exec reports: fn="flex-log" Directive="AddLog" returned 0 (REQ_PROCEED)
[03/Oct/2007:06:50:40] fine (22984): Updating accelerator cache
regards
Madhu M -
Problem of Posting date in CJ88
Hi
I am using WBS settlement transaction CJ88 and I am using BDC call transaction method
In the Extras column I give th posting date as current date but still program is creating the assets which have posting date as month-end date. In CJ88 if we dont give posting date it takes the month-end date as posting date.If I pass manually the posting date as current date in CJ88 it returns the entered posting date..but the program doesnot.
PERFORM POPULATE_BDC USING:
'X' 'SAPLKO71' '1000',
' ' 'BDC_CURSOR' 'LKP74-POSID',
' ' 'BDC_OKCODE' '=AUSF',
' ' 'LKP74-POSID' T_PRPS-POSID,
' ' 'LKO74-PERIO' P_PERIO,
' ' 'LKO74-GJAHR' P_GJAHR,
' ' 'LKO74-VAART' '3',
' ' 'LKO74-TESTLAUF' ' '.
Screen for posting date.
'X' 'SAPLSPO4' '0300',
' ' 'BDC_CURSOR' 'SVALD-VALUE',
' ' 'BDC_OKCODE' '=FURT',
' ' 'SVALD-VALUE' L_DATE,
Pls help.
ThanksHello Vamshi
Could it be a problem in the PRD system that the posting period (for August) is already closed?
I am not a specialist in billing documents yet this is the first thing that comes into my mind assuming that your user-exit is technically ok.
Regards
Uwe -
Problem in POST data preserve in Policy Agent 2.2 for SJSWS 6.1
Hi
I am using Policy Agent 2.2 for SJSWS 6.1
I have a requirement to preserve the POST data when during the following situation.
Consider a situation where in the user has logged in to our webapp and the user remains in a page which has a form with Post method .
Mean while the session (of AM) times out and now the user enters the data in the data and submits the form.
The user will be redirected to the login page and then the requested service should be performed, which is not happening in this case(POST). Suppose in if the form used a GET method this works fine.
I have tried by configuring the following property in AMAgent.properties file.
com.sun.am.policy.agents.config.postdata.preserve.enable = true
But it doesn't work. When I tried to troubleshoot, I learned from the following resource that, POST data preservation is only supported on Policy Agent 2.2 for Sun Java System Web Server 7.0 Is it not supported on 6.1?
http://docs.sun.com/app/docs/doc/820-1130/gaueu
I get the following error in the log file of SJSWS.
trying to POST /dummypost/sunpostpreserve2007-09-2804:48:53.379, send-file reports: HTTP4142: can't find /opt/SUNWwbsvr/docs/dummypost/sunpostpreserve2007-09-2804:48:53.379 (File not found)
I have verified that the following entry is made in the obj.conf
PathCheck fn=validate_session_policy
<Object ppath="*/dummypost/sunpostpreserve*">
Service type=text/* method=(GET) fn=append_post_data
</Object>
<Object ppath="*/UpdateAgentCacheServlet*">
Service type=text/* method=(POST) fn=process_notification
</Object>
I am using the PA 2.2 which says that the following bug is fixed.
Bug(s) fixed in 2.2 RTM Hotpatch 8
==================================
Bug#: 6545159
Agent type: Sun Java System Web Server agent
Description: CDSSO mode wipes out form post data
Appreciate your help.
thanks & regards
MadhuHi
Now I get 404 error and the logs in amAgent is
2007-10-03 04:56:20.922 Error 22356:a51e558 PolicyAgent: Error Registering POST content body
2007-10-03 04:56:20.922MaxDebug 22356:a51e558 PolicyAgent: Register POST content body : (null)
2007-10-03 04:56:20.923 Debug 22356:a51e558 PolicyAgent: Register POST data key :2007-10-0304:56:20.922
2007-10-03 04:56:20.923 Error 22356:a51e558 PolicyAgent: am_web_postcache_insert(): Unknown exception encountered.
2007-10-03 04:56:20.923 Warning 22356:a51e558 PolicyAgent: Register POST data insert into hash table failed:2007-10-0304:56:20.922
And in the errors log file of SJSWS is+_
[03/Oct/2007:05:13:05] finest (22515): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0304:56:20.922, func_exec reports: executing fn="uri-clean" Directive="PathCheck"
[03/Oct/2007:05:13:05] finest (22515): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0304:56:20.922, func_exec reports: fn="uri-clean" Directive="PathCheck" returned 0 (REQ_PROCEED)
[03/Oct/2007:05:13:05] finest (22515): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0304:56:20.922, func_exec reports: executing fn="find-pathinfo" Directive="PathCheck"
[03/Oct/2007:05:13:05] finest (22515): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0304:56:20.922, func_exec reports: fn="find-pathinfo" Directive="PathCheck" returned -2 (REQ_NOACTION)
[03/Oct/2007:05:13:05] finest (22515): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0304:56:20.922, func_exec reports: executing fn="find-index-j2ee" Directive="PathCheck"
[03/Oct/2007:05:13:05] finest (22515): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0304:56:20.922, func_exec reports: fn="find-index-j2ee" Directive="PathCheck" returned -2 (REQ_NOACTION)
[03/Oct/2007:05:13:05] finest (22515): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0304:56:20.922, func_exec reports: executing fn="find-index" index-names="index.html,home.html,index.jsp" Directive="PathCheck"
[03/Oct/2007:05:13:05] finest (22515): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0304:56:20.922, func_exec reports: fn="find-index" index-names="index.html,home.html,index.jsp" Directive="PathCheck" returned -2 (REQ_NOACTION)
[03/Oct/2007:05:13:05] finest (22515): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0304:56:20.922, func_exec reports: executing fn="validate_session_policy" Directive="PathCheck"
[03/Oct/2007:05:13:05] fine (22515): Updating accelerator cache
[03/Oct/2007:05:13:14] finest (22515): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0304:56:20.922, func_exec reports: fn="validate_session_policy" Directive="PathCheck" returned 0 (REQ_PROCEED)
[03/Oct/2007:05:13:14] finest (22515): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0304:56:20.922, func_exec reports: executing fn="type-j2ee" Directive="ObjectType"
[03/Oct/2007:05:13:14] finest (22515): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0304:56:20.922, func_exec reports: fn="type-j2ee" Directive="ObjectType" returned 0 (REQ_PROCEED)
[03/Oct/2007:05:13:14] finest (22515): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0304:56:20.922, func_exec reports: executing fn="type-by-extension" Directive="ObjectType"
[03/Oct/2007:05:13:14] finest (22515): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0304:56:20.922, func_exec reports: fn="type-by-extension" Directive="ObjectType" returned 0 (REQ_PROCEED)
[03/Oct/2007:05:13:14] finest (22515): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0304:56:20.922, func_exec reports: executing fn="force-type" type="text/plain" Directive="ObjectType"
[03/Oct/2007:05:13:14] finest (22515): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0304:56:20.922, func_exec reports: fn="force-type" type="text/plain" Directive="ObjectType" returned 0 (REQ_PROCEED)
[03/Oct/2007:05:13:14] finest (22515): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0304:56:20.922, func_exec reports: executing method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file" Directive="Service"
[03/Oct/2007:05:13:14] warning (22515): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0304:56:20.922, send-file reports: HTTP4142: can't find /opt/WMS/rel/www/webserver7/https-localhost.localdomain/docs/dummypost/sunpostpreserve2007-10-0304:56:20.922 (File not found)
[03/Oct/2007:05:13:14] finest (22515): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0304:56:20.922, func_exec reports: method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file" Directive="Service" returned -1 (REQ_ABORTED)
[03/Oct/2007:05:13:14] finest (22515): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0304:56:20.922, func_exec reports: executing fn="error-j2ee" Directive="Error"
[03/Oct/2007:05:13:14] finest (22515): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0304:56:20.922, func_exec reports: fn="error-j2ee" Directive="Error" returned -2 (REQ_NOACTION)
[03/Oct/2007:05:13:14] finest (22515): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0304:56:20.922, func_exec reports: executing fn="flex-log" Directive="AddLog"
[03/Oct/2007:05:13:14] finest (22515): for host 27.63.254.1 trying to POST /dummypost/sunpostpreserve2007-10-0304:56:20.922, func_exec reports: fn="flex-log" Directive="AddLog" returned 0 (REQ_PROCEED)
thanks
Madhu -
Can we post data 32KB using utl_http package?
I was using utl_http package for posting http data. Now there is a change in requirement and I have to call a web service instead of normal http post. Also the amount of data to be transferred now is >32KB (previously it was only 16KB). I have to manaually create the SOAP message and post it as http requset. Is it possible to post data more than >32KB using the utl_http package?
-Kumar
Message was edited by:
user586950did a trace route and this is what it came out with
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Moroni>ping 64.124.140.30:9090
Ping request could not find host 64.124.140.30:9090. Please check the name and t
ry again.
C:\Documents and Settings\Moroni>tracert 64.124.140.30:9090
Unable to resolve target system name 64.124.140.30:9090.
C:\Documents and Settings\Moroni>tracert 64.124.140.30
Tracing route to 64.124.140.30.mfnx.net [64.124.140.30]
over a maximum of 30 hops:
1 13 ms 15 ms 33 ms 73.91.188.1
2 9 ms 11 ms 9 ms GE-2-45-ur01.troutdale.or.bverton.comcast.net [6
8.87.218.185]
3 * 12 ms * te-9-3-ar01.troutdale.or.bverton.comcast.net [68
.87.216.89]
4 39 ms 13 ms 16 ms 12.116.25.33
5 17 ms 17 ms 18 ms tbr1011401.st6wa.ip.att.net [12.122.111.6]
6 17 ms 15 ms 16 ms 12.122.86.41
7 * * * Request timed out.
8 * * * Request timed out.
9 * * * Request timed out.
10 * * * Request timed out.
11 * * * Request timed out.
12 * * * Request timed out.
13 * * * Request timed out.
14 * * * Request timed out.
15 * * * Request timed out.
16 * * * Request timed out.
17 * * * Request timed out.
18 * * * Request timed out.
19 * * * Request timed out.
20 * * * Request timed out.
21 * * -
Regarding problem in posting date after opening new year
Hi SAP Gururs,
I have just opened the new fiscal year thrugh OB52 and also made a new number range by copying the previuos year number range thrugh OBH2.
Now when i m posting the entries for G/l, Customer & vendors, everything is going fine but vendor entry is not posting thrugh fb 60 and error is coming that (Posting date < Entry date) and when i m taking the help the following msg is appearing Message no. /SAPDMC/LSMW_OBJ_080237.
Please provide help to the above issue. It is urgent.
Thanks & Regards
InderHi Mark,
Yes I h ave check that the number range is copied for 2008 & also the posting period is opened for 2008 for vendors.
Also i have posted few entries using t-codes FB50, FB70 & also FB60.
Only in case of FB60 the entry is posted for 1st April 2008 but not for 2nd April & onwards.
Please let me know what u meant by last line i.e entry date as posting date. What i have done is that i have try to do the entry by using the same invoice date & posting date i.e 2nd April, 2008. But still the same error is coming.
Please help to reslove the issue.
Thanks & Regards
Inder -
Problem in Posting data using BAPI_ACC_DOCUMENT_POST
Hi ,
I am trying to post a Sub-ledger account using the BAPI_ACC_DOCUMENT_POST.
The Details I am passing are
DOCUMENTHEADER
USERNAME - UPPUVID
COMPANY CODE - 1030
DOC_DATE - 2/2/2009
PSTNG_DATE- 2/2/2009
FISCAL YEAR- 2009
PERIOD - 02
DOC TYPE - DR
ACCOUNTGL
ITEMNO_ACC 0000000002
GL_ACCOUNT 230400
PROFIT_CTR 110001
ACCOUNTRECEIVABLE
ITEMNO_ACC 0000000001
CUSTOMER 40000087
GL_ACCOUNT 110100
CURRENCYAMOUNT
ITEMNO_ACC CU CURRE CUR AMT_DOCCUR
0000000001 USD 1,000.0000
0000000002 USD 1,000.0000-
The result shown is as follows.
Document posted successfully: BKPFF 180001511510302009 DV1CLNT200
But when we go and check in FB03 .
I am getting an error message saying Document doesnot exist for the Tcode 1030 .
Also there is no corresponding entry in BKPF .
Please let me know If I have to pass anything else to post the data.
Regards,
Vidyulatha U.Hi Vidyulatha,
You can also use FM : POSTING_INTERFACE_START & POSTING_INTERFACE_DOCUMENT & POSTING_INTERFACE_END.
As you know you can post all types of documents through FB01.
You can set the i_tcode as 'FB01' & i_sgfunct as 'C'.
You just Pass on the values to these FMs.
Edited by: Yogesh Karanjikar on Feb 2, 2009 10:55 AM
Edited by: Yogesh Karanjikar on Feb 2, 2009 10:56 AM -
Problem reading all data from Synchronous Socket
Hi,
I have the task to implements an C# application which communicates with a SAP system via HTTP. My application should act as a HTTP Server to the SAP system. SAP sends documents (PDFs, Word-Docs, Tifs) through HTTP-Requests to my Server. Archive Link is SAP´s name for that HTTP interface.
Currently I am using synchronous sockets to process the communication. So
basically I do something like this:
Thread th = new Thread(new ThreadStart(StartListenThreaded));
th.Start();
The method StartListenThread looks like this:
private void StartListenThreaded()
IPAddress ipAddress = IPAddress.Parse("127.0.0.1");
IPEndPoint EndPoint = new IPEndPoint(ipAddress, port);
Socket ss = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
ss.Bind( EndPoint);
ss.Listen(20);
try
while(true)
Console.WriteLine("rnServer is waiting for a new connection..rn");
Socket sock = ss.Accept();
Console.WriteLine("Accepted connection form:"+sock.RemoteEndPoint);
Connection con = new Connection(sock);
Thread t = new Thread(new ThreadStart(con.ProcessOneRequest));
t.IsBackground=true;
t.Priority=ThreadPriority.BelowNormal;
t.Start();
catch (System.Exception e1)
{ Console.WriteLine("An Exception Occurred while Listening :" +e1.ToString()); }
As mentioned above There are mostly some Word-Documents or PDF files send as the body of a request. So I need to parse the body and write the content to a file.
Currently I use this code to accomplish that:
while (true)
if(socket.Available == 0)
break;
n = socket.Receive(bytes);
if(n == 0)
break;
wr.Write(bytes,0,n); // wr is a BinaryWriter
Now my problem is that this loop breaks before all data is received from the socket. That means it runs into the socket.Available == 0 case and ends, but there is still data available. How did I find that out? Well during debugging the code.
With the debugger running and when stepping through the code, obviously leaves the SAP side more time to send its data.
When doing some Console.WriteLine() after the loop with the socket.Receive() I get results > 0. So there is still data available.
I am not asking an SAP question here. I am aware that the problem could also be on the SAP side. However I think it is a C# issue. Has anyone experienced similar problems with sockets? Am I doing something completely wrong in handling my socket? I also don´t think that I can use Asynchronous sockets beacuse I need to process incoming requests in a determined order.
I have also tryed to turn off Blocking mode by setting socket.Blocking = false but I found out that I cannon use that because I need NetworkStream at some point in my application and NetworkStream does not work without blocking mode.I have evaluated several other possibilities before starting to implement HTTP on a socket basis. I only have this choice.
I have had a detailed look at Cassini before, but since you mentioned it in your post I looked at it more closely and I think I found a solution for my Problem.
Cassini uses some code like the following to poll for more data in a request. I am now using this mechanism in my application and it works fine.
private int WaitForRequestBytes()
int availBytes = 0;
try
Console.WriteLine("socket.Available: " + socket.Available);
if (socket.Available == 0)
// poll until there is data
Console.WriteLine("Polling 100ms");
socket.Poll(100000 /* 100ms */, SelectMode.SelectRead);
if (socket.Available == 0 && socket.Connected)
Console.WriteLine("Polling 1sec");
socket.Poll(1000000 /* 1sec */, SelectMode.SelectRead);
// socket.Poll(10000000 /* 10sec */, SelectMode.SelectRead);
availBytes = socket.Available;
catch
return availBytes;
So thanks for putting me in the right direction.
Mirco -
Problem with Filtering Data by Using "Greater Than" in APD
Dear Experts,
First of all, I am a novice of SAP Data Mining. I try to filter data in APD by using the 'Restrict Amont of Data (the Filter Icon).' My problem is really simple. I don't know how to filter data which have value greater than a constant.
For example, I try to keep only records which have a quantity greater than 1000.
At the selection option in the single value tab, I found only the '=' option. The options like '>', '<', '>=', etc are not found. Could anyone suggest me please?I do appreciate your prompt response.
Seemingly, using the interval is our best solution, though it is not best for our customers.
Having already gone through the note you gave me, in fact, it is really pertinent. Unfortunately, our support package is now 13, and it is extremely difficult to retest our system if we decide to apply the support package 16.
Are there any other solution?
By the way, you deserve my point. -
Problem in posting the downpayment using the idoc ACC_document03
hi all,
I am assigned with an object where a flat file comes frm a third party tool that need to be posted in to sap system.
there is a standard Idoc ACC_document03 to do the job, but here in this std Idoc some of the fields are missing, using the BTE OPEN_FI_PERFORM_RWBAPI01_P that is present in the Bapi BAPI_ACC_DOCUMENT_POST in Extension1 called by the Idoc.
By populating the needed down payment data in the IDOC segment E1BPACEXTC "Container for 'Customer Exit' Parameter", down payment requests can be managed as in transaction F-47.
In the segment, Field1 must contain the item number. Field2 must contain the name of the field. Field3 must contain the value of the field. how to populate the fields using the bte. pretty new to these advanced concepts.
if possible can u give me coding as well.
got stuck up here please do the need ful
thanks in advance,
ram.Hi ram,
E1BPACEXTC ---it is a table with four string fields,
pass the fields in char format to that BTE from IDOC.
loop that EXTENSION in the BTE.
Regards,
Sri -
Problem: Z table data updates using SM30
Hi,
I have a requirement, while updating records in a Z table
using SM30 Transaction.
The Structure of the table is below:
APMOD Primary Key Char(3)
KONST Primary Key Char(20)
ENDDA Primary Key DATS
BEGDA Non Key DATS
and some other non key fields....
Problem: This table should act something like Infotype in HR. I mean Delimition of Records while creating or changeing the existing record.
Say there is a record
APMOD = OGMT
KONST = Organization Management
BEGDA = 01/01/2004
ENDDA = 12/31/9999
Whenever i am Inserting a new record with key
APMOD = OGMT and KONST = 'Organization Management'
and BEGDA = '01/01/2006'.
First it should update the old record with
BEGDA = 01/01/2004 and ENDDA = 12/31/2005
Then the new record needs to be inserted with
BEGDA = 01/01/2006 and ENDDA = 12/31/9999.
How can I achieve this using SM30? Can we write our own code somewhere? If yes Where and How? Or is there any settings available for this requirement?
I can write a Z program to update this Table, but i should achieve this using SM30 only.
Let me know if you need any additional info.
Regards,
Sudhakar.Hi Sudhakar,
1. I tried the same at my end. It works fantastic !
In SM30 it shows
'Delimit' Button
'Expand <--> Collapse' Button.
and accordingly delmits the records.
2. in SE11,
Use the menu
Utilities ---> Table Maintenance Generator
and finally build a table maintenance
to use in SM30.
3. When u use in SM30,
u will achieve what u want.
4. Just make sure your field
ENDDA has the data element ENDDA
in table definition.
It should also be key.
5. After this ENDDA column,
there should be no other key column
( not even BEGDA)
I Hope it helps.
Regards,
Amit M. -
Problem while reading data on java socket
Hi All,
I am in big problem based on java socket programming. I run my application and start a ServerSocket on 10000(suppose) port no.As soon as request is coming i create a new thread with Socket assigned to it and process the request. Now i got the response and written on same Socket(Listen to ServerSocket on 10000 port). Now what i want to read the response written earlier on Socket.The written response i print on SOP it is visible. But when i establish InputStream and try to read the data it gives me -1 means no data is available. But i have seen the SOP and data is written to socket. How can solve the problem. I have tried after close the Socket as well as not close the socket.
Please help me out on this.see below code
<CODE>
void upperClassMethod() {
istener = new ServerSocket(port);
while(true) {
clientSocket = listener.accept();
doComms conn_c= new doComms(clientSocket);
Thread t = new Thread(conn_c);
t.start();
//doComms is a inner class of upper level class
class doComms implements Runnable {
private Socket server;
doComms(Socket server) {
//pp = server;
this.server=server;
//server=server1;
void processResponse() {
try {
BufferedInputStream in = new BufferedInputStream (clientSocket.getInputStream());
byte [] inBuff = new byte [4096] ;
int len = in.read (inBuff, 0, inBuff.length) ;
String output = new String (inBuff) ;
System.out.println("the output is :::: "+output);
} catch(Exception e) {
e.printStackTrace();
</CODE>
in processResponse() method i am not able to get output. Plz help me guys.....
Thanks in advance for ant assistance
Regards,
Pradeepplease see mu rum nethos of doComms class
<CODE>
public void run () {
input="";
boolean done = false ;
try {
BufferedInputStream in = new BufferedInputStream (server.getInputStream());
out = new PrintStream(server.getOutputStream());
while (!done) {
byte [] inBuff = new byte [4096] ;
try {
int len = in.read (inBuff, 0, inBuff.length) ;
if (len > 0) {
input = new String (inBuff) ;
Runnable r = new RequestProcessThread();
Thread t = new Thread(r);
t.start();
} else if (len == -1) {
done = true ;
//server.close () ;
catch (InterruptedIOException iioe) {
} catch (IOException ioe) {
System.out.println("IOException " + ioe + " on socket in thread: " + Thread.currentThread().getName());
ioe.printStackTrace();
done = true ;
</CODE> -
Problem while Posting a Document Using BAPI_ACC_DOCUMENT_POST
Hi All,
When i try to post my General Ledger Document using BAPI_ACC_DOCUMENT_POST, i face a situation due to the exchange rate. The field EXCH_RATE in CURRENCYAMOUNT table accepts only 5 decimals. But according to my scenario it should accept more than 5 decimals. Is there any BAPI or other way to solve this issue.
Thanks & Regards,
Venkatesh. RWe restricted our entry to five decimals and solved the issue.
Maybe you are looking for
-
Converting textframes into anchored objects
Hi All, I'm generating the ePub files from the InDesign and found that some of my textframes which are in separate stories are captured at the end of the files, but I'd like to have them at the exact position. But when those frames are capturing manu
-
Date insert problem m/d/yy not working
I am trying to set up the 'birthday' date like in the 'contact management' tutorial in my user account section... For some reason, although my birthday set-up is just like the tutorial (MySQL field 'date' set as DATE, ADDT date setting is m/d/yy) and
-
i just got a dell laptop. i installed itunes and it worked but just yesterday when i tried to open it i get this error message. i get this message every time i try to open itunes ive tried almost everything, uninstalling and reinstalling, rebooting,
-
Disturbed display in Itunes store
Since 2 days the display of itunes Store is completely broken/ messed up : all icons are displayed in one column, there is no more the band display of tunes and films, but only one column containing all images and texts. texts are appearing as underl
-
Hi, I am using jakarta-tomcat-4.0, to which jar file I have to set the classpath inorder to compile a servlet program. Thanks