ILinksManager::GetListCount() returns always 0

Hello,
I am trying to get the list of all images of a document but the function GetListCount() of ILinksManager returns always 0.
What did I do wrong?
IDocument* FrontDoc = Utils<ILayoutUIUtils>()->GetFrontDocument();
InterfacePtr<ILinksManager> lnkMgr (FrontDoc, IID_ILINKSMANAGER);
if(nil != lnkMgr)
     int32 linkCount = lnkMgr->GetLinkCount();
     printf("linkCount : %d", linkCount);
Regards,
David

Hello David,
the ILinksManager manages IDataLink objects which are use in CS3 and deprecated since CS4. Use ILinkManager (without s) with and empty query to get all ILink UIDs.
Markus

Similar Messages

  • Xws-security returns always HTTP 200

    Hi,
    I am using libraries of JWSDP 2.0, jaxws and xws-security.
    My web service was generated from a WSDL schema and works so
    far fine. I need to secure the transportation with a xml signature.
    For that I am using the xws libraries.
    My problem is that xws-security and jaxws returns always HTTP 200. I
    would expect a negative HTTP status code if the signature validation
    fails, such as HTTP 401 or HTTP 500 or whatever.
    Is this a bug or any idea what my problem might be ?
    Thanks,
    Simel.

    Hi,
    I am using libraries of JWSDP 2.0, jaxws and xws-security.
    My web service was generated from a WSDL schema and works so
    far fine. I need to secure the transportation with a xml signature.
    For that I am using the xws libraries.
    My problem is that xws-security and jaxws returns always HTTP 200. I
    would expect a negative HTTP status code if the signature validation
    fails, such as HTTP 401 or HTTP 500 or whatever.
    Is this a bug or any idea what my problem might be ?
    Thanks,
    Simel.

  • BAPI returns always 0 record

    Hello,
    We created in SAP(SE37) two functions to provide records from table BAPIORDERS Table.
    Both functions are RFC enabled.
    The functions are called with .net connector 2.0 and visual studio 2003 Ver.7.1.3088. Also we use the patch available in OSS note 506603.
    Calling of function 1 works fine. We get the correct record count and the according records.
    Function 2 returns always 0 as record count and in according to this, no records.
    The non table parameters are ok and there are no errors  reported. The selection parameters are OK
    Same result when we build a proxy with both or only one of the functions.
    No others functions added to the proxy.
    Thanks for help!

    Two possible reason:
    1. The function returns values, but they are not correctly unmarshalled. This could happen if something with the XML attributes is wrong.
    2. The function doesn't return anything.
    To find out if it's 1. or 2., you could use a network sniffer or turn on RFC trace. Check if there is the expected ammount of data is really returned. If 2. turns out to be the case, I recommend to use Abap-Debug feature to see if the paramter really arrive in the for as expected and why the function doesn't return anything.

  • SG500 SNMPv2 64bit counter returns always 0

    Hi
    Cisco SG500 returns always Zero/0 (at least) for this OID's
    IF-MIB::ifHCInUcastPkts
    IF-MIB::ifHCOutUcastPkts
    here's an example from two interfaces (gigabitethernet1/1 and gigabitethernet1/2)
    IF-MIB::ifHCInUcastPkts.49 = Counter64: 0
    IF-MIB::ifHCInUcastPkts.50 = Counter64: 0
    IF-MIB::ifHCOutUcastPkts.49 = Counter64: 0
    IF-MIB::ifHCOutUcastPkts.50 = Counter64: 0
    The switch is running firware version 1.3.0.62

    Here's my fa7 statistics
    switchce82d3#show interfaces counters fa7                                      
          Port       InUcastPkts  InMcastPkts  InBcastPkts    InOctets
          fa7           44632        150685       23521       45163926
          Port       OutUcastPkts OutMcastPkts OutBcastPkts  OutOctets
          fa7           46099        80977          11        12040129
    Alignment Errors: 0
    FCS Errors: 0
    Single Collision Frames: 0
    Multiple Collision Frames: 0
    SQE Test Errors: 0
    Deferred Transmissions: 0
    Late Collisions: 0
    Excessive Collisions: 0
    Carrier Sense Errors: 0
    Oversize Packets: 0
    Internal MAC Rx Errors: 0
    Symbol Errors: 0
    Received Pause Frames: 0
    Transmitted Pause Frames: 0
    switchce82d3#
    The in octects match up as expected but I see the same discrepency of the other OID's, all values of Zero
    -Tom
    Please mark answered for helpful posts

  • GetFetchedRowCount() in CO returns always 1 .. please help !!!!!

    Hi ,
    I am trying get the number of rows fetched in my CO.But it always returns value 1 .But in the oaf page i am getting 4 rows.but in the controller it is always returing 1 for the first time i click on go button but when i click the second time it is giving me correct number of rows. please find the code below.... let me know how to resolve this.
    Code in my Controller PFR :
    if (pageContext.getParameter("Go") != null) {
    partyId =(String)pageContext.getParameter("partyId");
    acctNum=(String)pageContext.getParameter("AccountNumber");
    Serializable[] parameters = {partyId,acctNum};
    am.invokeMethod("initAccount", parameters);
    OAViewObject vo = (OAViewObject)am.findViewObject("AccountMappingVO1");
    vo.executeQuery();
    System.out.println("vo.getQuery()"+vo.getQuery());
    int fetchedRowCount = vo.getFetchedRowCount();
    System.out.println(" fetchedRowCount -- >"+ fetchedRowCount);
    code in AM:
    public void initAccount(String partyId) {
    AccountMappingVOImpl vo = getAccountMappingVO1();
    vo.initActVal(partyId,acctNum);
    code in VO:
    public void initActVal(String partyId,String actNum){
    Number partyIdNo = null;
    try{
    partyIdNo = new Number(partyId);
    acctIdNo = new Number(actNum);
    catch(Exception e){
    String error= e.toString();
    throw new OAException(error,OAException.ERROR);
    setWhereClauseParams(null); // Always reset
    setWhereClauseParam(0, partyIdNo);
    setWhereClauseParam(1, acctIdNo);
    executeQuery();
    thanks
    ramya

    Y are u re-executing the VO query in CO after you are already doing it in AM? Instead of fect row count try to print, rowcount and see.
    --Mukul                                                                                                                                                                                                                                                                                                                           

  • Why is SPList.GetItems(SPQuery) returning always the same item to different SPQueries?

    Hi,
    I have this powershell code:
    $url = 'http://artemis/customers' #web URL
    $ctx = Get-SPServiceContext 'http://artemis' #site URL
    $scope = New-Object Microsoft.SharePoint.SPServiceContextScope $ctx
    $web = Get-SPWeb $url
    $listSyncZakazky = $web.Lists["bcs_Datis_t_synchronizace_Artemis_zakazky2"]; #BCS to MSSQL 2005 database table
    $listMain = $web.Lists["Zakázky"]; #custom SP list
    $camlQuery = New-Object Microsoft.Sharepoint.SPQuery
    [Microsoft.Sharepoint.SPListItemCollection]$itemsLSyncZakazky = $listSyncZakazky.GetItems()
    #foreach ($itemLSyncZakazky in $itemsLSyncZakazky) {
    foreach ($itemLSyncZakazky in $listSyncZakazky.Items) {
    ## happens for both of the ^above^ lines
    $camlQuery.Query = "<Where><Eq><FieldRef Name=`"CisloZ`" /><Value Type=`"Text`">" + ($itemLSyncZakazky["cislo_zakazky"]).TrimStart("0") + "</Value></Eq></Where>"
    $camlQuery.Query
    $camlItems = $listMain.GetItems($camlQuery)
    foreach ($item in $camlItems) {
    $item["CisloZ"]
    $camlItems[0]["CisloZ"]
    $web.Dispose()
    This returns the following:
    <Where><Eq><FieldRef Name="CisloZ" /><Value Type="Text">404</Value></Eq></Where></Query>
    404
    404
    <Where><Eq><FieldRef Name="CisloZ" /><Value Type="Text">300</Value></Eq></Where></Query>
    404
    404
    <Where><Eq><FieldRef Name="CisloZ" /><Value Type="Text">306</Value></Eq></Where></Query>
    404
    404
    <Where><Eq><FieldRef Name="CisloZ" /><Value Type="Text">400</Value></Eq></Where></Query>
    404
    404
    <Where><Eq><FieldRef Name="CisloZ" /><Value Type="Text">200</Value></Eq></Where></Query>
    404
    404
    <Where><Eq><FieldRef Name="CisloZ" /><Value Type="Text">206</Value></Eq></Where></Query>
    404
    404
    <Where><Eq><FieldRef Name="CisloZ" /><Value Type="Text">40303</Value></Eq></Where></Query>
    404
    404
    <Where><Eq><FieldRef Name="CisloZ" /><Value Type="Text">40300</Value></Eq></Where></Query>
    404
    404
    <Where><Eq><FieldRef Name="CisloZ" /><Value Type="Text">40301</Value></Eq></Where></Query>
    404
    404
    <Where><Eq><FieldRef Name="CisloZ" /><Value Type="Text">5801</Value></Eq></Where></Query>
    404
    404
    No matter what I do, from the second item in the collection I get the result from the first one although the CAML query is clearly modified. I tried to create new external content type, have the CisloZ column type as number and text and
    no matter what I do I always get the same result.
    I use similar code elsewhere and it is working. What could be wrong here?
    Martin

    Hi,
    I tried removing $camlItems and it didn't help. Now I moved the $camlQuery
    = New-Object
    Microsoft.Sharepoint.SPQuery insided the foreach and rremove it at its end and it works now. Thanks!
    However this looks like a bug in SPQuery to me.
    m.

  • Help: ItemAttachmentGetCurrentIndex returns always -1

    HI
    Since our customer upgraded GroupWise from 6.0.4 to 6.5.1 the function
    ItemAttachmentGetCurrentIndex() seams not to work anymore. When I debug
    to the specific code line I found that no matter what item is selected in
    the attachment view of an open email the return value is -1
    With GW 6.0.4 this call worked fine:
    res = GWDDE.Execute("ItemAttachmentGetCurrentIndex()", index)
    Thank you for your help
    Dieter

    It depends on what implementation you are running on, but WTK 2.2, for example, always seem to use the chunked transfer encoding when doing a POST and there is no Content-Length header in the request headers, and if the server reply is also sent using the chunked transfer encoding there will be no Content-Length header in the reply headers either
    regards
    simon

  • Breadcrumb returning always to first stacked detail group

    Hi,
    Inside a dummy view group (say Dummy1) I have implemented stacked detail groups containing table-forms. The main page looks like below when I select Dummy1
    Dummy1|Dummy2
    Tab1|Tab2|Tab3|Tab4
    After I select let's say Tab3, the corresponding table appears and afterwards I select "Details" for a row in that table which leads me to the corresponding form.
    That form contains the following Breadcrump
    Modify Dummy1 >
    When I select the hyperlink, the breadcrumb returns me back to Dummy1 but to Tab1 is selected instead of Tab3. How can I make it return to Dummy1 but have Tab3 selected?
    TIA

    To preserve the selected tab, you will need to save the state of the showOneTab element using the binding property in a session-scoped managed bean.
    Here are the steps:
    - In the generated page, select the af:showOneTab element
    - go to the property inspector, click on the Binding property, and click on the three dots button that appears. This launches a dialog to bind the binding property to a managed bean.
    - In the dialog, click the New button to create a new managed bean. Name it soemthing like MyPageState, and set the class to something like view.MyPageState. Set the Scope to "session" and leave the checkbox "generate class if it does not exist" checked. Click OK
    - now click the New button at the right of the property name, and enter a property name like "mySelectOneTab".
    - Click OK twice
    - Run the page, you will see that the tab state is now preserved when you navigate back to the the page using the breadcrumb.
    - To preserve this post-generation change after regeneration, you need to create a custom template for the selectOneTab, and move the generated bean definition to a non-generated faces-config.xml, for example faces-config-custom.xml. If you create such an additional faces-config-custom.xml, make sure you add the name to the javax.faces.CONFIG_FILES context param in web.xml
    Steven Davelaar,
    JHeadstart Team.

  • Ora:countNodes returns always 0

    1) I used a file adapter to get an xml file like
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <dossiers>
    <dossier idPlateformeIMMI="4" idPlateformeCAI="05" numeroDossierIMMI2="430106067866" dateDepot="20/02/2006" departement="92">
    <telephone>
    <numero></numero>
    </telephone>
    <convocation>
    <id>306909</id>
    <dateConvocation>22/03/2006 13:30</dateConvocation>
    </convocation>
    <adresse>
    <lieuDit></lieuDit>
    <numVoie>216 bis, bld Jean Jaurès</numVoie>
    <batiment>chez Le Dome</batiment>
    <codePostal>92100</codePostal>
    <ville>BOULOGNE BILLANCOURT</ville>
    </adresse>
    <procedure>
    <id>1</id>
    </procedure>
    <demandeur>
    <nom>DIMWANA</nom>
    <prenom>CHRIST</prenom>
    <naissance>
         <dateNaissance>22/05/1987</dateNaissance>
         <lieuNaissance>KINSHASA</lieuNaissance>
         <paysNaissance>
         <id>356</id>
         </paysNaissance>
    </naissance>
    <codeNationalite>
         <id>307</id>
    </codeNationalite>
    <sexe>M</sexe>
    <codeMatrimonial>
         <id>1</id>
    </codeMatrimonial>
    <nomEpouse></nomEpouse>
    <qualite>
         <id>35</id>
    </qualite>
    <type>
         <code>F</code>
    </type>
    </demandeur>
    </dossier>
    <dossier idPlateformeIMMI="4" idPlateformeCAI="05" numeroDossierIMMI2="430106067692" dateDepot="20/02/2006" departement="92">
    <telephone>
    <numero></numero>
    </telephone>
    <convocation>
    <id>306032</id>
    <dateConvocation>20/03/2006 08:30</dateConvocation>
    </convocation>
    <adresse>
    <lieuDit></lieuDit>
    <numVoie>03 rue des aubepines</numVoie>
    <batiment></batiment>
    <codePostal>92000</codePostal>
    <ville>NANTERRE</ville>
    </adresse>
    <procedure>
    <id>1</id>
    </procedure>
    <demandeur>
    <nom>HMANI</nom>
    <prenom>YOUSSEF</prenom>
    <naissance>
         <dateNaissance>23/08/1974</dateNaissance>
         <lieuNaissance>seittat</lieuNaissance>
         <paysNaissance>
         <id>375</id>
         </paysNaissance>
    </naissance>
    <codeNationalite>
         <id>375</id>
    </codeNationalite>
    <sexe>M</sexe>
    <codeMatrimonial>
         <id>2</id>
    </codeMatrimonial>
    <nomEpouse></nomEpouse>
    <qualite>
         <id>32</id>
    </qualite>
    <type>
         <code>F</code>
    </type>
    </demandeur>
    </dossier>
    </dossiers>
    2) My xsd file is :
    <schema attributeFormDefault="qualified" elementFormDefault="qualified"
    targetNamespace="http://www.anaembis.org"
    xmlns:doss="http://www.anaembis.org"
    xmlns="http://www.w3.org/2001/XMLSchema">
    <element name="dossiers" type="doss:dossiersType"/>
    <complexType name="dossiersType">
    <sequence>
    <element name="dossier" type="doss:dossierType" maxOccurs="unbounded"/>
    </sequence>
    </complexType>
    <complexType name="dossierType">
    <sequence>
    <element name="telephone" type="doss:telephoneType"/>
    <element name="convocation" type="doss:convocationType"/>
    <element name="adresse" type="doss:adresseType"/>
    <element name="procedure" type="doss:procedureType"/>
    <element name="demandeur" type="doss:demandeurType"/>
    </sequence>
    <attribute name="dateDepot" use="required"/>
    <attribute name="departement" use="required" type="integer"/>
    <attribute name="idPlateformeCAI" use="required" type="integer"/>
    <attribute name="idPlateformeIMMI" use="required" type="integer"/>
    <attribute name="numeroDossierIMMI2" use="required" type="integer"/>
    </complexType>
    <complexType name="telephoneType">
    <sequence>
    <element name="numero" type="string"/>
    </sequence>
    </complexType>
    <complexType name="convocationType">
    <sequence>
    <element name="id" type="string"/>
    <element name="dateConvocation" type="string"/>
    </sequence>
    </complexType>
    <complexType name="adresseType">
    <sequence>
    <element name="lieuDit" type="string"/>
    <element name="numVoie" type="string"/>
    <element name="batiment" type="string"/>
    <element name="codePostal" type="string"/>
    <element name="ville" type="string"/>
    </sequence>
    </complexType>
    <complexType name="procedureType">
    <sequence>
    <element name="id" type="string"/>
    </sequence>
    </complexType>
    <complexType name="demandeurType">
    <sequence>
    <element name="nom" type="string"/>
    <element name="prenom" type="string"/>
    <element name="naissance" type="doss:naissanceType"/>
    <element name="codeNationalite" type="doss:codeNationaliteType"/>
    <element name="sexe" type="string"/>
    <element name="codeMatrimonial" type="doss:codeMatrimonialType"/>
    <element name="nomEpouse" type="string"/>
    <element name="qualite" type="doss:qualiteType"/>
    <element name="type" type="doss:typeType"/>
    </sequence>
    </complexType>
    <complexType name="naissanceType">
    <sequence>
    <element name="dateNaissance" type="string"/>
    <element name="lieuNaissance" type="string"/>
    <element name="paysNaissance" type="doss:paysNaissanceType"/>
    </sequence>
    </complexType>
    <complexType name="paysNaissanceType">
    <sequence>
    <element name="id" type="string"/>
    </sequence>
    </complexType>
    <complexType name="codeNationaliteType">
    <sequence>
    <element name="id" type="string"/>
    </sequence>
    </complexType>
    <complexType name="codeMatrimonialType">
    <sequence>
    <element name="id" type="string"/>
    </sequence>
    </complexType>
    <complexType name="qualiteType">
    <sequence>
    <element name="id" type="string"/>
    </sequence>
    </complexType>
    <complexType name="typeType">
    <sequence>
    <element name="code" type="string"/>
    </sequence>
    </complexType>
    </schema>
    3) I get the file well but when I tried to count the number of 'dossier' with
    ora:countNode('Receive_File_Read_InputVariable','dossiers','/ns3:dossiers/ns3:dossier')
    I always have a result = 0
    An idea ?

    Hi,
    The problem I understood was like this....
    If you are using the ora:countNodes(1,2,3) function then use only the three parameters inside and the last two is option anyway.
    If you are using the count(bpws:getVariableData(1,2,3)) then make sure you use the get bpws:getVariableData function.
    What the main difference is that bpws:getVarialbleData() function...
    count() function works with bpws:getVariableData() function....
    ora:countNodes() function will work with without bpws:getVariableData() function ... the way of using the inside three parameters is same for either ways.
    All the best if it woks... It woked me always...
    --Khaleel.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Replies to my outgoing e-mail return always to the same account

    I have this problem: I have several account and for all of them I use the same outgoing server (gmail). I can choose to send every single e-mail from each one of my accounts but when the receivers reply to my e-mails, whatever is the used account, the replies arrive only to the account of the outgoing server (gmail account). The macbook pro is sync with iPhone.
    Do you have any idea on how to allow that every e-mail be replied into the account from which it has been sent and not to the outgoing server account only?
    Ciao
    Gianluca

    I only have ONE Gmail account, and it shows the right info in the incoming/outgoing servers info.
    I think the problem is my account was setup with account A before, when I used gmail with custom domain. Now I probably changed the inbox preferences to setup a new account B, keeping gmail servers and pop info, rather than creating a new account… but it seems the "reply to" or "return-path" lines are setup at acct creation, because I CAN'T CHANGE IT, and all emails are set to be replied to the OLD address. It's been months, and I freak out just thinking how many emails didn't go through from my recipient. (Account A no longer exists)
    Where do I change that in Mail without having to create a new account?
    Is there any inbox number the recipient's server is identifying to assign the return-path value? (Something in my account preferences didn't change, and it's either being sent or recognized as the previous account.

  • Migration -actions=mkconn returns always Error: java.sql.SQLException: Inva

    Hi
    I'm migrate from MS SQL 2005 to Oracle 11g using SQL Developer V3.0.04
    Trying to use the batch file migration.bat. Found the documentation with migration -help=guide
    Every action I start results in the SQLException below:
    D:\oracle\product\sqldeveloper_3.0.04\sqldeveloper\sqldeveloper\bin>migration -actions=mkconn -connDetails=super_oracle:oracle:system/manager@xxxxxxxx:1521/mps
    Error: java.sql.SQLException: Invalid connection information specified.
    Verify the URL format for the specified driver.
    HELP:
    Running the command with -output=d:\migr creates a logfile with the same error message.
    If I run the login credential with sqlplus system/manager@xxxxxxxx:1521/mps, I manage to connect to the database.
    I assume the help is wrong specifying host:port:sid. I think host:port/sid is correct, at least with sqlplus this works
    If I do a migration with sqldeveloper it works too.
    I'm lost at this point. Any advise is appreciated.
    Thanks a lot
    Beat

    Hi
    In SQL Developer, did you already create a connection to the Oracle database storing the Migration Repository?
    Yes
    I do:
    migration -action=init -conn=MyRepositoryDB
    HELP:
    Syntax:
    Migration -help|-h=<actions> to get help on one or more actions.
    where
    +<actions> could be one or more (comma separated list) actions or guide+
    guide provides a walk through of a typical migration
    Examples:
    Migration -help=capture
    Migration -h=capture,convert
    Migration -h=guide
    The message: init completed successfully is missing. Only HELP:.......... is showing up
    The same if I do now:
    D:\oracle\product\sqldeveloper_3.0.04\sqldeveloper\sqldeveloper\bin>migration -action=lsconn
    HELP:
    Syntax:
    Migration -help|-h=<actions> to get help on one or more actions.
    where
    +<actions> could be one or more (comma separated list) actions or guide+
    guide provides a walk through of a typical migration
    Examples:
    Migration -help=capture
    Migration -h=capture,convert
    Migration -h=guide
    Valid actions:
    capture, convert, datamove, delcaptured, delconn, delconverted, driver, generate, guide, idmap, info, init, ls
    m, runsql, scan and translate
    D:\oracle\product\sqldeveloper_3.0.04\sqldeveloper\sqldeveloper\bin>
    Only HELP:.......... is showing up

  • Boolean.getBoolean(String str) always return false

    I'm on macOSX (Tiger), using JSDK 1.5.
    The function Boolean.getBoolean() return always false.
    I try Boolean.getBoolean("true");
    Boolean.getBoolean(Boolean.toString(Boolean.TRUE));
    always false.
    Is it a bug only on macOS, or does I do something wrong?
    so i just made mybooleanVar.equals("true"); done the right result, but it's just strange that the Boolean.getBoolean(...) function did not return the right value... And I can't send this bug to sun, because they don't assure support for macOSX platform... :s

    Yeah, some of the the least intuitive methods in the
    API are this one and its equivalents from the other
    basic type wrapper classes. Confusingly named methods
    in the wrong classes (they should have placed those
    methods in System, if anywhere at all).My vote goes to not anywhere at all.
    Boolean.getBoolean("property");is equivalent to
    Boolean.parseBoolean(System.getProperty("property"));Not worth a method for the saved keystrokes vs the problem in readability. Especially a misnamed method.

  • [OBIEE-11g] Error getting Nqid always null value

    Hi to all, I've a problem to load Nqid in a dashboard on 11g OBIEE.
    The javascript function return always a null value and the document.cookie instruction return an empty string ...
    somebody could help me ?!
    p.s.: in the firefox properties there is a cookie that contain the id but i can't read it
    function getNqid() {
    var nameEQ = 'nQuireID=';
    var ca = document.cookie.split(';');
    for(var i=0; i<ca.length; i++) {
    var c = ca;
    while (c.charAt(0)==' ')
    c = c.substring(1,c.length);
    if (c.indexOf(nameEQ) == 0)
    return c.substring(nameEQ.length,c.length);
    return null;

    Hi,
    You might want to check the NQQuery.log to see the code that it is running before making a connection. Just to confirm that the connection pool step is working fine, could you try with a simple select statement and see that it does not error out. If it does not, you may want to revisit the procedure code again. I understand from the error that it is expecting something after the END statement (kind of weird though!!). I assume in this case, it could not parse that this is a stored procedure call itself may be. One thread I found is http://stackoverflow.com/questions/4270818/ora-06550-and-pls-00103 which you may want to look for the line break characters.
    Hope this helps.
    Thank you,
    Dhar

  • DateFormatSymbols returns wrong strings

    Hi all !!
    I have a problem with DateFormatSymbols. The following code:
    Locale locale = Locale.getDefault() // returns es_ES
    DateFormatSymbols dateFormatSymbols = new DateFormatSymbols(locale);
    dayNames = dateFormatSymbols.getShortWeekdays();
    and dayNames returns always the days in english.
    Does anybody see what is the problem ?
    Thanks
    Dani

    Hmm...
    Are you sure? That seems really odd.
    Have you tried Locale local = new Locale("es", "ES"); and then the rest?
    I can't duplicate your test, since my default locale is en_US, but when I did the explicit new Locale as above, I get the Spanish day names.
    I know that's probably not a real solution for you, but I'm just trying to identify the scope of the problem.
    Maybe the Spanish locale (or language) isn't available, so it's returning English values? Or maybe the locales on your machine are corrupt?
    (I tried the "new Locale" with bogus values, and it just silently gave me back the English versions, so I'm thinking something's missing or corrupt.)
    &para;

  • Java returns wrong DynamicIP

    I hava a dynamic IP address and the host:
    "somehost.ip.net" returns my dynamic IP.
    If I check it with nslookup or ping, I always see my actual IP.
    I have run this code:
    try {
                               InetAddress addr = InetAddress.getByName("somehost.ip.net");
                               byte[] ipAddr = addr.getAddress();
                               String ipAddrStr = "";
                                  for (int i=0; i<ipAddr.length; i++) {
                                       if (i > 0) {
                                          ipAddrStr += ".";
                                      ipAddrStr += ipAddr&0xFF;
              } catch (UnknownHostException e1) {
                   e1.printStackTrace();
    On my computer it returns the right IP. I have tried to run it on the other one and it returns some other IP, I don't have now.
    I have checked my DynIP account, there is info, that there is my current IP in their database.
    Why on my computer this code returns always right IP. On other computers ping return always right actual IP. But threre is no garanty with the Java-Code on the other computers/servers. What can I do in this situation?
    Thanks in advance.

    I Think the other computer may not be performing a
    DNS lookup. I used your code with a former employer
    domain and it worked on both my laptop and my
    desktop.
    I traced the route to the domain and got back 20
    hops.
    Conversly, when I used the same procedure for my
    registered DynDNS domain name, I never went past my
    home router, which is configured to automatically
    update the DynDNS record when my public IP changes.
    So, in that line of thinking, I think the 'other
    computer' is not getting the address for some reason,
    or has a bogus host entry in the hosts file.
    On another note, thats a nice little for loop you
    have there. You do know about the
    addr.getHostAddress() method dont you?
    It makes life easier.
    JJThanks JJ for your answer. It's much clearly for me now.
    I can use addr.getHostAddress()I have just called it on the server, not at home. It shows wrong IP twice, so there is no HostAddress for the IP I got.
    I know that this server run on Sun. There is the other one, with the same problem. Can you imagine my wounder, all worked fine and then I got error. I just couldn't imagine, what was wrong.
    Sometimes it works, sometime not. Is there a way to get the real IP, if they don't have nslookup etc?

Maybe you are looking for

  • Attaching Document in Billing

    Hi gurus, I have a requirement where in currently the invoice document gets converted in pdf and sent as mail.But now i have requirement wherein apart from invoice any other document attached in billing document which is done via going in system-->se

  • Attachement for clearing documents

    Hello! I want in a ABAP program send a SapScript form to the SER archive and the attach the archiv shortcut to the clearing document. As I understand it, I must only attach the form into the attachmentlist of the clearing document. SAP send the form

  • Duplicated files on iCloud

    Note having duplicated files when sync(・・? sometimes even Safari bookmark will be messed up if sync to iPhone

  • Images with j2mewtk

    Has anybody ever managed to display images (png) with transparent background on the emulator? Greetinx Ben

  • BEx general question

    Hi All, At present  our client SAP system is BW 3.x. and we have BEx related to that. and ou client Sand Box system is having SAP BI 7.0.and from this Sandbox, when giving rrmx transaction it is showing BEx 3.x version only. because BI 7.0 bex is not