PS CS4 CSXSLibrary: "CSXSInterface.instance" always null

I was referred to this sub section of the adobe forums for this question:
I want:
Start creating my own Photoshop CS4 SWF panel coded with the FlexSDK in FlashDevelop (pure AS3, no flex).
I have:
FlexSDK & FlashDevelop
CSXSLibrary-2.0-sdk-3.4.swc
Photoshop CS4
issues:
whenever I try compile or test my compiled SWF movie in Photoshop I get a null object for the CSXSInterface.instance. This object however is supposed to be the bridge between AS3 and the Photoshop JSX interaction.
here is a simplified code that causes this error:
package
     import com.adobe.csxs.types.*;
     import com.adobe.csxs.events.*;
     import com.adobe.csxs.core.CSXSInterface;
     import flash.display.Sprite;
     import flash.events.Event;
     public class Main extends Sprite
          public function Main():void
               if (stage) init();
               else addEventListener(Event.ADDED_TO_STAGE, init);
          private function init(e:Event = null):void {
               CSXSInterface.instance.addEventListener(StateChangeEvent.WINDOW_OPEN, creationComplete);
          private function creationComplete(e:Event):void {
Once I compile the SWF and have it run in the debug Flash Player I get a error message:
[Fault] exception, information=TypeError: Error #1009: Cannot access a property or method of a null object reference.
And whenever I test the SWF as a Photoshop panel (by copying the SWF file in the plugin../panel folder) I get null objects whenever I try to access it which blocks any associated actions (events, triggers,...).
I am using CSXSLibrary-2.0-sdk-3.4.swc in combination with Photoshop CS4. Is that library perhaps not suited for CS4? Do I need a older library and if so where can I download it. Most of the libraries seem to be rather difficult to find on the internet anyway - which is a big drag for me.
The SWC library itself however is just fine added to the library as I can even access the CSXSInterface class itself booth while coding and at runtime. Just the .instance or getInstance() singleton returns always NULL.
Any insight or input would be greatly appriciated

I'm having the exact same problem, attempting to make a panel in Flash CS4 to run in Photoshop CS4.
I've tried CSXSLibrary-2.0-sdk-3.4.swc and CSXSLibrary-2.0-sdk-3.3.swc in the SDK, and the separate CSXSLibrary.swc that's been linked to. None of them work; CSXSInterface.instance is always null when my ActionScript runs in Photoshop.
All I'm doing right now is creating a single Button component, with a script that attempts to run a test function in Photoshop.
What's interesting is I can put the ShortcutButtons.jsx and ShortcutButtons.swf from the SDK into Plug-ins/Panels and that works just fine. My JavaScript is essentially the same:
function TestFn()
     alert("Hello, world!");
     app.documents.add();
And my ActionScript is as follows:
import com.adobe.csxs.core.CSXSInterface;
var btnTest = (root as MovieClip).btnTest;
btnTest.addEventListener("click", testFn);
function testFn(event:MouseEvent)
     CSXSInterface.instance.evalScript("TestFn");
(I've put other test code in the testFn() that confirms that the click event is registered correctly.)
I link the CSXSLibrary.swc in the "Library path" section of the ActionScript 3.0 settings, and I know it's being linked to because the size of my SWF balloons from 20 kB to anywhere from 50 to 300 kB depending on which library I'm trying.
What am I missing here...?
Thanks,
Dan.

Similar Messages

  • NewDate always null in CalendarLayoutChangeEvent ??

    I have this simple DateChooser config in flex sdk 2.0 beta 3
    and the property newDate of the event CalendarLayoutChangeEvent is
    always null (regardless of chosing a date) in my method
    changeDate(event), see below.
    I don't know, but maybe this is a bug, or do I do something
    wrong, or maybe can reproduce this ?
    Cheers,
    Ed
    <mx:DateChooser width="100%" id="DatePicker"
    visible="false"
    cornerRadius="2" borderColor="#c0c0c0" themeColor="#878ffc"
    fillColors="[#FAFCFD, #FAFCFD]" showToday="true"
    showEffect="FadeDate"
    dragEnter="doDragEnter(event);" dragDrop="doDragDrop(event)"
    change="this.changeDate(event)"
    mouseMove="dragIt(event)" doubleClick="dblClickDate()"
    doubleClickEnabled="true"
    />
    The method changeDate:
    private function
    changeDate(event:CalendarLayoutChangeEvent): void {
    trace("[change date], calendar event: " + event);
    if (event.newDate != null {
    ..... do something

    It does work
    <mx:Script>
    <![CDATA[
    import mx.events.CalendarLayoutChangeEvent;
    function runTests(event:CalendarLayoutChangeEvent) {
    textResult.text= event.type + " event Triggered, ";
    textResult.text+= "target newDate " + event.newDate;
    ]]>
    </mx:Script>
    <mx:DateChooser id="mydatechooser"
    change="runTests(event)" />
    <mx:TextInput id="textResult" />

  • ADF: use of view link Accessor in Entity Object = always null?

    Hi,
    JClient 9.0.5.2, adf model.
    I would like to use the view link accessor method in the master EO to retrieve detail EO values and the view link accessor method in the detail EO to retrieve master EO values.
    Detail Rule:
    In the detail EO an attribute is derived from an attribute of the master EO: detail attribute = master attribute.
    Master Rule:
    In the master EO an attribute is derived from the detail EO: master atribute set to 0 if detail EO exist else set to 0.
    Tables:
    Table Master => MasterEO => MasterVO
    - masterPK (not updateable)
    - masterField (not updateable)
    - hasDetailsFlag
    Table Detail => DetailEO => DetailVO
    - detailPK (not updateable)
    - masterPK => foreign key (not updateable)
    - masterField (query only)
    MasterDetailLink based on foreign key.
    In link wizard I asked for the generation of following accessors in the source & destination Entity Objects:
    In DetailEO accessor name: RetrieveFromMaster
    In MasterEO accessor name: RetrieveFromDetail
    In the DetailEO, I asked for the generation of the DetailEOImpl file, accessors and create method.
    As wriiten in the file, before the create method:
    ** Add attribute defaulting logic in this method. **
    I tought this is the place to retrieve the master attribute:
    The code:
    MasterVORowImpl masterVO = getRetrieveFromMaster();
    if (masterVO == null)
    System.out.println("MasterVORowImpl masterVO create NNNNNNNNNNNUUUUUUUULLLLLLLLLL");
    The masterVO is always null?
    I suppose I didn't understand something, my guest is that ViewObjects may not be used for default logic?
    I know how to implement those rules in the database with triggers.
    I think that the data I need for implementing those rules exist somewhere at the ADF level so retrieving the data from the db is not necessary?
    Could somebody give some clues?
    I didn't find a similar example in the Business Rules in BC4J document.
    Your help will be appreciated
    Frederic

    Hi,
    Detail Rule, copy attribute value form master.
    In DetailEOImpl:
    protected void create(AttributeList attributeList)
    setAttribute(MASTERFIELD,this.getMaster().getMasterField());
    super.create(attributeList);
    Master rule, set flag to 0 if no details else set to 1.
    In the MasterEOImpl added method to check if detail row exists based on Row Iterator => no db retrieval?
    This method also sets the flag accordingly:
    protected void checkHasOtherDetails()
    oracle.jbo.RowIterator ri = this.getRetrieveFromdetail();
    ri.last();
    // last() must be called else hasNext() returns true even on last delete ???
    Number hasDetails = Constants.NUMBER_NO; // = 1
    if (ri.hasNext() || ri.hasPrevious())
    hasDetails = Constants.NUMBER_YES; // = 0
    if (!getHasDetailsFlag().equals(hasDetails)) {
    this.setHasDetailsFlag(hasDetails);
    I call this method in the remove method of the detailEOImpl:
    public void remove()
    this.getRetrieeFromMaster().checkHasOtherDetails();
    super.remove();
    To set the flag I added follwoing code in the create method of the DetailEOImpl:
    protected void create(AttributeList attributeList)
    setAttribute(MASTERFIELD,this.getMaster().getMasterField());
    **** ADDED ***
    Number masterHasDetailsFlag = getRetrieveFromMaster().getHasDetailsFlag();
    if (!masterHasDetailsFlag.equals(Constants.NUMBER_YES)) {
    getRetrieveFromMaster().setHasDetailsFlag(Constants.NUMBER_YES));
    super.create(attributeList);
    One more question:
    Is there a danger of calling last() on row iterators in create/update/remove methods of *Impl files?
    => current row changed => any effect on display in JPanel
    Thanks
    Frederic
    PS All variable/method/class names have been manually renamed in this code so some small syntax problems may exist.

  • Text field with autocomplete is always NULL

    Greetings,
    I am new to Apex so I am sure I am missing something obvious. I am using Apex 4.0.1 What I have done is created a form on a table page and added a new text with autocomplete page item. This new text field does not correspond to a column in the table. What I am trying to do is allow the user to use the autocomplete item to make a selection. Then when the user submits the page, I want to use the substr function on the value in the autocomplete field and populate one of the table fields. I have tried using PL/SQL functions in validations and computations but I have found that the value of the autocomplete field is always NULL. I can access the other fields that are associated with a table column fine. It must be something simple. Thanks for your help.
    Page Items
    P2_F1  - text field with auto complete. Not associated with a table column
    P2_F2 – Text field. Is associate with a table column
    This is what I want to do:
    Entered this in a validation
    begin
    if :P2_F1 is not null then
       :P2_F2 := substr(:P2_F1,1,5);
    end if;
    end;Thanks again
    Edited by: LRM on Jan 22, 2011 5:25 PM

    hi,
    The PL/SQL function can also work when you choose Computation point: After submit.
    For reading You can refer APEX documentation
    Application Builder User's Guide: http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/toc.htm
    To debug application:
    While you run your application in development environment, you can view debug option on footer .
    Click on it to on debug and again click to debug off.
    To view debug result click on View Debug option.
    Regards,
    Kartik Patel
    http://patelkartik.blogspot.com/
    http://apex.oracle.com/pls/apex/f?p=9904351712:1

  • How to select instances without null value?

    hye all,
    i need to do th ereprocessing data whereas i have to select the instances without null value from the database..
    for example:
    id name
    123 izza
    345 alex
    567
    the id = 567 contain null value..so..its automatically will not be selected from the database...
    how about if it have about 10 or more attributes to be selected..
    how can i work with the SQL thanks..

    Hi,
    Query for your example should like like this:
    SELECT * FROM <your_table>
        WHERE name is null;
    how about if it have about 10 or more attributes to be selected..
    If using 10 or more attributes you mean 10 or more columns with null use this:
    SELECT * FROM <your_table>
        WHERE <col1> is null AND <col2> is null etc...Peter D.

  • HostComponent always null :(

    Hey guys,
    I am declaring and adding a new Skin programmatically from actionscript like so...
    var custom:MyCustomComponent = new MyCustomComponent();
    var skin:MySkin = new Skin();
    custom.addElement(skin);
    on MySkin I have an event handler for creationComplete()
    but when creationComplete fires on the skin, the hostComponent is always null!
    If I instead set the Skin via the custom components skinClass property in mxml I dont have this problem.  Can anyone tell me what I am doing wrong, thank you!

    When you call "custom.addElement(skin);" you aren't actually setting the skin of "custom" to "skin".  You must use use the skinClass property to do this.
    What you are actually doing is just inserting that object as a child of the container.  This is not much different than doing something like "custom.addElement(new Group())"
    So hostComponent is null, because the skin isn't attached to a host component.

  • Javax.xml.registry.JAXRException: Failed to create instance of: null

    Friends,
    I don't understand why this error is coming :-
    javax.xml.registry.JAXRException: Failed to create instance of: null
    at javax.xml.registry.ConnectionFactory.newInstance(ConnectionFactory.java:75)
    at JAXRFindBusiness.doQuery(JAXRFindBusiness.java:46)
    at JAXRFindBusiness.main(JAXRFindBusiness.java:28)
    Caused by: java.lang.NullPointerException
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at javax.xml.registry.ConnectionFactory.newInstance(ConnectionFactory.java:70)
    ... 2 more
    Please help
    Thanks
    Vishal

    Please describe in more detail at which circumstances this error appears? It's not completely clear from the stack trace.

  • Http Instance always dropped

    Hello
    Anybody can help me to find out why the HTTP Instance always dropped by itself and have to restart manually once its dropped.
    My messaging Server and Directory server sits in two different physical servers.
    For for infomation:
    Messaging Server
    Sun One Messaging Server 5.2 (build Feb 21 2002)
    Sun Solaris 8
    Sun Fire 280R
    Directory Server
    Sun One DIrectory Server 5.1 SP1
    Sun Solaris 8
    Sun Fire 280R
    Error Message
    Server instance: /iplanet/servers/msg-messaging
    Alarmid: serverresponse
    Instance: http
    Description: server response time in seconds
    Current measured value (01/Jul/2003:09:38:05 +0800): 10
    Lowest recorded value: 0
    Highest recorded value: 10
    Monitoring interval: 600 seconds
    Alarm condition is when over threshold of 10
    Number of times over threshold: 1
    Thanks....

    Tim Bao wrote:
    I am running iPlanet Web Server 6.0 SP1 Evaluation version on my
    W2k professional. But I found something strange and want to know why
    NES always sends header in lower-case, ie., "Content-type" instead of
    typical "Content-Type". I do know the header name is case-incensitive,
    but it causes some dedicated HTTP client cannot recognize these
    headers. Can I configure NES so that it will return "Content-Type"
    instead of "Content-type"?You could conceivably modify this behaviour with your own NSAPI plugin, but
    there is no configuration option that causes the sever to output
    "Content-Type" instead of "Content-type".
    A client that doesn't recognize "Content-type" and "Content-Type" as synonyms
    is very badly broken.

  • Getting WLI  Workflow Instance getting NULL.

    Hi All WLI Users,
    I am getting following problem while executing WLI workflow. After work
    flow gets triggered by an XML event and instantiated, after some time workflow
    instance becomes null.
    and the execution is aborted. Kindly give me a solution to this problem.
    Thanks
    Kiran

    Hi tony
    It won't be possible for us to send us the workflow, beacuse it has
    lots of interfaces
    like MQ series and TCP/IP adpater.
    But I can explain u in brief the workflow.
    Workflow sends message to HOST1 after getting successfull response
    from HOST1 it sends
    another request to HOST2 and waits for the response.
    Now this can iterate for say 200-500 times (depends on response
    from HOST1).
    Each message length is aroung 5000 bytes.During this iteration the
    instance somehow sets to NULL.
    I hope you can simulate the same at your end.
    Also note we also do XML transformation before sending the request.
    Thanks
    "tony lodge" <[email protected]> wrote in message
    news:[email protected]...
    Hi
    I recommend given this level of detail you open a case, what I amseeing
    looks like a valid bug. Please provide the sample workflow if possible
    Tony
    "Saurabh" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    The Versio ni am using is wlisp2.1 (service pack 2.1)
    and Exception Stack trace is as follows,
    <Mar 30, 2002 1:53:55 AM GMT-05:00> <Error> <T3Services> <Workflowtrace:Template=28003
    Template Definition=31003
    Instance=null>
    Workflow warning: com.bea.wlpi.common.WorkflowException: The system
    could
    not
    find the specified workflow instance: null.
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.getWorkflowInsta
    nce(WorkflowProcessorBean.java:537)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.getWorkflowInsta
    nceData(WorkflowProcessorBean.java:551
    atcom.bea.wlpi.server.workflow.Variable.setValue(Variable.java:92)
    atcom.bea.wlpi.server.workflow.Workflow.setVariable(Workflow.java:833)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.setVariableValue
    (WorkflowProcessorBean.java:1017)
    at
    com.bea.wlaiplugin.server.WLAIServiceImpl.execute(WLAIServiceImpl.java:211)
    atcom.bea.wlpi.server.workflow.action.ActionPlugin.execute(ActionPlugin.java:1
    23)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.executeActions(W
    orkflowProcessorBean.java:1194)
    at
    com.bea.wlpi.server.workflow.Task.executeActions(Task.java:90)
    at com.bea.wlpi.server.workflow.Task.activate(Task.java:119)
    atcom.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    atcom.bea.wlpi.server.workflow.Decision.activate(Decision.java:72)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    atcom.bea.wlpi.server.workflow.Decision.activate(Decision.java:72)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    at com.bea.wlpi.server.workflow.Task.markDone(Task.java:164)
    at
    com.bea.wlpi.server.workflow.action.ActionTaskDone.execute(ActionTaskDone.ja
    va:50)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.executeActions(W
    orkflowProcessorBean.java:1194)
    at
    com.bea.wlpi.server.workflow.Task.executeActions(Task.java:90)
    at com.bea.wlpi.server.workflow.Task.activate(Task.java:119)
    atcom.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    atcom.bea.wlpi.server.workflow.Decision.activate(Decision.java:72)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    at com.bea.wlpi.server.workflow.Task.markDone(Task.java:164)
    at
    com.bea.wlpi.server.workflow.action.ActionTaskDone.execute(ActionTaskDone.ja
    va:50)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.executeActions(W
    orkflowProcessorBean.java:1194)
    at
    com.bea.wlpi.server.workflow.Task.executeActions(Task.java:90)
    at com.bea.wlpi.server.workflow.Task.activate(Task.java:119)
    atcom.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    atcom.bea.wlpi.server.workflow.Decision.activate(Decision.java:72)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    at com.bea.wlpi.server.workflow.Task.markDone(Task.java:164)
    at
    com.bea.wlpi.server.workflow.action.ActionTaskDone.execute(ActionTaskDone.ja
    va:50)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.executeActions(W
    orkflowProcessorBean.java:1194)
    at
    com.bea.wlpi.server.workflow.Task.executeActions(Task.java:90)
    at com.bea.wlpi.server.workflow.Task.activate(Task.java:119)
    atcom.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    atcom.bea.wlpi.server.workflow.Decision.activate(Decision.java:72)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    atcom.bea.wlpi.server.workflow.Decision.activate(Decision.java:72)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    atcom.bea.wlpi.server.workflow.Decision.activate(Decision.java:72)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    at com.bea.wlpi.server.workflow.Task.markDone(Task.java:164)
    at
    com.bea.wlpi.server.workflow.action.ActionTaskDone.execute(ActionTaskDone.ja
    va:50)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.executeActions(W
    orkflowProcessorBean.java:1194)
    at
    com.bea.wlpi.server.workflow.Task.executeActions(Task.java:90)
    at com.bea.wlpi.server.workflow.Task.activate(Task.java:119)
    atcom.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    atcom.bea.wlpi.server.workflow.Decision.activate(Decision.java:72)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    at com.bea.wlpi.server.workflow.Task.markDone(Task.java:164)
    at
    com.bea.wlpi.server.workflow.action.ActionTaskDone.execute(ActionTaskDone.ja
    va:50)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.executeActions(W
    orkflowProcessorBean.java:1194)
    at
    com.bea.wlpi.server.workflow.Task.executeActions(Task.java:90)
    at com.bea.wlpi.server.workflow.Task.activate(Task.java:119)
    atcom.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    atcom.bea.wlpi.server.workflow.Decision.activate(Decision.java:72)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    atcom.bea.wlpi.server.workflow.Decision.activate(Decision.java:72)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    at com.bea.wlpi.server.workflow.Task.markDone(Task.java:164)
    at
    com.bea.wlpi.server.workflow.action.ActionTaskDone.execute(ActionTaskDone.ja
    va:50)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.executeActions(W
    orkflowProcessorBean.java:1194)
    at
    com.bea.wlpi.server.workflow.Task.executeActions(Task.java:90)
    at com.bea.wlpi.server.workflow.Task.activate(Task.java:119)
    atcom.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    atcom.bea.wlpi.server.workflow.Decision.activate(Decision.java:72)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    at com.bea.wlpi.server.workflow.Task.markDone(Task.java:164)
    at
    com.bea.wlpi.server.workflow.action.ActionTaskDone.execute(ActionTaskDone.ja
    va:50)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.executeActions(W
    orkflowProcessorBean.java:1194)
    at
    com.bea.wlpi.server.workflow.Task.executeActions(Task.java:90)
    at com.bea.wlpi.server.workflow.Task.activate(Task.java:119)
    atcom.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    atcom.bea.wlpi.server.workflow.Decision.activate(Decision.java:72)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    at com.bea.wlpi.server.workflow.Task.markDone(Task.java:164)
    at
    com.bea.wlpi.server.workflow.action.ActionTaskDone.execute(ActionTaskDone.ja
    va:50)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.executeActions(W
    orkflowProcessorBean.java:1194)
    at
    com.bea.wlpi.server.workflow.Task.executeActions(Task.java:90)
    at com.bea.wlpi.server.workflow.Task.activate(Task.java:119)
    atcom.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    atcom.bea.wlpi.server.workflow.Decision.activate(Decision.java:72)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    atcom.bea.wlpi.server.workflow.Decision.activate(Decision.java:72)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    at com.bea.wlpi.server.workflow.Task.markDone(Task.java:164)
    at
    com.bea.wlpi.server.workflow.action.ActionTaskDone.execute(ActionTaskDone.ja
    va:50)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.executeActions(W
    orkflowProcessorBean.java:1194)
    at
    com.bea.wlpi.server.workflow.Task.executeActions(Task.java:90)
    at com.bea.wlpi.server.workflow.Task.activate(Task.java:119)
    atcom.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    atcom.bea.wlpi.server.workflow.Decision.activate(Decision.java:72)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    atcom.bea.wlpi.server.workflow.Decision.activate(Decision.java:72)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    at com.bea.wlpi.server.workflow.Task.markDone(Task.java:164)
    at
    com.bea.wlpi.server.workflow.action.ActionTaskDone.execute(ActionTaskDone.ja
    va:50)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.executeActions(W
    orkflowProcessorBean.java:1194)
    at
    com.bea.wlpi.server.workflow.Task.executeActions(Task.java:90)
    at com.bea.wlpi.server.workflow.Task.activate(Task.java:119)
    atcom.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    atcom.bea.wlpi.server.workflow.Decision.activate(Decision.java:72)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    atcom.bea.wlpi.server.workflow.Decision.activate(Decision.java:72)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    at com.bea.wlpi.server.workflow.Task.markDone(Task.java:164)
    at
    com.bea.wlpi.server.workflow.action.ActionTaskDone.execute(ActionTaskDone.ja
    va:50)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.executeActions(W
    orkflowProcessorBean.java:1194)
    at
    com.bea.wlpi.server.workflow.Task.executeActions(Task.java:90)
    at com.bea.wlpi.server.workflow.Task.activate(Task.java:119)
    atcom.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    atcom.bea.wlpi.server.workflow.Decision.activate(Decision.java:72)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    atcom.bea.wlpi.server.workflow.Decision.activate(Decision.java:72)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    atcom.bea.wlpi.server.workflow.Decision.activate(Decision.java:72)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    at com.bea.wlpi.server.workflow.Task.markDone(Task.java:164)
    at
    com.bea.wlpi.server.workflow.action.ActionTaskDone.execute(ActionTaskDone.ja
    va:50)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.executeActions(W
    orkflowProcessorBean.java:1194)
    at
    com.bea.wlpi.server.workflow.Task.executeActions(Task.java:90)
    at com.bea.wlpi.server.workflow.Task.activate(Task.java:119)
    atcom.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    atcom.bea.wlpi.server.workflow.Decision.activate(Decision.java:72)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    at com.bea.wlpi.server.workflow.Task.markDone(Task.java:164)
    at
    com.bea.wlpi.server.workflow.action.ActionTaskDone.execute(ActionTaskDone.ja
    va:50)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.executeActions(W
    orkflowProcessorBean.java:1194)
    at
    com.bea.wlpi.server.workflow.Task.executeActions(Task.java:90)
    at com.bea.wlpi.server.workflow.Task.activate(Task.java:119)
    atcom.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccesso
    rs(WorkflowProcessorBean.java:1344)
    at com.bea.wlpi.server.workflow.Start.activate(Start.java:168)
    at
    com.bea.wlpi.server.workflow.Workflow.start(Workflow.java:657)
    atcom.bea.wlpi.server.workflow.Workflow.instantiate(Workflow.java:617)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean$1.invoke(Workflo
    wProcessorBean.java:713)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.performWithError
    Handling(WorkflowProcessorBean.java:11
    32)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.instantiate(Work
    flowProcessorBean.java:709)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean_h7kt4j_EOImpl.in
    stantiate(WorkflowProcessorBean_h7kt4j
    _EOImpl.java:78)
    at
    com.bea.wlpi.server.eventprocessor.EventProcessor.checkTrigger(EventProcesso
    r.java:358)
    at
    com.bea.wlpi.server.eventprocessor.EventProcessor.onEvent(EventProcessor.jav
    a:244)
    at
    com.bea.wlpi.server.eventlistener.EventListenerBean.onMessage(EventListenerB
    ean.java:130)
    at
    weblogic.ejb20.internal.MDListener.execute(MDListener.java:254)
    atweblogic.ejb20.internal.MDListener.onMessage(MDListener.java:206)
    at
    weblogic.jms.client.JMSSession.onMessage(JMSSession.java:1864)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:1819)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    <Mar 30, 2002 1:53:55 AM GMT-05:00> <Notice> <EJB> <Error markingtransaction
    for rollback: java.lang.IllegalStateException:
    Cannot mark the transaction for rollback. xid=4883:97fdb06e981bb8b8,status=Rolled
    back. [Reason=weblogic.transaction.interna
    l.TimedOutException: Transaction timed out after 89 seconds
    Xid=4883:97fdb06e981bb8b8(510078),Status=Active,numRepliesOwedMe=0,numReplie
    sOwedOthers=0,seconds
    since begin=89,seconds left
    =60,activeThread=Thread[ExecuteThread: '4' for queue: 'default',5,Thread
    Group> > for Queue: 'default',ServerResourceInfo[weblo
    gic.jdbc.jts.Connection]=(state=ended,assigned=none),SCInfo[wlidomain+myserv
    er]=(state=active),properties=({weblogic.jdbc=t3:
    >
    file://192.193.249.82:7220}),OwnerTransactionManager=ServerTM[ServerCoordina
    torDescriptor=(CoordinatorURL=myserver+192.193.249.82:
    7220+wlidomain+,Resources={})],CoordinatorURL=myserver+192.193.249.82:7220+wlidomain+)]
    java.lang.IllegalStateException: Cannot mark the transaction for
    rollback.
    xid=4883:97fdb06e981bb8b8,
    status=Rolled back. [Re
    ason=weblogic.transaction.internal.TimedOutException: Transaction timedout after
    89 seconds
    Xid=4883:97fdb06e981bb8b8(510078),Status=Active,numRepliesOwedMe=0,numReplie
    sOwedOthers=0,seconds
    since begin=89,seconds left
    =60,activeThread=Thread[ExecuteThread: '4' for queue: 'default',5,Thread
    Group> > for Queue: 'default',ServerResourceInfo[weblo
    gic.jdbc.jts.Connection]=(state=ended,assigned=none),SCInfo[wlidomain+myserv
    er]=(state=active),properties=({weblogic.jdbc=t3:
    >
    file://192.193.249.82:7220}),OwnerTransactionManager=ServerTM[ServerCoordina
    torDescriptor=(CoordinatorURL=myserver+192.193.249.82:
    7220+wlidomain+,Resources={})],CoordinatorURL=myserver+192.193.249.82:7220+wlidomain+)]
    at
    weblogic.transaction.internal.TransactionImpl.throwIllegalStateException(Tra
    nsactionImpl.java:1486)
    at
    weblogic.transaction.internal.TransactionImpl.setRollbackOnly(TransactionImp
    l.java:466)
    at
    weblogic.ejb20.manager.BaseEJBManager.handleSystemException(BaseEJBManager.j
    ava:255)
    at
    weblogic.ejb20.manager.BaseEJBManager.setupTxListener(BaseEJBManager.java:21
    5)
    at
    weblogic.ejb20.manager.StatefulSessionManager.preInvoke(StatefulSessionManag
    er.java:371)
    at
    weblogic.ejb20.manager.StatefulSessionManager.remove(StatefulSessionManager.
    java:756)
    at
    weblogic.ejb20.internal.StatefulEJBObject.remove(StatefulEJBObject.java:87)
    atcom.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean_h7kt4j_EOImpl.re
    move(WorkflowProcessorBean_h7kt4j_EOIm
    pl.java:856)
    at
    com.bea.wlpi.server.eventprocessor.EventProcessor.clearSessionBeans(EventPro
    cessor.java:510)
    at
    com.bea.wlpi.server.eventprocessor.EventProcessor.onEvent(EventProcessor.jav
    a:284)
    at
    com.bea.wlpi.server.eventlistener.EventListenerBean.onMessage(EventListenerB
    ean.java:130)
    at
    weblogic.ejb20.internal.MDListener.execute(MDListener.java:254)
    atweblogic.ejb20.internal.MDListener.onMessage(MDListener.java:206)
    at
    weblogic.jms.client.JMSSession.onMessage(JMSSession.java:1864)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:1819)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >
    javax.transaction.TransactionRolledbackException: EJB Exception: :weblogic.transaction.internal.TimedOutException:
    Transacti
    on timed out after 89 seconds
    Xid=4883:97fdb06e981bb8b8(510078),Status=Active,numRepliesOwedMe=0,numReplie
    sOwedOthers=0,seconds
    since begin=89,seconds left
    =60,activeThread=Thread[ExecuteThread: '4' for queue: 'default',5,Thread
    Group> > for Queue: 'default',ServerResourceInfo[weblo
    gic.jdbc.jts.Connection]=(state=ended,assigned=none),SCInfo[wlidomain+myserv
    er]=(state=active),properties=({weblogic.jdbc=t3:
    >
    file://192.193.249.82:7220}),OwnerTransactionManager=ServerTM[ServerCoordina
    torDescriptor=(CoordinatorURL=myserver+192.193.249.82:
    7220+wlidomain+,Resources={})],CoordinatorURL=myserver+192.193.249.82:7220+wlidomain+)
    at
    weblogic.transaction.internal.ServerTransactionImpl.wakeUp(ServerTransaction
    Impl.java:1122)
    at
    weblogic.transaction.internal.ServerTransactionManagerImpl.processTimedOutTr
    ansactions(ServerTransactionManagerImp
    l.java:441)
    at
    weblogic.transaction.internal.TransactionManagerImpl.wakeUp(TransactionManag
    erImpl.java:1581)
    at
    weblogic.transaction.internal.ServerTransactionManagerImpl.wakeUp(ServerTran
    sactionManagerImpl.java:404)
    at
    weblogic.transaction.internal.TransactionManagerImpl$1.run(TransactionManage
    rImpl.java:1547)
    at java.lang.Thread.run(Thread.java:484)
    --------------- nested within: ------------------
    weblogic.transaction.RollbackException: Transaction timed out after 89seconds
    >
    Xid=4883:97fdb06e981bb8b8(510078),Status=Active,numRepliesOwedMe=0,numReplie
    sOwedOthers=0,seconds
    since begin=89,seconds left
    =60,activeThread=Thread[ExecuteThread: '4' for queue: 'default',5,Thread
    Group> > for Queue: 'default',ServerResourceInfo[weblo
    gic.jdbc.jts.Connection]=(state=ended,assigned=none),SCInfo[wlidomain+myserv
    er]=(state=active),properties=({weblogic.jdbc=t3:
    >
    file://192.193.249.82:7220}),OwnerTransactionManager=ServerTM[ServerCoordina
    torDescriptor=(CoordinatorURL=myserver+192.193.249.82:
    7220+wlidomain+,Resources={})],CoordinatorURL=myserver+192.193.249.82:7220+wlidomain+)
    - with nested exception:
    [weblogic.transaction.internal.TimedOutException: Transaction timed out
    after> > 89 seconds> >>Xid=4883:97fdb06e981bb8b8(510078),Status=Active,numRepliesOwedMe=0,numReplie> sOwedOthers=0,seconds> > since begin=89,seconds left> > =60,activeThread=Thread[ExecuteThread: '4' for queue: 'default',5,Thread> Group> > for Queue: 'default',ServerResourceInfo[weblo
    gic.jdbc.jts.Connection]=(state=ended,assigned=none),SCInfo[wlidomain+myserv
    er]=(state=active),properties=({weblogic.jdbc=t3:
    >
    file://192.193.249.82:7220}),OwnerTransactionManager=ServerTM[ServerCoordina
    torDescriptor=(CoordinatorURL=myserver+192.193.249.82:
    7220+wlidomain+,Resources={})],CoordinatorURL=myserver+192.193.249.82:7220+wlidomain+)]
    at
    weblogic.transaction.internal.TransactionImpl.throwRollbackException(Transac
    tionImpl.java:1475)
    at
    weblogic.transaction.internal.ServerTransactionImpl.registerSynchronization(
    ServerTransactionImpl.java:435)
    at
    weblogic.ejb20.internal.TxManager.registerSynchronization(TxManager.java:157
    at
    weblogic.ejb20.manager.BaseEJBManager.setupTxListener(BaseEJBManager.java:21
    0)
    at
    weblogic.ejb20.manager.StatefulSessionManager.preInvoke(StatefulSessionManag
    er.java:371)
    at
    weblogic.ejb20.manager.StatefulSessionManager.remove(StatefulSessionManager.
    java:756)
    at
    weblogic.ejb20.internal.StatefulEJBObject.remove(StatefulEJBObject.java:87)
    atcom.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean_h7kt4j_EOImpl.re
    move(WorkflowProcessorBean_h7kt4j_EOIm
    pl.java:856)
    at
    com.bea.wlpi.server.eventprocessor.EventProcessor.clearSessionBeans(EventPro
    cessor.java:510)
    at
    com.bea.wlpi.server.eventprocessor.EventProcessor.onEvent(EventProcessor.jav
    a:284)
    at
    com.bea.wlpi.server.eventlistener.EventListenerBean.onMessage(EventListenerB
    ean.java:130)
    at
    weblogic.ejb20.internal.MDListener.execute(MDListener.java:254)
    atweblogic.ejb20.internal.MDListener.onMessage(MDListener.java:206)
    at
    weblogic.jms.client.JMSSession.onMessage(JMSSession.java:1864)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:1819)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    ; nested exception is:
    weblogic.transaction.RollbackException: Transaction timed outafter 89
    seconds
    Xid=4883:97fdb06e981bb8b8(510078),Status=Active,numRepliesOwedMe=0,numReplie
    sOwedOthers=0,seconds
    since begin=89,seconds left
    =60,activeThread=Thread[ExecuteThread: '4' for queue: 'default',5,Thread
    Group> > for Queue: 'default',ServerResourceInfo[weblo
    gic.jdbc.jts.Connection]=(state=ended,assigned=none),SCInfo[wlidomain+myserv
    er]=(state=active),properties=({weblogic.jdbc=t3:
    >
    file://192.193.249.82:7220}),OwnerTransactionManager=ServerTM[ServerCoordina
    torDescriptor=(CoordinatorURL=myserver+192.193.249.82:
    7220+wlidomain+,Resources={})],CoordinatorURL=myserver+192.193.249.82:7220+wlidomain+)
    - with nested exception:
    [weblogic.transaction.internal.TimedOutException: Transaction timed out
    after> > 89 seconds> >>Xid=4883:97fdb06e981bb8b8(510078),Status=Active,numRepliesOwedMe=0,numReplie> sOwedOthers=0,seconds> > since begin=89,seconds left> > =60,activeThread=Thread[ExecuteThread: '4' for queue: 'default',5,Thread> Group> > for Queue: 'default',ServerResourceInfo[weblo
    gic.jdbc.jts.Connection]=(state=ended,assigned=none),SCInfo[wlidomain+myserv
    er]=(state=active),properties=({weblogic.jdbc=t3:
    >
    file://192.193.249.82:7220}),OwnerTransactionManager=ServerTM[ServerCoordina
    torDescriptor=(CoordinatorURL=myserver+192.193.249.82:
    7220+wlidomain+,Resources={})],CoordinatorURL=myserver+192.193.249.82:7220+wlidomain+)]
    weblogic.transaction.internal.TimedOutException: Transaction timed outafter 89
    seconds
    Xid=4883:97fdb06e981bb8b8(510078),Status=Active,numRepliesOwedMe=0,numReplie
    sOwedOthers=0,seconds
    since begin=89,seconds left
    =60,activeThread=Thread[ExecuteThread: '4' for queue: 'default',5,Thread
    Group> > for Queue: 'default',ServerResourceInfo[weblo
    gic.jdbc.jts.Connection]=(state=ended,assigned=none),SCInfo[wlidomain+myserv
    er]=(state=active),properties=({weblogic.jdbc=t3:
    >
    file://192.193.249.82:7220}),OwnerTransactionManager=ServerTM[ServerCoordina
    torDescriptor=(CoordinatorURL=myserver+192.193.249.82:
    7220+wlidomain+,Resources={})],CoordinatorURL=myserver+192.193.249.82:7220+wlidomain+)
    at
    weblogic.transaction.internal.ServerTransactionImpl.wakeUp(ServerTransaction
    Impl.java:1122)
    at
    weblogic.transaction.internal.ServerTransactionManagerImpl.processTimedOutTr
    ansactions(ServerTransactionManagerImp
    l.java:441)
    at
    weblogic.transaction.internal.TransactionManagerImpl.wakeUp(TransactionManag
    erImpl.java:1581)
    at
    weblogic.transaction.internal.ServerTransactionManagerImpl.wakeUp(ServerTran
    sactionManagerImpl.java:404)
    at
    weblogic.transaction.internal.TransactionManagerImpl$1.run(TransactionManage
    rImpl.java:1547)
    at java.lang.Thread.run(Thread.java:484)
    --------------- nested within: ------------------
    weblogic.transaction.RollbackException: Transaction timed out after 89seconds
    >
    Xid=4883:97fdb06e981bb8b8(510078),Status=Active,numRepliesOwedMe=0,numReplie
    sOwedOthers=0,seconds
    since begin=89,seconds left
    =60,activeThread=Thread[ExecuteThread: '4' for queue: 'default',5,Thread
    Group> > for Queue: 'default',ServerResourceInfo[weblo
    gic.jdbc.jts.Connection]=(state=ended,assigned=none),SCInfo[wlidomain+myserv
    er]=(state=active),properties=({weblogic.jdbc=t3:
    >
    file://192.193.249.82:7220}),OwnerTransactionManager=ServerTM[ServerCoordina
    torDescriptor=(CoordinatorURL=myserver+192.193.249.82:
    7220+wlidomain+,Resources={})],CoordinatorURL=myserver+192.193.249.82:7220+wlidomain+)
    - with nested exception:
    [weblogic.transaction.internal.TimedOutException: Transaction timed out
    after> > 89 seconds> >>Xid=4883:97fdb06e981bb8b8(510078),Status=Active,numRepliesOwedMe=0,numReplie> sOwedOthers=0,seconds> > since begin=89,seconds left> > =60,activeThread=Thread[ExecuteThread: '4' for queue: 'default',5,Thread> Group> > for Queue: 'default',ServerResourceInfo[weblo
    gic.jdbc.jts.Connection]=(state=ended,assigned=none),SCInfo[wlidomain+myserv
    er]=(state=active),properties=({weblogic.jdbc=t3:
    >
    file://192.193.249.82:7220}),OwnerTransactionManager=ServerTM[ServerCoordina
    torDescriptor=(CoordinatorURL=myserver+192.193.249.82:
    7220+wlidomain+,Resources={})],CoordinatorURL=myserver+192.193.249.82:7220+wlidomain+)]
    at
    weblogic.transaction.internal.TransactionImpl.throwRollbackException(Transac
    tionImpl.java:1475)
    at
    weblogic.transaction.internal.ServerTransactionImpl.registerSynchronization(
    ServerTransactionImpl.java:435)
    at
    weblogic.ejb20.internal.TxManager.registerSynchronization(TxManager.java:157
    at
    weblogic.ejb20.manager.BaseEJBManager.setupTxListener(BaseEJBManager.java:21
    0)
    at
    weblogic.ejb20.manager.StatefulSessionManager.preInvoke(StatefulSessionManag
    er.java:371)
    at
    weblogic.ejb20.manager.StatefulSessionManager.remove(StatefulSessionManager.
    java:756)
    at
    weblo

  • [OBIEE-11g] Error getting Nqid always null value

    Hi to all, I've a problem to load Nqid in a dashboard on 11g OBIEE.
    The javascript function return always a null value and the document.cookie instruction return an empty string ...
    somebody could help me ?!
    p.s.: in the firefox properties there is a cookie that contain the id but i can't read it
    function getNqid() {
    var nameEQ = 'nQuireID=';
    var ca = document.cookie.split(';');
    for(var i=0; i<ca.length; i++) {
    var c = ca;
    while (c.charAt(0)==' ')
    c = c.substring(1,c.length);
    if (c.indexOf(nameEQ) == 0)
    return c.substring(nameEQ.length,c.length);
    return null;

    Hi,
    You might want to check the NQQuery.log to see the code that it is running before making a connection. Just to confirm that the connection pool step is working fine, could you try with a simple select statement and see that it does not error out. If it does not, you may want to revisit the procedure code again. I understand from the error that it is expecting something after the END statement (kind of weird though!!). I assume in this case, it could not parse that this is a stored procedure call itself may be. One thread I found is http://stackoverflow.com/questions/4270818/ora-06550-and-pls-00103 which you may want to look for the line break characters.
    Hope this helps.
    Thank you,
    Dhar

  • New instance gets  null value

    I'll try to clarify my problem because I think it's too long in the other post and I don't have the run time error anymore:
    Now I have the class TextEnter that I'm using for writing text from the keyboard and returning that text using the method rettext from class TextEnter:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class TextEnter extends JPanel implements ActionListener {
    private JButton clickButton;
    private JTextField textField;
    private JLabel textLabel;
    public String text;
    public TextEnter() {
    super(new BorderLayout()); // calling the constructor JPanel(LayoutManager)
    textField = new JTextField(40); // calling the constructor JTextField(int) : nr of columns
    add(textField, BorderLayout.NORTH);
    clickButton = new JButton("Click to save");
    clickButton.addActionListener(this);
    add(clickButton, BorderLayout.CENTER);
    textLabel = new JLabel("not saved yet...");
    add(textLabel, BorderLayout.SOUTH);
    public void actionPerformed(ActionEvent e) {
    if (e.getSource() == clickButton) {
    text = textField.getText();
    textLabel.setText(text);
              System.out.println("THE TEXT");
                   System.out.println(text);
    else {
    System.err.println("Error: since this class only listens to events from clickButton,");
    System.err.println("it is impossible to get here!!");
    public String rettext(){
    return text;
    public static void main(String[] arg) {
    I need to use that text as the name of a file that I create in another class,
    where I define an instance
    private TextEnter tx= new TextEnter();
    and I try to get the text doing this:
    text = tx.rettext()
    but I get a null value

    I need to use that text as the name of a file that I
    create in another class,
    where I define an instance
    private TextEnter tx= new TextEnter();
    and I try to get the text doing this:
    text = tx.rettext()
    but I get a null valueThe method rettext() returns the String text, which only gets assigned a value after the button on the TextEnter gets clicked. Try assigning text a default value and see if that helps.

  • Oracle instance always in 'shutdown' phase one day after installation

    I have Windows 2003 Server (SP1) and Oracle database 10g release 2 installed.
    On the installation day, after completing the installation everything worked just fine.
    One day after that and on, everytime I boot up my OS the Oracle database instance is always in the 'shutdown' phase (though the listener is up).
    So I have to manually start the database in 'open' mode.
    The Enterprise Manager Console tells me that "TNS:Listener does not know the SID in the connect descriptor." This is strange, because I didn't change anything in the listener.ora and tnsnames.ora files after installation.
    Could someone help me handle this problem?
    Is this inherent in Oracle database 10g release 2?
    P.S.: I have been using release 1 for some time and this never happened even months after installation.
    Many thanks,
    (Mario Andretti)

    Please verify that you can get the database open manually.
    If you can, then I suspect the problem is with the Enterprise Manager configuration. I believe the Enterprise Manager 10gR2 uses a different port by default than 10gR1. Depending on how you did the upgrade, you may need to look at the old port (or the new port) instead of the one you are using.
    Further, if the database runs OK, and the problem is isolated to Enteprise Manager, you might be able to resolve the problem using emca (EM Config Assistant). In which case, I'd check the docs for further info, as I'm definitely a novice at emca.

  • Value of a read only check box is always null

    Hi,
    I have a read-only check box in my form which fetches its values using Y or N value from table. If the value fetched from the table is 'Y' then check box is checked.
    But when I tried to assign the value of this check box to some other item it is always showing null. When I made the check box editable then it started showing the value.
    I appreciate if some one can share their thoughts if dealt with similar kind of issue.
    Thanks in advance.
    -Raj.

    Read-only items often have the "disabled" attribute which prevents them from being POSTed so you can't pass their values from the browser to the application. Since you get the value from the database, why not simply fetch that value again after the page is submitted using a computation to set the other item's value?
    Scott

  • Pageflow instance variables null.

    Hello BEA Experts,
    Weblogic documentation states that pageflow can be used to store data that on a per user per session basis , however I have a instance variable string that is being set in the begin action which is called in the beginning of the pagelow.
    Later on another action with in the pageflow is called via a hyperlink , inside this action the string variable that was set in the begin action is returning null.
    I am surpised as to why Workshop is showing this behaviour.
    I use workshop version 8.1.4.
    Any comments and suggestions towards resolving this issue would be highly appreciated.
    Thanks in advance!

    Hi Bob,
    This could be because the current pageflow in the session was replaced with another instance. This can happen if you accessed another pageflow or a nested PF during the flow.
    You can check it by turning on the debug. Create a file debug.properties and add the entries below into it and save the file in the domain folder.
    com.bea.wlw.netui.pageflow.FlowControllerFactory: on com.bea.wlw.netui.pageflow.FlowController: on com.bea.wlw.netui.pageflow.PageFlowUtils: on com.bea.wlw.netui.pageflow.PageFlowStack: on
    Restart the server and test the jpf. The output of the debug goes to stdOut of the server.
    Vimala-

  • My Photoshop (CS4) Red Eye Correction always makes the eyes a dark blue.  ??

    What if the person in the photograph has medium brown eyes?  How do I get the Red Eye Correction to stop always making the eyes a dark blue?  Can't find out how to change the color cast.  The software is Photoshop (CS4) for Mac.

    It's in the Spot Healing pop-out, but I never use it.  There is an option in Camera RAW, but prefer to use a Hue/Saturation layer.  Select both pupils with the eliptical marquue tool > Open the H/S layer, and adjust hue, sat, and lightness if required.
    or
    Open the H/S layer with no selection in place, and use the RGB drop-down and select the Reds.  Then adjust hue, sat, lightness.  Invert the layer mask, and paint back in with a soft white brush.

Maybe you are looking for