Simple question: code break down

Hi guys,
Just one question about the following piece of code:
public class Counter2 implements Runnable {
protected int count;
protected int inc;
protected int delay;
public Counter2(int init, int inc, int delay) {
this.count = init;
this.inc = inc;
this.delay = delay;
public void run() {
try {
for (;;) {
System.out.print(count + " ");
count += inc;
Thread.sleep(delay);
} catch (InterruptedException e) {}
public static void main(String[] args) {
new Thread(new Counter2(0, 1, 33)).start();
new Thread(new Counter2(0, -1, 100)).start();
.......in the main method, a thread is created and started all in one line.........can someone break this down and show how this would be write if done in a few lines?
Thanks,
Zaf

Thread thread1 = new Thread(new Counter2(0, 1, 33));
thread1.start();or, to break down even more...
Counter2 counter2 = new Counter2(0, 1, 33);
Thread thread1 = new Thread(counter2);
thread1.start();

Similar Messages

  • Question about breaking down a color...

    Hi,
    When I double click on a Pantone swatch in the swatches palette, and change the properties to: 1) Process and 2) CMYK...it is now in CMYK, and in the Color palette, it lists the formula out horizontally. (for example: C=0, M=2, Y=15, K=0)
    However, other CMYK colors that I have manually used the eye dropper to select, vs. converting to a Pantone, will list out the formula vertically with the color bars for each color so if I wanted to alter the variables I could.
    My question is: Are they both legit and qualifiying CMYK colors? Is there any difference here? Or is it merely the way the application is presenting them?
    Thanks for clearing up for me...

    But it is in CMYK, is it not, when I select process from the drop down and then CMYK from the other drop down upon double clicking on the Pantone swatch in the palette?
    It's just if i want to take it a step further I could somehow get it in the color palette and click something else to get the color bars?

  • Very simple question on drop down UI element

    Hi Experts,
    I have created WD screen. It fetches data from R/3 using RFC. I have created 'DropdownByIndex' UI element and mapped this with the output of RFC. It is fetching Emp Name.
    I have following reqirement:
    1) Initially first record (Emp Name) is displayed. When I am clicking on the Drop Down I can see list of rows. The first row is a blank line. I don't want to display this blank line. How I can get rid of it.
    2) In the screen there is Push Button. User has to select any record from the drop down box. After that user has to click on push button. On this some other RFC should be executed.
    The system should fetch the pernr of the given Emp Name. How I can get the pernr of the user whose Emp Name has been displayed in the Drop Down UI element.
    Regards,
    Gary

    Hi Gary,
    1. Change the selection property of the node from 0..n to 1..n
    2. On click of Push botton execute the below code
    wdContext.currentXXXNodeElement().getPernr();
    // Assuming that pernr and employee are in same node.
    // Since the current element of the node is the one which you selected in the drop down then
    // currentXXXNodeElement().getPernr() returns the same element pernr.
    Regards,
    Jaya.
    Edited by: VJR on Jul 9, 2009 5:03 PM

  • Please help me break down this code

    i really need help at understanding this, i put it together a while ago with some help but im really no pro at java but my tutor has asked me to give a break down of the code line by line
    /*  This program rolls two six-sided dice a user-specified
    number of times, and prints how many times an ordered dice combination occured.
    This is followed by a column stating how many times the sum of the two dice
    equalled 2 through 12.
    import java.util.Scanner;
    public class DiceSumDistribution
         public static void main(String[] args)
              Scanner scan = new Scanner(System.in); //receive input from keyboard
              System.out.print("Enter the number of times you would like to toss two dice: "); //prompt user for input
              int timesToToss = scan.nextInt(); //read in user input
              int[] diceSum = new int[37]; //this array holds the dice roll distribution table
              int[] frequencySum = new int[13]; //this array holds how many times a dice sum occured
              int die1, die2; //integers representing the two dice
              for(int i = 0; i < timesToToss; i++) //toss two dice as many times as the user specified
                   die1 = (int) (Math.random()*6+1); //assign random number (1 through 6) to dice one
                   die2 = (int) (Math.random()*6+1); //assign random number (1 through 6) to dice two
                   diceSum[(6*(die1-1))+die2]++; //add one to appropriate cell in distribution table
                   frequencySum[die1+die2]++; //add one to appropriate sum counter
              /*the dice roll distribution table shows how many times a certain combination of dice rolls
                      and the rows represent the other dice.
              System.out.println("\n---Dice Roll Distribution Table---");
              System.out.println("\t 1\t2\t3\t4\t5\t6"); //print distribution table
              System.out.println("\t____________________________________________"); //print distribution table
              for(int i = 1; i < 37; i++) //print all 36 cells of distribution tables
                   if(i%6 == 1) //if at the beginning of a table row
                        System.out.print(i/6+1 + "\t|"); //print row number
                   System.out.print(diceSum[i]+ "\t"); //for each cell in a row, print its value
                   if(i%6 == 0) //if at the end of a row
                        System.out.println(); //go down a line
              /*this column represents how many times a sum occured. For example, if the following output occurs
              System.out.println("\n---Dice Roll Sums---");
              for(int i=2; i<=12; i++) //for each possible dice sum
                   System.out.println(i+": " + frequencySum); //print each dice sum on its own row
    ii wrote this with some help a while ago but i havent done java at all since so im totaly clueless again. if someone could help i would be really greatful, thanks.

    ok chill man, and i wasnt asking you to do it for me or nothign liek that.
    its mostly these parts im having trouble explaining
    Scanner scan = new Scanner(System.in); //receive input from keyboard
              System.out.print("Enter the number of times you would like to toss two dice: "); //prompt user for input
              int timesToToss = scan.nextInt(); //read in user input
    die1 = (int) (Math.random()*6+1); //assign random number (1 through 6) to dice one
                   die2 = (int) (Math.random()*6+1); //assign random number (1 through 6) to dice two
                   diceSum[(6*(die1-1))+die2]++; //add one to appropriate cell in distribution table
                   frequencySum[die1+die2]++; //add one to appropriate sum counter
                   if(i%6 == 1) //if at the beginning of a table row
                        System.out.print(i/6+1 + "\t|"); //print row number
                   System.out.print(diceSum[i]+ "\t"); //for each cell in a row, print its value
                   if(i%6 == 0) //if at the end of a row
                        System.out.println(); //go down a linei know in the last one there the "if(i%6 == 1) " and "if(i%6 == 0) " effect the
    "System.out.print(i/6+1 + "\t|");" in some way, but i dont really know how to explain it.
    thanks

  • Help! I will break down for the question...

    Hi:
    When I start the OAS Manager and the websit40,the error message occurs as follows:
    Please wait while the command is being processed on host XYZ ...
    Starting ORB processes...
    Returning filename e:\AppSrv\orb\admin\.event
    waiting for ORB to be ready...
    ORB is not responding. Please restart manually...
    OWS-20214: The OAS processes can not be started, because the CORBA orb processes can not be started.
    What's more the OracleOASStart40, admin and www listener can not start!!!
    What is the problem and what shall I do? Please help me. The configure is as follows:
    Winnt4.0 + Service Pack
    Oracle8.1.5.0
    Express Server6.2
    Oracle Application Server 4.0
    I will break down nearly. Please give me some advance.
    Waiting for your reply and thanks in advance!
    null

    The reset link will only show if you have a rescue email address (which is not the same thing as an alternate email address) set up on your account : http://support.apple.com/kb/HT5312
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you will need to contact iTunes Support / Apple to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5312

  • I am finally breaking down and getting a new laptop.  My question is how do I move my Itunes library over to the new laptop?

    I am finally breaking down and getting a new laptop.  My question is how do I move my Itunes library over to the new laptop?

    Marion,
    See this Apple support document.
    http://support.apple.com/kb/HT4527
    B-rock

  • Compilations are breaking my heart-simple question...

    OK folks, this is a simple question - so why can't i find a clear answer anywhere? I am running Itunes 8, Win XP, been running Itunes for my music for about 4 years.
    Current setup 3 users running Itunes on same pC.
    My problem is when I browse my lbrary each song in my compilations are showing upas different albums e.g. "O Brother where art thou" has 14 different "albums" as do some home-made compilations I have been given.
    "group compilations when browsing is selected" but obviously isn;t working
    It's obviously simple but not to me...help
    Thanks
    Message was edited by: munstershug

    You mention enabling the iTunes option to *Group compilations when browsing*, but have you also set the *Part of a Compilation* flag to Yes for each track of your compilations? See my recent post on Grouping Tracks Into Albums, in particular the topic One album, too many covers.
    tt2

  • Current Year and current month?simple question

    How can i get four Digit current Year and two digit current month. So if is march it should get me as 03 and the Year as 2002. Please do help me, is a simple question isn't it ?. Thanks for your earliest response.
    Thank you.

    i have a directory structre of the format
    REPTS2000209/E200209-98000001
    in which 2002 is current YEAR
    09 is current month
    and 9800001 is the code i would submit(list box) from a form
    so what i need is a program that can generate the above path and open that particular PDF file
    so basically E200209-98000001.pdf is the PDF file.
    i am submitting it from JSP page. PLEASE HELP ME how can i program.

  • A simple question on random number generation?

    Hi,
    This is a rather simple question and shows my newbieness quite blatantly!
    I'm trying to generate a random number in a part of a test I have.
    So, I have a little method which looks like this:
    public int getRandomNumber(int number){
            Random random = new Random(number);
            return random.nextInt(number);
        }And in my code I do int random = getRandomNumber(blah)...where blah is always the same number.
    My problem is it always returns the same number. What am I missing here. I was under the impression that nextint(int n) was supposed to generate the number randomly!! Obviously I'm doing something wrong or not using the correct thing. Someone please point out my stupidity and point me in the right direction? Ta

    I think the idea is that Random will generate the same pseudo-random sequence over and over if you don't supply a seed value. (The better to debug with, my dear.) When you're ready to put an app into production, the seed value should be the current system time in milliseconds to guarantee a new sequence with each run.
    Do indeed move Random outside the loop. Think of it like a number factory - instantiate it once and let it pump out the random values for you as needed.

  • Breaking down Spry Data Repeat

    Hi,
    I'm trying to create a spry data set  in a table from a XML data file. I have done that in below are the  codings I obtained from Spry tool.
    <div  spry:region="KomtarETA">
      <table>
        <tr  class="TableHeader">
          <td width="100">Route</td>
           <td width="1266">Current</td>
          <td  width="1366">Destination</td>
          <td  width="1266">Next</td>
          <td  width="100">Lane</td>
        </tr>
        <tr  class="TableContent" spry:repeat="KomtarETA">
           <td>{route}</td>
          <td>{desitnation</td>
           <td>{current}</td>
          <td>{next}</td>
           <td>>{lane}</td>
    I have some individual  codings need to be done on each individual  data field. I need to  seperate all the spry data into each individual  column.
    My question  is how I can control these data individually when it's in the table ? Is  there any codings changes need to be done ?
    Please advise.
    Thanks.

    Hi,
    Actually what I mean by breaking down the data and not by means of filtering.
    I still want to display every single data but I wan it to be individualised.
    Here's the link to the test site.
    http://www.pcsb.my/test/KomtarETA.html
    What I need is that some column will be static and some will be dynamic. The actual external XML data will be dynamic as there will be a live server feeding and overwritting it.
    If you look at the Spry table portion coding inside the HTML file, it's actually a Spry repeat and I don't have much control over each individual data I want to manipulate the codings.
    Please take a look at it.
    Thanks.

  • Load Balancing Directory Servers with Access Manager - Simple questions

    Hi.
    We are in the process of configuring 2 Access Manager instances (servers) accessing the same logical LDAP repository (comprising physically of two Directory Servers working together with Multi-Master Replication configured and tested) For doing this, we are following guide number 819-6258.
    The guide uses BigIP load balancer for load balancing the directory servers. However, we intend to use Directory Proxy Server. Since we faced some (unresolved) issues last time that we used DPS, there are some simple questions that I would be very grateful to have answers to:
    1. The guide, in section 3.2.10 (To configure Access Manager 1 with the Directory Server load balancer), talks about making changes at 4 places, and replacing the existing entry (hostname and port) with the load balancer's hostname and port (assuming that the load balancer has already been configured). It says that changes need not be made on Access Manager 2 since the LDAPs are in replication, and hence changes will be replicated at all places. However, the guide also states that changes have to be made in two files, namely AMConfig.properties, and the serverconfig.xml file. But these changes will not be reflected on Access Manager 2, since these files are local on each machine.
    Question 1. Do changes have to be made in AMConfig.properties and serverconfig.xml files on the other machine hosting Access Manager 2?
    Question 2: What is the purpose of putting these values here? Specifically, what is achieved by specifying the Directory server host and port in AMConfig.properties, as well as in serverconfig.xml?
    Question 3. In the HTTP console, there is the option of specifying multiple primary LDAP servers, as well as multiple secondary LDAP servers. What is the purpose of these? Are secondary servers attempted when none of the list in the primary list are accessible? Also, if there are multiple entries in the primary server list, are they accessed in a round robin fashion (hereby providing rudimentary load balancing), or are other servers accessed only when the one mentioned first is not reachable etc.?
    2. Since I do not have a load balancer setup yet, I tried the following deviation to the above, which, according to me, should have worked. If viewed in the HTTP console, LDAP / Membership / MSISDN and Policy configuration all pointed to the DS on host 1. When I changed all these to point to the directory server on host 2 (and made AMConfig.properties and serverconfig.xml on host 1 point to DS of host 2 as well), things should have worked fine, but apparently Access manager 1 could not be started. Error from Webserver:
    [14/Aug/2006:04:30:36] info (13937): WEB0100: Loading web module in virtual server [https-machine_1_FQDN] at [search]
    [14/Aug/2006:04:31:48] warning (13937): CORE3283: stderr: Exception in thread "EventService" java.lang.ExceptionInInitializerError
    [14/Aug/2006:04:31:48] warning (13937): CORE3283: stderr: at com.iplanet.services.ldap.event.EventServicePolling.run(EventServicePolling.java:132)
    [14/Aug/2006:04:31:48] warning (13937): CORE3283: stderr: at java.lang.Thread.run(Thread.java:595)
    [14/Aug/2006:04:31:48] warning (13937): CORE3283: stderr: Caused by: java.lang.InterruptedException
    [14/Aug/2006:04:31:48] warning (13937): CORE3283: stderr: at com.sun.identity.sm.ServiceManager.<clinit>(ServiceManager.java:74)
    [14/Aug/2006:04:31:48] warning (13937): CORE3283: stderr: ... 2 more
    In effect, AM on 1 did not start. On rolling back the changes, things again worked like previously.
    Will be really grateful for any help / insight / experience on dealing with the above.
    Thanks!

    Update to the above, incase anyone is reading:
    We setup a similar setup in Windows, and it worked. Here is a detailed account of what was done:
    1. Host 1: Start installer, install automatically, chose Directory server, Directory Administration server, Directory Proxy server, Web server, Access Manager.
    All installed, and worked fine. (AMConfig.properties, serverconfig.xml, and the info in LDAP service, all pointed to HOST1:389)
    2. Host 2: Start installer, install automatically, chose Directory server, Directory Administration server, Directory Proxy server, Web server, Access Manager.
    All installed, and worked fine. (AMConfig.properties, serverconfig.xml, and the info in LDAP service, all pointed to HOST2:389)
    3. Host 1: Started replication. Set to Master
    4. Host 2: Started replication. Set to Master
    5. Host 1: Setup replication agreement to Host 2
    6. Host 2: Setup replication agreement to Host 1
    7. Initiated the remote replica from Host 1 ----> Host 2
    Note that since default installation uses abc.....xyz as the encryption key, setting this to same was not an issue.
    9. Started webserver for Host 1 and logged into AM as amadmin.
    10. Added Host 2 FQDN in DNS Aliases / Realms
    11. Added http://HOST2_FQDN:80 in the Platform server (instance) list.
    12. Started Host 2 webserver. Logged in AM on Host 2, things worked fine.
    At this stage, note the following:
    a) Host 1:
    AMConfig.properties file has
    com.iplanet.am.directory.host=host1_FQDN
    and
    com.iplanet.am.directory.port=389
    serverconfig.xml has:
    <Server name="Server1" host="host1_FQDN" port="389" type="SIMPLE" />
    b) Host 2:
    AMConfig.properties file has
    com.iplanet.am.directory.host=host2_FQDN
    and
    com.iplanet.am.directory.port=389
    serverconfig.xml has:
    <Server name="Server1" host="host2_FQDN" port="389" type="SIMPLE" />
    c) If one logs into AM, and checks LDAP servers for LDAP / Policy Configuration / Membership etc services, they all contain Host2_FQDN:389 (which makes sense, since replica 2 was initialized from 1)
    Returning back to the configuations:
    13. On Host 1, login into the Admin server console of the Directory server. Navigate to the DPS, and confgure the following:
    a) Network Group
    b) LDAP servers
    c) Load Balancing
    d) Change Group
    e) Action on-bind
    f) Allow all actions (permit modification / deletion etc.).
    g) any other configuations required - Am willing to give detailed steps if someone needs them to help me / themselves! :)
    So now, we have DPS configured and running on Host1:489, and distributing load to DS1 and DS2 on a 50:50 basis.
    14. Now, log into AM on Host 1, and instead of Host1_fqdn:389 (for DS) in the following places, specify Host1_fqdn:489 (for the DPS)--
    LDAP Authentication
    MSISDN server
    Membership Service
    Policy configuation.
    Verified that this propagated to the Policy Configuration service and the LDAP authentication service that are already registered with the default organization.
    15. Log out of AM. Following the documentation, modify directory.host and directory.port in AMConfig.properties to point to Host 1_FQDN and 489 respectively. Make this change in AMConfig.properties of both Host 1 as well as 2.
    16. Edit serverconfig.xml on both hosts, and instead of they pointing to their local directory servers, point both to host1_FQDN:489
    17. When you start the webserver, it will refuse to start. Will spew errors such as:
    [https-host1_FQDN]: Sun ONE Web Server 6.1SP5 B06/23/2005 17:36
    [https-host1_FQDN]: info: CORE3016: daemon is running as super-user
    [https-host1_FQDN]: info: CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.5.0_04] from [Sun Microsystems Inc.]
    [https-host1_FQDN]: info: WEB0100: Loading web module in virtual server [https-host1_FQDN] at [amserver]
    [https-host1_FQDN]: warning: WEB6100: locale-charset-info is deprecated, please use parameter-encoding
    [https-host1_FQDN]: info: WEB0100: Loading web module in virtual server [https-host1_FQDN] at [ampassword]
    [https-host1_FQDN]: warning: WEB6100: locale-charset-info is deprecated, please use parameter-encoding
    [https-host1_FQDN]: info: WEB0100: Loading web module in virtual server [https-host1_FQDN] at [amcommon]
    [https-host1_FQDN]: info: WEB0100: Loading web module in virtual server [https-host1_FQDN] at [amconsole]
    [https-host1_FQDN]: warning: WEB6100: locale-charset-info is deprecated, please use parameter-encoding
    [https-host1_FQDN]: info: WEB0100: Loading web module in virtual server [https-host1_FQDN] at [search]
    [https-host1_FQDN]: warning: CORE3283: stderr: netscape.ldap.LDAPException: error result (32); matchedDN = dc=sun,dc=com; No such object (DN changed)
    [https-host1_FQDN]: warning: CORE3283: stderr: Got LDAPServiceException code=-1
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.services.ldap.DSConfigMgr.getConnection(DSConfigMgr.java:357)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.services.ldap.DSConfigMgr.getNewFailoverConnection(DSConfigMgr.java:314)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.services.ldap.DSConfigMgr.getNewConnection(DSConfigMgr.java:253)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.services.ldap.DSConfigMgr.getNewProxyConnection(DSConfigMgr.java:184)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.services.ldap.DSConfigMgr.getNewProxyConnection(DSConfigMgr.java:194)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ums.DataLayer.initLdapPool(DataLayer.java:1248)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ums.DataLayer.(DataLayer.java:190)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ums.DataLayer.getInstance(DataLayer.java:215)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ums.DataLayer.getInstance(DataLayer.java:246)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.sun.identity.sm.ldap.SMSLdapObject.initialize(SMSLdapObject.java:156)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.sun.identity.sm.ldap.SMSLdapObject.(SMSLdapObject.java:124)
    [https-host1_FQDN]: warning: CORE3283: stderr: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [https-host1_FQDN]: warning: CORE3283: stderr: at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    [https-host1_FQDN]: warning: CORE3283: stderr: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    [https-host1_FQDN]: warning: CORE3283: stderr: at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    [https-host1_FQDN]: warning: CORE3283: stderr: at java.lang.Class.newInstance0(Class.java:350)
    [https-host1_FQDN]: warning: CORE3283: stderr: at java.lang.Class.newInstance(Class.java:303)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.sun.identity.sm.SMSEntry.(SMSEntry.java:216)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.sun.identity.sm.ServiceSchemaManager.(ServiceSchemaManager.java:67)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.am.util.AMClientDetector.getServiceSchemaManager(AMClientDetector.java:219)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.am.util.AMClientDetector.(AMClientDetector.java:94)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.sun.mobile.filter.AMLController.init(AMLController.java:85)
    [https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)
    [https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:322)
    [https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:120)
    [https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3271)
    [https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.StandardContext.start(StandardContext.java:3747)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ias.web.WebModule.start(WebModule.java:251)
    [https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
    [https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.StandardHost.start(StandardHost.java:652)
    [https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
    [https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355)
    [https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.startup.Embedded.start(Embedded.java:995)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ias.web.WebContainer.start(WebContainer.java:431)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:500)
    [https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161)
    [https-host1_FQDN]: failure: WebModule[amserver]: WEB2783: Servlet /amserver threw load() exception
    [https-host1_FQDN]: javax.servlet.ServletException: WEB2778: Servlet.init() for servlet LoginLogoutMapping threw exception
    [https-host1_FQDN]: at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:949)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3478)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardContext.start(StandardContext.java:3760)
    [https-host1_FQDN]: at com.iplanet.ias.web.WebModule.start(WebModule.java:251)
    [https-host1_FQDN]: at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardHost.start(StandardHost.java:652)
    [https-host1_FQDN]: at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355)
    [https-host1_FQDN]: at org.apache.catalina.startup.Embedded.start(Embedded.java:995)
    [https-host1_FQDN]: at com.iplanet.ias.web.WebContainer.start(WebContainer.java:431)
    [https-host1_FQDN]: at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:500)
    [https-host1_FQDN]: at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161)
    [https-host1_FQDN]: ----- Root Cause -----
    [https-host1_FQDN]: java.lang.NullPointerException
    [https-host1_FQDN]: at com.sun.identity.authentication.UI.LoginLogoutMapping.init(LoginLogoutMapping.java:71)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:921)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3478)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardContext.start(StandardContext.java:3760)
    [https-host1_FQDN]: at com.iplanet.ias.web.WebModule.start(WebModule.java:251)
    [https-host1_FQDN]: at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardHost.start(StandardHost.java:652)
    [https-host1_FQDN]: at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
    [https-host1_FQDN]: at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355)
    [https-host1_FQDN]: at org.apache.catalina.startup.Embedded.start(Embedded.java:995)
    [https-host1_FQDN]: at com.iplanet.ias.web.WebContainer.start(WebContainer.java:431)
    [https-host1_FQDN]: at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:500)
    [https-host1_FQDN]: at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161)
    [https-host1_FQDN]:
    [https-host1_FQDN]: info: HTTP3072: [LS ls1] http://host1_FQDN:58080 [i]ready to accept requests
    [https-host1_FQDN]: startup: server started successfully
    Success!
    The server https-host1_FQDN has started up.
    The server infact, didn't start up (nothing even listening on 58080).
    However, if AMConfig.properties is left as it originally was, and only serverconfig.xml files were changed as mentioned above, web servers started fine, and things worked all okay. (Alright, except for some glitches when viewed in /amconsole. If /amserver/console is accessed, all is good. Can this mean that all is still not well? I am not sure).
    So far so good. Now comes the sad part. When the same is done on Solaris 9, things dont work. You continue to get the above error, OR the following error, and the web server will refuse to start:
    Differences in Solaris and Windows are as follows:
    1. Windows hosts have 1 IP and hostname. Solaris hosts have 3 IPs and hostnames (for DS, DPS, and webserver).
    No other difference from an architectural perspective.
    Any help / insight on why the above is not working (and why the hell does the documentation seem so sketchy / insecure / incorrect).
    Thanks a bunch!

  • A few simple questions from a new Iphone user

    Hi a few simple questions, just got an iphone 2g - 2nd hand so not really sure what to expect. Anyway I guess my first question is about mine sometimes being a little slow - when I look at contacts and sometimes when sending a txt it slows down/freezes a little - normal?
    Secondly Edge - I havent used it much but when I have its been painfully slow, is this normal - is it always really slow - cause I had read despite not being 3g Edge was actually pretty fast - what exactly is data roaming by the way? I mean I have been switched off as basically I dont wanna use the internet till next month when they change my contract to one I get unlimited access on - is that right?
    Im having a problems syncing videos to it - it just wont sync some but will others and Im not sure why - theyre same file type and they used to sync to my ipod touch but now they wont for some reason
    Cheers

    I have the origina iPhone.
    Downloaded 2.0, synced phone with everything UNchecked. Installed 2.0. Synced with all the options checked to reload my data. The iPhone has been great. Noticed a little lag when I opened contacts. Installed the new upgrade, and everything is back, no lag.
    Edge is Edge and nothing more. It is slow compared to a strong 3g signal. But is liveable most of the time. Heavy traffic can slow it down to barely usable.
    My four wheel drive club has a web site with a large photo section. I was standing out in the middle of parking lot in San Jose, Ca and showing a friend some photos. It opens up a page of small picts to choose from. Select a print and it enlarges, He was amazed at how fast they appeard. Especially given the quantity of photos.

  • Could somebody please give me a quick break down...

    Hi there guys,
    i'm new to Flash so apologies but i am a seasoned user of
    photoshop, illustrator and indesign so i'm not completely inept at
    Adobe packages.
    Anyway i really want to learn Flash and have been dabbling a
    little, i've found a site that works similar to the way i envision
    my new site to look, i'm not going to rip it off, just taking
    inspiration from it.
    Could anyone please break down how they'd go about creating
    the fold out square effect that is on
    Periscope.
    I've tried using the 3-d rotation tool to flip the squares
    over but there must be a simpler way instead of repeating that over
    and over? if anyone could please help it would be very much
    appreciated. Breaking it down as simple as possible would be a
    great help.
    Thanks

    Thanks for replying. i've tried doing it with one square as a
    movie clip symbol and then flipping that square over with the 3d
    rotation tool and then over and over. but i'm having to draw other
    squares on other layers to make up the rest of the square as it
    gets created. is this the right way to do it? what would be the
    simplest way? i know you said its just an animation, but how would
    you create the animation?
    Thanks

  • A very very very simple question

    Hi guys,
    I have a very simple question and standard but I cant find anywhere...
    I have two dateTime variables, i need to calculate difference between this dates in days, thats it.
    I tried all functions and tried without success a Java Embed task but I couldnt retrieve this objects as java.util.Date so I couldnt calculate exactly the difference in days like this pure java code:
    (dataVencimento.getTime() - dataReferencia.getTime()) / 86400000L)
    can you help me this?

    Hi Jose
    Just see if these alternate approaches works. I know there may be lot like this and you may be lucky to find out simple out of box solution itself. If you want to solve this issue and move ahead, gives these approaches a shot.
    1. Create a very simple standalone WebService that takes 2 input date elements (can be of Date type or String type. If string type, convert to date in your java code). Create a simple operation like getDaysBetween(firstDate, secondDate). In the generated webservice impl class, use the java code apis (refer earlier link for usage), and get the difference. Return this value. NOW, invoke this WebService in your BPEL Process, and pass your 2 inputs (if the bpel payload elemetns are date object or string objects of date), and get output, and then use this output in your continuing bpel process.
    2. This approach, I did a long back. When we insert any expression using XPath, in that editor window on bottom right side, we see many categories and for each category we see list of functions we can use, like for String, we can use concat etc. I vaguely remember reading somewhere, that we can add our own custom functions also in this section. So explore this direction and see if you can add your own function and then use that fucntion with your 2 input dates.
    I have not given solution to your problem, but may be these directions can help you move ahead. Or something along these lines.
    Thanks
    Ravi Jegga

  • This is a very simple question,but I don't know.Please me.Thank you!

    I am a Chinese student in a university.I have a very simple question to ask.
    I have writed a EJB module,and I have deployed to Weblogic8.1 successfully.
    1.Now I want to write a client program.Is it necessary that the client program is packaged in the EJB package.For example ,the EJB package is Beans,is "package Beans " or "import Beans.*" necessary in my client program.
    2.If I only know the EJB interfaces,that means the EJB module is writed by other programer.I want to know how I can write the client program.How can I call EJB module's method writed by other programer.Could you give me a simple example?
    Thank you very much.

    I have writed a EJB module,and I have deployed to
    Weblogic8.1 successfully.:-)
    1.Now I want to write a client program.Is it
    necessary that the client program is packaged in the
    EJB package.For example ,the EJB package is Beans,is
    "package Beans " or "import Beans.*" necessary in my
    client program.You need not package your client with the EJB. It can be a JSP/servlet or a stand-alone application.
    2.If I only know the EJB interfaces,that means the
    EJB module is writed by other programer.I want to
    know how I can write the client program.How can I
    call EJB module's method writed by other
    programer.Could you give me a simple example?
    import java.util.*;
    import javax.naming.*;
    import javax.rmi.PortableRemoteObject;
    import examples.*;
    class TestEJBHello {
        public static void main(String[] args) {
            Context context   = null;
            Object object     = null;
            // Hashtable for environment properties.
            Hashtable env = new Hashtable();
            env.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
            env.put(Context.PROVIDER_URL, "t3://localhost:7001");
            HelloHome home            = null;
            HelloWorld hello          = null;
            try {
                context     = new InitialContext(env);
                object      = context.lookup("HelloWorldTest");
                System.out.println(" JNDI Looked up >>> " +object);
                home        = (HelloHome)PortableRemoteObject.narrow(object, HelloHome.class);
                hello       = home.create();
                System.out.println(hello.hello());
            } catch(Exception e) {
                e.printStackTrace();
            } finally {
                close(context);        // Closes the initial context.
        private static void close(Context context) {
            try {
                context.close();
                System.out.println("*** Context closed. ***");
            } catch (NamingException namingException) {
                namingException.printStackTrace();
            } catch(Exception exception) {
                exception.printStackTrace();
    }Here's a sample client app code I use for a HelloWorld EJB. You need to have a EJB client JAR containing the home and remote interfaces in the classpath during compile time and runtime.
    x

Maybe you are looking for

  • Macbook Pro & S-Video to play through TV?

    Im thinking of getting the new MBP late 2008 unibody 2.4Ghz with 2GB and would basically like to play video/iplayer and Youtube through the screen and into my TV with s-video?? Is this possible? I know Apple do an s-video cable/adaptor whcih my TV al

  • Two Issues Related

    Hello, First issue: I changed my website a bit, and in the process I changed the location of the old RSS feed for my podcast, and now iTunes subscriptions don't pick it up anymore. Second Issue: I resubmitted the podcast using the new RSS Feed locati

  • No Mail Body while using FM SO_DOCUMENT_SEND_API1 in WD Component

    Hi All, I am using  FM 'SO_DOCUMENT_SEND_API1' in a WD Component for sending mails. First of all i just to know can we use this FM without Attachment ??? As i just have to send mail without any attachment. The Mail is properly send  but without any b

  • Powerbook cover won't latch properly

    Hi, I've searched thru the forum for PB Screen Cover Latch problem. Tried some suggestion like tap the Screen cover to close the lid but still it does not close and I have to force it down to close it. Previously, I have problem closing as the latch

  • Lightroom and cropping - how accurate is it?

    Has anyone noticed the in accuracy of the cropping in Lightroom (beta 4.1)???? I'm not sure if its just me but if you crop an image in lightroom, for example, custom size, 8 x 6 (I assume its inches), and then export the image to a given resolution (