Getting the webserver IP

Does anyone know if there is a way to get the webserver's IP address in java. Kind of like a System.getProperty()?

Here is a method that I wrote for my FileIO demo applet, it can be used to find the local host name and IP address, the applet server's host name and IP address, as well as the host name of any webserver given an IP address or vice versa. The parameter for the method is of one of the following
forms:
1) local name
2) local ip
3) remote name
4) remote ip
5) 64.58.76.227
6) http://www.yahoo.com
   public String aok_Host(String sFlag) {
      sFlag=sFlag.toLowerCase();
      int getName=sFlag.indexOf("name");
      String HName="";
      String HAddr="";
      Socket socket;
      InetAddress addr;
      try {
         if (sFlag.toLowerCase().indexOf("local")>=0) {  // find local host name and address
            socket=new Socket("java.sun.com",80);
            addr=socket.getLocalAddress();
            HName=addr.getHostName();
            HAddr=addr.getHostAddress();
         } if (sFlag.toLowerCase().indexOf("remote")>=0) {  // find applet server's host name and address
            HName=getCodeBase().getHost();
            HAddr=InetAddress.getByName(HName).toString();
            int i=HAddr.indexOf("/");
            if (i>0) {
               HName=HAddr.substring(0,i);
               HAddr=HAddr.substring(i+1);
         } else {    // return host name give IP address or vice versa
            if (sFlag.startsWith("http")) {
               int i=sFlag.indexOf("/")+2;
               socket=new Socket(sFlag.substring(i),80);
               addr=socket.getInetAddress();
               return addr.getHostAddress();
            socket=new Socket(sFlag,80);
            addr=socket.getInetAddress();
            return addr.getHostName();
      } catch (Throwable e) {}
      if (getName>=0) return HName;
      return HAddr;
   }V.V.

Similar Messages

  • How can i get the serialnumber from ipad2 in php webserver?

    Making php webPage,
    I need to get the serialNumber from iPad2.
    Is it possible??
    As i know, it can't be. But i wish it can be.
    Would you please help me?

    Venkat,
    For Payroll extractor you have do the config for BW Payroll month assignment. This setting is for payroll results consolidation ( INPERIOD or FORPERIOD with contry specific).
    Secondly if are not getting data even you have some valid results in RT cluster, check the authrization for background user ALEREMOTE. You have added some additional profiles for HR Data extraction as per your system release.
    Check OSS note 150315.
    Regards,
    RC

  • "evdre encountered a problem retrieving data from the webserver"

    Hi
    We are using a big report which takes very long time to expand and sometimes we get the error message "evdre encountered a problem retrieving data from the webserver" when expanding the report, but not very often for most of our users. But we have one user who gets this error message almost every second time he expands the report. This user have a computer with same capacity as the rest of us, can there be some setting on the computer or in the client installtion the cause this problem?
    We are using BPC 5.1 SP 5
    /Fredrik

    Hi,
    This error occurs usually if we have huge data in combination of our dimensions.
    Even, if the selection of your memberset is not apt to the combination of the data present in the back end, you may encounter a data retrival error.
    regards
    sashank

  • Getting the error while invoking Web services

    Hi,
    I am getting the error while invoking an webservive method *** follows
    {color:#3366ff}2009-01-28 04:49:38.994 Error Occured inMesage Now
    2009-01-28 04:49:38.994 javax.xml.rpc.ServiceException: Unable to create Service Factory: oracle.j2ee.ws.client.ServiceFactoryImpl
    2009-01-28 04:49:38.995 at javax.xml.rpc.ServiceFactory.newInstance(ServiceFactory.java:75)
    2009-01-28 04:49:38.995 at ccaproxy.proxy.ISessionClient.<init>(ISessionClient.java:25)
    2009-01-28 04:49:38.995 at oracle.apps.contactCenter.mct.model.connector.cca.CCAInternalConnImpl.cstaMonitorStart(CCAInternalConnImpl.java:86)
    2009-01-28 04:49:38.995 at oracle.apps.contactCenter.mct.model.connector.CCAMangConnImpl.cstaMonitorStart(CCAMangConnImpl.java:440)
    2009-01-28 04:49:38.995 at oracle.apps.contactCenter.mct.model.connector.CCAConnectionImpl.cstaMonitorStart(CCAConnectionImpl.java:107)
    2009-01-28 04:49:38.995 at testcca.Class1.GetConnection(Class1.java:54)
    2009-01-28 04:49:38.995 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2009-01-28 04:49:38.995 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    2009-01-28 04:49:38.995 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    2009-01-28 04:49:38.995 at java.lang.reflect.Method.invoke(Method.java:585)
    2009-01-28 04:49:38.995 at oracle.j2ee.ws.server.jaxws.ServiceEndpointRuntime.processMessage(ServiceEndpointRuntime.java:283)
    2009-01-28 04:49:38.995 at oracle.j2ee.ws.server.jaxws.ServiceEndpointRuntime.processMessage(ServiceEndpointRuntime.java:147)
    2009-01-28 04:49:38.995 at oracle.j2ee.ws.server.jaxws.JAXWSRuntimeDelegate.processMessage(JAXWSRuntimeDelegate.java:403)
    2009-01-28 04:49:38.995 at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:1055)
    2009-01-28 04:49:38.995 at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:763)
    2009-01-28 04:49:38.995 at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:528)
    2009-01-28 04:49:38.995 at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:212)
    2009-01-28 04:49:38.995 at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:176)
    2009-01-28 04:49:38.995 at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:311)
    2009-01-28 04:49:38.995 at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
    2009-01-28 04:49:38.995 at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
    2009-01-28 04:49:38.996 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:692)
    2009-01-28 04:49:38.996 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:351)
    2009-01-28 04:49:38.996 at com.evermind.server.http.HttpRequestHandler.doDispatchRequest(HttpRequestHandler.java:977)
    2009-01-28 04:49:38.996 at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:878)
    2009-01-28 04:49:38.996 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:676)
    2009-01-28 04:49:38.996 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:644)
    2009-01-28 04:49:38.996 at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:436)
    2009-01-28 04:49:38.996 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:185)
    2009-01-28 04:49:38.996 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:153)
    2009-01-28 04:49:38.996 at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:276)
    2009-01-28 04:49:38.996 at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:223)
    2009-01-28 04:49:38.996 at oracle.oc4j.network.ServerSocketAcceptHandler.access$900(ServerSocketAcceptHandler.java:39)
    2009-01-28 04:49:38.996 at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:841)
    2009-01-28 04:49:38.996 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
    2009-01-28 04:49:38.996 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
    2009-01-28 04:49:38.996 at java.lang.Thread.run(Thread.java:595)
    {color}{color:#000000}The Scenarios is as follows:
    I am having a JCA connector which is calling the CCA Method.
    CCA uses the web services for method invocation and i have created the jar file for the web service proxies. teh proxies are of RPC type. I have include the jar file in the connector project for reference.
    I have written a webservice client which will get the connection abject and invoke a method which internally invokes the CCA method.
    During this time it is giving this error.
    Please note that i have included the wsclient-extend.jar file ,wsclient jar file in both the connector project and the client project.
    Thanks
    Santosh{color}

    You have to add the jaxrpc library in the server.xml configuration of your embedded oc4j.
    Line:
    <import-shared-library name="oracle.ws.jaxrpc"/>
    You have to do this twice: in the adf.oracle.domain and the adf.generic.domain shared lib entries.
    Then, you have to do this again in the system-application.xml file (only once).
    Edited by: remcoscc on Aug 23, 2010 4:30 PM

  • Re: getting the file name from a dynamic web server

    On a related note, how do I get the information from the:
    URLConnection.getContent ()
    method?
    I mean I create URL object, then
    I create a URLConnection object by doing the following from my URL object (urlObject):
    URLConnection con = urlObject.openConnection()
    Then when I get the content from the URLConnection:
    Object contentReturned = con.getContent();
    I check the class name:
    System.out.println("con.getContent class name :"+contentReturned.getClass().getName());
    The class name that is returned is:
    sun.net.www.protocol.http.HttpURLConnection
    But when I tried to cast the returned object to a java.net.HttpURLConnection it threw an exception.
    So basically my question is how do I access the information in either the URL.getContent or the URLConnection.getContent methods?
    Thanks,
    Tim

    could someone tell me how the URL.toString() text is generated. I realize in the doc's it says it calls the toExternalForm method, but then my question is where does the method toExternalForm get its text/data?
    In the javadoc's it says the information returned from the toExternalForm method is:
    The string is created by calling the toExternalForm method of the stream protocol handler for this object.
    How can I access this.
    Basically when toString is called, there is some information in the text returned - something like this:
    sun.net.www.protocol.http.HttpURLConnection:http://static.webserver.com/kuki/foofi1.mpg
    and instead of parsing this string, I would like to get the
    http://static.webserver.com/kuki/foofi1.mpg
    portion of the string from whatever source the toExternalForm method used.
    Thanks,
    Tim

  • Getting the absolute or relativ (file)path to servlet location

    hi
    my servlet needs to create some files. thatfor i need a reference location such as the root of the webapp dir or the location of the servlet or something like this, so i can build the paths relative to the servlet/webapp location.
    is there a way to get this information? i just read the servlet api docu and couldn't find a appropriate methode. Only thing i found out is that the Fileobject seems to create relative paths from the bin dir of my tomcat installation.... but that's not very usefull.
    any ideas? how do you solve that problem?

    Ok... the getResource() method returns jndi:localhost/examples/... but I'm not sure the jndi: is what I want or what will work. The getRealPath() method is not bad, I can save to files using my Tomcat Server. I just was not expecting it to get the harddrive location instead of the URL location. Does anyone know if using this harddrive location will work when loaded onto a real webserver and no longer Tomcat? If it will then great!

  • The latest changes to the function to "Upload to FTP host" has rendered this useless - no point using a program like Muse if I can not easily and automatically upload the work to the webserver!

    The latest changes to the function to "Upload to FTP Host" has rendered this useless - no point using a program like Muse if I can not easily and automatically upload the work to the webserver!  I use BlueHost webhosting that has a primary domain and I have several domains with that account (as sub-domains or folders on this server) - with past versions of Muse when uploading pages it simply opened an alert window to tell me (what I already know) that the website I was uploading does not point to the primary domain BUT NOW Muse tries to create a new separate folder in the root directory of the primary domain - completely ignoring the directory path I am giving it - useless!  Why make these senseless changes to the program - and so often - very frustrating it is like amateur ware!.

    Hi Stephen,
    There are some issues with the upload to ftp via Muse, which the engineering team is aware of and those will be fixed in a future build of Muse. At this point the work around would be to export the html from Muse and then upload via some third party ftp client like filezilla.
    I will recommend that you keep an eye on our release notes page to get more updates on it - Release notes | Adobe Muse CC
    - Abhishek Maurya

  • Urgent: Want to get the directory listing

    Hi,
    My iAS and iWS reside on separate unix machines.
    My pdf files being a static content reside on iWS.
    My application which is deployed on iAS, wants to
    know the names of the pdf files residing on iWS.
    Can anyone tell me, as to whether there is any way
    for an application deployed on iAS to get the directory
    listing of files residing on a separate machine.
    Is there any API which will be of help ?.
    I guess there must be some APIs associated with the
    web connector installed on the machine where iWS is installed.
    Regards,
    Amar.

    <i>Can anyone tell me, as to whether there is any way
    for an application deployed on iAS to get the directory
    listing of files residing on a separate machine.</i>
    No. More specifically, the appserver doesn't have any special awareness of external filesystems. (The webconnector does not have any API's that would expose the webserver's files. That would be a huge security violation.)
    You could always NFS mount the webserver so that the appserver could see it. This has some security concerns, but you are going to have security concerns anytime that you are exposing your webserver's files directly.

  • JDBC socketRead freezes the webserver

    Hi,
    today a webserver freezes, with more than 42 blocked threads, to inspect the problem i get a thread dump, from running instance, and the problematic thread is:
    "http-80-19" daemon prio=10 tid=0x0000002af8bbe000 nid=0x72fc runnable [0x000000004f45f000..0x000000004f460b30]
       java.lang.Thread.State: RUNNABLE
            at java.net.SocketInputStream.socketRead0(Native Method)
            at java.net.SocketInputStream.read(SocketInputStream.java:129)
            at com.sap.dbtech.rte.comm.BasicSocketComm.receiveConnect(BasicSocketComm.java:707)
            at com.sap.dbtech.rte.comm.BasicSocketComm.dbConnectExchange(BasicSocketComm.java:789)
            at com.sap.dbtech.rte.comm.BasicSocketComm.connectDB(BasicSocketComm.java:233)
            at com.sap.dbtech.rte.comm.SocketComm$1.open(SocketComm.java:38)
            at com.sap.dbtech.jdbc.DriverSapDB.openConnection(DriverSapDB.java:966)
            at com.sap.dbtech.jdbc.DriverSapDB.openByURL(DriverSapDB.java:891)
            at com.sap.dbtech.jdbc.DriverSapDB.connect(DriverSapDB.java:208)
            - locked <0x0000002aa4978bc0> (a com.sap.dbtech.jdbc.DriverSapDB)
            at org.apache.tomcat.dbcp.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
            at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
            - locked <0x0000002aa515d318> (a org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory)
            at org.apache.tomcat.dbcp.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:974)
            at org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96)
            at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
    analysis of the thread dump, show us that is a problem when open new connections, and freezes on java.net.SocketInputStream.socketRead0, i checked the system and have space for more sessions, then its not a case of TASK LIMIT, follow is a sample of one thread waiting the above.
    "http-80-18" daemon prio=10 tid=0x0000002af7f74000 nid=0x72fb waiting for monitor entry [0x000000004ef5e000..0x000000004ef5fdb0]
       java.lang.Thread.State: BLOCKED (on object monitor)
            at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
            - waiting to lock <0x0000002aa515d318> (a org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory)
            at org.apache.tomcat.dbcp.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:974)
            at org.apache.tomcat.dbcp.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96)
            at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
    after 2 minutes, the problematic thread reach the end, and the webserver unfreeze, and come back processing requests.
    The MaxDB and JDBC version is 7.6.03.07
    note this problem dont occurs every time, or every day, just occurs in a random times, once per week, maybe have a reason on database side, that i dont know, any idea, how to check and inspect this type of problem?
    Best regards
    Clóvis

    Again, but in another place, when pool try to check if connection is Closed, this one, blocked 35 other threads, and freezes the webserver for 2 minutes.
    "Timer-1" daemon prio=10 tid=0x0000002af6ddf000 nid=0x3118 runnable [0x0000000047c48000..0x0000000047c48d30]
       java.lang.Thread.State: RUNNABLE
            at java.net.SocketInputStream.socketRead0(Native Method)
            at java.net.SocketInputStream.read(SocketInputStream.java:129)
            at com.sap.dbtech.rte.comm.BasicSocketComm.receiveData(BasicSocketComm.java:577)
            at com.sap.dbtech.rte.comm.BasicSocketComm.receive(BasicSocketComm.java:666)
            at com.sap.dbtech.rte.comm.JdbcCommunication.execute(JdbcCommunication.java:41)
            at com.sap.dbtech.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:536)
            - locked <0x0000002aad5d66b0> (a com.sap.dbtech.jdbc.ConnectionSapDB)
            at com.sap.dbtech.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:461)
            at com.sap.dbtech.jdbc.ConnectionSapDB.isClosed(ConnectionSapDB.java:746)
            at com.sap.dbtech.jdbc.trace.Connection.isClosed(Connection.java:400)
            at org.apache.tomcat.dbcp.dbcp.DelegatingConnection.isClosed(DelegatingConnection.java:346)
            at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.validateConnection(PoolableConnectionFactory.java:324)
            at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.validateObject(PoolableConnectionFactory.java:312)
            at org.apache.tomcat.dbcp.pool.impl.GenericObjectPool.evict(GenericObjectPool.java:1217)
            - locked <0x0000002aa4a60cb0> (a org.apache.tomcat.dbcp.pool.impl.GenericObjectPool)
            at org.apache.tomcat.dbcp.pool.impl.GenericObjectPool$Evictor.run(GenericObjectPool.java:1341)
            at java.util.TimerThread.mainLoop(Timer.java:512)
            at java.util.TimerThread.run(Timer.java:462)
       Locked ownable synchronizers:
            - locked <0x0000002aa4a60cb0> (a org.apache.tomcat.dbcp.pool.impl.GenericObjectPool)
            at org.apache.tomcat.dbcp.pool.impl.GenericObjectPool$Evictor.run(GenericObjectPool.java:1341)
            at java.util.TimerThread.mainLoop(Timer.java:512)
            at java.util.TimerThread.run(Timer.java:462)
       Locked ownable synchronizers:
            - None

  • CustomTag reading a relative URI on the webserver

    Hi All,
    I am coding a CustomTag which reads a servlet(it resides on the same webserver) output and prints in the UI when this customtag is included in any jsp.
    I am have some issues connecting to the servlet with relative URL. I can connect and get the servlet response by using
    URL url = new URL("http://localhost:9080/buildMenu/");
    URLConnection uc = url.openConnection();
    BufferedReader in = new BufferedReader(new InputStreamReader(uc.getInputStream()));
    The above code works perfectly fine and i am able read the response. But to make this generic (working on any port and even in other environments)
    i am planning to reading using the relative path "/buildMenu" instead of full path. I was not able to find a way to do that. I would really appreciate if you
    can point me in the right direction.
    Thanks a lot.
    Regards,
    VJ

    hi,
    am not sure..
    better you to try with
    getRemoteAddr()
    getRemoteHost()
    to get your Ip and
    add that into
    URL url = new URL( getCurrentIPhere + "/buildMenu" );

  • Can we get the ip addres of an apex user?

    Is there anyway to get the ip address of an apex user?

    user5485835 wrote:
    These seems to work well in APEX.
    select SYS_CONTEXT('USERENV', 'IP_ADDRESS', 15) ipaddr from dual;Based on my understanding, this would only give you the IP address of the actual database user connecting to the database during an Apex session (in other words, the ANONYMOUS user and the IP address of the database server itself if using the Embedded PL/SQL Gateway; or the APEX_PUBLIC_USER and the IP address of the webserver if using Apache).
    To get the remote client's IP address you need to use owa_util.get_cgi_env as described in the first answer to this post.
    - M

  • Getting the body of a SOAP call as a String or DOM

    Hi.
    I'm using Weblogic 7.1. I'd like to be able to get the contents of the body of a SOAP call as a String, or a DOM if it's already been parsed (and there's no way of preventing it from being parsed into a DOM).
    Basically I want to do my own custom de-serialization using JAXB or Castor or something similar, without using the Weblogic XML API.

    I had a look at the examples posted, can I clarify, I see that the Handler has
    public boolean handleRequest(MessageContext messageContext).
    and that the examples do things like log the message received.
    But can someone explain a bit more about, how this would be done to plug say Castor
    XML data binding in on the way in and way out e.g :-
    - in handleRequest() how you could add some unmarshalling to Castor classes but
    how do you return these ?
    - in handleResponse() - how would you receive a Castor class and add to the Soap
    Message ? How do you pass the castor class that holds the response xml into the
    handler ?
    I thinking of document oriented web service here.
    thanks
    Bruce Stephens <[email protected]> wrote:
    Hi Neil,
    Sure, here's a example that uses a handler chain without backend
    components [1]
    Bruce
    [1]
    http://webservice.bea.com/nocomponent.zip
    Neil wrote:
    Thanks for your reply. I have a couple of questions/clarificationsthough.
    [2] refers to an architecture with SOAP handlers, and also back-endcomponents
    that automatically serialize and deserialize the XML. Since I wantto do all the
    serialization/deserialization myself wouldn't a more appropriate architecture
    be: http://edocs.bea.com/wls/docs81/webserv/arch.html#1041917 ? Presumably
    then
    my handlers could delegate to whatever does the serialisation/deserialisation?
    Bruce Stephens <[email protected]> wrote:
    Hi Neil,
    Use a JAX-RPC handler. There are several examples; I'd suggest to
    begin
    with Manoj's [1] and also this section in the docs [2]
    Regards,
    Bruce
    [1]
    http://manojc.com/?sample4
    [2]
    http://edocs.bea.com/wls/docs81/webserv/arch.html#1041912
    Neil wrote:
    Hi.
    I'm using Weblogic 7.1. I'd like to be able to get the contents
    of
    the body of a SOAP call as a String, or a DOM if it's already beenparsed
    (and there's no way of preventing it from being parsed into a DOM).
    Basically I want to do my own custom de-serialization using JAXB
    or
    Castor or something similar, without using the Weblogic XML API.

  • Requirements of the webserver

    Hi all,
    I have created the web application using the SAP.Net Connector to get the data from sap
    I want to install my application in the common web server.
    I want to know the requirements of the webserevr.
    Now the webserver contains only the .netframework
    What are the things i have to instal to run my application so that SAP part should wokr
    Is the webserver needs the following
    1. SAP.Net connector
    2. SAP Front End
    Regards,
    S.Shankar

    Hi,
    Thank you for your reply
    My server is haveing only C:\WINNT\System32.
    Is it ok to copy the librfc32.dll to this folder.
    Regards,
    S.Shankar

  • I am having macbook air recently my iphotos did not open and was showing report apple and reopen but i came to know that by pressing alt and iphotos i open an new photo library and stored the pics but now how can i get the pics which i had in the earlier

    i am having macbook air recently my iphotos did not open and was showing report apple and reopen but i came to know that by pressing alt and iphotos i open an new photo library and stored the pics but now how can i get the pics which i had in the earlier photo please help me to recover my photos

    Well I'll guess you're using iPhoto 11:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • Unable to get the values from ISearchResultList

    Hi,
    I am working on KM Indexmanagemnt API for searching with TREX, to build a search similar to msn or google.
    I am following the example of Thilo Brandt, and after building the query, I am unable to retrieve the result from ISearchResultList, the results size its displaying is zero. But session.getTotalNumberResultKeys() is retrieving a value 20.
    Here is the code I am using, please tell me where I am doing wrong.
    public class SearchComponetOne extends AbstractPortalComponent {
         public void doContent(IPortalComponentRequest request,     IPortalComponentResponse response) {
      com.sap.security.api.IUser nwUser =
                   UMFactory.getAuthenticator().getLoggedInUser();
    com.sapportals.portal.security.usermanagement.IUser user = null;
    try {
          user = WPUMFactory.getUserFactory().getEP5User(nwUser);
         } catch (UserManagementException e) {
                   response.write(e.getMessage());
       response.write("<html><head><title>Search</title></head><body>");
      ResourceContext c = new ResourceContext(user);
      try {
        IIndexService indexService = (IIndexService) ResourceFactory
                             .getInstance()
                             .getServiceFactory()
                             .getService(
                             IServiceTypesConst.INDEX_SERVICE);
       SearchQueryListBuilder sqb = new SearchQueryListBuilder();
       sqb.setSearchTerm("sap");
      IQueryEntryList qel = sqb.buildSearchQueryList();
      // get an instance of federated search
    IFederatedSearch federatedSearch =
                   (IFederatedSearch) indexService.getObjectInstance(
              IWcmIndexConst.FEDERATED_SEARCH_INSTANCE);
         List indexList = new ArrayList();
         String index = null;
         if (index != null && index.length() > 0) {
              // take a specified index from index= parameter
              indexList.add(indexService.getIndex(index));
         } else {
              // take all available indexes
              indexList = indexService.getActiveIndexes();
         // it is recommended to use a search session object
         // for searching execution
         ISearchSession session = null;
         if (session == null)
         session = federatedSearch.searchWithSession(qel, indexList, c);
    response.write("Inside doContent session.getNumberResultKeys() => " + session.getNumberResultKeys()); // output as 20
         this.renderResultHeader(response, session, indexList);
         // get all results from the search session
    ISearchResultList results =     session.getSearchResults(1, session.getTotalNumberResultKeys());
    response.write(" from session => " + results.size() + " and size is : " + results.toString());  // I am getting the results.size() as zero
    Thanks

    I think the problem is UME related. I had the same problem once. Try using a system user for searching, instead of the logged on user.
    Like this:
    com.sapportals.portal.security.usermanagement.IUser user = WPUMFactory.getUserFactory().getUser("cmadmin_service");
    Please reward the points if this helps.

Maybe you are looking for

  • [SOLVED] Xorg 1.8 Warnings

    Hey all, This isn't a huge issue, as everything is working fine (afaik), but after upgrading to Xorg1.8, i started getting the following warning when starting X: [ 797.336] (WW) The directory "/usr/share/fonts/OTF/" does not exist. If anyone has come

  • 1 to 1 Mapping using Indirection is causing a StackOverflowError exception

    I am trying to map a database column that contains a BLOB (i.e. PDF) to a persistent object's attribute that will contain the BLOB as a "1 to 1 mapping" utilizing "Indirection". The type of the persistent object's attribute is ValueHolderInterface an

  • Long text for a field in Additional Data tab of DMS

    i have a field in additional data tab called Name , how can a long text be assigned to that field

  • Error message re flash download

    I received this error message - any advice? Adobe Reader could not open 'install_flash_player_osx_ub-6.dmg' 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'

  • Upgrade 11.1 to 11.2

    I am beginning to upgrade my database environments from 11.1 to 11.2. I had never used a an rman catalog prior to 11.1. When I tried to catalog a new 11.2 database I get the message: PL/SQL package RMAN_CAT.DBMS_RCVCAT version 11.01.00.07 in RCVCAT d