Pls help me out in notifyAll

class Test2 implements Runnable
     static int n=0;
     int a=0;
     Test2(int a)
          this.a=a;
          Thread t = new Thread(this);
          t.start();
     public void run()
          if(a==1)
               producer();
          else
               consumer();               
     synchronized void producer()
          System.out.println("Starting Producer");
          for(int i=0;i<5;i++)
               n++;
               System.out.println("producer n = " + n);
               notifyAll();
               try {Thread.sleep(1000); } catch(Exception e) {}
          notifyAll();
     synchronized void consumer()
          System.out.println("Starting Consumer");
          try {wait(); } catch(InterruptedException e) {System.out.println("interupted...");}
          for(int i=0;i<5;i++)
               System.out.println(Thread.currentThread() + " : n = " + n);
               try {wait(); } catch(InterruptedException e) {System.out.println("interupted...");}
     public static void main(String args[])
          new Test2(1);
          new Test2(0);
          new Test2(0);
}this is my source i'm trying to implement single producer and multiple receiver
the problemis that wait function is called but its not coming out of wait when notifyAll is called pls can someone help me
o/p
starting consumer
starting producer
producer n=1
starting consumer
thread thread-2,5,main : n=1
thread thread-1,5,main : n=1
producer n=2
producer n=3
producer n=4
producer n=5
the consumer is stuck producer produces at 1 second each
i have to press [ctrl+c] to exit.

>
synchronized void producer()
     System.out.println("Starting Producer");
     for(int i=0;i<5;i++)
          n++;
          System.out.println("producer n = " + n);
          notifyAll();
          try {Thread.sleep(1000); } catch(Exception e) {}
     notifyAll();
}wait()'&#105;ng on an object temporarily releases the object monitor. Sleeping does not release any monitors.
EDIT: This is important because the other threads, although notified, will not be able to acquire the monitor until the producer thread releases it.
You should only synchronize around the part that modifies the shared state. The sleep should be outside of that synchronized block.
Edited by: paul.miner on Jan 22, 2008 9:26 AM

Similar Messages

  • Hi guys (very urgent pls help me out)

    i have an doubt that iam using JBoss AS, my scienraio is
    inital when start my Application Server it will connects to mysql DB datasource, i will retrieve some values those are DB Names like oracle,sql server,db2 etc in my JSP page iam placed at combo box upto this i am very much successful but now my problem is after gettinh those values in html select box.
    if user selects Oracle and in the same screen user can enter connection config details and after submitting the request. At runtime App Server want to connect for that particular Database.
    for ex Oracle and its connection parameters then it want to connect that particular Database without restarting the server.
    so mysql is internal DB and Oracle is external db. how to manage this scienraio
    please anyone knows solution, pls help me out......
    regards
    Yadav

    hi
    the message is very clear that the sold to party ur refering is not from the same sales area. if u have the customer already then extend the same to the said sales area, by common division and distribution channel
    <b>reward points</b>
    Regards

  • Hi.can u pls help me out I'm stuck and don't know what to do..

    pls help me out...can i activate my iPhone 4s without knowing the previous owners iCloud password???i bought the phone and have no clue on where to find him.

    TJ Junior wrote:
    pls help me out...can i activate my iPhone 4s without knowing the previous owners iCloud password???i bought the phone and have no clue on where to find him.
    Sorry no.  If you don't know the previous owners info or can't get a hold of them, then you now own an ibrick.
    Find My iPhone Activation Lock: Removing a device from a previous owner’s account - Apple Support
    Apple can't help you either.

  • Hey there, whenever i try to start iTunes in my laptop amsg coming up saying : data execution prevention prevented iTunes from starting (Dep), would you Pls help me out.I have windows vista installed.

    hey there, whenever i try to start iTunes in my laptop amsg coming up saying : data execution prevention prevented iTunes from starting (Dep), would you Pls help me out.I have windows vista installed.

    No, i do not have quickTime player.
    I have tried to close dep off for iTunes but failed to do so as i got a msg that iTunes can't work without Dep in execution data prevention.

  • Problem with Sales Order BAPI  Update...Very Very Urgent....Pls Help me out

    I am trying to update the sales order text using "BAPI_SALESORDER_CHANGE" But i am getting an error as " Sold-to party E455 not maintained for sales area E901 C1"
        I passed the sales order no, and the text to be upated and the Update flag is set to "U".
        When i try giving the same values in se37 it updates the sales order text successfully but when i use the same BAPI in the report i am getting the above error. Can anyone pls help me out.

    hi
    the message is very clear that the sold to party ur refering is not from the same sales area. if u have the customer already then extend the same to the said sales area, by common division and distribution channel
    <b>reward points</b>
    Regards

  • Urgent :: FRM-40654 || pls help me out

    Hello forum
    Pls i need an immediate help. so suggestions invited...
    i have a block having 1 db item and 1 non db item . i m shoving LOV for filling those..
    these 2 are displayed multiple times on the canvas.
    i want that whn user select one from LOV then in ssecond entry it will not appear in the LOV so i write a query in the LOV.
    select a,b from <table1> where a not in (select a from table2 where <primary key condtions>
    for getting data from table 2 i have to post the data which is in the canvas so i write post on button- press
    so it's giving me error
    FRM-40654 other user updated the table so need to requery
    so pls help me out in resloving this prob'

    hello forum
    pls help me out ... i m in urgent need .
    thanking u

  • HT1267 I lost my Iphone3G. I don't have any tracking app. in cell.How can I find my phone. Pls. help me out..

    I lost my Iphone3G. I don't have any tracking app. in cell.How can I find my phone. Pls. help me out..

    In your situation as you describe it, all you can do is physically look for it.  There is no other way to locate it.  Sorry.
    Hope this helps

  • Hi i m using 4s and its updated but i cant configure with microsoft exchange for my gmail account. Anytime i tried to configure it the message comes connection to the server failed. Pls help me out.

    Hi i m using 4s and its updated but i cant configure with microsoft exchange for my gmail account. Anytime i tried to configure it the message comes connection to the server failed. Pls help me out.
    <Email Edited by Host>

    Discontinued by Google. Read here:
    http://googlesystem.blogspot.com/2012/12/google-sync-discontinued-for-gmail.html

  • I have an iPhone 5 16gb white color and i did not get any of the services from apple pls help[ me out

    I have one iphone 5 16 gb white colour with me and its in still under warranty and my phone was fallen down by chance and it got turned off totally and not even switched on also then i went to apple authorised service center for regarding the same . then service center people said that sir you need to submit your phone , after that i left my phone to service center and after two days i have got one call from service center that sir your phone is under phisical damaged condition so u will not be abel to get warranty from apple this will cover under paid replacement and you need to talk to apple customer care also regarding this .same .
    Then i called up to apple customer care and they said sir  we have got some images from the service center regarding your phone and we found that your logic board is damaged from inside and you would not be abel to get the paid replacement also you need to buy a new phone on stock price i was shocked on that time why would i pay 40 to 50 thouasnd again on iphone if its not that much stronger to take bit of imapcts like this
    I had talked numbers of time to service center also but they all are denied against the complainst
    if any body is there how can help me out regarding this so pls register my complaint and help me out from this highly dissatisfied service from apple .
    Thnaks
    karan

    Warranties do not cover damage

  • HT201209 Hi.....Iam having prbs in redeeming apple's gift card on my iPod touch.....I have tried 2 10  dollars cards but all the time it's coming code not valid........I have an apple account without credit card.....is this the prb? Pls help me out wht to

    Hi.....Iam having prbs in redeeming the gift cards in iPod touch....my account is without credit card.....is this the prb???and wht to do pls help thanks

    Since it has always been very basic to backup your computer and all it's data, Apple provides no way for you to transfer music from your iPhone back to your computer.  As you know, you can re-download all iTunes purchases, but music that you ripped yourself you'll have to just re-rip again.
    You can try and find 3rd party applications that might help you.  I'm sure you'll pay, however.
    Let this be a very important lesson learned.
    Best.

  • CiscoWorks Vs TACACS+ ??!! sw management problem--Pls help me out

    Hi Gurus,
    I have a query to ask on the software image management.Please help me out.
    There are many cisco devices in my client place, but only one device is creating a problem.
    it is 2950 catalyst switch. CiscoWorks is complaining that 'it has no image to import', when we run a job to fetch the image from the switch. but it has image under root directory of Flash. After going through RME troublshooting and tips , I came to know that the connection protocol is telnet and ssh. Then I add the following commands in TACACS+ (to allow CW2K) user which is a centralized authentication system for all user including CiscoWorks.
    Cisco has mentioned this error in following URL:
    http://www.cisco.com/en/US/products/sw/cscowork/ps2073/prod_troubleshooting_guide09186a008036dff2.html
    It looks like it is having difficulty to recognize the Flash (though it shows the files in the inventory) and at the same time, I am not sure whether the commands are complete.
    I allowed the following commands to be used by CiscoWorks through TACACS+:
    1. copy tftp flash
    2. copy flash tftp
    3. erase flash
    4. show version
    5. show flash
    Refer the URL: http://www.cisco.com/en/US/customer/products/sw/cscowork/ps2073/prod_troubleshooting_guide09186a008036dff2.html#wp1045599
    Screen shot of the error and Detailed inventory report of the device are attached here.
    Please help me out with your expertise whether it is a TACACS which is stopping CW2K to view the Flash and files? or it is a problem with CiscoWorks to see the Flash.

    This document describes the procedure to configure the CiscoWorks Hosting Solution Engine 1.8.1 (HSE) using ACS as a TACACS+/RADIUS authentication module.
    ACS TACACS+ Setup for HSE
    ACS RADIUS Setup for HSE
    On Cisco.com, see also the Administration chapter of the User Guide for the CiscoWorks Hosting Solution Engine 1.8.1.
    http://www.cisco.com/en/US/products/sw/cscowork/ps150/prod_connection_guide09186a00802b2bae.html

  • HT4798 I try resetting my Mac book pro now I can't log in I forget my password how to reset ,pls help me out .

    I forget my log in in my MacBook Pro I try to reset can u help me out how to recovery password .

    Hi,
    iChat (it would help to know which version) can accept Apple IDs as valid AIM Screen Names.
    However if you have iChat 5 or earlier you cannot use ones ending in @me.com or @icloud.com issued by iCloud. (they can be used in iChat 6 or Messages as these versions make a double login to AIM and Apple to allow the use of the password).
    In addition if you are using an Apple ID for an AIM Screen Name the password still needs to keep to the 16 character limit that AIM has.
    AN @mac.com name can be used on any version of iChat  (Until the 30th June 2014)
    As it does not need a double check with Apple you can use it to log in to the AIM Web pages
    Login here with an AIM Name registered at AIM or and @mac.com name and see if you get any suspended account messages.
    Sometimes account can be suspended. Usually because something has triggered the "Unusual Activity" item.
    About a year ago many @mac.com users that travelled out of their own country found themselves suspended when they got home.
    If the Name checks out of if an Apple ID the password in known to be 16 characters or Less then do this:-
    In Lion upwards open a Finder Window and use the Go Menu whilst holding down the ALT key.
    Select the Library that appears in the menu list.
    Navigate to Preferences.
    (If you have version earlier than Lion the just navigate to ~/Library/Preferences (that's the Library in you Home - Little House icon - folder)
    Fnd com.apple.ichat.aim.plist (even if you are using Messages)
    Drag the file to the Trash and Restart the app.
    7:39 pm      Thursday; May 29, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Hi my account has been restricted pls help me out ...

    Hi my my acc has been restricted pls help me out

    This forum is for questions from those managing sites on iTunes U, Apple's service for colleges and universities to post educational material in the iTunes Store. You'll be most likely to get help with this issue if you ask in the general iTunes forums.
    When you repost, please include more details, especially what "account" you're referring to.
    Regards.

  • I have written employee data code in C#..which has add,delete n display employee data...i have written for add...could u pls help me out to develope delete,display code

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    namespace Employee_data
        class Employee
            public string ename { set; get; }
            public string edpt { set; get; }
            public int eno { set; get; }
        class Program
            int index = 0, menu;
            Employee[] emps = new Employee[100];
            public Program()
                while (true)
                    Console.WriteLine("1.Add Employee");
                    Console.WriteLine("2.Delete Employee");
                    Console.WriteLine("3.Dispaly Employee");
                    Console.WriteLine("Enter your option:");
                    menu = Convert.ToInt32(Console.ReadLine());
                    switch (menu)
                        case 1:
                            Console.WriteLine("Add Employee");
                            Console.WriteLine("Enter Employee name:");
                            string ename = Console.ReadLine();
                            Console.WriteLine("Enter department name:");
                            string edpt = Console.ReadLine();
                            Console.WriteLine("Enter employee id:");
                            int eno = Convert.ToInt32(Console.ReadLine());
                            Employee e = new Employee();
                            e.ename = ename; e.edpt = edpt; e.eno = eno;
                            emps[index] = e;
                            int i = 1;
                            foreach (Employee e1 in emps)
                                if (e1 != null)
                                    Console.WriteLine("----------------------------------");
                                    Console.WriteLine("Sno: {0}", i); i++;
                                    Console.WriteLine("Employee Name: {0}", e1.ename);
                                    Console.WriteLine("Employee Department: {0}", e1.edpt);
                                    Console.WriteLine("Employee Number: {0}", e1.eno);
                                    Console.WriteLine("----------------------------------");
                            index++;
                            break;
                        case 2:
                            Console.WriteLine("Delete Employee");
                            break;
                        case 3:
                            Console.WriteLine("Display Employee");
                            foreach (Employee e1 in emps)
                                if (e1 != null)
                                    Console.WriteLine("----------------------------------");
                                    Console.WriteLine("Sno: {0}", i); i++;
                                    Console.WriteLine("Employee Name: {0}", e1.ename);
                                    Console.WriteLine("Employee Department: {0}", e1.edpt);
                                    Console.WriteLine("Employee Number: {0}", e1.eno);
                                    Console.WriteLine("----------------------------------");
                            index++;
                            break;
                        //default:
                        //    Console.WriteLine("Exit");
                        //    break;
            public void addemply(string name, string dpt, int num)
                //emps[0] = "kotesh";
                //emps[1] = "IT";
                //emps[2] = "31";
            public void delemply(string name, string dpt, int num)
            public void display()
            static void Main(string[] args)
                new Program();
                Console.ReadLine();

    Hello,
    Please do not post requirement as helping develop a function or an application, this forum is used to discuss and ask questions about the C# programming language, IDE, libraries, samples, and tools. You can attempt to do it yourself and if you meet some
    question, you can post it to here.
    For the requirement, it is beyond the scope of our support.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Pet store runtime error! urgent! Pls help me out

    Dear everybody,
    I just install the petstore in my local computer, following the whole instruction from http://java.sun.com/blueprints/code/jps131/docs/installing.h tml
    It seems all rite during the installation.
    But when I try to access the
    Amazon Parrot
    Great companion for up to 75 years
    in the bird category, I cannot see anything feed back. I checked the j2ee log, here is the output of it. I have no idea how to fix this problem, any tech people can help me? I need this sample code as a base of a project.
    Thanks for whom can help!!
    A hardworking progammer
    Henry
    Binding name:`java:comp/env/jms/QueueConnectionFactory`
    Binding name:`java:comp/env/ejb/OPCAdminFacadeRemote`
    Binding name:`java:comp/env/ejb/AsyncSender`
    Created Context:/admin
    Application AdminEAR deployed.
    java.security.PrivilegedActionException: javax.servlet.ServletException: An erro
    r occurred while evaluating custom action attribute "value" with value "${item.a<br />ttribute}": Unable to find a value for "attribute" in object of class "com.sun.j<br />2ee.blueprints.catalog.model.Item" using operator "."
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationDispatcher.include(Appli cationDis
    patcher.java:488)
    at com.sun.j2ee.blueprints.waf.view.template.tags.InsertTag.doE ndTag(Ins
    ertTag.java:99)
    at org.apache.jsp.template$jsp._jspService(template$jsp.java:15 9)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.ja va:107)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.servi ce(JspSer
    vlet.java:202)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:3
    82)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java :474)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(Applic ationDisp
    atcher.java:683)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(App licationD
    ispatcher.java:431)
    at org.apache.catalina.core.ApplicationDispatcher.access$0(Appl icationDi
    spatcher.java:359)
    at org.apache.catalina.core.ApplicationDispatcher$PrivilegedFor ward.run(
    ApplicationDispatcher.java:130)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationDispatcher.forward(Appli cationDis
    patcher.java:347)
    at com.sun.j2ee.blueprints.waf.view.template.TemplateServlet.in sertTempl
    ate(TemplateServlet.java:288)
    at com.sun.j2ee.blueprints.waf.view.template.TemplateServlet.pr ocess(Tem
    plateServlet.java:246)
    at com.sun.j2ee.blueprints.waf.view.template.TemplateServlet.do Get(Templ
    ateServlet.java:143)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(Appl
    icationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.access$0(App licationF
    ilterChain.java:197)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(Applic ationFilt
    erChain.java:176)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationF
    ilterChain.java:172)
    at com.sun.j2ee.blueprints.signon.web.SignOnFilter.doFilter(Sig nOnFilter
    .java:151)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(Appl
    icationFilterChain.java:213)
    at org.apache.catalina.core.ApplicationFilterChain.access$0(App licationF
    ilterChain.java:197)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(Applic ationFilt
    erChain.java:176)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationF
    ilterChain.java:172)
    at com.sun.j2ee.blueprints.encodingfilter.web.EncodingFilter.do Filter(En
    codingFilter.java:77)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(Appl
    icationFilterChain.java:213)
    at org.apache.catalina.core.ApplicationFilterChain.access$0(App licationF
    ilterChain.java:197)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(Applic ationFilt
    erChain.java:176)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationF
    ilterChain.java:172)
    at org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperV
    alve.java:243)
    at org.apache.catalina.core.StandardPipeline.invokeNext(Standar dPipeline
    .java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.jav
    a:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:943)
    at org.apache.catalina.core.StandardContextValve.invoke(Standar dContextV
    alve.java:201)
    at org.apache.catalina.core.StandardPipeline.invokeNext(Standar dPipeline
    .java:566)
    at org.apache.catalina.valves.CertificatesValve.invoke(Certific atesValve
    .java:246)
    at org.apache.catalina.core.StandardPipeline.invokeNext(Standar dPipeline
    .java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.jav
    a:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:943)
    at org.apache.catalina.core.StandardContext.invoke(StandardCont ext.java:
    2343)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.j
    ava:164)
    at org.apache.catalina.core.StandardPipeline.invokeNext(Standar dPipeline
    .java:566)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Error Dispatche
    rValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(Standar dPipeline
    .java:564)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.j
    ava:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(Standar dPipeline
    .java:564)
    at org.apache.catalina.authenticator.SingleSignOn.invoke(Single SignOn.ja
    va:392)
    at org.apache.catalina.core.StandardPipeline.invokeNext(Standar dPipeline
    .java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.jav
    a:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:943)
    at org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineVal
    ve.java:174)
    at org.apache.catalina.core.StandardPipeline.invokeNext(Standar dPipeline
    .java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.jav
    a:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:943)
    at org.apache.catalina.connector.http.HttpProcessor.process(Htt pProcesso
    r.java:1012)
    at org.apache.catalina.connector.http.HttpProcessor.run(HttpPro cessor.ja
    va:1107)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: javax.servlet.ServletException: An error occurred while evaluating cu
    stom action attribute "value" with value "${item.attribute}": Unable to find a v
    alue for "attribute" in object of class "com.sun.j2ee.blueprints.catalog.model.I<br />tem" using operator "."
    at org.apache.jasper.runtime.PageContextImpl.handlePageExceptio n(PageCon
    textImpl.java:463)
    at org.apache.jsp.product$jsp._jspService(product$jsp.java:1357 )
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.ja va:107)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.servi ce(JspSer
    vlet.java:202)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:3
    82)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java :474)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(Applic ationDisp
    atcher.java:683)
    at org.apache.catalina.core.ApplicationDispatcher.doInclude(App licationD
    ispatcher.java:574)
    at org.apache.catalina.core.ApplicationDispatcher.access$1(Appl icationDi
    spatcher.java:501)
    at org.apache.catalina.core.ApplicationDispatcher$PrivilegedInc lude.run(
    ApplicationDispatcher.java:146)
    ... 66 more
    InsertTag:doEndTag caught: javax.servlet.ServletException: An error occurred whi
    le evaluating custom action attribute "value" with value "${item.attribute}": Un
    able to find a value for "attribute" in object of class "com.sun.j2ee.blueprints<br />.catalog.model.Item" using operator "."
    javax.servlet.ServletException: An error occurred while evaluating custom action
    attribute "value" with value "${item.attribute}": Unable to find a value for "a<br />ttribute" in object of class "com.sun.j2ee.blueprints.catalog.model.Item" using
    operator "."
    at org.apache.jasper.runtime.PageContextImpl.handlePageExceptio n(PageCon
    textImpl.java:463)
    at org.apache.jsp.product$jsp._jspService(product$jsp.java:1357 )
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.ja va:107)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.servi ce(JspSer
    vlet.java:202)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:3
    82)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java :474)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(Applic ationDisp
    atcher.java:683)
    at org.apache.catalina.core.ApplicationDispatcher.doInclude(App licationD
    ispatcher.java:574)
    at org.apache.catalina.core.ApplicationDispatcher.access$1(Appl icationDi
    spatcher.java:501)
    at org.apache.catalina.core.ApplicationDispatcher$PrivilegedInc lude.run(
    ApplicationDispatcher.java:146)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationDispatcher.include(Appli cationDis
    patcher.java:488)
    at com.sun.j2ee.blueprints.waf.view.template.tags.InsertTag.doE ndTag(Ins
    ertTag.java:99)
    at org.apache.jsp.template$jsp._jspService(template$jsp.java:15 9)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.ja va:107)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.servi ce(JspSer
    vlet.java:202)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:3
    82)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java :474)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(Applic ationDisp
    atcher.java:683)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(App licationD
    ispatcher.java:431)
    at org.apache.catalina.core.ApplicationDispatcher.access$0(Appl icationDi
    spatcher.java:359)
    at org.apache.catalina.core.ApplicationDispatcher$PrivilegedFor ward.run(
    ApplicationDispatcher.java:130)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationDispatcher.forward(Appli cationDis
    patcher.java:347)
    at com.sun.j2ee.blueprints.waf.view.template.TemplateServlet.in sertTempl
    ate(TemplateServlet.java:288)
    at com.sun.j2ee.blueprints.waf.view.template.TemplateServlet.pr ocess(Tem
    plateServlet.java:246)
    at com.sun.j2ee.blueprints.waf.view.template.TemplateServlet.do Get(Templ
    ateServlet.java:143)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(Appl
    icationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.access$0(App licationF
    ilterChain.java:197)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(Applic ationFilt
    erChain.java:176)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationF
    ilterChain.java:172)
    at com.sun.j2ee.blueprints.signon.web.SignOnFilter.doFilter(Sig nOnFilter
    .java:151)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(Appl
    icationFilterChain.java:213)
    at org.apache.catalina.core.ApplicationFilterChain.access$0(App licationF
    ilterChain.java:197)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(Applic ationFilt
    erChain.java:176)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationF
    ilterChain.java:172)
    at com.sun.j2ee.blueprints.encodingfilter.web.EncodingFilter.do Filter(En
    codingFilter.java:77)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(Appl
    icationFilterChain.java:213)
    at org.apache.catalina.core.ApplicationFilterChain.access$0(App licationF
    ilterChain.java:197)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(Applic ationFilt
    erChain.java:176)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationF
    ilterChain.java:172)
    at org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperV
    alve.java:243)
    at org.apache.catalina.core.StandardPipeline.invokeNext(Standar dPipeline
    .java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.jav
    a:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:943)
    at org.apache.catalina.core.StandardContextValve.invoke(Standar dContextV
    alve.java:201)
    at org.apache.catalina.core.StandardPipeline.invokeNext(Standar dPipeline
    .java:566)
    at org.apache.catalina.valves.CertificatesValve.invoke(Certific atesValve
    .java:246)
    at org.apache.catalina.core.StandardPipeline.invokeNext(Standar dPipeline
    .java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.jav
    a:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:943)
    at org.apache.catalina.core.StandardContext.invoke(StandardCont ext.java:
    2343)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.j
    ava:164)
    at org.apache.catalina.core.StandardPipeline.invokeNext(Standar dPipeline
    .java:566)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Error Dispatche
    rValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(Standar dPipeline
    .java:564)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.j
    ava:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(Standar dPipeline
    .java:564)
    at org.apache.catalina.authenticator.SingleSignOn.invoke(Single SignOn.ja
    va:392)
    at org.apache.catalina.core.StandardPipeline.invokeNext(Standar dPipeline
    .java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.jav
    a:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:943)
    at org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineVal
    ve.java:174)
    at org.apache.catalina.core.StandardPipeline.invokeNext(Standar dPipeline
    .java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.jav
    a:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:943)
    at org.apache.catalina.connector.http.HttpProcessor.process(Htt pProcesso
    r.java:1012)
    at org.apache.catalina.connector.http.HttpProcessor.run(HttpPro cessor.ja
    va:1107)
    at java.lang.Thread.run(Thread.java:534)

    Hello Everybody
    I have the procedure to run petsotre demo as it is given in the Java BluePrints Projects Install Document.
    But when I have tried to run the ant setup command it it has given me the following error
    BUILD FAILED
    java.lang.AbstractMethodError: javax.xml.parsers.SAXParser.getXMLReader()Lorg/xml/sax/XMLReader;
    at org.apache.tools.ant.util.JAXPUtils.getNamespaceXMLReader(JAXPUtils.java:163)
    at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:193)
    at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:140)
    at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:91)
    at org.apache.tools.ant.Main.runBuild(Main.java:653)
    at org.apache.tools.ant.Main.startAnt(Main.java:187)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    Total time: 0 seconds
    java.lang.AbstractMethodError: javax.xml.parsers.SAXParser.getXMLReader()Lorg/xml/sax/XMLReader;
    at org.apache.tools.ant.util.JAXPUtils.getNamespaceXMLReader(JAXPUtils.java:163)
    at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:193)
    at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:140)
    at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:91)
    at org.apache.tools.ant.Main.runBuild(Main.java:653)
    at org.apache.tools.ant.Main.startAnt(Main.java:187)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    javax.xml.parsers.SAXParser.getXMLReader()Lorg/xml/sax/XMLReader;
    Plz help to rectify this error .
    Regards,
    Chirag Viradiya

Maybe you are looking for

  • File field issue

    I am trying to use a file field component to select a file. When I select the file, I try to read the captured value by MyFile.Value here MyFile is the id of the component. The problem is when I click on a button and try to display this values, it is

  • High ISO RAW files not importing properly since upgrading to Yosemite

    Since updating to Yosemite I am having a problem with trying to use RAW files shot at ISOs higher then 800. I am simply getting a black rectangle with a message about "unsupported file format". I am able to import the images using the Canon software,

  • How do use a cross tab for this ?

    Hi, I have the following details : Sn idType cnt1 cnt2 1 test1 11 22 1 test2 2 4 2 test1 33 2 2 test2 3 4 i need to show it as Sn test1cnt1 test1cnt2 test2cnt1 test2cnt2 1 11 22 2 4 2 33 2 3 4 how can i do that using analytic function ? kindly advise

  • Invalid read mode error in BEx

    Hello, I keep getting the error - Invalid Read Mode. To Repair: RSRT (OK code =RMRP) 0 " for a particular infocube in 2.1C version. This error come when i go to change query - check query. I tried changing the read mode through RSRT, but still keep g

  • Droid X Multi Touch Keypad jamming

    I'm having a problem with my keypad while in Google Talk, Text Messaging, and Gmail.  When I try to type, the characters do not appear in the text window, and when I hit the space bar, the keypad resets.  The messages are still there and able to be s