HttpURLConnection is not giving the expected output.

I am using HttpURLConnection to post a URL to a server which will return back an xml. I am using the following code and it's only returning a HTML page as output.
Code :
URL url = new URL(strURL);
HttpURLConnection connection = (HttpURLConnection)url.openConnection();
connection.setRequestProperty("Content-Type", "text/xml");
connection.setDoOutput(true);
connection.setRequestMethod("POST");
OutputStreamWriter out = new OutputStreamWriter(connection.getOutputStream());
out.write(sbContent.toString());
out.flush();
out.close();
in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
String inputLine = "";
StringBuffer outputString=new StringBuffer();
while ((inputLine = in.readLine()) != null) {
     outputString.append(inputLine);
in.close();               
The outputString here returns a HTML, but it is suppose to return back an XML.
Can anyone help me out in this.?
Thanks,

Hi,
Yeah, I saw the logger and it's returning a HTML page which is the authorization page to enter the Server which I am posting the URL. It's not the HTML version of the XML file which I am expecting.
Is the way which I am passing the session parameter correct? Please find below the code snippet for the method which I have.
Thanks,
Mala.S
public Document parseFileLeaveDetails(String sDate, String eDate, String strUpi, String sessionParam) {
     String larsURLFromProp = ProjPortalIRIS4URLs.getIRIS4URLsFromProperty("LeaveDetails");
     BufferedReader in;
     Document doc = null;
try {
     StringBuffer sbContent = new StringBuffer();
     sbContent.append("&start_dt=");
     sbContent.append(sDate);
     sbContent.append("&end_dt=");
     sbContent.append(eDate);
     sbContent.append(strUpi);
     sbContent.append("&SMSESSION=");
     sbContent.append(sessionParam);
     logger.debug("sbContent::"+sbContent);
     URL url = new URL(larsURLFromProp);
     logger.debug("The url is:::"+url);
     HttpURLConnection connection = (HttpURLConnection)url.openConnection();
     connection.setRequestProperty("Content-Type", "text/xml");
     connection.setDoOutput(true);
     connection.setRequestMethod("POST");
     OutputStreamWriter out = new OutputStreamWriter(connection.getOutputStream());
     out.write(sbContent.toString());
     out.flush();
     out.close();
     in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
     String inputLine = "";
     StringBuffer outputString=new StringBuffer();
     while ((inputLine = in.readLine()) != null) {
     logger.debug("inputLine::::"+inputLine);
          outputString.append(inputLine);
     in.close();               
     doc = parseFileLeave(outputString.toString());
     } catch(MalformedURLException me) {
     logger.debug("MarformedException ::"+me.getMessage());
     } catch(IOException ioe) {
     logger.debug("IOException ::"+ioe.getMessage());
     return doc;
}

Similar Messages

  • Not getting the expected output in report, run throughapps

    hi,
    when i run the report through apps, there are some records missing. But, i executed the same query in TOAD, which is used in the data model of the report, and i got the expected output. But, the same, when run through apps, not giving the result.
    Can anybody please help me in this regard?
    Thanks,
    maschender

    You should probably ask in
    PL/SQL
    Note: Make Sure you post your table structure, your sample query and expected output.

  • SsIncludeXml does not return the expected output

    Hi
    In the context of SiteStudio 10gR4:
    I want to emulate a simple key-value-map using a static list. The purpose is enable authors to reference frequently-changed text-variables and maintain them in a single file.
    When I attempt to use the ssIncludeXml function to place the value on a page, I get no result outputted. I have checked (using the XML-features in Oracle JDeveloper 11g) that the XPath actually evaluates to the expected value (FLAF_VAL_1). When I call the ssGetXmlNodeCount function with the same arguments, I get the result "0".
    What am I doing wrong? Is there any limitations on the kinds of XPath expressions that ssIncludeXml will evaluate?
    Thanks!
    I use this snippet to include the value:
    [!--$ ssIncludeXml("KEYVAL_TEST", "//wcm:element[@name='Key'][text()='FLAF_KEY_1']/../wcm:element[@name='Value']/node()") --]And this is my test file in the document KEYVAL_TEST:
    <?xml version="1.0" encoding="UTF-8"?>
    <wcm:root xmlns:wcm="http://www.stellent.com/wcm-data/ns/8.0.0" version="8.0.0.0">
    <wcm:list name="KeyValuePairs">
        <wcm:row>
          <wcm:element name="Key">FLAF_KEY_1</wcm:element>
          <wcm:element name="Value">FLAF_VAL_1</wcm:element>
        </wcm:row>
        <wcm:row>
          <wcm:element name="Key">FLAF_KEY_2</wcm:element>
          <wcm:element name="Value">FLAF_VAL_2</wcm:element>
        </wcm:row>
      </wcm:list>
    </wcm:root>

    Thank you for your reply!! It is great getting some helpful input to help me move forward on this issue!
    2. What you are doing in the example is a bit simpler and not really sufficient to express the query, I need to perform.
    I need to select the contents of a Value-element based on the value in corresponding Key-element in the row.
    This can easily be formulated using XPath. I have already posted a few different XPath expressions that are equvalent for this XML-file. Each of the expressions works perfectly in JDeveloper when querying the XML-file, and yet fails in Site Studio.
    The [Technical Reference|http://download.oracle.com/docs/cd/E10316_01/ouc.htm] states:
    This script extension is a core Site Studio method that allows any element within managed XML file to be extracted and returned in an Idoc string variable, which be placed directly on a web page as an HTML snippet. The content of the XML node that is being extracted will be further evaluated in the scope of the current layout and therefore can include further server-side Idoc Script, if necessary.
    The parameters are:
    - dDocName of XML data file
    - XPath expression (to identify a specific node or nodes of the XML data file)
    Do you know what implementation of the XPath language is used in Site Studio?
    Is it a subset of the language (the Technical Reference does not mention this at all)? Which subset?
    Here is another XPath expression that works perfectly well in JDeveloper and fails in Site Studio:wcm:root/wcm:list/wcm:row[child::wcm:element[@name='Key']/text()[.='FLAF_KEY_1']]/wcm:element[@name='Value']/node()Any insights are appreciated! :-)

  • Regular expression not giving the required output.

    Hi , I have msgs that look like this :
    dear john smith you Bought 500 shares of Nile Cotton Ginning at 14.9 L.E On 21/01/10
    Im using the Regular expression to get 4 substrings of this msg
    1-Bought|Sold
    2-Quantity of shares (ex: 500)
    3-Name of the stock (ex:Nile Cotton Ginning)
    4-price (ex:14.9)
    Here is my code , but the output returns the whole msg back :
    select SMSID,SMSNO,CUSTOMERACCOUNTID,SENDDATE,ENTRYDATE,
    regexp_replace(trim(regexp_replace(SMSTEXT,'^.* you (Sold|Bought)(.*) of (.*) at (.*)','\1')),'(watheeqa)') buy_sell
    regexp_replace(trim(regexp_replace(SMSTEXT,'^.* you (Sold|Bought)(.*) of (.*) at (.*)','\2')),'(watheeqa)') amount ,
    regexp_replace(trim(regexp_replace(SMSTEXT,'^.* you (Sold|Bought)(.*) of (.*) at (.*)','\3')),'(watheeqa)') company ,
    regexp_replace(trim(regexp_replace(SMSTEXT,'^.* you (Sold|Bought)(.*) of (.*) at ([0-9]*\.[0-9]*|[0-9][^A-Z][^a-z]) .*','\4')),'(watheeqa)') price
    from SMSOUTMSG@bimsic s
    where trunc(SENDDATE) = trunc(sysdate) -1
    and exists (select 1 from PHONEDETAIL@bimsic p
                where s.CUSTOMERACCOUNTID = p.CUSTOMERACCOUNTID
                and SMSFLAG = 1);Thanks.

    It does check it out
    with t
    as
    select 'dear john smith you Bought 500 shares of Nile Cotton Ginning at 14.9 L.E On 21/01/10' smstext from dual
    select
    regexp_replace(trim(regexp_replace(SMSTEXT,'^.* you (Sold|Bought)(.*) of (.*) at (.*)','\1')),'(watheeqa)') buy_sell,
    regexp_replace(trim(regexp_replace(SMSTEXT,'^.* you (Sold|Bought)(.*) of (.*) at (.*)','\2')),'(watheeqa)') amount ,
    regexp_replace(trim(regexp_replace(SMSTEXT,'^.* you (Sold|Bought)(.*) of (.*) at (.*)','\3')),'(watheeqa)') company ,
    regexp_replace(trim(regexp_replace(SMSTEXT,'^.* you (Sold|Bought)(.*) of (.*) at ([0-9]*\.[0-9]*|[0-9][^A-Z][^a-z]) .*','\4')),'(watheeqa)') price
    from t

  • Why is my zero order hold not giving the expected result?

    I am trying to replicate the functionality of the Discrete Order Hold Function so that I can use it without having to have a ''Control and Simulation Loop''. The attachment desiredresult.vi shows an example of the Discrete Order Hold Function inside the ''Control and Simulation Loop''. The other attachment (zeroorderholdquestion.vi) shows my attempt at achieving the same result. I multiplied the while loop index by the sampling period to get the array index for the resampled y-output. I based this on my understanding of the formula for Discrete Order Hold given under http://zone.ni.com/reference/en-XX/help/371894G-01/lvsim/sim_dzoh/#details.
    However, I am having difficulty getting the frequency of the waveforms before and after resampling to match up. (See attachment for clarity on what I mean by this). Any suggestions on what I am doing wrong?
    Solved!
    Go to Solution.
    Attachments:
    zeroorderholdquestion.vi ‏207 KB
    desiredresult.vi ‏244 KB

    here i wrote something maybe similar to simulate a multi channel, mux, sample and hold with cross talk
    http://forums.ni.com/t5/LabVIEW/How-can-I-create-and-sample-and-hold-circuit-in-Labview/m-p/2407256#...
    If samplerate and hold time have a clean ratio  you just need the decimate vi
    another simple version:
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • PAYABLES NOT GETTING THE REPORT OUTPUT IN PDF AFTER APPLYING RUP5 R12

    Hi All,
    RDBMS:10.2.0.3.0
    Oracle Apps :12.0.4
    OS:AIX 5.3
    Problem Description:
    We are presently facing an issue in Payables not getting the report output in PDF esp for the reports "Invoice Register", Invoice Hold Report and also other reports. We were able to generate the reports till our last test performed on last Thursday. This instance was cloned over the last weekend and probably the new upgrade to RUP5 R12,would have impacted it.
    Concurrent Programs submitted are completed normal but on clicking "view output" results in Blank PDF output.
    The error message what was shown is as below:
    "Adobe Reader could not open 'AcrC.tmp' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded)".
    Where could we locate ther above 'AcrC.tmp' of Adobe Reader..
    could anyone please share such an experience encountered for resolution..
    Would appreciate an early response..
    Thanks for your time!
    Regards,

    I suggest you speak to your DBA/sysadmin. This is not likely to be a reports problem.
    Check that you can see the output from apps through the viewer (the report may not hav output anything)
    Check whether you can print anything on that printer from apps.
    May also be worth checking to see if you can print to another printer from this report.

  • App.activeDocument.name  not giving the new name entered in save as option from the script

    When I open a document and use save as option and enter a new name. The app.activeDocument.name object is still giving me the old file name, it not giving the new file name that was entered in the save as option. However this issue is comming when I open a document and use the save as option for the first time. From then on for any number of times I use the save as option it gives me the new name.

    Hi,
    In my case I am calling the script from my AI plugin(this is developed in c++) .  My plugin will be called when ever there is a event,  suppose I do ctrl+shift+s ( i,e File > Save as from Illustrator) , then my plugin will call the script.
    Script that I am using:
       var doc = app.activeDocument;
       alert (doc.name);
       var dest;
       var options= new IllustratorSaveOptions();
       dest = new File(app.activeDocument.path + '/' + doc.name);      
       doc.saveAs(dest, options);

  • Get_ddl Not giving the entire DDL

    Hi,
    SQL> select dbms_metadata.get_ddl('TABLE','CS_CSG_SYSTEMS') from dual;
    DBMS_METADATA.GET_DDL('TABLE','CS_CSG_SYSTEMS')
      CREATE TABLE "CUSTSRV"."CS_CSG_SYSTEMS"
       (    "RECORD_NO" NUMBER(15,0),
            "SY
    SQL> desc cs_csg_systems;
    Name                                      Null?    Type
    RECORD_NO                                 NOT NULL NUMBER(15)
    SYSTEM_NO                                          NUMBER(15)
    APP_TYPE                                           VARCHAR2(20)
    SUB_APP_TYPE                                       VARCHAR2(20)
    INCLUDE_FLAG                                       NUMBER(1)
    PRIN_NO                                            NUMBER(4)Why is the get_ddl function not giving the entire ddl ?
    Thanks
    Rajiv

    I think this is it ?
    SQL> set long 2000
    SQL> select dbms_metadata.get_ddl('TABLE','CS_CSG_SYSTEMS') from dual;
    DBMS_METADATA.GET_DDL('TABLE','CS_CSG_SYSTEMS')
      CREATE TABLE "CUSTSRV"."CS_CSG_SYSTEMS"
       (    "RECORD_NO" NUMBER(15,0),
            "SYSTEM_NO" NUMBER(15,0),
            "APP_TYPE" VARCHAR2(20),
            "SUB_APP_TYPE" VARCHAR2(20),
            "INCLUDE_FLAG" NUMBER(1,0),
            "PRIN_NO" NUMBER(4,0),
             CONSTRAINT "CS_CSG_SYSTEMS_PK" PRIMARY KEY ("RECORD_NO")
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255
      STORAGE(INITIAL 524288 NEXT 524288 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "CUST_SML_X"  ENABLE
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 1048576 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "CUST_SML_D"

  • Illustrator Launch Error: Windows registry was not in the expected state.

    Hi All,
    I just upgraded to CS3 Design Premium, and I'm I'm getting the following error when I launch Illustrator:
    "The Windows registry was not in the expected state. PLease run the Illustrator installer to correct this problem. Illustrator will continue to run, but may not operate properly."
    I'm running Vista Ultimate x64 on a dual Xeon workstation with 4GB of RAM. I found the following article in the knowledgebase, but it did not solve the problem:
    http://www.adobe.com/go/kb401602
    I have also uninstalled CS2, reinstalled CS3 and reinstalled CS3 *again*.
    Illustrator does run, but it's slow and unstable. Any thoughts on what's going on and what I can do to fix it? Many thanks!
    --Jim.

    Hello, any solution on this problem? I've got the problem with Illustrator CS3, XP where I get the registry error at startup and I can't open any .ai files on my computer from explorer. I can open the files by opening from Illustrator. Here's my registry entry:
    Registry key not found: .ai
    Expected string: Adobe.Illustrator.13
    Registry key not found: .eps
    Expected string: Adobe.Illustrator.EPS
    Registry key not found: .hyp
    Expected string: Adobe.Illustrator.Hyphen
    Registry key not found: Adobe.Illustrator.Hyphen
    Expected string: Adobe Illustrator Hyphenation Dictionary
    Registry key not found: Adobe.Illustrator.Hyphen\DefaultIcon
    Expected string: C:\Program Files\Adobe\Adobe Illustrator CS3\Support Files\Contents\Windows\Illustrator.exe,4
    Registry key not found: .aip
    Expected string: Adobe.Illustrator.Plugin
    Registry key not found: Adobe.Illustrator.Plugin
    Expected string: Adobe Illustrator Plugin
    Registry key not found: Adobe.Illustrator.Plugin\DefaultIcon
    Expected string: C:\Program Files\Adobe\Adobe Illustrator CS3\Support Files\Contents\Windows\Illustrator.exe,5
    Registry key not found: .flt
    Expected string: Adobe.Illustrator.Filter
    Registry key not found: Adobe.Illustrator.Filter
    Expected string: Adobe Illustrator Filter
    Registry key not found: Adobe.Illustrator.Filter\DefaultIcon
    Expected string: C:\Program Files\Adobe\Adobe Illustrator CS3\Support Files\Contents\Windows\Illustrator.exe,6
    Registry key not found: .dct
    Expected string: Adobe.Illustrator.Dictionary
    Registry key not found: Adobe.Illustrator.Dictionary
    Expected string: Adobe Illustrator Spelling Dictionary
    Registry key not found: Adobe.Illustrator.Dictionary\DefaultIcon
    Expected string: C:\Program Files\Adobe\Adobe Illustrator CS3\Support Files\Contents\Windows\Illustrator.exe,7
    Registry key not found: .sbx
    Expected string: Adobe.Illustrator.Tsume
    Registry key not found: Adobe.Illustrator.Tsume
    Expected string: Adobe Illustrator Tsume File
    Registry key not found: Adobe.Illustrator.Tsume\DefaultIcon
    Expected string: C:\Program Files\Adobe\Adobe Illustrator CS3\Support Files\Contents\Windows\Illustrator.exe,8
    Registry key not found: .aia
    Expected string: Adobe.Illustrator.Action
    Registry key not found: Adobe.Illustrator.Action
    Expected string: Adobe Illustrator Action File
    Registry key not found: Adobe.Illustrator.Action\DefaultIcon
    Expected string: C:\Program Files\Adobe\Adobe Illustrator CS3\Support Files\Contents\Windows\Illustrator.exe,10
    Registry key validated: .ase
    Registry key validated: Adobe.Illustrator.SwatchExchange
    Registry key validated: Adobe.Illustrator.SwatchExchange\DefaultIcon
    Registry key validated: .acb
    Registry key validated: .acbl
    Registry key validated: Adobe.Illustrator.ColorBook
    Registry key validated: Adobe.Illustrator.ColorBook\DefaultIcon
    Registry key validated: .8bf
    Registry key validated: .8bi
    Registry key validated: Adobe.Photoshop.Plugin
    Registry key validated: Adobe.Photoshop.Plugin\DefaultIcon
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\ProgID
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\VersionIndependentProgID
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\LocalServer32
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\InProcHandler
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\InProcHandler32
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\verb
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\verb\-3
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\verb\-2
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\verb\-1
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\verb\0
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\AuxUserType
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\AuxUserType\2
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\AuxUserType\3
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\MiscStatus
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\MiscStatus\4
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\Insertable
    Registry key validated: CLSID\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\DefaultIcon
    Registry key validated: Adobe.Illustrator.13\
    Registry key validated: Adobe.Illustrator.13\CLSID
    Registry key validated: Adobe.Illustrator.13\Insertable
    Registry key validated: Adobe.Illustrator.13\.ai\DefaultIcon
    Registry key validated: Adobe.Illustrator.13\.eps\DefaultIcon
    Registry key validated: Adobe.Illustrator.13\.prf\DefaultIcon
    Registry key validated: Adobe.Illustrator.13\.hyp\DefaultIcon
    Registry key validated: Adobe.Illustrator.13\.aip\DefaultIcon
    Registry key validated: Adobe.Illustrator.13\.flt\DefaultIcon
    Registry key validated: Adobe.Illustrator.13\.dct\DefaultIcon
    Registry key validated: Adobe.Illustrator.13\.sbx\DefaultIcon
    Registry key validated: Adobe.Illustrator.13\.8bf\DefaultIcon
    Registry key validated: Adobe.Illustrator.13\.8bi\DefaultIcon
    Registry key validated: Adobe.Illustrator.13\.aia\DefaultIcon
    Registry key validated: Adobe.Illustrator.13\.ase\DefaultIcon
    Registry key validated: Adobe.Illustrator.13\DefaultIcon
    Registry key validated: Adobe.Illustrator.13\shell
    Registry key validated: Adobe.Illustrator.13\shell\open
    Registry key validated: Adobe.Illustrator.13\shell\open\command
    Registry key validated: Adobe.Illustrator.13\shell\print\command
    Registry key validated: Adobe.Illustrator.13\shell\edit\command
    Registry key validated: Adobe.Illustrator.13\shell\edit
    Registry key not found: Adobe.Illustrator.EPS\
    Expected string: Encapsulated PostScript
    Registry key not found: Adobe.Illustrator.EPS\CLSID
    Expected string: {CFE97CDD-836F-4c78-B6B7-A36DD433892E}
    Registry key not found: Adobe.Illustrator.EPS\Insertable
    Expected string:
    Registry key not found: Adobe.Illustrator.EPS\DefaultIcon
    Expected string: C:\Program Files\Adobe\Adobe Illustrator CS3\Support Files\Contents\Windows\Illustrator.exe,2
    Registry key not found: Adobe.Illustrator.EPS\shell
    Expected string:
    Registry key not found: Adobe.Illustrator.EPS\shell\open
    Expected string:
    Registry key not found: Adobe.Illustrator.EPS\shell\open\command
    Expected string: "C:\Program Files\Adobe\Adobe Illustrator CS3\Support Files\Contents\Windows\Illustrator.exe" "%1"
    Registry key not found: Adobe.Illustrator.EPS\shell\print\command
    Expected string: "C:\Program Files\Adobe\Adobe Illustrator CS3\Support Files\Contents\Windows\Illustrator.exe" /p "%1"
    Registry key validated: Adobe.Illustrator.EPS\shell\edit\command
    Registry key validated: Adobe.Illustrator.EPS\shell\edit
    Registry key not found: Adobe.Illustrator\
    Expected string: Adobe Illustrator Artwork 13.0
    Registry key not found: Adobe.Illustrator\CLSID
    Expected string: {CFE97CDD-836F-4c78-B6B7-A36DD433892E}
    Registry key not found: Adobe.Illustrator\CurVer
    Expected string: Adobe.Illustrator.13
    Registry key validated: Adobe.Illustrator.13\protocol
    Registry key validated: Adobe.Illustrator.13\protocol\StdFileEditing
    Registry key validated: Adobe.Illustrator.13\protocol\StdFileEditing\server
    Registry key not found: Illustrator.Artwork\NotInsertable
    Expected string:
    Registry key validated: FileType\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}
    Registry key validated: FileType\{CFE97CDD-836F-4c78-B6B7-A36DD433892E}\0
    OK: Key not found as expected: Adobe.Illustrator.7\shellex\IconHandler
    OK: Key not found as expected: Adobe.Illustrator.7\shellex\PropertySheetHandlers\AIPage
    OK: Key not found as expected: Adobe.Illustrator.7\shellex\PropertySheetHandlers
    OK: Key not found as expected: Adobe.Illustrator.7\shellex
    OK: Key not found as expected: CLSID\{697EE7C0-334C-11D0-B826-0020AF

  • The declared package does not match the expected package

    I was given some Java code that I need to get working and then make some improvements on, but I'm still in the process of learning Java and the IDE Eclipse as well. There is a package called MyGUI and most of the files in that package had the error "The declared package MyGui does not match the expected package MyGUI" as a result of the inconsistent case, so I changed all of the first lines "package MyGui" to "package MyGUI" and this fixed all of those problems except for one.
    There is still one file where it gives this error message even though I changed the code the same way I did for the other files. I can't figure why this file is different. I saved it and I also refreshed everything, but it still gives me the error message "The declared package MyGui does not match the expected package MyGUI" although the package is clearly declared as "MyGUI".
    Does anyone have an idea of why this would be? I am very new to Eclipse and Java, so I don't really know how to go about solving errors yet.

    Forget the IDE until you get a handle on basic concepts like packages and classpath.
    The error you're talking about comes when a .java or .class file is not in a directory that matches its declared package.
    Let's say that CLASSPATH_ROOT is the only element in your classpath. If you have a class that is declared like so:
    package com.foo;
    class Bar {}Then, you must have CLASSPATH_ROOT/com/foo/Bar.java or CLASSPATH_ROOT/com/foo/Bar.class.
    The language rules for .java files are not as strict as those for .class files, but some compilers may expect them to be the same, and it's a good idea to do so even if it's not strictly necessary, for clarity's sake.
    Also, even though Windows' file system is not case sensitive--that is it considers FOO.class and foo.class the same file name--Java is. You probably can't directly rename FOO.java to Foo.java in Windows, as it will say it's the same name, so if you need to change the case, rename it to a different name, than back to Foo with the correct case.
    Edited by: jverd on Mar 29, 2009 12:07 PM

  • The publisher of the uploaded package does not match the expected publisher . The publisher for this app is expected

    I have a Windows Phone Silverlight 8.1 project that i am trying to publish
    The publisher in the uploaded package does not match the
    expected publisher. The expected publisher for this app is: "CN=00000000-8F5B-44B4-BFC6-F16FB18F2358"
    I have the same Publisher Id set in the WMAppManifest file
    help me 
    thank you 

    Hi kadir u,
    >>The publisher in the uploaded package does not match the expected publisher. The expected publisher for this app is: "CN=00000000-8F5B-44B4-BFC6-F16FB18F2358"
    Based on the error information, we can see that the publisher value does not have the correct one. So please try to open the Package.appxmanifest, then modify the Publisher as "CN=00000000-8F5B-44B4-BFC6-F16FB18F2358":
    <Identity Name="*******"
    Publisher="CN=00000000-8F5B-44B4-BFC6-F16FB18F2358"
    Version="1.0.0.0" />
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • The publisher in the uploaded package does not match the expected publisher.

    I have an existing Windows Phone 8 application in which I wish to release an update to. This update includes new features as well as targets the 8.1 platform. Because of an unknown problem with the original Visual Studio project
    where the app stopped being able to be deployed to test devices, it was faster to create a new Visual Studio project and copy over the existing code and assets than try and find the issue in the original project. This lead to the publisher GUIDs being different
    between the new and original projects.  
    Now when I try and submit the updated package within the Windows Phone Online dashboard I get the following error message "The publisher in the uploaded package does not match the expected publisher. The expected publisher
    for this app is: "CN=0745C81D-D1ED-49ED-A219-C546B5F31DE5"".
    I have updated both the WMAppManifest and Package.appxmanifest so that they have the following attributes and information:
    Package.appxmanifest (PhonePublisherId="0745C81D-D1ED-49ED-A219-C546B5F31DE5")
    And
    WMAppManifest (PublisherID="{0745C81D-D1ED-49ED-A219-C546B5F31DE5})
     I have then recompiled the app and uploaded and attempted to resubmit the update but I still get the error that the Publisher does not match. What have I missed??

    This sounds tricky... perhaps you can do a search in the entire app for the GUIDs and replace them.
    Also, you could build the appx package, rename the .appx to .zip, and open it up to see if you can find the wrong publisher id anywhere and it might give you a clue to where to make the change.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • Eclipse error : The declared package does not match the expected package

    I'm trying to setup an Eclipse project on some existing code but I can't get past this error. The source files are in the following directories:
    d:\mycompany\coolstuff
    d:\mycompany\neatstuff
    The source files in the coolstuff directory have a package statement:
    package mycompay.coolstuff
    The source files in the neatstuff directory have a package statement:
    package mycompany.neatstuff
    I create a new Eclipse Java project, specify the existing directoy of d:\mycompany. When Eclipse tries to build, it gives the following error:
    The declared package "mycompany.coolstuff" does not match the expected package "coolstuff"
    I've tried everything I can think of short of modifying every package statement since they seem correct based on the Java documentation. What am I missing?

    All the source builds just fine using a command
    nd line and a classpath=.\That's meaningless, since classpath=.\ is just setting the classpath to the current directory.
    d:\mycompany\coolstuff
    d:\mycompany\neatstuff
    The source files in the coolstuff directory have a
    package statement:
    package mycompay.coolstuff
    The source files in the neatstuff directory have a
    package statement:
    package mycompany.neatstuff
    I create a new Eclipse Java project, specify the
    existing directoy of d:\mycompany.When you use the package statement "package mycompay.coolstuff" Eclipse looks in the directory above mycompany for mycompay\coolstuff\<classname>, and that directory is d:\, not d:\mycompany.
    When Eclipse
    tries to build, it gives the following error:
    The declared package "mycompany.coolstuff" does not
    match the expected package "coolstuff"

  • Help me to get the expected output for this procedure

    Hi
    i wrote a procedure in this way
    create or replace PROCEDURE compare_data(tabname in varchar2 default 'VARE_PPP',current_version in integer default 258,previous_version in integer default 253)
    is
    TYPE table_type IS TABLE OF varchar2(4000)
    INDEX BY BINARY_INTEGER;
    t1 table_type ;
    SUBTYPE max_varchar2_t IS VARCHAR2 (32767);
    stmt_col_list max_varchar2_t;
    stmt_row_val max_varchar2_t;
    col_select_list max_varchar2_t := NULL;
    col_list_tab1 max_varchar2_t := NULL;
    col_list_tab2 max_varchar2_t := NULL;
    col_list max_varchar2_t := NULL;
    select_list_ver1 max_varchar2_t :=NULL;
    select_list_ver2 max_varchar2_t := NULL;
    type t_crs is ref cursor;
    c_get_diff t_crs;
    procedure get_header(tabname in varchar2) is
    col_name varchar2(100);
    cursor c_column_list is
    select COLUMN_NAME from all_tab_columns WHERE table_name = tabname and column_name not in('VERSION','LAST_MODIFIED_TIMESTAMP','LAST_MODIFIED_USER') order by COLUMN_ID asc;
    --stmt_col_list := 'select COLUMN_NAME from all_tab_columns WHERE table_name = '||tabname||' and column_name not like != '||temp1||' and column_name != '||temp2||' and column_name != '||temp3||' order by COLUMN_ID asc' ;
    begin
    col_select_list := 'tab1.version';
    htp.tableheader('Version');
    open c_column_list ; --for stmt_col_list;
    loop
    fetch c_column_list into col_name;
    exit when c_column_list%notfound;
    htp.tableheader(col_name);
    if col_name not like 'LAST_MODIFIED_TIMESTAMP' or col_name not like 'LAST_MODIFIED_USER' then
    if col_list_tab1 is null then
    col_list_tab1 :='tab1.'||col_name;
    col_list_tab2 :='tab2.'||col_name;
    col_list := col_name;
    elsif col_name not like '%END%' then
    --dbms_output.put_line('deepak:'||g_columns (l_index).column_name);
    col_list_tab1 :=
    col_list_tab1 || '||' ||'tab1.'||col_name;
    col_list_tab2 :=
    col_list_tab2 || '||' ||'tab2.'||col_name;
    col_list :=
    col_list || ',' ||col_name;
    end if;
    col_select_list :=
    col_select_list || ', ' ||'tab1.'||col_name;
    end if;
    end loop;
    DBMS_OUTPUT.put_line('col_select_list:'||col_select_list);
    DBMS_OUTPUT.put_line('col_list_tab1:'||col_list_tab1);
    DBMS_OUTPUT.put_line('col_list_tab2:'||col_list_tab2);
    DBMS_OUTPUT.put_line('col_list:'||col_list);
    close c_column_list;
    end get_header;
    procedure get_difference(ver1 in integer,ver2 in integer) is
    name_column varchar2(100) ;
    begin
    select_list_ver1 := 'SELECT '||col_list||' FROM '||tabname||' WHERE VERSION = '||current_version;
    select_list_ver2 := 'SELECT '||col_list||' FROM '||tabname||' WHERE VERSION = '||previous_version;
    stmt_row_val := 'select '||col_select_list||' from '||tabname||' tab1,('||select_list_ver1||' minus '||select_list_ver2||' ) tab2 where '||col_list_tab1||'='||col_list_tab2||' and tab1.version in ('||current_version||','||previous_version||')';
    open c_get_diff for stmt_row_val;
    loop
    fetch c_get_diff bulk collect into t1;
    for cnt in t1.first..t1.last
    loop
    htp.tabledata(t1(cnt));
    dbms_output.put_line(t1(cnt));
    end loop;
    exit when c_get_diff%notfound;
    end loop;
    close c_get_diff;
    end get_difference;
    begin
    htp.htmlopen;
    htp.bodyopen;
    htp.tableopen(cattributes=>'border="2",bordercolor="BLACK",width="60%",align="CENTER"');
    htp.tablerowopen;
    get_header(tabname);
    htp.tableheader('Remark');
    htp.tablerowclose;
    htp.tablerowopen;
    get_difference(current_version,previous_version);
    htp.tabledata('New/Modified');
    htp.tablerowclose;
    htp.tablerowopen;
    get_difference(previous_version,current_version);
    htp.tabledata('Deleted');
    htp.tablerowclose;
    htp.bodyclose;
    htp.htmlclose;
    end compare_data;
    no errors are there but i am not getting the proper result mine expected result is
    253.00 TT Null 11/1/2006 12/31/2099 Y
    258.00 NBK Null 11/1/2006 12/31/2099 Y
    but i am getting
    258
    258
    can anyone help me out,why i am not getting the expected result.
    values which i am using in the query to execute dynamically are
    col_select_list:tab1.version, tab1.PPP_WCC_TYPE, tab1.PPP_WCC_PREFIX_TYPE, tab1.PPP_START_DATE, tab1.PPP_END_DATE, tab1.PPP_INDICATOR
    col_list_tab1:tab1.PPP_WCC_TYPE||tab1.PPP_WCC_PREFIX_TYPE||tab1.PPP_START_DATE||tab1.PPP_INDICATOR
    col_list_tab2:tab2.PPP_WCC_TYPE||tab2.PPP_WCC_PREFIX_TYPE||tab2.PPP_START_DATE||tab2.PPP_INDICATOR
    col_list:PPP_WCC_TYPE,PPP_WCC_PREFIX_TYPE,PPP_START_DATE,PPP_INDICATOR

    I wish I knew your application !!!

  • I m unable to access apple os after windows 7 instalation and its not giving the boot option

    i m unable to access apple os after windows 7 instalation and its not giving the boot option. plz any one help me out ..  how to fix it or how to delete windows 7 on my macbook

    Reboot, as soon as you hear the chime press and hold the option key, when the Boot Manager appears select OSX.

Maybe you are looking for

  • Creative Zen USB and File transfer probl

    Am the unhappy owner of a brand new Creative Zen touch 20gb mp3 player which apparently works with usb 2.0. After installing the software which came on the cd (file transfer software and nomad explorer) the Zen appears to get recognised by the pc wit

  • Hard drive is partitioned and I cant download new OS update due to lack of room on main drive

    My hard drive has two drives. The smaller drive has the startup programs etc. Ive tried to download new Iphone OS but not enough memory on main drive. How do I resolve this?

  • Process Flow for the Business Scenario

    Hi, The scenario is service industry ex. House keeping service. We are using Project system module for the above service industry. The modules which are being implemented apart from PS are SD, MM, FICO and HR. The Project duration is normally 1 year.

  • Can't open .dz attachments in Outlook to Excel in Office 2013

    We have a custom ERP we use at our company that creates .dz attachments which our users can open in Excel. In order for the employees to open these .DZ files in Excel we needed to make a registry edit. I just upgraded machines to Office 2013 and now

  • [solved] EA2 - managing widow size and placement

    I cannot figure out how to get the connections window to be one long narrow vertical window along the left and the SQL worksheet window in a larger window on the right. Im clicking and dragging windows and just cannot seem to figure it out. I dont re