Problems with Assign Task operation

I'm having a problem with the Assign Task operation. When I export an application of the LiveCycle ES2 environment and import into another environment LiveCycle ES2, my process get stalled in the all Assign Task operations, and the only way to solve the problem I found is to redo all the Assign Task operations. But in an application with many Assign Task operations, this solution becomes very complicated.
Anyone who has encountered this problem could help me better to fix it?
Thanks for any help!
Following is the error message:
StackTrace:
java.lang.NullPointerException
at com.adobe.idp.taskmanager.dsc.util.UserManagerUtils.getUserOID(UserManagerUtils.java:959)
at com.adobe.idp.taskmanager.dsc.userservicev2.UserServiceImpl.createTaskFromDialogPropertie s(UserServiceImpl.java:941)
at com.adobe.idp.taskmanager.dsc.userservicev2.UserServiceImpl.createLongLivedTask(UserServi ceImpl.java:1631)
at com.adobe.idp.taskmanager.dsc.userservicev2.UserServiceImpl.createLongLivedTask(UserServi ceImpl.java:1506)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.jav a:118)
at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor. java:140)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.DocumentPassivationInterceptor.intercept(DocumentPassi vationInterceptor.java:53)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(Transa ctionInterceptor.java:74)
at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute(EjbTr ansactionCMTAdapterBean.java:357)
at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doSupports(Ej bTransactionCMTAdapterBean.java:227)
at sun.reflect.GeneratedMethodAccessor643.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:237)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:158)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:169)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:378)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:138)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
at org.jboss.ejb.Container.invoke(Container.java:960)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
at $Proxy378.doSupports(Unknown Source)
at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvi der.java:104)
at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInt erceptor.java:72)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(InvocationStra tegyInterceptor.java:55)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateIntercep tor.java:37)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:165)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:60)
at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:121)
at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:129)
at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.routeMessage(AbstractMessage Receiver.java:93)
at com.adobe.idp.dsc.provider.impl.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:22 5)
at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispat cher.java:66)
at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
at com.adobe.idp.jobmanager.execution.workadapter.AbstractExecutableJob.invokeRequest(Abstra ctExecutableJob.java:127)
at com.adobe.idp.jobmanager.execution.workadapter.PersistentExecutableJob.execute(Persistent ExecutableJob.java:60)
at com.adobe.idp.dsc.workmanager.adapter.UnManagedAsynchronousWorkAdapter.run(UnManagedAsync hronousWorkAdapter.java:39)
at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
at java.lang.Thread.run(Thread.java:619)

Hi javier,
1. record = <DATOS>
If possible, try to use
a pre-defined strucure of type P9069
for putting data into this infotype.
2. Avoid using field symbols.
3. Try with P9069
regards,
amit m.

Similar Messages

  • Dynamic asset selection for assign tasks operations

    Hi,
    I have a default workflow which could be used by a lot of different specific workflows (every specific worklow has a part where the manager and the workers council has to approve). I would like to build this workflow part as a subprocess that could be used by all the other workflows.
    My problem is that every specific workflow uses an own flex UI or PDF form to represent the process data. In the assign task operation I need to choose a specific asset. To be able to use the subprocess for all workflows I would need to choose the asset dynamically through a variable or xPath etc.
    Is there an option or workaround to specify the asset by its name or a variable?
    Thanks and regards,
    Lars

    Another way (might be simpler than other solutions):
    You can update the TaskContext variable in Render Process.
    I mean, you have to dynamically set the ResourceURL of the TaskContext variable just before rendering.
    I applied this logic in my application and it works; (But I dint work with .SWF files)
    Hope this may help you.
    Nith

  • Problem with complete task via email

    Hello,
    I have problem with complete task via email. I found this blog very useful (http://blogs.adobe.com/ADEP/2010/11/how-to-complete-a-task-via-email-using-reply-to-comple te.html), but...
    I set up everything as it’s written in blog mentioned above. When a task is assigned to me, I received an email notification with actions (accept, deny). After that I replied with action “accept”. Then I received email with subject “Errors from LiveCycle ES”:
    LiveCycle ES has tried to process your request and encountered the following error:
    com.adobe.pof.POFRuntimeException: Transaction is not active: tx=TransactionImple ; – nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple )
    This response to your original email
    Subject:RE:Task Assignment – Process: Test/Email_Test. Task 76 has been assigned to you.
    Date Sent:Thursday, October 24, 2011 1:17 PM
    Body:accept
    DO-NOT-DELETE: MTMhMzE0ITMyOA==!
    Attachments:
    In log appeared this following error:
    Caused by: ALC-DSC-215-000: com.adobe.idp.dsc.DSCRuntimeException: None of the Auth Provider could authenticate the user. Authentication Failed
    at com.adobe.livecycle.notification.TaskNotificationServiceImpl.processEmailComplete(TaskNot ificationServiceImpl.java:1157)
    Can you me please? I have no idea what to do to succesfully complete task via email endpoint. Thanks
    Jan Petrla

    Hi Diana, thanks for your reply.
    You're probably right about 2 different error messages.
    To the 1st one: I'm sure that status task is Assigned (to me). I received an email and I also reply on that email.
    To error log: I found out that error log appears when I enable email endpoint on Complete Task service. But I managed to solve this problem. I set wrong user. Now I have here the same user as is written in login-config.xml so log seems to be ok.
    So I created new task and tried to complete it via email. Now I receive email with another error:
    LiveCycle ES has tried to process your request and encountered the following error:
    com.adobe.idp.dsc.provider.service.email.impl.EmailProviderException: Error getting user context
    This response to your original email
    Subject:RE:Task Assignment - Process: WorkFlowClient/Test. Task 92 has been assigned to you.
    Date Sent:Thursday, October 27, 2011 3:05 PM
    Body:Complete
    DO-NOT-DELETE: MTIxMSExNjAzITIwMTE=!
    Attachments:
    And to the last point: email endpoint is set up with TestPOP3@mydomain and user receiving email has jpetrla@mydomain. I use Lotus Notes as email client, I tried another account with gmail, but the result was same.
    Now I really don't know to do...
    Jan

  • Problem with FTP put operation..??

    hi frendz,
    i'm facing some problem with FTP put operation. The Get operation(reading a file) is working fine. i'm using Apache FTP server.FTP User is having all read/write permissions. When i putthe file using FTP command prompt then its working fine. But using BPEL/FTP adapter put operation is not working.
    Main thing is its not giving any error but When i check the directory then i dont fine any file ther. In fact BPEL process is detecting directory where i'm going to write the file. But after completing the BPEL process i dont get any file.
    i am using opaque fomat. n just passing some data into input string which i'm assigning to <invoke>'s variable.
    Thanks a lot
    -Mishit

    Error itself indicates the potential issues -
    Please ensure
    1. Specified remote output Dir has write permission
    2. Output filename has not exceeded the max chararters allowed by the OS and
    3. Remote File System has enough spaceRegards,
    Anuj

  • Problem with remove task from schedule in PWA

    In our environment problem with remove task from schedule by PWA.
    Problem is only when I want to remove few task in the same time, but the operation one by one is correct.
    In my opinion problem is with calculation schedule after remove tasks, column ID include wrong value it means that Number ID does not generate in the correct order same of numer
    disappear. Click Calculate button on ribbon causes problem with finshed operation and save project.
    Problem occurs only machine with IE 11.0 browser without compability mode, on other machine for example on the same project with IE 8,9,10 everything is correct.
    Problem appeared recently, earlier everything was OK.
    Txn, Dariusz Moczyński

    Hi Darius,
    I'm a bit confused. You are now talking about 2 issues.
    For the first one, you cannot edit anymore tasks in PWA, with any browser versions? Is it happenonog for any users on any projects? Try the following solutions publish the project from Project Pro and see if it helps. Press CTRL F5 to delete IE cache. Ensure
    that your PWA URL is added to the trusted site and/or compatibility sites. Check for the ULS logs or javascript errors.
    For the second issue, please refer to my previous reply, this obviously cannot be considered as a bug since it is happening with a non supported browser version and working properly on supported versions of IE.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Adding javascript code into user actions assign task operation

    Hi all,
         I've a severe issue , i searched for a solution and nothing returned till my mind blown , i made a process and put a lot of assign task operations with user actions {"Approve","Reject"} what i want to do is when the user hits Reject action a pop-up window is opening to him to put his rejection reasons / justifications, till now i couldn't find a solution or an article writing about a solution for it, so your help is urgently required.
    Thanks in advance & have a nice day.

    Hi,                                                             
    It will not easy to add actions to an OOTB ribbon button, there is a workaround that we can replace it with a custom button.
    Here is a documentation about Replacing a Button on the Server Ribbon:
    http://msdn.microsoft.com/en-us/library/ff407619.aspx
    Another two links about create a custom ribbon button for your reference:
    http://msdn.microsoft.com/en-us/library/office/ff407458(v=office.14).aspx
    http://sharepoint.stackexchange.com/questions/20646/attach-a-javascript-function-to-an-ootb-ribbon-button
    Best regards
    Patrick Liang
    TechNet Community Support

  • Problem with Assign reference document.

    Hi all,
    I defined transaction input parameter type Xml.
    I used Reference Document Loader to load document (structure.xml) below.
    <?xml version="1.0" encoding="UTF-8"?>
    <SO_VALIDATION>
        <L4_SO_ID/>
        <L4_SOI_NO/>
        <PPC_STATUS/>
        <PPC_INFO/>
    </SO_VALIDATION>
    I used menu command Assign Reference Document, to assign above document to transaction input.
    I tryed to use this transaction in vs.net application as a web service.
    But there is no xml structure in InputParams in web service.
    I tryed alot but i did not achieve.
    What must i do?
    Thanks.

    cml_bzl,
    I'm using version 12.04 and I have not had any problems with assigning reference documents and using .NET.
    You should not have to do anyting special to get the transaction inputs to show up in .Net. To map the output I do the following:
    1. Create an output transaction variable and assign it's type as XML
    2. Using a XML document block to create and XML document for your output transaction variable
    3. Assign the XML document as the reference for the output transaction variable.
    THis works for me every time. If you change the transaction parameters, make sure you update the web service form the .NET side.
    Glenn

  • I am not getting any sound input on my microphone. There is no microphone input on my new macbook pro, so I am using my old one. Is this a problem with the new operating system? Did they simply remove any microphone software?

    I am not getting any sound input on my microphone. There is no microphone input on my new macbook pro, so I am using my old one. Is this a problem with the new operating system? Did they simply remove any microphone software?

    Check System Preferences > Sound > Output
    Make sure the correct device is selected.

  • OneKey Recovery 6.0. Problem with back up operating system from recovery cd'ies

    Hello, i have problem with back up operating system from recovery cdies.
    When i acceped start button to backup partition system i get an alert "space not enough"
    I had linux before and i whant change it to windows back. i deleted all ext partitions. I have all unlocated space.I shouldnt have problems.
    Please help me

    I would use something like Partition Magic or Acronis Disk Director to first create a FAT32 partion for your C: Drive where your OS will go and be sure to leave 10GB or so unallocated for the secondary FAT32 Partition where your "factory image" will go. 
    You then create a Logical Drive with the unallocated space and make it hidden (PM or ADD will do this).   Install your OS (preferably Windows XP if you want less problems) and then after you have setup everything the way you want (drivers, applications, etc), then use Acronis True Image to create your "factory restore" image on the hidden partition and activate the Startup Recovery Manager.
    This is the way I do it and it works like a charm!

  • Problem with Assigning more than one value to GROUP dynamically

    Hi,
    I have a problem with assigning more than one value to GROUP varible dynamically.
    I am able to assign only one value dynamically through Initialization block
    I have even tried with the ROW-WISE initialization blocks..
    using this query..
    SELECT 'GROUP', G.GROUP_NAME
    FROM GROUP_MAP G
    WHERE G.USER_NAME = ':USER'
    if GROUP_1, GROUP_2 are two groups to be associated,
    through this, i'm getting " GROUP_1;GROUP_2 " into GROUP variable ( seen from Narative view )
    And the properties and securities of this Groups are not inherited.
    Please let me know if there is any other way to Populate the GROUP variable dynamically with more than one value.
    Thank you.,

    Hi,
    i finally got in this way..
    i had created a function which takes USER_NAME as input and returns a string that contains the GROUP names with semicolon delimeted..
    Though it is same as that of ROW-WISE initialization,
    the properties of those groups are also being inherited..
    Now, i can assign more than one groups and its properties to a user dynamically.

  • How to Pre-Populate the user information during Assign Task operation

    Hi ,
    I have a requrirement to Pre-Populate the form fields (Name, Email, Phone etc...) when a task is assigned to a user. The users are dynamically assiged, so I am using the Find User and the Assign Task services to locate and assign the task to the user. Since I have a User variable that is a result from the Find User operation, I was hoping to retrieve the user information with the attributes of the User type.
    I tried to use the Set Value service to set the form field (Email) with the email attribute of the User object type i.e.
    /process_data/MyForm/object/data/xdp/datasets/data/Form/User/Email   ->  /process_data/facilityAuthority/object/@email
    However I get the following error when I try to do this - com.adobe.idp.dsc.util.InvalidCoercionException: Cannot coerce object: [B@335d of type: [B to type: interface org.w3c.dom.Document.
    Is it possible to retrieve the user information from the User object? If so how do I get the values for the User attributes (Name, Email & Phone etc...) so that I can populate them in the form?
    Thanks,
    Samanthapudi

    Hi Han Dao,
    If you are facing an exception of the form "com.adobe.idp.dsc.util.InvalidCoercionException: Cannot coerce object: [B@335d of type: [B to type: interface org.w3c.dom.Document.", It is because the system is trying to cast a Byte Stream into w3c Document and failing. To resolve this we can explicitly cast this byte stream to appropriate data type (String in previous example). To do so we can use a SetValue operation.
    As an example
    Setting
    /process_data/MyForm/object/data/xdp/datasets/data/Form/User/Email   -> /process_data/facilityAuthority/object/@email
    results in the exception
    so we can modify it to
    /process_data/MyForm/object/data/xdp/datasets/data/Form/User/Email   -> string(/process_data/facilityAuthority/object/@email)
    Please let me know if this does not resolve your issue.
    Thanks

  • Problem with clientgen task in weblogic 9.0

    hi,
    While developing webservices for our project, we used the clientgen ant task for generating the artifacts on the client side. I'm getting trouble in returning a collection of objects (list, vector) from the server to the client. When i try to do so, the clientgen task tries to create a java.util package on the client side in which it creates a List class which basically contains an object array with getter-setter. What i want is for the sun java collections classes to be used instead. The above problem applies to both user-defined as well as built-in objects i.e. say a list of objects of type T or a list of Strings. If someone, has any pointers regarding the same plz help...
    tia,
    cyril

              Try limiting the length of the session id.
              This is in either the weblogic.xml/web.xml
              files. You can get the dtd in the 6.0 doc.
              "Thierry Cools" <[email protected]> wrote:
              >Hi I have a problem with the session id that is generated in tha address bar
              >of my brower
              >When I start my application the following link appears
              >
              >http://127.0.0.1:7001/ebpp_beans/enterLogonInformation.do;jsessionid=Olw9VMc
              >0I1Z52YMgycyD23c8L4Ch2FurHLwbV2WhZw731dR3mBtJ|8186718416288373359/-140823374
              >1/7001/7002
              >
              >It seems that Weblogic 6.0 generates '/' characters in the session id.
              >This has for consequences that the servlet engine is taking the session id
              >in its context path, so that none of my links are working anymore.
              >
              >Could someone give me a clue to solve this problem
              >Thanks,
              >Thierry
              >
              >--
              >
              >Thierry Cools
              >
              >Senior Java Developer
              >S1 Brussels
              >Kleine Kloosterstraat, 23
              >1932 st. Stevens-Woluwe
              >Belgium
              >Tel : +32 2 200 43 82
              >Email : [email protected]
              >
              >
              >
              

  • Problem with Assigning Policy button in Outlook 2010 and Exchange 2010

    First of all, I'm posting here because I'm not sure how to post in the previous version of Exchange forums.
    Secondly, I'm re-posting this from the Outlook forums as I'm not getting any responses there despite of views.
    Hi,
    I'm having an issue in Outlook 2010 where I can't assign personal policies to folders. I have setup personal tags and added the mailbox to the right policy. I have also ran Start-MangedFolderAssistant in Exchange 2010 Shell against the mailboxes.
    When I go into OWA, everything shows up perfectly, I can right-click and assign policies at will, but when I open Outlook 2010 then the Assign Policy button never appears. I force added it to the ribbon and I can see from there that the button stays grayed
    out irregardless of where I click in the folder structure. I have even assigned the mailbox user Owner rights to all the folders to see if it will  make a difference.
    If anyone can help me solve this problem I will very grateful, I'm pulling my hair out here and I'm certain I could just be missing something very obvious somewhere,
    It might be worth mentioning that the company has been using .prf files to configure Outlook thus far, I'm
    looking to eliminate that. I'm not sure if that will have any effect on my current problem.
    Thanks for your time.
    Nico

    Thanks for the reply Max, that's a pretty good link.
    Like is I said though, I have the policies all set up in the Exchange configuration side of things, when I use OWA all the options for applying tags appear. It's just in Outlook 2010 Standard that the Assign Policy button stays grayed out.
    Thanks.
    EDIT:
    This has been solved, looks like version problem with Outlook.
    http://office.microsoft.com/en-us/outlook-help/license-requirements-for-personal-archive-and-retention-policies-HA102576659.aspx

  • Problem with user task

    Hello all,
    we're working with Oracle BPEL Process Manager 10.1.2 (JBoss 3.2.6) on Windows XP (jdk 1.4.2_03).
    I've successfully run many examples provided with this distribution (e.g LoanFlowPlus demo).
    However when we try to build a BPEL process with user tasks defined, we are able to launch task, but when we complete such tasks nothing happens, and onTaskResult method is never called.
    This is the code we use to complete a task (Task are completed from web pages):
    String _taskId = request.getParameter("TaskId");
    IWorklistService worklist = (IWorklistService)          locator.lookupService(IWorklistService.SERVICENAME);
    ITask task = worklist.lookupTask(_taskId);
    // getResponse returns a String
    _task.setConclusion(getResponse());
    // getAttachment returns a XML Document                         
    _task.setAttachment(getAttachment());
    worklist.completeTask(task);
    After these sentences are performed such task is not returned when _worklist.listTasksByAssignee("[email protected]") is performed, but onTaskResult is never called. No error messages are shown.
    Any idea?
    Thanks.
    Javi

    I've found a possible cause for this weird problem.
    It only happens when completeTask is called and somebody has the flow view page on the BPEL Console open.
    If nobody is browsing through the BPELConsole web environment task are completed successfully...
    ¿?

  • Problem With Assignment, Need Tips

    Hi, i'll try and keep the code to a minimum. My assignment (at UNI) is to create a JUG Program (Java Ultimate Graphist) which works like a paint program.
    So far ive done most of it. But im having problems with combo boxes. Basically its required to have a combo box at the bottom where you choose your shape (rectangle, line, ellipse etc etc). When you choose your shape, and click on the screen, it draws that shape.
    This is the bit thats troubling me. The way ive programmed it, (we're using frames) I have one file "Application.java" which runs everything. Another file "Settings.java" which holds most of my methods as well as the control panel (for combo boxes) at the bottom, and a menu bar at the top.
    The final file is the actual drawing panel - "PaintPanel.java". This has the paint method etc in it.
    Now the problem im having is getting the combo box (Prefrences.java) to interact with the "PaintPanel.java". If i could put all this in one file it would probably work but i just get errors and it just wont work.
    Does anyone know how i can make an action listener, listen for my choice in the combo box, then change the shape drawn in the paint panel.
    I can post the entire code if you want it
    Thanks!

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class ClassCommunication
        DrawingCode drawCode;
        EventCode eventCode;
        public ClassCommunication()
            // pass a reference of/for/to the DrawingCode instance
            // to EventCode that EventCode can use to call methods
            // in the DrawingCode class
            drawCode = new DrawingCode();
            eventCode = new EventCode(drawCode);
        private JPanel getCenterPanel()
            return drawCode;
        private JPanel getSouthPanel()
            return eventCode.getUIPanel();
        public static void main(String[] args)
            ClassCommunication app = new ClassCommunication();
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(app.getCenterPanel());
            f.getContentPane().add(app.getSouthPanel(), "South");
            f.setSize(300,175);
            f.setLocation(200,200);
            f.setVisible(true);
    class DrawingCode extends JPanel
        String s;
        public DrawingCode()
            s = "hello world";
        public void setString(String s)
            this.s = s;
            repaint();
        protected void paintComponent(Graphics g)
            super.paintComponent(g);
            g.setFont(g.getFont().deriveFont(18f));
            g.drawString(s, 100, 50);
    class EventCode implements ActionListener
        DrawingCode drawCode;
        public EventCode(DrawingCode dc)
            drawCode = dc;
        public void actionPerformed(ActionEvent e)
            JComboBox cb = (JComboBox)e.getSource();
            String s = (String)cb.getSelectedItem();
            drawCode.setString(s);
        public JPanel getUIPanel()
            String[] items = { "rectangle", "ellipse", "line" };
            JComboBox combo = new JComboBox(items);
            combo.addActionListener(this);
            JPanel panel = new JPanel();
            panel.add(combo);
            return panel;
    }

Maybe you are looking for

  • I have a discussion

    this mail sent to me NOKIA UK PROMOTION 42 Park Avenue, Barbourne, Worcester, United Kingdom. Congratulation, File No: NOKIA/UK/407/PROMO/2011 Attn: Beneficiary, We want you to remove every skepticism from your mind because this award is legitimate f

  • Issues with privacy settings

    I am getting a ridiculous amount of strange people contacting me, some of them vulgar, I tried to set all my settings to "Only Allow Contacts" but when I click save, the window closes and the settings dont change.  Unknown people are still contacting

  • I use Firefox Browser, but I don't have a toolbar. I have tried to install the Verizon toolbar, but that just throws me back to internet Explorer 9 as my brows

    I have been using Firefox as my browser, but haven't had a toolbar. I tried to use Verizon's toolbar, but that keeps throwing me back to Internet explorer 9, which I don't want to use, and asks me to use I.E 9 as my default browser. All I want is to

  • WLS 6.1 SP2 Cluster fails

              Hi All.           we have migrated to WLS 6.1 SP2, now we have a serious problem with the cluster           wihch die after several minutes. Our architecture is several front-ends servers           (concretely servelts, without cluster) mak

  • Play multiple movies in same window area

    Hello, I'm sure this question has come up before, but couldn't find it. On my html page I want to have a number of links to my Captivate movies down column on left, and then one movie container on the right, so each time a movie link is clicked, the