Reste Securities Code

If i want a IOS update Pop up a window ant want a Code. I dont have a Code for this. What can i do?

It is requesting the 4 digit code you use to wake/unlock your ipad from sleep.

Similar Messages

  • HT1212 how do i rest pass code on an ipad if i forgot the pass code?

    How do I rest pass code on an ipad if I forgot the pass code?

    I hope you have updated your iPad! If not you will lose everything. You will need to a full restore as Johnathan said. http://support.apple.com/kb/ht1212
    If you have backed it up follow the process on the link provided and then restore it with this link http://support.apple.com/kb/ht1414
    Good Luck!
    joe1828

  • Credit card securite code

    For the past 2 days , i have been trying to download application on my iPad 2 but every time i try, it keep asking me for my security code for my credit Dardanelles. I do put it in and I won't accept it. It keep saying " security code is invalid ". How can I fix this problem ?
    Thank you in advance for the help :)

    Sorry , i meant my credit card .

  • Rest security code for nokia 2630

    HI Team,
    I'm using nokia 2630 mobile, I forgot my security code and try to reset factory settings"*#7780#" but it’s showing code error......
    I generated Master code: 7511450750 but its showing code error......
    Can u guide me and help me to reset my security code.....
    My mail ID: ****
    Thanks in advance....... 
    Moderator's Note: Personal details removed. We kindly ask you not to share your phone number publicly on this forum.

    Take your phone to your nearest Nokia authorized service/repair center, and they should be able to reset the phone and the security code along with that.
    Find a repair center through the "Contact us" link at the upper right hand side of this page.

  • Killing a Thread that runs a C code

    Hi,
    In my Java application, i use a library written in C++ using JNI. The tasks that are executed by the C library sometimes take a lot of time, so I was considering adding an option for the user to be able to stop it. As these tasks are running in a thread, i was wondering whether there is a way to safely do this?
    I have searched the forum, but did not manage to find some post with similar problem. As far as I could see, stopping a thread in general is not safe...
    Suggestions guys?
    Thanks

    shashi_rajak wrote:
    you can stop the thread by setting the value of thread to null.---------------> the thread will not be stopped immediately.So setting it to null won't change anything at all. Yes, that's correct, but that isn't what you said previously.
    better put a guarded block in the thread code .What's a guarded block?
    so that thread will not process the rest of code.Ah, you mean that you need some kind of flag, latch or other way to signal. That's correct, but you never said that (you actually still haven't said that)
    >
    >
    user can again start the thread by starting the thread.-----------------> its mean by creating a new thread object. We aren't mind readers. Calling start of a new thread will of course work, but that isn't what you said.
    since you cannot start a already started thread its throws invalid State Exception.Yes, we knew that. That's why we corrected you.
    this current forum is not for beginner . Eh. Hmm.. Ok, so I registered in 2000, and have quite many posts, and you came to the conclusion that I'm a beginner?
    It has the heading Java Programming " not "New to java". please use your brain.Did you use yours?

  • Trouble compiling code

    I'm trying to write a rock, paper, scissors program but am having trouble converting an integer to its appropriate string. Here is the code I have:
    // Rock.java
    // Play Rock, Paper, Scissors with the user
    import java.util.Scanner;
    import java.util.Random;
    public class Rock
    public static void main(String[] args)
         String personPlay; //User's play -- "R", "P", or "S"
         String computerPlay; //Computer's play -- "R", "P", or "S"
         int computerInt; //Randomly generated number used to determine
         //computer's play
    Scanner scan = new Scanner(System.in);
         Random generator = new Random();
         computerInt = generator.nextInt(3);//Generate computer's play (0,1,2)
         //Translate computer's randomly generated play to string
         switch (computerInt)
         case 0:
              System.out.println ("R");
              break;
         case 1:
              System.out.println ("P");
              break;
         case 2:
              System.out.println ("S");
              break;
    System.out.println ("Enter your play: R, P, or S");//Get player's play from input-- note that this is stored as a string
    personPlay = scan.nextLine();
    personPlay = personPlay.toUpperCase();     //Make player's play uppercase for ease of comparison
    System.out.println ("Computer play is " + computerPlay);     //Print computer's play
         //See who won. Use nested ifs instead of &&.
         if (personPlay.equals(computerPlay))
         System.out.println("It's a tie!");
         else
              if (personPlay.equals("R"))
                   if (computerPlay.equals("S"))
                   System.out.println("Rock crushes scissors. You win!!");
              if (computerPlay.equals("P"));
                   System.out.println("Paper covers rock. You lose");
                   if (personPlay.equals("P"))
                        if (computerPlay.equals("R"))
                        System.out.println("Paper covers rock. You win!!");
                        if (computerPlay.equals("S"))
                                  System.out.println("Scissors cuts paper. You lose");
                   if (personPlay.equals("S"))
                             if (computerPlay.equals("R"));
                                       System.out.println("Rock crushes scissors. You lose");
                             if (computerPlay.equals("P"))
                             System.out.println("Scissors cuts paper. You win!!");
              //... Fill in rest of code
    My compiling error is that the string computerPlay was not initialized.. I think I need to do something more in the switch section of the code but can't figure out what. Thanks ahead of time for any advice!

    soccer89 wrote:
    My compiling error is that the string computerPlay was not initialized.. I think I need to do something more in the switch section of the code but can't figure out what. Thanks ahead of time for any advice!Instead of running System.out.println() set the value in your switch statementl then run
    System.out.println(computerPlay);after it's properly set.
    BTW, rather than a switch statement, you could use
    computerPlay = "RPS".substring(computerInt, computerInt + 1);I'll leave you to work out why.
    Winston

  • Error when building the Java pricing userexit manual code

    I went throught the manual for the pricing userexit manual... it tells you to ignore the errors when you do an ant build but I want to remove all the errors since they dont let the rest the code compile.... where are the jars for these errors: 
    [javadoc] C:\DEV\PRC_UE_CUSTOMER\lib_src\src\com\sap\spc\document\DocumentConstants.java:16: package com.sap.vmc.logging does not exist
         [javadoc] import com.sap.vmc.logging.Category;
         [javadoc]                            ^
         [javadoc] C:\DEV\PRC_UE_CUSTOMER\lib_src\src\com\sap\spc\document\DocumentConstants.java:26: cannot resolve symbol
         [javadoc] symbol  : class Category
         [javadoc] location: class com.sap.spc.document.DocumentConstants
         [javadoc]     public static final Category CATEGORY = Category.getCategory(Category.APPLICATIONS, "/AP/SPC/Document");
         [javadoc]                         ^

    See the [SAP note 809820 - Userexit concept for pricing|https://service.sap.com/sap/support/notes/809820]
    Use ZIP file the attached to the above note - PRC_UE_CUSTOMER_V105.zip
    ZIP file contains an Eclipse .project file that has the required build path. If you read the documents carefully, it does refer this project file.
    <?xml version="1.0" encoding="UTF-8"?>
    <classpath>
         <classpathentry kind="src" path="src"/>
         <classpathentry sourcepath="lib_src/src" kind="lib" path="lib_api"/>
         <classpathentry kind="lib" path="lib_vmc_api/base_services_stripped_api.jar"/>
         <classpathentry kind="output" path="bin"/>
    </classpath>
    Again read the documents thoroughly. They are neither fictions nor non-fictions, but technical documents written with care. So, we must also read them with care. If we don't follow them, then it is time to engage someone who does. )
    BTW, coming back to the Java basics - One must have a class and source files to debug. You won't get a class file unless it is compiled. The Java file won't compile correctly if it has syntax / reference errors. Unfortunately or fortunately, all these apply to the IPC java userexit development as well.
    Easwar Ram

  • Laisser tourner un sous-vi pendant le reste du programme

    Bonjour,
    J'aimerai savoir s'il est possible de laisser tourner un sous-vi sans avoir a le quitter et de pouvoir continuer de générer le reste du code principal. (Par appel dynamique peut-être??)
    Merci d'avance pour votre aide et le temps que vous y avez consacre.

    Je vais essayer d'expliquer ca le plus clairement possible.
    En fait lors de mon arrivée, il existait un système qui contrôle des LED. Pour le faire fonctionner, on devait ouvrir un 1e programme labview (ICL) qui envoie a une interface gérée par une carte arduino différents paramètres (intensité, temps, itérations...). Ce programme ICL doit rester ouvert. Je ne sais pas pour quelles raisons d'ailleurs. On ouvrait ensuite un deuxième programme labview qui lorsqu' appuye sur start contrôle les LED pendant le nombre d'itérations demandées.
    Mon maître de stage ma demander alors de programmer de 1 a 15 paramètres différents a générer le même nombre de fois de façon aléatoire durant un certain nombre d'iteration.Pour schématiser avant on avait 1 paramètre, si on avait 5 itérations ca donnait 1-1-1-1-1
    Maintenant dans mon cas par ex avec 5 paramètres et 10 itérations j'aurait par exemple 3-1-5-4-2-5-3-1-2-4 (chaque chiffre représentant un paramètre différent)
    J'ai réussi a faire ca a l'aide de scilab entre autre. Mes paramètres s'envoie sans soucis dans ICL (1e programme que j'ai inclut sous le forme de sous VI). Le problème est que vu que ce programme doit rester ouvert (ICL, le sous VI), quand je lance mon programme, la fenêtre de l'ICL s'ouvre avec et tant que je ne lui dis pas de quitter, je n'ai pas accès a mon second programme qui contrôle mes LED.
    Est-ce plus clair?

  • Creating REST API on SAP HANA cloud

    Hi,
    I have installed sap hana sdk in my eclipse and created a dynamic web project and deployed it. I have created a sample REST service using Jersey.
    I have also tested this REST service in Apache tomcat and when I call it it gives me proper response. But same REST service when I call on SAP HANA i get following error: Please help me in resolving this error.
    URL: http://localhost:8181/HelloWorld/rest/UserInfoService/name/girish
    Response:
    Status
    500 Internal Server Error Loading time: 35
    Request headers
    User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.131 Safari/537.36 
    Content-Type: text/plain; charset=utf-8  
    Accept: */* 
    Accept-Encoding: gzip,deflate,sdch 
    Accept-Language: en-US,en;q=0.8,kn;q=0.6 
    Response headers
    Content-Type: text/html;charset=utf-8  
    Content-Language: en  
    Content-Length: 5473  
    Date: Tue, 06 May 2014 09:49:15 GMT  
    Connection: close 
    Server: SAP  
    com.sap.security.auth.service.webcontainer.internal.Authenticator.invoke(Authenticator.java:192)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
    com.sap.core.tenant.valve.TenantValidationValve.invokeNextValve(TenantValidationValve.java:221)
    com.sap.core.tenant.valve.TenantValidationValve.invoke(TenantValidationValve.java:103)
    com.sap.js.statistics.tomcat.valve.RequestTracingValve.invoke(RequestTracingValve.java:24)
    com.sap.core.js.monitoring.tomcat.valve.RequestTracingValve.invoke(RequestTracingValve.java:27)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
    org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
    org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    java.lang.Thread.run(Thread.java:744)
    </pre></p><p><b>root cause</b> <pre>java.lang.NoClassDefFoundError: javax/annotation/Priority
    org.glassfish.jersey.model.internal.ComponentBag.modelFor(ComponentBag.java:483)
    org.glassfish.jersey.model.internal.ComponentBag.access$100(ComponentBag.java:89)
    org.glassfish.jersey.model.internal.ComponentBag$5.call(ComponentBag.java:408)
    org.glassfish.jersey.model.internal.ComponentBag$5.call(ComponentBag.java:398)
    org.glassfish.jersey.internal.Errors.process(Errors.java:315)
    org.glassfish.jersey.internal.Errors.process(Errors.java:297)
    org.glassfish.jersey.internal.Errors.process(Errors.java:228)
    org.glassfish.jersey.model.internal.ComponentBag.registerModel(ComponentBag.java:398)
    org.glassfish.jersey.model.internal.ComponentBag.register(ComponentBag.java:235)
    org.glassfish.jersey.model.internal.CommonConfig.register(CommonConfig.java:410)
    org.glassfish.jersey.server.ResourceConfig.register(ResourceConfig.java:420)
    org.glassfish.jersey.server.ResourceConfig.registerClasses(ResourceConfig.java:496)
    org.glassfish.jersey.server.ResourceConfig$RuntimeConfig.&lt;init&gt;(ResourceConfig.java:1177)
    org.glassfish.jersey.server.ResourceConfig$RuntimeConfig.&lt;init&gt;(ResourceConfig.java:1144)
    org.glassfish.jersey.server.ResourceConfig.createRuntimeConfig(ResourceConfig.java:1140)
    org.glassfish.jersey.server.ApplicationHandler.&lt;init&gt;(ApplicationHandler.java:317)
    org.glassfish.jersey.server.ApplicationHandler.&lt;init&gt;(ApplicationHandler.java:284)
    org.glassfish.jersey.servlet.WebComponent.&lt;init&gt;(WebComponent.java:311)
    org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:168)
    org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:358)
    javax.servlet.GenericServlet.init(GenericServlet.java:244)
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
    com.sap.security.auth.service.webcontainer.internal.Authenticator.invoke(Authenticator.java:192)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
    com.sap.core.tenant.valve.TenantValidationValve.invokeNextValve(TenantValidationValve.java:221)
    com.sap.core.tenant.valve.TenantValidationValve.invoke(TenantValidationValve.java:103)
    com.sap.js.statistics.tomcat.valve.RequestTracingValve.invoke(RequestTracingValve.java:24)
    com.sap.core.js.monitoring.tomcat.valve.RequestTracingValve.invoke(RequestTracingValve.java:27)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
    org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
    org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    java.lang.Thread.run(Thread.java:744)
    My web.xml file :
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns="http://java.sun.com/xml/ns/javaee"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
      id="WebApp_ID" version="2.5">
      <display-name>HelloWorld</display-name>
      <servlet>
      <description></description>
      <display-name>HelloWorldServlet</display-name>
      <servlet-name>HelloWorldServlet</servlet-name>
      <servlet-class>com.hana.servlets.HelloWorldServlet</servlet-class>
      </servlet>
      <servlet-mapping>
      <servlet-name>HelloWorldServlet</servlet-name>
      <url-pattern>/</url-pattern>
      </servlet-mapping>
      <!-- <display-name>HelloWorld</display-name>  -->
      <servlet>
      <servlet-name>Jersey REST Service</servlet-name>
      <servlet-class>org.glassfish.jersey.servlet.ServletContainer</servlet-class>
      <init-param>
      <param-name>jersey.config.server.provider.packages</param-name>
      <param-value>com.hana.rest.services</param-value>
      </init-param>
      <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet-mapping>
      <servlet-name>Jersey REST Service</servlet-name>
      <url-pattern>/rest/*</url-pattern>
      </servlet-mapping>
    </web-app>
    My REST service code:
    import javax.ws.rs.GET;
    import javax.ws.rs.Path;
    import javax.ws.rs.PathParam;
    import javax.ws.rs.Produces;
    import javax.ws.rs.core.MediaType;
    @Path("UserInfoService")
    public class UserInfo {
      @GET
      @Path("/name/{nameParam}")
      @Produces(MediaType.TEXT_XML)
      public String userName(@PathParam("nameParam") String nameParam) {
      String name = nameParam;
      return "<User>" + "<Name>" + name + "</Name>" + "</User>";
      @GET
      @Path("/age/{j}")
      @Produces(MediaType.TEXT_XML)
      public String userAge(@PathParam("j") int j) {
      int age = j;
      return "<User>" + "<Age>" + age + "</Age>" + "</User>";

    Hi,
    I have an alternative example. Your resource extends Application:
    public class MyResource extends javax.ws.rs.core.Application
    Then register:
       <servlet>
            <servlet-name>package.to.MyRestResource</servlet-name>
            <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet-mapping>
            <servlet-name>package.to.MyRestResource</servlet-name>
            <url-pattern>/rest/*</url-pattern>
        </servlet-mapping>
    I use jersey 1.18. You may need to change the version of web.xml to 3:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns="http://java.sun.com/xml/ns/javaee"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3.xsd" id="WebApp_ID" version="3">
    cheers,
    peter

  • Redeeming credit for iTunes store from gift card. system asking for security code and gift card thrown away.

    Redeeming credit from gift card for itunes. System asking for securitity code and gift card is thrown away.

    On the main iTunes store screen, click on Redeem on the right side.
    Put in the card number.
    It will ask to *Create new account* or *Use existing account*.
    If you do not have an account, select *Create new account*.
    You don't have to enter in a CC number. You cna if you want but it's not required.

  • Error while sendinf pdf file as attachment

    hi all.,
    am trying to send the pdf file of a smartform as attachment thru mail .. but its getting failed am getting error (sy-subrc = 6 ) after calling the fm so_new_document_att_send_api1 .. pls. suggest the possible cause of errors.
    CALL FUNCTION 'CONVERT_OTF_2_PDF'
            IMPORTING
              bin_filesize           = lv_bin_filesize
            TABLES
              otf                    = ls_job_output_info-otfdata
              doctab_archive         = it_docs
              lines                  = it_lines
            EXCEPTIONS
              err_conv_not_possible  = 1
              err_otf_mc_noendmarker = 2
              OTHERS                 = 3.
          IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
    *--- Get filename to store DYNAMIC
          IF p_lsdir IS NOT INITIAL.
            MOVE p_lsdir  TO lv_path.
          ENDIF.
          CONDENSE wa_kna1-kunnr.
          CONCATENATE 'SOA' wa_kna1-kunnr  '.pdf' INTO lv_name.
          CONCATENATE  lv_path lv_name INTO  lv_fullpath.
          break ibm_prasad.
          CLEAR wa_buffer.
          LOOP AT it_lines.
            TRANSLATE it_lines USING '~'.
            CONCATENATE wa_buffer it_lines INTO wa_buffer.
          ENDLOOP.
          TRANSLATE wa_buffer USING '~'.
          DO.
            i_record = wa_buffer.
            APPEND i_record.
            SHIFT wa_buffer LEFT BY 255 PLACES.
            IF wa_buffer IS INITIAL.
              EXIT.
            ENDIF.
          ENDDO.
          REFRESH: i_reclist,
                   i_objtxt,
                   i_objbin,
                   i_objpack.
          CLEAR wa_objhead.
          i_objbin[] = i_record[].
          i_objtxt = 'SOA test with pdf-Attachment!'.
          APPEND i_objtxt.
          DESCRIBE TABLE i_objtxt LINES v_lines_txt.
          READ TABLE i_objtxt INDEX v_lines_txt.
          wa_doc_chng-obj_name = 'SOA'.
          wa_doc_chng-expiry_dat = sy-datum + 10.
          wa_doc_chng-obj_descr = 'SOA'.
          wa_doc_chng-sensitivty = 'F'.
          wa_doc_chng-doc_size = v_lines_txt * 255.
    *     Maint Text
          CLEAR i_objpack-transf_bin.
          i_objpack-head_start = 1.
          i_objpack-head_num = 0.
          i_objpack-body_start = 1.
          i_objpack-body_num = v_lines_txt.
          i_objpack-doc_type = 'RAW'.
          APPEND i_objpack.
    * Attachment (pdf-Attachment)
          i_objpack-transf_bin = 'X'.
          i_objpack-head_start = 1.
          i_objpack-head_num = 0.
          i_objpack-body_start = 1.
          DESCRIBE TABLE i_objbin LINES v_lines_bin.
          READ TABLE i_objbin INDEX v_lines_bin.
          i_objpack-doc_size = v_lines_bin * 255 .
          i_objpack-body_num = v_lines_bin.
          i_objpack-doc_type = 'PDF'.
          i_objpack-obj_name = 'SOA Eail'.
          i_objpack-obj_descr = 'test'.
          APPEND i_objpack.
          CLEAR i_reclist.
          i_reclist-receiver =  <mail id>
          i_reclist-rec_type = 'U'.
          APPEND i_reclist.
          CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
            EXPORTING
              document_data              = wa_doc_chng
              put_in_outbox              = 'X'
              commit_work                = 'X'
            TABLES
              packing_list               = i_objpack
              object_header              = wa_objhead
              contents_bin               = i_objbin
              contents_txt               = i_objtxt
              receivers                  = i_reclist
            EXCEPTIONS
              too_many_receivers         = 1
              document_not_sent          = 2
              document_type_not_exist    = 3
              operation_no_authorization = 4
              parameter_error            = 5
              x_error                    = 6
              enqueue_error              = 7
              OTHERS                     = 8.
    thanks
    suresh

    u need to use this SO_NEW_DOCUMENT_ATT_SEND_API1
    check this code tutorial on how to add pdf file as an attachment
    u need to modify the code to read the pdf from directory then rest of code is same
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/mailsendthroughoutputcontrols
    кu03B1ятu03B9к
    Edited by: kartik tarla on Mar 9, 2009 7:31 PM

  • How to get Portal user from a standalone Java application

    Hi,
    I have a standalone Java application from where I need to fetch the Portal User Information like userid and email id.
    I am using the below line of code
    iUser = UMFactory.getUserFactory().getUserByLogonID("e017939");
    I have included the jar file com.sap.security.api , But it was giving me the below exception
    java.lang.NoClassDefFoundError: com/sap/tc/logging/Location
         at com.sap.security.api.UMFactory.<clinit>(UMFactory.java:55)
         at com.am.wcas.java.mailscheduler.kmaccess.FetchDataFromKM.getiUser(FetchDataFromKM.java:29)
         at com.am.ScheduleEmails.main(ScheduleEmails.java:89)
    and I am getting a pop Up message from the Java Virtual Machine Launcher, saying a Fatal Exception has occured and the Program will exit.
    Then I went throught he SDN threads and they asked me to include the
    logging.jar and com.sap.security.perm.api .
    I Included them, then also, it is giving me Exception
    java.lang.NoClassDefFoundError: com/sap/engine/lib/logging/LoggingHelper
         at com.sap.security.api.UMFactory.<clinit>(UMFactory.java:56)
         at com.am.FetchKMData.main(FetchKMData.java:30)
    Exception in thread "main"
    and I am getting a pop Up message from the Java Virtual Machine Launcher, saying a Fatal Exception has occured and the Program will exit.
    Kindly let me know if it is possible to access the User info using UMFactory in a standalone Java application. If yes kindly let me know where i am going wrong.
    Regards,
    Shilpa B.V

    Hi Shilpa,
    1. Check that you have added com.sap.security.api within the Your Project>Libraries folder (under navigation tab) and also added jars in the build path of the Your Project under project>properties>Build Path.
    2. In case you have a DC instead of Web Dynpro Project then you have to add the com.sap.security.api under Your DC>Used DCs and have compile time and runtime dependency added.
    Here java.lang.NoClassDefFoundError is caused basically due to only build time dependency added and reference to the jar missing at runtime. Rest the code to retrieve the current user id using UME API and getUserByLogOnID("....") method with/without portal environment would not be an issue at all.
    Regards,
    Tushar SInha

  • Is there an easy way to go back to a specific part of a program?

    I am writing a program and what I need is that once it has performed one action according to the users input, I need it to go back to just after the start of the program.
    for example is have:
    (Start of code)
    menu
    -if
    --if
    --else
    -else if
    --if
    ---for
    --else
    (rest of code)what i need is once it has done either one of the (*) for it to go back to the menu
    However I am not sure how to do this. The only way I know of going back is with while loops but I dont think (?) this would work here.
    I hope you understand this, trying not to paste my whole code in here but will do if people dont underatand what i mean!

    Thanks for the tip.
    I had never used the continue statement before so looked it up. Tried it and it half worked but tried other things mentioned on the same page and using break; got it to do what I was after!
    thankyou all for your help and leading me in the right direction. (please don't tell my tutor im up at almost 4am still doing my java work, and not becuase it has to be in soon, becuase worryingly im rather enjoying it)
    lol.

  • How can I get the Voice memo's source computer file to keep the original file name?

         I ran out of space in my iPhone some weeks ago and I've been cleaning up. I am pretty much done deleting the photos and apps. The only thing I need to finish is erasing my voice memos. I already synced my music/voice memos with my computer, the only problem is that when I get the files from the iTunes media it changes the name and makes it extremely hard to organize. I want to upload this files to another website so I can access them freely.
    I would REALLY appreciated if anyone could tell me how to fix this or if you have another method please tell me.

    This is pretty straightforward.
    If the file isn't too big you can just read the entire file contents:
    set fileContents to read file "HD:path:to:the:file.txt"
    Once you've read it in, you can iterate through it with a repeat loop like:
    repeat with eachParagraph in (paragraphs of fileContents)
      -- code here to process each line
    end repeat
    Within the loop, eachParagraph represents each successive line in the file, so all you need to do is pull out the data you want. Now your subject says that your file is tab-delimited, but your example uses commas, so you may need to adjust this script depending on what's actually the case:
    set my text item delimiters to tab -- or "," as appropriate
    set firstName to text item 1 of eachParagraph
    set lastName to text item 2 of eachParagraph
    set emailAddr to last text item of eachParagraph
    -- rest of code here to send an email
    The last thing to do is to reset the 'text item delimiters' to their previous value so you don't end up getting confused.
    So, putting that all together you end up with something like:
    set fileContents to read file "HD:path:to:the:file.txt"
    set oldTIDs to my text item delimiters -- additional code to remember the current TIDs
    set my text item delimiters to tab -- or ","
    repeat with eachParagraph in (paragraphs of fileContents)
      set firstName to text item 1 of eachParagraph
      set lastName to text item 2 of eachParagraph
      set emailAddr to last text item of eachParagraph
      -- rest of code here to send an email
    end repeat
    set my text item delimiters to oldTIDs -- restore the TIDs for cleanliness
    Note that this should work for reasonably-sized files (up to a few thousand records). If it's much more than that you may need something a little more sophisticated to read the file progressively rather than all at once.

  • Rather odd problem with package naming...

    Background info:
    I'm working on a web-based application, on a Tomcat server. Classes (and packages) must be in a subfolder of WEB-INF/classes of the app's root. So the packages are in WEB-INF/classes/com/<package>.
    The older packages are in com/gestion (for the package com.gestion ) and the newer ones are in com/incsolution/<various> where <various> can be either chart, util or pgm - following convention more closely.
    OK! We have a class called SqlBean in com.gestion, which starts off like so:package com.gestion;
    import java.sql.*;
    import javax.sql.*;// stock pour pooled connection c'est dans javax.sql
    import javax.naming.*;
    import java.io.*;
    public abstract class SqlBean
        ...rest of code...
    }and is used in several other objects, like TransferQBean.java, which is in the same package:
    package com.gestion;
    import java.sql.*;
    public class TransfertQBean extends SqlBean
       ...rest of code...
    }Now, i've been working (with others) on this project for 2 years now, and up until last week, there was no problem with the way things were called. Come Monday (April 11), the classes won't compile any more - gives me this error:
    classes/com/gestion/TransferQBean.java [5.1] cannot resolve symbol
    symbol : class SqlBean
    location: class com.geastion.TransferQBean
    public class TransferQBean extends SqlBean
    ....................................................................^
    Now if i add classes to com.gestion to get...
    package classes.com.gestion;
    import java.sql.*;
    public class TransfertQBean extends SqlBean
       rest of code...
    }and same for SqlBean...
    package classes.com.gestion;
    import java.sql.*;
    import javax.sql.*;// stock pour pooled connection c'est dans javax.sql
    import javax.naming.*;
    import java.io.*;
    public abstract class SqlBean
       ...rest of code...
    }...it works, but that's not how it's supposed to be. What puzzles me the most is how this came about suddenly.
    Anyone have an idea what might be causing this? AFAIK, it's abnormal...
    JH

    classes/com/gestion/TransferQBean.java [5.1] cannot resolve symbol
    symbol : class SqlBean
    location: class com.geastion.TransferQBean
    public class TransferQBean extends SqlBean
    ....................................................................^The solution to your problem is simply that your classpath is incorrect at compile-time. How you fix that depends on how you compile (from an IDE, from the command-line javac tool, etc). But whatever you do, don't make your solution depend on a system environment CLASSPATH variable.

Maybe you are looking for

  • Can java mail be used for distributed exchange server?

    H, I am trying to connect to MS Exchange Server to read my mails using Java Mail API. I have a questions about using it with Exchange server. We have 6-7 exchange servers in our company and different users have mailboxes on different servers. My inte

  • Set UP Wizard

    Set up Wizard is running, but after I select my language, I get the blue spinning cicle and the message "Activating" until the battery dies. Why won't my phone active?

  • Automatically fill input fields based on selection from dynamic drop down

    Hi All, I tried to search before posting, but i cannot find appropriate thread (maybe wrong keyword). My scenario: 1. In my offline interactive form, I have:     a.  Material Number --> drop down field with "Allow Custom Text Entry" ticked     b.  1

  • Adobe form designer

    Hello! As I read, there was no adobe pdf form designer in the netweaver development studio. Also I read, that late this year, there should be a new preview release, in which the adobe designer will be integrated. Is the download already the new one?

  • Console Task Target System.WorkItem.ChangeRequest also shows for Service Requests

    Console tasks specifically targeted at Change Requests also shows up in all Service Request views. System.WorkItemChangeRequest is located in the MP System.WorkItem.ChangeRequest.Library. Is this a bug, or me doing something wrong? Currently on a clo