Interesting scenario

Good day all.
I have the following components:
a JSP that takes a couple of parameters and gives a text output,
a Class that builds an URL to the JSP and specifying all required parameters, reads the response and acts accordingly.
The Problem:
- I build the URL and get the following error :
java.io.IOException: Server returned HTTP response code: 500 for URL:``The Built up URL``
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:789)
``Then my class specific lines
- If I copy the Exact URL, as printed out, and paste it in a browser the JSP works as it should.
- Also I can open a website and read the source by just changing my URL.
Source
Here is the source-code that I use
private URL url;
url = new URL(buildURL()); //returns the built URL string
URLConnection conn = url.openConnection();
conn.connect();
InputStream is = conn.getInputStream(); //The error gets thrown on this line.
Any suggestions as to what is c;ausing this would be appreciated.

* Solved *
I didn't encode the string properly for HTML.
use java.net.URLEncode.encode(String URL ,String encoding); to encode the url to HTML format.

Similar Messages

  • Interesting scenario- user facing error while deleting a sales order

    Hello All,
    I have one interesting scenario and want feedback from your side as soon as possible
    Scenario-
    One of my clients is facing a problem while deleting a sales order.
    the sales order he is trying to delete is the old order created in 2007.
    when i see the document flow the user has created the export order, then delivered it, invoiced and sent it to accounting, accounting document is also cleared. then he cancelled the invoice, reverse PGI and deleted the delivery. the status of the sales order system is showing is being processed. but please note in this case after reversing PGI and deleting a delivery the delivery document disappears from the document flow.
    document flow looks like this
    Order - 200004715                     Being processed
    invoice- 700005310                    completed
    accounting 700005311                 cleared
    Cancel Invoice 700005315            completed
    Accounting 700005316                 cleared
    Now, in 2008 user is trying to delete the sales order but he is unable to do the same. system is giving him message "unable to delete sales order because of subsequent document 70005310 (which is invoice number)"
    Can somebody please throw some light on this problem.
    Thanks in advance.

    Hi,
    As fas as I know, this is standard system behaviour. The reason - you have done PGI (which has created a material document as well as accounting doc) and invoiced & reversed (which again has created accounting documents & rversal documents). All these documents are referencing the sales order.
    If you delete sales order, sales order number gets deleted from VBAK /VBAP tables.
    Hence, in relational data base scenario (meanin SAP in this context), deletion of sales order after creation of subsequent documents is not feasible.
    Hope it clarifies the issue.
    Regards
    Murali

  • Interesting scenario regarding billing

    Hello Experts,
    I have an interesting scenario regarding invoice block.
    The invoices are posted but blocked on perticular date.
    Could anybody please help  with  what could be the reason for this block and how this can be avoided in the future?
    Kindly throw some light about the tolerance limit set for the invoices.
    Awaiting your valuable inputs as early as possible.
    Thanks in advance for help.
    Regards,
    Psm.

    Hi,
    Your query is not clear.
    Can you explain further when the invoices are posted and when the invoices are blocked.
    Regards,
    VNR

  • Interesting scenario Billing

    Hello Experts,
    I have an interesting scenario regarding invoice block.
    The invoices are posted but blocked on perticular date.
    Could anybody please help with what could be the reason for this block and how this can be avoided in the future?
    Kindly throw some light about the tolerance limit set for the invoices.
    Awaiting your valuable inputs as early as possible.
    Thanks in advance for help.
    Regards,
    Psm.

    Hi,
    I think there is posting block set for you.Please remove that posting block and proceed further.
    Goto VOFA T.Code.Select your Billing type and then goto General data.Uncheck the Posting block field.
    It's not regarding tolerence limit.
    Pls gothrough the following link for some notes on tolerance limit.
    [Tolerance limit|http://help.sap.com/saphelp_45b/helpdata/en/a8/b9957a452b11d189430000e829fbbd/frameset.htm]
    Regards,
    Krishna.

  • Interesting scenario, is there a need to reset logs periodically?

    10.2.0.2 Ent Ed -- Rman 10.2.0.2 -- aix 5.3
    Is there a possible need to perform a reset logs periodically? This question initially came to me at the worst of times, during a recovery of a fairly important database.
    If / when you have to perform an spfile or controlfile restore without a recovery catalog, if your log sequence is above 255 and your last backup was more than a day ago, is it possible your latest autobackup wont be found? In our scenario we had a day old controlfile snapshot that we used, but I'm not sure if we would have been able to recover had it not been there. From reading the 10g Recovery Manager Reference manual:
    "FROM AUTOBACKUP
    [autoBackupOptionList]
    Restores a control file autobackup. You can only specify this option on the RESTORE CONTROLFILE and RESTORE SPFILE commands. When restoring either type of file in NOCATALOG mode, the FROM AUTOBACKUP clause is required.
    RMAN begins the search on the current day or on the day specified with the SET UNTIL. If no autobackup is found in the current or SET UNTIL day, RMAN checks the previous day starting with sequence 256 (or the sequence specified by MAXSEQ) until it reaches 0. The search continues up to MAXDAYS days (default of 7, maximum of 366) from the current or SET UNTIL day. If no autobackup is found within MAXDAYS days, then RMAN signals an error and the command stops. "
    The doc doesn't mention it but if you haven't ever tried setting MAXSEQ > 256, you'll get an error if you do. 256 is the upper bound for the MAXSEQ parameter. This is a snippet from my test of that:
    <code>
    oracle_sandbox1> rman target /
    Recovery Manager: Release 10.2.0.2.0 - Production on Fri Nov 21 09:16:36 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database: WEBDEV (DBID=1965364971)
    RMAN> show all;
    using target database control file instead of recovery catalog
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 5;
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO '%F'; # default
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE DEVICE TYPE SBT_TAPE PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE SBT_TAPE TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/app/oracle/product/10.2/dbs/snapcf_webdev.f'; # default
    RMAN> run {
    2> allocate channel t1 type 'SBT_TAPE';
    3> restore spfile to pfile '/app/oracle/product/10.2/dbs/webdev_pfile.tst' from autobackup maxseq=300;
    4> }
    allocated channel: t1
    channel t1: sid=256 devtype=SBT_TAPE
    channel t1: Veritas NetBackup for Oracle - Release 6.5 (2007111606)
    Starting restore at 21-NOV-08
    released channel: t1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 11/21/2008 09:23:46
    RMAN-06494: MAXSEQ = 300 is out of range (0-255)
    RMAN>
    </code>

    The "sequence" here is not the Log Sequence Number that is assigned when LGWR switches from one Redo Log to another, and the previous one is archived out as an Archivelog (if running in ARCHIVELOG mode).
    The "sequence" here is the sequence of the controlfile autobackup that was created. In AUTOBACKUP mode every change to the database structure (eg adding a new datafile) causes an Autobackup. Similarly, every Database Backup causes an Autobackup. Since multiple such autobackups can occur within a single day, Oracle assigns a SEQUENCE to differentiate beteween the backups created on the same day. It is this sequence that is limited to 255 .
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • Interesting Scenario - Bank Reconciliation

    Hi Experts !
    My client has a scenario where payment is received 100% advance from the customers who deposite the same directly into bank account accross different geographical locations.
    Clients a/c dept. checks for receipt of payment through netbanking and makes an incoming payment 'On Account' against that customer and enters transaction id of the payment as seen in online bank statement.
    The invoice is generated after payment recipt and the goods are despatched to the customer.
    The customers's requirement is ;-
    1) To reconcile incoming payments with external bank statement by matching the transaction id as entered at the time of incoming payment and as present in the bank statement.
    It sometimes happens that either delibrately or by mistake the user enters wrong transaction id at incoming payment against the customer and the goods are dispatched.However that transcation id does not match when it is reconciled with bank statement.
    How do I reconincile external bank statement with incoming payments ? The customer is using 2007B,PL06.
    Your inputs are much appreciated.
    Thanks,
    Asap

    Hi Suda,
    Thanks for the reply !
    More than the human error the question is to enable the system to prevent delibrate incorrect entries which has happened in the past.
    Changing the transcation id field in the JE will work in case of entries with wrong id.
    Could you please enlighten me on the possibility of matching external bank statement with the incoming payments?
    Regards,
    Asap

  • Interesting scenario with batches

    Hi friendss,
    I have some plants ex. 2221, 2223. they will create PO and do GR .here vendor is also same plant.
    for 2221 plant 2221 is the vendor
    for 2223 plant 2223 is the vendor.
    In both case material is same. but different batches .batch have different characteristics. and prices also different.
    Is it possible to create a PO for same plant?
    After that they will transfer the stocks to distribution center plant 3333. i have to capture the freight costs here .from this plant they may do sale or transfer to another plant.but material should carry the batch no created in the origin Plant(ex 2221 or 2223) and also create a lot no for 3333 plant for their traceability.
    how to map this scenario in sap?? 
    Thanks
    rajan

    Yes You can use split valuation. You need to activate split valuation if you requirement to valuate the various stocks separately. That is if your requirement is that stock plant say 2221 should be valuated seprately and 2222 should be valuated separately.
    So,
    If your requirement is that every batch should be valuated at different price you can use batch valuation that is in material master accounting view slect valuation category as X ( Automatic- Batch)
    If your requirement is that from  every plant the material should be valuated at different price and you have seven plants then you can
    create in SPRO ( SPRO-Materials Management-->valuation and account assignment --> split valuation)
    Create  Category  as say P ( plant)
    Define Types as say Plant1, plant2.....
    You can go through following links which will guide you for the config if you want to create your own categories and the use.
    configuration steps for split valuation
    Re: Split Valuation configuration
    http://www.sap-topjobs.com/SpecialPP/SAPMM.pdf
    http://help.sap.com/erp2005_ehp_05/helpdata/EN/47/61017149f011d1894c0000e829fbbd/frameset.htm
    Regards
    Sangeeta

  • Interesting scenario (Urgent, kindly reply)

    Hi,
    We want to move one of our Production server to another country.
    Of course it will take time to move and setting up in new country.
    Meanwhile we like to have same copy of database running locally , so that we don’t disturb
    the work
    1) What are different methods for copying the database if we can not shutdown the database
    and also let me know the options if we can shutdown the Database for a hour.
    2) What i need to change from client, application site if we are moving database to different country.
    2) Know lets suppose we have new copy of database up and running locally, and the users
    and application are making changing. How can we make these changes (DML,DDL,DCL)
    to the actual live database when it will be up and running.
    Please kindly reply all possible solution with doc id (for reference)
    Advance Thanks,

    Look at Oracle Data Guard
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14239/toc.htm

  • Interesting scenario IN FOUNDRY/CASTING INDUSTRY

    HI
    my client charges ammortization cost of rs  ea on finished product.
    ammortization cost is based on the tooling & die cast divided by number of pieces produced and also on the die life
    suppose the die cost is 10000 and finished goods produced will be 10000 ea so the ammortization cost will be 1 rs per piece
    so while doing invoice we have to capture amoortization cost in invoice
    suppose the cost of finished goods is rs 100 and order quantity is 100
    proo  =10000
    zamd= 100(ammortization cost) this is only for statistical purpose to calculate excise dutyzexc= 110    1100*10%
    zedu=    2
    zhse=    1
    total vale= 10113
    zvat=  405
    receivable from the cstomer=10518
    my problem i have to monitor the ammortization cost. the ammortization cost should not be applicable after the die life is over i.e after 10000 ea finished products are produced.
    for 10001 piece the ammortization cost should not be calculated
    CAN THIS BE POSSIBLE THROUGH CONDITION UPDATE
    regards

    Dear Rithvika
    Yes apart from ticking the Condition Update in V/06 for condition type ZAMD, you also have to maintain scale in VK11.  Once you maintain the price in VK11, you block that line item and press F2. 
    There under Scale quantity  maintain 10000 and in Amount  tab, maintain 100.  Save this and again come to condition tab and maintain the validity period to the tentative despatch date to be on the safer side.  If you want, you can extend the validity period at a later date, if need be.
    thanks
    G. Lakshmipathi

  • Interesting scenario on Partial Commit - Deletion of EO

    Hi all,
    Jdev Version: Studio Edition Version 11.1.1.7.0
    Business Requirement: Need to partially commit the deletion of one row (say Row-A) in EO and serialize another row (an addition say Row-B) for committing after approval.
    How we achieve this:
    Step 1 - Make the change in Row-A & Row-B on my main AM (AM1).
    Step 2 - create a parallel new root AM (AM2) and make the changes that need to be partially committed on the VO/EO in this new root AM (AM2) and issue commit on this AM (AM2).
    Step 3 - Now after the partial commit, am back to AM1 where I would like to serialize only the change on Row-B. So I call the remove() on Row-A and passivate.
    Step 4- On my offline approval page, I invoke activate to show the new addition Row-B for approval post which I can invoke commit.
    Issue we face: When we passivate in Step 3, the deletion of Row-A also gets passivated. As a result, this row shows up on my approval screen. On my approval screen, only Row-B should be displayed.
    Appreciate your inputs on this issue.
    Thanks,
    Srini

    Hi,
    row A will be deleted with the next commit the way you put it. My interpretation is you want to remove it from the collection in which case you would call removeRowFromCollection on the VO. Instead of what you are doing here I would consider a soft-delete in which you set a delete flag on a row instead of deleting or commiting it. You can then use a custom RowMatcher on a VO to filter those entities out in which case you only see those for approval that you need to see.
    For partial commits, I would use a different strategy. Create a headless task flow (no view activity just a method activity and a return activity) and have it configured to not share the Data Control (isolated) You then pass in the information for the row to commit, query it in the method activity (through a VO) update the VO and commit the change using the commit method from the DataControl frame (you get this through the BindingContext class.
    This is more declarative and reusable than creating an AM just for this purpose. However, keep in mind that the callingg task flow still things Row A is changed (as it doesn't participate in the commit. So what you do is to call row.refresh() and issue DB forget changes as an argument so Row A is reset to the state that is in the database
    Frank

  • FM for calculating interest on partial released SD

    Hi,
    I have business requirement wherein I have to release SD partially and then calculate interest on partially release SD.
    I have tried to search FM or BAPI for interest on SD (FPI2) but in vain.
    On checking through SE30, I could get following FMs
    Call Func. FKK_INTEREST_DOC_CONFIRM
    Call Func. FKK_INTEREST_APPENDIX_CREATE
    Call Func. FKK_INTEREST_HISTORY_GET
    Call Func. FKK_INTEREST_HISTORY_CREATE
    Call Func. FKK_INTEREST_CALC
    Call Func. ISU_INTEREST_ADD_INFO_2030
    And by going through program, I found below FM
    INCLUDE LFKI1U03.   "FKK_OPENITEM_POST_INTEREST_DOC
    INCLUDE LFKI1U05.   "FKK_INTEREST_DOC_CONFIRM
    INCLUDE LFKI1U04.   "FKK_INTEREST_DIALOG_EXTERNAL
    INCLUDE LFKI1U01.   "FKK_GNRLITEM_POST_INTEREST_DOC
    INCLUDE LFKI1U02.   "FKK_INSTPLAN_POST_INTEREST_DOC
    INCLUDE LFKI1U07.   "FKK_INTEREST_INSTPLAN_CONFIRM
    INCLUDE LFKI1U10.   "FKK_INTEREST_ON_CASH_DEPOSIT
    INCLUDE LFKI1U06.   "FKK_LOANPLAN_POST_INTEREST_DOC
    INCLUDE LFKI1U08.   "FKK_INTEREST_DOC_DISPLAY
    INCLUDE LFKI1U09.   "FKK_INSTPLAN_INTEREST_ACTUAL
    INCLUDE LFKI1U11.   "FKK_RESTRUCTURE_ITEMS_FOR_INT
    Wherein, I tried to run FKK_INTEREST_ON_CASH_DEPOSIT but I am getting error as dependent data is coming from previous FMs.
    So is there is any FM or way to post partial interest (on partial release SD).
    Regards,
    Paresh

    Hi ,
             I think it is standard process that , interest will be posted even for the partial released SD until the date it is cleared with receivable or refunded . so you can concentrate on only partially releasing the SD. The interest of the remaining SD and the that of released sd (up to the date of clearing), can be provided in one annual run ,if that is permissible by finance department .you also need to look into TDS on interest scenario where TDS is deducted if interest in above Rs 5000(only applicable in india ).

  • Complex Scenario on file sequencing

    Hi All,
    I am developing one scenario where requirement is as follows.
    My source system will  generate a set of Data files and one control file which will be having details of all these data files.
    XI has to pick this control file first and depending upon the details specified in it, it has to pull all the data files. When all data files corresponding to that control file are picked up then only XI should send all those files to target system otherwise it should wait.
    For Example XI got Control1 file which contains data1, data2 and data3 files. Now XI will pick Control1 file first. Then it should go and check for Data1. once it is picked up it should go and check data2. Similarly for Data3. Once all the files got picked up then it should send those files to target in sequence. That is Data1 should go first then data2 then data3 and then control1 should go.
    Can anybody suggest anything on how to deal with this?
    Warm Regards,
    Gouri

    Hi ,
    interesting scenario you have there
    There are two ways  I can suggest...
    Using BPM collect scenario
    Staring the BPM will not be an issue .stopping it is ...i.e. when it should stop collecting messages.it will be started ...by the interface of the control file which you will send ...this control file must have some information about the number of files it has  ...(two recieve steps each identifying these two interfaces ...set a counter step in this case .) or some keyfield which identifies each file ..(if not ask for this info to be incorporated in the files)..
    if the interfaces of rest of the other then control  file is the same...then you have two interface kinds to deal with...if not ..then you'll that many interfaces you have make(in this case hope they are fixed ).
    Refer to SAP BASIS component ..you will have certain scenarios under BPM patterns ...which will give  you a fairely decent idea ..as to how to handel your scenario ( they are just template which you can copy and use after customising them according to your need)
    Besides there is work around i can suggest (as I am not a java guy i prefer abap)
    Here you can code in abap side of xi ...a code which will pick your control file .....
    from the location (ask your basis guy to set the file path) ..and based on these control file..pick all the other files and place it in a folder or ftp location from where XI will pick  ....(use job sceduling for automation )..just a suggestion ..I am using method to split large files ..as ..BPM is resource taxing ...

  • Free issue of goods material groupwise

    Dear All,
    I have a requirement that,say for a example there are 5 material groups.In each material group 100 materials are there.
    Now if a customer picks 10 quantity of different material(for eg:material is 1lt emulsion paint ) from 1st material group i have to give one material as free(exclusion).
    That free material is not a fixed one.Free one is customer's own choice from that 1st material group.
    How can i achieve this.This is possible ??
    Kindly Suggest.
    Thanks,
    Prabhu.

    Hi Prabhu.
    Very Interesting scenario.
    Suggested solution as below;
    1. let the Sales order be created as such.
    2. during Sales order Save (user exit save doc prepare), check if the pre-defined condition of 10 materials from a group is satisfied,
    3. if yes, then show a pop-up with Radio buttons ( list of available materials to choose from - for free goods).
    4. Add the selected material (qty will be calculated as per logic i.e. if 1 free per 10 items ...accordingly) as a new line item with the required Item category like TANN
    5. Proceed and save.
    BOM cannot be used as for BOM you have to define the list of material and also the component qty is defined.
    Also the code has to be written keeping in mind that this should be applicable for a given sales area / order type and only when being manually created. If the order is being created by a batch job, a default free good can be povided or it can be ignored altogether.

  • Test messages going to the wrong contact

    Every now and then, I will send a text message to a friend, and somehow, the message and the following conversation, seems to be copied to my wifes phone.
    An interesting scenario!! Also makes me wander who else might be aware of my sms conversations!!!
    I cant put my finger on when the issue first started, it does seem to have started fairly recenlty though. At first i thought i must have done something wrong...but now i am sure there is some sort of anomaly here.
    I have done an iphone reset (ie..hold power and home buttons down for 10 seconds). That did not seem to resolve.
    My friends is using an iphone 3GS (not sure of iOS version) and my wife and i are both on iphone 4 with 5.1.1. My wife's and my phone are managed by the same itunes account / pc (not sure if there is some sort of confusion between phs somehow?)
    Any ideas on how to address this?
    Thanks

    Your Messages app uses 2 different paths to reach recipient. Either through Apple server (iMessage) or Cell carrier (SMS).
    Here a link to an artikel which gives you an idea how to share Apple ID.
    iOS 5 & iCloud Tips: Sharing an Apple ID With Your Family

  • Validation not working when clearing an open item

    Hi SAP Gurus,
    We have a interesting scenario to discuss with you. We are using Legal Dunning Procedure so once legal action is intiated against the customer notifications are sent to the legal department if payments are received.
    Unfortunately this can happen only during the next dunning run which of course can occur in varying time intrevals. Therefore we need a validation to occur if a payment is received from a customer against whom legal action has been initiated.
    We tried using the following fields Date of the legal dunning proceedings, Dunning block, Dunning key, Dunning level but are not able to get the validation to work when attempting to clear the open item. These all work when trying to post a new document but fail when trying to clear a open item. Points will be given for helpful answers.
    Regards,
    Siva

    this is the radio button
    <af:selectOneRadio value="#{bindings.Gender1.inputValue}"
                                                     label="#{bindings.Gender1.label}"
                                                     required="#{bindings.Gender1.hints.mandatory}"
                                                     shortDesc="#{bindings.Gender1.hints.tooltip}"
                                                     id="sor5">
                <f:selectItems value="#{bindings.Gender1.items}" id="si7"/>
              </af:selectOneRadio>
    i use this sample
    http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/ADF_Insider_Essentials/ADF_Insider_Essential_YesNoRadio/ADF_Insider_Essential_YesNoRadio.html

Maybe you are looking for

  • Two Computers with one iPod??? I need major help!!!!

    I just got another computer, i have iTunes on my laptop with two iPods on it but i was wondering if I could set it up so that I can hook them to the new computer with the same songs and updates as the other with out it erasing my ipod. I read that u

  • How to stop the pw asking from iCloud

    After the iOS8 upgrade, every so often a pop-up message asking me for iCloud password shows out. The password I do not have. The problem is that I never activate iCloud but my son did it with an ID different from mine. I was told there are only two w

  • Transfering music in icloud with playlists

    I was able to put my music on all my devices but they did not appear in playlists or folders. Do I have to reorganize my entire library for every device?

  • Hi, is there a table from where I could the org_description

    I need to know if there is another table around from where you get the org_description, other than org_organization_definitions.

  • How to exclude tablespace UNDOTBS1 from backup in OEM

    I use OEM to backup our database (11.2 on Redhat 2.6.18-92.el5 ). It take quite a bit time and disk space (32gb) to backup the UNDOTBS1 table space. I do not think that we need undo tablespace for a recovery. If this is correct how can I excludeit fr