How to write an ObjectOutputStream to URL connection and rx via an applet

Hi, i am final year Bsc student from portsmouth England struggling to write an object to a servlet response stream.
applet code:
URLConnection connection;
ObjectInputStream in = null;
DataCarrier today = null;
try{
//connect to url
     URL url = new URL("http://localhost:8080/myapp/getObjectives");
     connection = url.openConnection();
     connection.setDoInput(true);
// create in object to read from connection response
/* using print statements i can confirm that this line is not completing */
ObjectInputStream ois = new ObjectInputStream(connection.getInputStream());
//print line here does not print
//type cast incoming object
today = (DataCarrier)ois.readObject();
     ois.close();     
catch (Exception e) { }
Servlet Code:
//declare DataCarrier class variables
DataCarrier test;
test = new DataCarrier();
test.x = 100;
test.s = "hello";
//create output stream from response output stream
ObjectOutputStream oos = new ObjectOutputStream(new BufferedOutputStream(resp.getOutputStream()));
//write object
oos.writeObject(test);
     oos.flush();
     oos.close();
the code compiles and runs ok, with the only error being a nullpointer exception when trying to type cast response object in applet.
This is because the ObjectInputStream isnt being created.
I have spent the last week seeking help from lecturers trying to solve this problem with no success what so ever.
So if any one can offer any advise or comments they will be welcomed with open arms.
Many thanks in advance.
dthom

Do you still need help with this?

Similar Messages

  • I downloaded adobe create a pdf- now how do I get a document to connect and be converted

    I downloaded adobe create a pdf- now how do I get a document to connect and be converted

    Hi powerequipsales,
    Create PDF is an online service which you have subscribed.
    Please use below link to access your Create PDF service.
    https://cloud.acrobat.com/convertpdf
    Login with your Adobe id and password associated with it.
    Follow these steps to create a PDF file.
    'Select Files To Convert To PDF' -> 'Choose Files From My Computer'.
    Select the desire file you want to convert in a PDF and click 'Open'.
    Regards,
    Florence

  • How to write Functional Spec s for Duplicate and Postal Check for ELM

    Hi Guru s
    Can any one guide me how to write functional specifications for Duplicate Check and postal Check for ELM kindly share information on this.
    Thanks & Regards,
    Prasanna

    Hello Jaya,
    I would say that there are many ways to write a FS. Maybe every big company has its own template. As it is the functional spec and not the technical one, I would say that you only need to describe what you want to see on the screen (like with mock-screenshots) or which functionality you want to have from a super-user''s point of view. All the technical details like which database table or function modules need to be investigated by the developer or technical consultant. I am currently in a SAP CRM Service in the technical role and that is the way we work here and I am fine with that. Unfortunately I am not allowed to send you an example.
    Best regards,
    Thomas Wagner

  • What is the difference between HTTPS URL connection and SSLSocket conn

    What is the difference between HTTPS URL connection and SSLSocket connection

    The difference is that they are different protocols, or rather one protocol layered over the other. If you're within a LAN you will use SSL, if it's a Web service you will use HTTPS.

  • Posting to a URL connection and receiving a response...please help!

    Ok, here's the deal. Im trying to connect to a site, submit my username and password, and then retrieve the HTML source code for the page after I'm logged in so I can parse it and further manipulate it. So far, I'm establishing a connection and posting the info I want, but when I print the DataInputStream at the end, I keep getting the source code for the log in page, not the page after I'm logged in...so I'm guessing I'm not really getting logged in at all. I put my code below, please tell me whats wrong!! I really appriciate any help you can offer.
    -DFG
    import java.net.*;
    import java.io.*;
    import java.lang.String.*;
    public class URLReader {
    public static void main(String[] args) {
    try {
    URL url;
    URLConnection urlConn;
    DataOutputStream printout;
    DataInputStream input;
    url = new URL ("www.someURL.com");
    urlConn = url.openConnection();
    urlConn.setDoInput (true);
    urlConn.setDoOutput (true);
    urlConn.setUseCaches (false);
    urlConn.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
    printout = new DataOutputStream (urlConn.getOutputStream ());
    String content = "userid=" + URLEncoder.encode("username") +"&pass=" + URLEncoder.encode("password");
    printout.writeBytes(content);
    printout.flush();
    printout.close();
    input = new DataInputStream (urlConn.getInputStream ());
    String str;
    while (null != ((str=input.readLine()))) {
    System.out.println (str);
    input.close();
    catch(MalformedURLException mue) {
    System.out.println("exception");
    catch(IOException ioe) {
    System.out.println("exception");
    catch(Exception e) {
    System.out.println("exception");
    }

    Suppose the target website has the following pages:
    index.html (contains username, password fields and posts to login.html)
    login.html (processes the logging and displays the secured data).
    You should be posting the username and password to login.html. If so, I suspect that the login page you are posting to is not receiving the username and password and is simply outputting the login form again. Is this what happens when you open the url in a web browser and attempt to login with no username and password?

  • How to write error log while creating invoice and avoid implicite commit

    Hi,
    I've have written code in exit RV60AFZZ in which I check for some possible errors while invoicing via VF01/VF04. If conditions are met then we create error message and display it to the user. As result we had a lot of missing SD invoices in FI when we did batch/mass invoicing. I've opened OSS note and SAP support team wrote that using statement MESSAGE is forbidden in UE. It can lead to implicite commits.
    Do you have some example how to write error log for invoincing in VF01/VF04 transactions?
    Thanks

    @ sri nath. Please read post before answering. I wouldn't be posting trivial questions. As I wrote before it doesn't work.  Also SAP support would not answer to the question in my OSS.
    In VOFM, SAP is using routine  VBFS_HINZUFUEGEN_ALLG to write to error log.
    Mine is something like this in ue:
          PERFORM ZVBFS_HINZUFUEGEN_ALLG
                     USING VBAP-VBELN VBAP-POSNR  'ZSD' 'E '600'
                           SPACE SPACE SPACE SPACE.
    (we have custom message class)
    As result  XVBFS and VBSK are filled with error, but posting is also done.  Error log is filled but invoice is created and posted in FI.
    That is not OK.
    thanks

  • How to write select statement before the loop and how to use read statemnt

    Hi,
    Recently our system has changed from 4.6 to ECC6.
    As its migrated its showing lots of errors like in between loop and endloop there should be no select statemnt........
    Can any one please tell how to write that coding in ECC6 , how can i change the code......
    In between loop and endloop i am having lots of select statemnts.....ple tell thye coding how can i select before the loop starts and
    how to read that internal table in loop.

    Hi Deepthi,
    You can do as per below:
    1) Select the required entries from the tables you need (VBAK, VBAP, KNA1, etc)
    SELECT VBELN ERDAT KUNNR
        into table it_vbak
        from VBAK
    where VBELN = S_VBELN. "Selection criteria
    If sy-subrc = 0.
    SELECT VBELN POSNR MATNR
        into table it_vbap
        from VBAP
    for all entries in it_vbak
    where VBELN = it_vbak-vbeln
    SELECT KUNNR NAME1
        into table it_vbak
        from VBAK
    where VBELN = it_vbak-vbeln.
    endif.
    2) Loop at the entries, and read internal table it-kna1 for customer info.
    Loop at it_vbak into wa_vbak.
    read table it_kna1 into wa_kna1 with key kunnr = wa_vbak-kunnr.
    if sy-subrc = 0.
    endif.
    loop at it_vbap into wa_vbap where vbeln = wa_vbak-vbeln.
    endloop.
    endloop.
    This is the basic idea and short example of how to extract entries and read internal table.
    Hope this helps.
    Regards,
    Patrick

  • How to write the dynamic code for RadioGroupByKey and Check Boxes?

    Hi,
    Experts,
    I have created a WD ABAP application in that i have used RadioGroupByKey and CheckBox Ui elements but i want how to write the dynamic code to that i want to display male and female to RadioGroupByKey and 10  lables to check boxs.
    Please pass me some idea on it and send any documents on it .
    Thanks in advance ,
    Shabeer ahmed.

    Refer this for check box:
    Do check :
    bind_checked property is bind to a node with cardinality of 1:1
    CHECK_BOX_NODE <---node name
    -CHECK_BOX_VALUE <--attribute name of type wdy_boolean
    put this code under your WDDOMODIFYVIEW:
    DATA:
    lr_container TYPE REF TO cl_wd_uielement_container,
    lr_checkbox TYPE REF TO cl_wd_checkbox.
    get a pointer to the RootUIElementContainer
    lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
    lr_checkbox = cl_wd_checkbox=>new_checkbox(
    text = 'WD_Processor'
    bind_checked = 'CHECK_BOX_NODE.CHECK_BOX_VALUE'
    view = view ).
    cl_wd_matrix_data=>new_matrix_data( element = lr_checkbox ).
    lr_container->add_child( lr_checkbox ).
    Refer this for Radiobutton :
    dynamic radio button in web dynpro abao
    Edited by: Saurav Mago on Jul 17, 2009 10:43 PM

  • How to share internet if the server connects to it via VPN?

    Hi, mac brothers! Need your help.
    I have a server with 2 ethernet cards (en0, en1). It connects to internet via VPN on en0. LAN clients connect to the server using en1. I can't share VPN internet connection to LAN %(. (tried to find the answer in the 10.4 server documentation, but there is nothing about it).
    I know how to share internet connection when there is no VPN - direct connection via DSL modem...
    Can you help me?
    PS; 0S X Server 10.4.11

    You need to use NAT and have the firewall running.
    And then you need to use the VPN connection (PPTP?) "interface" (when connected), probably ppp0 - not en0, in your NAT config. This can be achieved by dragging the config (small symbol in lower right corner in NAT config in Server Admin) to the desktop, edit it (look for en0 and change it to ppp0), save it, and then drag it back into the NAT config window and save.
    I think the VPN tunnel must be up before turning on NAT/firewall so if you reboot the server you might need to turn NAT/firewall off -> on to make it work again.
    If the WAN/ppp0 IP is not static (so you can enter it in your server DNS) you probably will have trouble with many of OS X services running in the server.
    Most OS X server installations using an Internet connection with a shifting public IP is better off by putting a NAT router which can do the in initial connection (by DHCP, PPTP, PPPoE, whatever), between it and the Internet.

  • HT1515 How to setup laptop use both 3G internet and audio via Airport Express

    Laptop connected to internet via 3G mobile phone network, but when connected simultaneously an Airport Express to stream audio, the laptop can not connect to internet as it try to connect internet through Airport Express. So how to setup to use both.

    Thanks jakeloveslucy.
    I tried to setup the network by using Airport Utility, the problem is Airport Utility can not find Airport Express while I can use Airport Express to stream music very well. Can you suggest to fix this.
    I use windows 7 64 bit sp1 ; Airport Utility 5.6.1.
    [img]http://no4.upanh.com/b2.s29.d3/cc356ba2635bf1f46b71912fa1e6ce43_46991874.2012070 8133759.jpg[/img]
    [img]http://no6.upanh.com/b4.s29.d4/a0f5f05c0f2ec0f5e94b40bc7c8e2986_46991876.2012070 8135000.jpg[/img]

  • How do you keep the same URL connection connected continuously?

    I am trying to extract information from a web page, but it puts a cust_id in the middle of the URL. It generates the cust_id randomly everytime you use the site. I connect to the initial URL to find the cust_id, I substring that to the new URL and then make a new connection to extract the information, but the web page gives me an error saying that it doesn't recognise the cust_id. As if it was a new connection with the wrong cust_id.
    How can I keep the first connection open and with the same cust_id information and then jump to another web page but using the initial connection. Using IE6 I can just cut and paste the second URL and get to the page, but with my java application it doesn?t work. Please have a look at my code and let me know if I am doing anything wrong.
    URL inputURL;
         String inputLine;
         URLConnection connection;
         String page = "";
         int x;
         String cust_id1 = "";
         String cust_id2 = "";
         String site;
         File outputFile = new File("web.txt");
         FileWriter out = new FileWriter(outputFile);
       try
         inputURL = new URL("http://www-ets.woolworths.com.au/ets/owa/login?topage=search");
         connection = inputURL.openConnection();
         BufferedReader inputStream = new BufferedReader(new InputStreamReader(connection.getInputStream()));
         while ((inputLine = inputStream.readLine()) != null)
              page = page + inputLine;
              System.out.println(inputLine);
              x = inputLine.indexOf("cust_id=");
              if (x != -1)
              cust_id1 = inputLine.substring(x, x + 14);
              PrintWriter file = new PrintWriter(new FileOutputStream("web.txt"));
              out.write(page);
              out.close();
              System.out.println("1st time successful");
              System.out.println(cust_id1);
              //inputStream.close();
              //extracted the customer id, now able to search for the product
              //test for milk
         site = "http://www-ets.woolworths.com.au/ets/owa/items?search_pattern=milk&";
         site = site + cust_id1;
         site = site + "&imode=search&search_option=";
         System.out.println(site);     
         inputURL = new URL(site);
         BufferedReader inagain = new BufferedReader(new InputStreamReader(inputURL.openStream()));
         //tried the connection way
         //connection = inputURL.openConnection();          
         //BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
         while ((inputLine = inagain.readLine()) != null)
              //System.out.println(inputLine);          
              x = inputLine.indexOf("cust_id=");
              if (x != -1)
              cust_id2 = inputLine.substring(x, x + 14);
              System.out.println(cust_id1);
              System.out.println(cust_id2);
              System.out.println("2nd time completed");
              inputStream.close();
       catch(ArrayIndexOutOfBoundsException obe)
                System.out.println("Usage: FetchURL url");
       catch(IOException ioe)
                System.out.println("IO Exception");

    Please have a quick look at my code and see if I am doing anything wrong. I havent been able to set the correct cookies and the output html page comes up with an error saying that it could not retrieve my request. This time there is no mention of invalid cust_id.
              try
                   URL inputURL = new URL("http://www-ets.woolworths.com.au/ets/owa/login?topage=search");
                   connection = inputURL.openConnection();
                   System.out.println("filename = " + inputURL.getFile());
                   BufferedReader inputStream = new BufferedReader(new InputStreamReader(connection.getInputStream()));
                   while ((inputLine = inputStream.readLine()) != null)
                        //System.out.println(inputLine);
                        page = page + inputLine;     
                        x = inputLine.indexOf("cust_id=");
                        if (x != -1)
                             cust_id = inputLine.substring(x + 8, x + 14);
                   out.write(page);
                   out.close();
                   System.out.println("extracted cust_id: " + cust_id);
                   for (int i = 1; i <= 30; ++i)
                        System.out.println("    Header " + i + ":  " + connection.getHeaderFieldKey(i) + ": " + connection.getHeaderField(i));
                        header = header + connection.getHeaderFieldKey(i);
                        header = header + ": ";
                        header = header + connection.getHeaderField(i);
                   outcookie.write(header);
                   outcookie.close();           
                   inputStream.close();          
                   //extracted the customer id, now able to search for the product
                   //test for milk
                   String url2 = "http://www-ets.woolworths.com.au/ets/owa/items";
                   //String url2 = "http://www-ets.woolworths.com.au/ets/owa/login?topage=search";
                   inputURL = new URL(url2);     
                   connection = inputURL.openConnection();     
                   connection.setDoOutput(true);
                   //connection.setUseCaches(false);
                   System.out.println("filename = " + inputURL.getFile());
                   String date = "; expires=Mon, 28 Jan 2002 02:53:17GMT; path/;";     
                   String date1 = "expires=Sun, 31 Dec 1989 14:00:00 GMT; path/;";
                   connection.setRequestProperty("cookie", "qwc=" + cust_id + date);
                   connection.setRequestProperty("cookie", "cust_id=" + cust_id + "; path=/;");
                   connection.setRequestProperty("cookie", "cd=2%40142%40%40%40%40N%40; path=/;");
                   connection.setRequestProperty("cookie", "state=NSW; path=/;");
                   connection.setRequestProperty("cookie", "dsd=1; path=/;");
                   connection.setRequestProperty("cookie", "sb1=0%2A%2D645746%2D0%2A; path=/;");
                   connection.setRequestProperty("cookie", "sb2=0; " + date1);
                   connection.setRequestProperty("cookie", "sb3=0; " + date1);
                   connection.setRequestProperty("cookie", "sb4=0; " + date1);
                   connection.setRequestProperty("cookie", "sb5=0; " + date1);
                   connection.setRequestProperty("cookie", "sb6=0; " + date1);
                   connection.setRequestProperty("cookie", "sb7=0; " + date1);
                   connection.setRequestProperty("cookie", "sb8=0; " + date1);
                   connection.setRequestProperty("cookie", "sb9=0; " + date1);
                   connection.setRequestProperty("cookie", "sb10=0; " + date1);
                   connection.setRequestProperty("cookie", "sbn=; path=/");
                   connection.setRequestProperty("cookie", "search=milk; " + date1);               
                   //connection.setRequestProperty("Content-type", "application/octet-stram");
                   //connection.setRequestProperty("Content-type", "application/x-www-form-urlencoded");
                   //String parms = "?search_pattern=" + URLEncoder.encode("milk") + "&cust_id=";
                   //parms = parms + URLEncoder.encode(cust_id);
                   //parms = parms + "&imode=" + URLEncoder.encode("search") + "&search_option=";
                   //System.out.println("parms : " + parms);
                   String parms = "?search_pattern=milk&cust_id=";
                   parms = parms + cust_id;
                   parms = parms + "&imode=search&search_option=";
                   System.out.println("parms : " + parms);
                   PrintWriter outStream = new PrintWriter(connection.getOutputStream());
                   outStream.println("parms");
                   outStream.close();               
                   BufferedReader inputStream1 = new BufferedReader(new InputStreamReader(connection.getInputStream()));     
                   //BufferedReader inagain = new BufferedReader(new InputStreamReader(connection.getInputStream()));
                   while ((inputLine = inputStream1.readLine()) != null)
                        //System.out.println(inputLine);
                        page2 = page2 + inputLine;
                        x = inputLine.indexOf("cust_id=");
                        if (x != -1)
                             cust_id2 = inputLine.substring(x + 8, x + 14);
                   out2.write(page2);
                   out2.close();
                   System.out.println("2nd attempt cust_id" + cust_id2);
                   for (int i = 1; i <= 30; ++i)
                        System.out.println("    Header " + i + ":  " + connection.getHeaderFieldKey(i) + ": " + connection.getHeaderField(i));
                        header2 = header2 + connection.getHeaderFieldKey(i);
                        header2 = header2 + ": ";
                        header2 = header2 + connection.getHeaderField(i);
                   outcookie2.write(header2);
                   outcookie2.close();      
                   inputStream.close();
              }The original web page to get the cookie is
    http://www-ets.woolworths.com.au/ets/owa/login?topage=search
    Enter a search product eg milk and that is the second page I am trying to extract.
    You will notice in the middle of the url is cust_id.
    Am I going about this 2 pages completely wrong?

  • How do I get adobe pdf to connect and appear back on Microsoft Oulook next to the help button?

    Adobe Acrobat 9 is on most of our computers and is connected
    to Micrsoft Oulook email because the adobe pdf button is next to the help button in Oulook.  For some reason it has disappeared on one of the computers and don't know why and now how do we fix that?  Thank you for any help on this.

    Hi "law12",
    Could you please check if PDFMaker(s) are supported on the version of Office installed on that m/c? Kindly refer http://kb2.adobe.com/cps/333/333504.html.
    If it is a supported version, check if the PDFMaker Add-In is not disabled somehow: Go to HELP > DISABLED ITEMS > Check for the PDFMaker entry, if it is there, enable it > re-launch Outlook.
    Thanks!

  • How to write a query with group by and order by for a date column

    I have a query:
    select count(*), to_char(s.pdate,'Mon-yyyy') as month from sTable s
    group by to_char(s.pdate,'Mon-yyyy')
    order by to_date(s.pdate,'Mon-yyyy')
    However, I got an error: not a GROUP By expression.
    If i just run: select count(*), to_char(s.pdate,'Mon-yyyy') as month from sTable s
    group by to_char(s.pdate,'Mon-yyyy')
    it is work fine.
    How to solve the problem.
    Thanks,
    Jen

    Jen,
    You can use this code
    with sTable as (select to_date('01/01/2009', 'dd/mm/yyyy') pdate,  1 code from dual union all
                  select to_date('02/02/2009', 'dd/mm/yyyy') a, 2 code from dual union all
                  select to_date('01/03/2009', 'dd/mm/yyyy') d, 3 code from dual union all
                  select to_date('05/04/2009', 'dd/mm/yyyy') g, 4 code from dual union all
                  select to_date('05/05/2009', 'dd/mm/yyyy') g, 4 code from dual union all
                  select to_date('05/06/2009', 'dd/mm/yyyy') g, 4 code from dual union all
                  select to_date('05/07/2009', 'dd/mm/yyyy') g, 4 code from dual union all
                  select to_date('05/08/2009', 'dd/mm/yyyy') g, 4 code from dual union all
                  select to_date('05/09/2009', 'dd/mm/yyyy') g, 4 code from dual union all
                  select to_date('05/10/2009', 'dd/mm/yyyy') g, 4 code from dual union all
                  select to_date('05/11/2009', 'dd/mm/yyyy') g, 4 code from dual union all
                  select to_date('05/12/2009', 'dd/mm/yyyy') h, 5 code from dual)
    select cnt, to_char(to_date(mnt||'01', 'yyyymmdd'), 'Mon-yyyy')
      from (select count(*) cnt, to_char(s.pdate,'yyyymm') as mnt
              from sTable s
             group by to_char(s.pdate,'yyyymm')
             order by to_char(s.pdate,'yyyymm')
           CNT MONTH
             1 Jan-2009
             1 Feb-2009
             1 Mar-2009
             1 Apr-2009
             1 May-2009
             1 Jun-2009
             1 Jul-2009
             1 Aug-2009
             1 Sep-2009
             1 Oct-2009
             1 Nov-2009
             1 Dec-2009
    12 rows selectedyour problem was that you are using a expresión in the order by (to_date...) that is distinct to the query results (to_char...).
    Regards,
    Mike

  • How to write the query for year revenue and avg

    Hello Team
    I have the table
    create table sale (sale_id varchar2(32) not null, sale_epoch_microsec numeric(18,0)
          not null, sale_amount_cents numeric(18,0) not null, customer_id varchar2(32)
          not null, industry_id varchar2(32) not null, product_id varchar2(32) not null)The industry the customer is considered to be in can change from sale to sale. sale_epoch_microsec is microseconds since epoch; sale_amount_cents is the value of the sale in pennies.
    The data in this is:
    Insert into SALE
       (SALE_ID, SALE_EPOCH_MICROSEC, SALE_AMOUNT_CENTS, CUSTOMER_ID, INDUSTRY_ID,
        PRODUCT_ID)
    Values
       ('s1', 200000000, 69985484589459, 'c1', 'i1',
        'p1');
    Insert into SALE
       (SALE_ID, SALE_EPOCH_MICROSEC, SALE_AMOUNT_CENTS, CUSTOMER_ID, INDUSTRY_ID,
        PRODUCT_ID)
    Values
       ('s2', 200000000, 69985484589459, 'c2', 'i2',
        'p2');
    Insert into SALE
       (SALE_ID, SALE_EPOCH_MICROSEC, SALE_AMOUNT_CENTS, CUSTOMER_ID, INDUSTRY_ID,
        PRODUCT_ID)
    Values
       ('s3', 6579000000, 6.99675342390895E16, 'c3', 'i3',
        'p3');
    Insert into SALE
       (SALE_ID, SALE_EPOCH_MICROSEC, SALE_AMOUNT_CENTS, CUSTOMER_ID, INDUSTRY_ID,
        PRODUCT_ID)
    Values
       ('s4', 6.5866459684979E17, 6.99675343454391E17, 'c4', 'i4',
        'p4');
          1.) SQL: Write the SQL query to determine, year-over-year, the total revenue and avg. per-product revenue from customers in the 'Gaming' industry.

    josh1612 wrote:
    As in the question it's mentioned that the date is in microseconds,
    So i need the guidence to convert that to the date .Convert microseconds to seconds and then you may be able to use the function below which was found here:
    http://www.oracle.com/technology/pub/articles/oracle_php_cookbook/fuecks_dates.html
    CREATE OR REPLACE
        FUNCTION unixts_to_date(unixts IN PLS_INTEGER) RETURN DATE IS
             * Converts a UNIX timestamp into an Oracle DATE
            unix_epoch DATE := TO_DATE('19700101000000','YYYYMMDDHH24MISS');
            max_ts PLS_INTEGER := 2145916799; -- 2938-12-31 23:59:59
            min_ts PLS_INTEGER := -2114380800; -- 1903-01-01 00:00:00
            oracle_date DATE;
            BEGIN
                IF unixts > max_ts THEN
                    RAISE_APPLICATION_ERROR(
                        -20901,
                        'UNIX timestamp too large for 32 bit limit'
                ELSIF unixts < min_ts THEN
                    RAISE_APPLICATION_ERROR(
                        -20901,
                        'UNIX timestamp too small for 32 bit limit' );
                ELSE
                    oracle_date := unix_epoch + NUMTODSINTERVAL(unixts, 'SECOND');
                END IF;
                RETURN (oracle_date);
        END;

  • How can I fool around with url names and webapps?

    I want to set up a hosted service where when someone buys, they get a url like so they can go to .....
    http://xsoftware.biz/<companyName>
    When they go to this url, I want the servlet container to be using one app(a default app), and when they go to this url.....
    http://xsoftware.biz/<companyName>/<appName>
    they go to appName1. Now for the twist.....I would want these two urls to use the same app....(they would hook to different db based on company name)
    http://xsoftware.biz/company1/app1
    http://xsoftware.biz/company2/app1
    Is anything like this even possible? I am thinking some sort of servlet filter sits before every app. That filter willl modify the url to http://xsoftware.biz/app1 and set a property in the request to the companyName for later use by the application. For redirects within the app(JSF), I think I can redirect to something like http://xsoftware.biz/company1/app1/redirectee.jsf and the filter will be applied again. Does this solution work? thoughts? Is there a better solution for this?
    thanks,
    dean

    Same issue here! Unsolved after YEARS of this issue.
    I dig through the downloads folder and paste a copied file name at least 15 times a day.
    And Mountain Lion was supposed to be a big push for Chinese language users. Still a fail.
    Really want to be a Safari supporter - would love to see this solved, Apple.

Maybe you are looking for

  • RIO server could not be found on the specified remote system

    When trying to add a cRIO9074 to an empty project, I get the following message:   The RIO server could not be found on the specified remote system. Ensure that NI-RIO software is installed and that the RIO server is running and properly configured. B

  • Can I export clips with the poster frame already set?

    Does anyone know how to do this? - I want to set custom poster frames in FCP and have them remain as the set poster frames in the mov clips that I export so I don't have to open the individual clips in QuickTime and re-set the poster frames from ther

  • BEx query not getting reflected correctly in OLAP workspace

    Hi, I have an OLAP workspace based on a BEx query. Everything works fine with BEx query and We can see the BEx report as required. But in OLAP workspace for one of the feilds (profit center), the workspace is coming with the Texts but not keys. Keys

  • Importing error: related to function-based indexes?

    I've come across a strange error. I've got a user that has an export dump file who wants me to import the data into a new database. (Its an Oracle 10G database.) When I use the 'imp' command, the table import completes successfully, but I end up rece

  • Trying to reinstall lion os on MacBook

    I am trying to reinstall lion on my MacBook air, but it just says its trying to verify details with apple but nothing else happens? When I boot up the MacBook, a utilities window opens with 4 options to choose from. I select reinstall mac os x and th