Problem with oc4j (9.0.2.0.0) connect to

hi,
i want to send a simple message on a queue on the OC4J (9.0.2.0.0)
but i can't do it because the client (a very simple sender) don't work
the SendMessage stop at : "Context context = new InitialContext(props);" !!!
WITH THE OLD VERSION OF OC4J (1.0.2.2) THE SendMessage WORK PERFECT!!!
THIS IS THE PROGRAM:
import java.io.*;
import javax.jms.*;
import javax.naming.*;
import java.util.*;
public class SendMessage
public static void main(String[] args)
try
Hashtable props = new Hashtable();
props.put("java.naming.factory.initial",
"com.evermind.server.ApplicationClientInitialContextFactory"); props.put("java.naming.provider.url","ormi://127.0.0.1");
props.put("java.naming.security.principal","admin");
props.put("java.naming.security.credentials","password");
//Context context = new InitialContext(props);
QueueConnectionFactory factory = (QueueConnectionFactory)new InitialContext().lookup("java:comp/env/jms/MyQueueConnectionFactory");
QueueConnection connection = factory.createQueueConnection();
Queue queue = (Queue)new InitialContext().lookup("jms/MyQueue");
// Start the connection so we can use it
connection.start();
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
System.out.print("Messaggio: ");
String brand = reader.readLine();
QueueSession session = connection.createQueueSession(false, QueueSession.CLIENT_ACKNOWLEDGE );
// Create the request message, a plain Message will do since
// we're just using the properties
Message message = session.createMessage();
message.setStringProperty("messaggio", brand);
// We dont want it if it's not starting to brew within three minutes
message.setJMSExpiration(180000);
System.out.println("--->"+queue.getQueueName());
System.out.println("--->"+queue.toString());
// Send our request
session.createSender(queue).send(message);
// Close up
session.close();
connection.close();
System.out.println("messaggio inoltrato");
System.exit(1);
catch(JMSException e)
System.err.println("Communication error: " + e.getMessage());
catch(NamingException e)
System.err.println("Error looking up objects: " + e.getMessage());
catch(IOException e)
System.err.println("IO error: " + e.getMessage());
Thanks to all,
Bye Bye

No, Any error reported!!
This is the problem!
I run the SendMessage but then i haven't any error or message
The cursor on the dos shell blink FOREVER without any answer...!!
thanks
Andrea

Similar Messages

  • Problem with OC4J (9.0.2.0.0) connection to

    hi,
    i want to send a simple message on a queue on the OC4J (9.0.2.0.0)
    but i can't do it because the client (a very simple sender) don't work
    the SendMessage stop at : "Context context = new InitialContext(props);" !!!
    WITH THE OLD VERSION OF OC4J (1.0.2.2) THE SendMessage WORK PERFECT!!!
    THIS IS THE PROGRAM:
    import java.io.*;
    import javax.jms.*;
    import javax.naming.*;
    import java.util.*;
    public class SendMessage
    public static void main(String[] args)
    try
    Hashtable props = new Hashtable();
    props.put("java.naming.factory.initial",
    "com.evermind.server.ApplicationClientInitialContextFactory"); props.put("java.naming.provider.url","ormi://127.0.0.1");
    props.put("java.naming.security.principal","admin");
    props.put("java.naming.security.credentials","password");
    //Context context = new InitialContext(props);
    QueueConnectionFactory factory = (QueueConnectionFactory)new InitialContext().lookup("java:comp/env/jms/MyQueueConnectionFactory");
    QueueConnection connection = factory.createQueueConnection();
    Queue queue = (Queue)new InitialContext().lookup("jms/MyQueue");
    // Start the connection so we can use it
    connection.start();
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    System.out.print("Messaggio: ");
    String brand = reader.readLine();
    QueueSession session = connection.createQueueSession(false, QueueSession.CLIENT_ACKNOWLEDGE );
    // Create the request message, a plain Message will do since
    // we're just using the properties
    Message message = session.createMessage();
    message.setStringProperty("messaggio", brand);
    // We dont want it if it's not starting to brew within three minutes
    message.setJMSExpiration(180000);
    System.out.println("--->"+queue.getQueueName());
    System.out.println("--->"+queue.toString());
    // Send our request
    session.createSender(queue).send(message);
    // Close up
    session.close();
    connection.close();
    System.out.println("messaggio inoltrato");
    System.exit(1);
    catch(JMSException e)
    System.err.println("Communication error: " + e.getMessage());
    catch(NamingException e)
    System.err.println("Error looking up objects: " + e.getMessage());
    catch(IOException e)
    System.err.println("IO error: " + e.getMessage());
    Thanks to all,
    Bye Bye

    Please post this question on the J2EE forum (http://forums.oracle.com/forums/forum.jsp?id=486963).
    Ashesh Parekh
    Oracle9iAS Product Management

  • I have a problem with my iphone 4S. I cant connect to wifi a week ago. Can somebody help me please?

    I have a problem with my iphone 4S. I cant connect to wifi a week ago. Can somebody help me please?
    I have tried everything but my iphone continue without connected.
    Thanks.

    Hello.
    My iphone doesn't recognize any signal wifi.
    I have rebooted the red options as indicated on apple portal.
    Also, I have turned off my iphone and when I turn it on don't enable the wifi option, and then I have to turn it off and turn it on again.
    I have restored to the factory settings but the problem continues.
    I don't know anything else to do.
    Regards,

  • Problems with Remote app on iphone and Mac connection

    Hi,
    I am using iTunes 10.4.1, and am trying to use the remote app on my iphone to control my itunes with it. I was able to connect previously, before I upgraded to Lion OS, before upgrading to the latest versions of iTunes and my iPhone as well. But now, the connection is just dead.
    I tried to re-add my iTunes onto my iphone again, but I couldn't find this box to check in my iTunes under Preferences > Devices -
    "Look for iPod touch, iPhone and iPad Remotes"
    Someone please advice me?
    Thanks.

    Chenks wrote:
    maybe for you, but isn't for me.
    i have the remote app on my iphone4 and it's connected to 2 appletv's.
    i don't experience any dropping of connection etc.
    May I ask what wifi hardware you use? It might be an wifi issue, but one which is only related with the "Bonjour" protocol which seems to be used for the Remote App. I found this thread which is older (iOS 3) but describing exactly the same problems:
    http://discussions.apple.com/thread.jspa?threadID=2048555&start=0&tstart=0
    bear in mind that the iphone4 is now "n" wifi compatible (2.4Ghz), so could it be that the "n" part of your network is poor and thus why you only see the problem on the iphone4 ?
    At least it is not poor when using it from other devices or moving a lot of data in other Apps. It is all Apple Hardware (nothing older than 2 years), and maybe that's the problem. I never had network hardware which made so much trouble, as Apples Airport series. I wouldn't wonder if it is an incompatibility between a new wifi chip in the iPhone 4 and a older Revision of an Airport device. But I don't know how to check - is there a system.log on the iPhone which I can access somehow?

  • Problem with HP Deskjet 3055A J611-n wireless connection

    Hi,
    i'm a newbie in the forum. I have to fix a problem i had this morning with my new printer HP Deskjet 3055A J611-n.
    First of all I'd like to know the reason why I found the 3050A J611a installer CD in the box, I hope it's not a mistake and drivers are the same I should use to install the machine.
    Then, I have a problem with the wireless connection. When I tried to connect my printer to the router, my printer found the connection and suddenly it kicks out all the laptops connected to the same network. It brought to the failure of the installation, because the printer found the router but it also couldn't finish the installation properly given that the laptop was disconnected.
    Can anyone help me in fixing the problem, please?
    Thank you in advance.
    This question was solved.
    View Solution.

    OK, restart the router by pulling its power plug momentarily.
    Next, on the front of the printer push the Wireless button and then go to Restore Defaults.
    Make sure the USB cable is NOT connected to the printer, then download and install the latest software for your printer from the "Support & Drivers" link at the top of this page.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Odd problem with iPhoto always seeing my iPhone as connected when not

    I have started having a problem with iPhoto8. When it starts it always goes to the import photos screen and has a couple dozen icons (with no image) and filenames to import from my iPhone. The problem is my iPhone is not connected. It shows up as mounted on the left side of iPhoto. I can right click and unmount it and it goes away, but next time I restart iPhoto it is there again. If I try and click Import all it goes through the motions and asks to delete the originals, I select yes. Then it displays an error dialog with all the filenames listed saying they are corrupt or blank (which I would expect because my phone is not connected).
    Does anyone know why it thinks my phone is connected when it is not or what to do?
    - James

    Do you have wifi sync enabled for those devices?
    Select the device, click the Summary tab.
    If it is enabled, there's no need to eject the device, even with the cable plugged in.

  • Problem with the flash players version for adobe connect

    Hi, i install the flashplayer version 11 on my computer but adobe connect ask me for flash player 10.3.
    Is there a problem with adobe connect with the flash player 11 ?
    thansk
    [email protected]

    Try the Flash forum.

  • I'm having problems with iTunes . It keeps saying cannot connect to iTunes every time I enter my password. Very annoying.

    Having problems with iTunes. Every time I enter my password it keeps saying cannot connect to iTunes . Trying to update apps.

    Having problems with iTunes. Every time I enter my password it keeps saying cannot connect to iTunes . Trying to update apps.

  • Problem with conflicting ipod touch and pc internet connection.

    Hi, i'm a newbie.. i can't figure out whats the problem with my pc's internet connection. When i connect my Ipod Touch to my wifi router, my pc seem unable to connect to internet after that.. somehow the ipod modify my router's ip. My ipod can surf the net, but my pc can't.. please help.

    You should check the size of the pool of IP addresses assigned in the router for DHCP allocation. Also make sure that the PC is not set up with a static IP address in the DHCP IP pool.
    Your router may be having a problem that can be corrected by simply powering it off for 30 seconds and restarting it.
    If the problem persists look for a firmware update for your router on the manufacturer's support web page or simply replace the router.
    For more advice please give the make/model of your router.

  • Serious problem with AppStore/iTunes WiFi Store. Cannot connect

    Hi
    I has a serious problem with my iPod Touch: When I tries to open App Store on my iTouch, I usually gets this message: *"Cannot connect to iTunes Store"*, often followed by *"Cannot retrieve download information. Please connect with iTunes."*. iTunes on my MacBook seems to work just fine.
    I might also be able to use the AppStore for a minute or so, and then the problems are coming back. All other internet-enabled apps is working fine, except the iTunes WiFi Store who's having the same problems as AppStore.
    What should I do?

    That would be a wonderful suggestion if my computer could connect to iTunes. Since about July my computer keeps giving me error 11222. I've tried everything on the support discussion board, but they haven't solved the problem either, and my software is up to date. Today instead of giving me the error, it's just been sitting for hours saying "Accessing iTunes Store". I was really hoping that I could just use the wifi on the iPod to access the iTunes and AppStore. Any other suggestions until iTunes gets fixed on my computer? Thanks for your help - Lex

  • MacMini (2011) problem with Thunderbolt display if 2nd monitor is connected via HDMI/DVI adapter

    Hi,
    iam running a MacMini (2011) 2.3GHz i5 with Mac OS X 10.7.4 16 GB 1333 MHz DDR3 256 GB Samsung SSD.
    If i connect a Thunderbolt display only - all is fine.
    But if i connect a 2nd monitor ( Samsung S23A700) via HDMI / DVI adapter (original Apple) the major screen (Thunderbolt Display) sometimes
    is going black and immidiately back to normal. It looks like that it happens very often if i scroll down with the Apple Magic Mouse.
    Any ideas?
    Thanks in advance
    Thomas

    I have exactly the same problem. MacMini Server i7 (mid 2011) Macmini5.3.16Gb ram.
    Mini and Thunderbolt no blink-outs.
    Mini and Thunderbolt and Dell 23" connected to HDMI-DVI connector, the Thunderbolt display blinks out when system is under stress as in the Develop module of Lightroom 4.
    I thought it was a problem with my Thunderbolt display, and since its on a VESA mount, I didn't really want to haul in in to the Apple Store.  I decided to be sure it was the dosplay...
    I borrowed a MacbookPro i7 and ran it from a clone of my Mini. No problems aster hours of use. (But with only ONE monitor.)  That suggested that there was no problem with the Thunderbolt Display.
    I decided to run the Mini with only one display.  Again no problems. I plugged in the Second monitor to the HDMI port and within 2 minutes I had my first "Blink-Out".
    I ran the rest of the day without the second monitor with no problems.
    I conclude the mini will not work reliably with two monitors if one is a Thunderbolt. 
    I was using two Dell Monitors before I got the Thunderbolt Diskplay (for 3 months) without incident.

  • Problems with OC4J Web services and Flex SOAPEncoder

    Hello!
    I got a problem trying to execute a web service running in
    Oracle OC4j 10.1.3.3, and a client side with Flex3. I generated the
    scripts for using the web service using Flex builder 3, but it's
    not making a valid call to web service. I debugged the call
    operation to the Flex SOAPEncoder which seems to generate an
    invalid soap message. The SOAPEncoder generates the following
    message;
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="
    http://schemas.xmlsoap.org/soap/envelope/"
    xmlns="
    http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Body>
    <tns:getDocuments xmlns:tns="
    http://modultek.atonpdm.document/">
    <tns:getDocuments>
    <tns:String_1>service manual</tns:String_1>
    </tns:getDocuments>
    </tns:getDocuments>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Where the correct working soap message should be;
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="
    http://schemas.xmlsoap.org/soap/envelope/"
    xmlns="
    http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Body>
    <tns:getDocuments xmlns:tns="
    http://modultek.atonpdm.document/">
    <tns:String_1>service manaual</tns:String_1>
    </tns:getDocuments>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Problem in the first message is that Flex SOAPEncoder
    generates an extra <tns:getDocuments> child tag, and Oracle
    app server can't handle it.
    Has someone any idea why SOAPEncoder is generating the extra
    operation tag, and is this behaviour configurable somehow or is the
    soapencoder broken?
    The wsdl is included in the following;
    <?xml version="1.0" encoding="UTF-8" ?>
    - <definitions xmlns="
    http://schemas.xmlsoap.org/wsdl/"
    xmlns:soap12="
    http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:soap="
    http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:xsd="
    http://www.w3.org/2001/XMLSchema"
    xmlns:mime="
    http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:tns="
    http://modultek.atonpdm.document/"
    name="DocumentOperationsService" targetNamespace="
    http://modultek.atonpdm.document/">
    - <types>
    - <schema xmlns="
    http://www.w3.org/2001/XMLSchema"
    xmlns:wsdl="
    http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance"
    xmlns:soap11-enc="
    http://schemas.xmlsoap.org/soap/encoding/"
    targetNamespace="
    http://modultek.atonpdm.document/"
    elementFormDefault="qualified">
    - <complexType name="SimpleDocumentDM">
    - <sequence>
    <element name="docGroupDesc" type="string"
    nillable="true" />
    <element name="docRev" type="string" nillable="true"
    />
    <element name="docId" type="string" nillable="true" />
    <element name="docGroup" type="string" nillable="true"
    />
    <element name="docDesc1" type="string" nillable="true"
    />
    <element name="docDesc2" type="string" nillable="true"
    />
    <element name="docCode" type="string" nillable="true"
    />
    <element name="docDesc3" type="string" nillable="true"
    />
    <element name="docDesc4" type="string" nillable="true"
    />
    </sequence>
    </complexType>
    <element name="getDocuments" type="tns:getDocuments"
    />
    - <complexType name="getDocuments">
    - <sequence>
    <element name="String_1" type="string" nillable="true"
    />
    </sequence>
    </complexType>
    <element name="getDocumentsResponse"
    type="tns:getDocumentsResponse" />
    - <complexType name="getDocumentsResponse">
    - <sequence>
    <element name="return"
    type="tns:CollectionOfSimpleDocumentDM" nillable="true" />
    </sequence>
    </complexType>
    - <complexType name="CollectionOfSimpleDocumentDM">
    - <sequence>
    <element name="item" type="tns:SimpleDocumentDM"
    minOccurs="0" maxOccurs="unbounded" />
    </sequence>
    </complexType>
    <element name="getSimpleDocumentInformation"
    type="tns:getSimpleDocumentInformation" />
    - <complexType name="getSimpleDocumentInformation">
    - <sequence>
    <element name="String_1" type="string" nillable="true"
    />
    </sequence>
    </complexType>
    <element name="getSimpleDocumentInformationResponse"
    type="tns:getSimpleDocumentInformationResponse" />
    - <complexType
    name="getSimpleDocumentInformationResponse">
    - <sequence>
    <element name="return" type="tns:SimpleDocumentDM"
    nillable="true" />
    </sequence>
    </complexType>
    </schema>
    </types>
    - <message name="DocumentOperations_getDocuments">
    <part name="parameters" element="tns:getDocuments" />
    </message>
    - <message
    name="DocumentOperations_getDocumentsResponse">
    <part name="parameters"
    element="tns:getDocumentsResponse" />
    </message>
    - <message
    name="DocumentOperations_getSimpleDocumentInformation">
    <part name="parameters"
    element="tns:getSimpleDocumentInformation" />
    </message>
    - <message
    name="DocumentOperations_getSimpleDocumentInformationResponse">
    <part name="parameters"
    element="tns:getSimpleDocumentInformationResponse" />
    </message>
    - <portType name="DocumentOperations">
    - <operation name="getDocuments">
    <input message="tns:DocumentOperations_getDocuments"
    />
    <output
    message="tns:DocumentOperations_getDocumentsResponse" />
    </operation>
    - <operation name="getSimpleDocumentInformation">
    <input
    message="tns:DocumentOperations_getSimpleDocumentInformation" />
    <output
    message="tns:DocumentOperations_getSimpleDocumentInformationResponse"
    />
    </operation>
    </portType>
    - <binding name="DocumentOperationsSoapHttp"
    type="tns:DocumentOperations">
    <soap:binding style="document" transport="
    http://schemas.xmlsoap.org/soap/http"
    />
    - <operation name="getDocuments">
    <soap:operation soapAction="" />
    - <input>
    <soap:body use="literal" />
    </input>
    - <output>
    <soap:body use="literal" />
    </output>
    </operation>
    - <operation name="getSimpleDocumentInformation">
    <soap:operation soapAction="" />
    - <input>
    <soap:body use="literal" />
    </input>
    - <output>
    <soap:body use="literal" />
    </output>
    </operation>
    </binding>
    - <service name="DocumentOperationsService">
    - <port name="DocumentOperationsBean"
    binding="tns:DocumentOperationsSoapHttp">
    <soap:address location="
    http://procyon:8888/atonpdm/DocumentOperationsBean"
    />
    </port>
    </service>
    </definitions>
    Best regards, Janne

    I am having the exact same problem. The SOAPEncoder is adding
    an additional tag and the server thinks the envelope is not
    properly formatted and therefore does not know what to do with it.
    Is there any fix for this yet? Or has it even been reported as a
    bug?

  • Problem with OC4j 10G 10g (10.1.2.0.2)

    Hi
    I have a quite strange problem.
    We are migrating one of our apllication from Oracle 10g Application Server 9.0.4 to Oracle 10g Application Server 10.1.2.0.2
    For this first we build the application ear file using JDK 1.4.2_06.Then we deployed it in OC4J 10.1.2.0.2. sucessfully. But when I am testing the application, I got an issue on one of my JSP page where the user can click on a button and JSP page should display records.But it is not displaying any recods. But the records are showing good on Oracle 10g AS 9.0.4. For this I started the server in debug mode and server logs are displayed below.
    Has it got anything to do with the application server. Do I need to modify any configurations in OAS? Can some one please help on this issue.
    06/06/16 14:56:36 EvermindHttpServletRequest.getSession(), session=null
    06/06/16 14:56:36 Created session with id '0a0b041822b81a3302d5297c4f0d80dfa1453
    8495c89' at Fri Jun 16 14:56:36 CDT 2006, secureRequest: false
    06/06/16 14:56:36 EvermindHttpSession.beginRequest()
    06/06/16 14:56:36 EvermindHttpServletRequest.getSession(), session=HTTP Session
    0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:36 EvermindHttpServletRequest.getSession(), session=HTTP Session
    0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:36 EvermindHttpSession.endRequest()
    06/06/16 14:56:42 EvermindHttpServletRequest.getSession(), session=null
    06/06/16 14:56:42 Requested Id is 0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:42 EvermindHttpSession.beginRequest()
    06/06/16 14:56:43 EvermindHttpServletRequest.getSession(), session=HTTP Session
    0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:43 EvermindHttpServletRequest.getSession(), session=HTTP Session
    0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:43 EvermindHttpSession.endRequest()
    06/06/16 14:56:43 EvermindHttpServletRequest.getSession(), session=null
    EvermindHttpServletRequest.getSession(), session=null
    06/06/16 14:56:43 Requested Id is 0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:43 EvermindHttpSession.beginRequest()
    06/06/16 14:56:43 Requested Id is 0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:43 EvermindHttpSession.beginRequest()
    06/06/16 14:56:43 EvermindHttpServletRequest.getSession(), session=HTTP Session
    0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:43 EvermindHttpServletRequest.getSession(), session=HTTP Session
    0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:43 EvermindHttpSession.endRequest()
    06/06/16 14:56:43 EvermindHttpServletRequest.getSession(), session=null
    06/06/16 14:56:43 Requested Id is 0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:43 EvermindHttpSession.beginRequest()
    06/06/16 14:56:43 EvermindHttpServletRequest.getSession(), session=HTTP Session
    0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:43 EvermindHttpServletRequest.getSession(), session=HTTP Session
    0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:43 EvermindHttpServletRequest.getSession(), session=HTTP Session
    0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:43 EvermindHttpSession.endRequest()
    06/06/16 14:56:43 EvermindHttpServletRequest.getSession(), session=HTTP Session
    0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:43 EvermindHttpServletRequest.getSession(), session=HTTP Session
    0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:43 EvermindHttpServletRequest.getSession(), session=HTTP Session
    0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:43 EvermindHttpSession.endRequest()
    06/06/16 14:56:43 EvermindHttpServletRequest.getSession(), session=null
    06/06/16 14:56:43 Requested Id is 0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:43 EvermindHttpSession.beginRequest()
    06/06/16 14:56:43 EvermindHttpServletRequest.getSession(), session=HTTP Session
    0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:43 EvermindHttpSession.endRequest()
    06/06/16 14:56:46 EvermindHttpServletRequest.getSession(), session=null
    06/06/16 14:56:46 Requested Id is 0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:46 EvermindHttpSession.beginRequest()
    06/06/16 14:56:46 EvermindHttpServletRequest.getSession(), session=HTTP Session
    0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:46 EvermindHttpServletRequest.getSession(), session=HTTP Session
    0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:46 EvermindHttpSession.endRequest()
    06/06/16 14:56:46 EvermindHttpServletRequest.getSession(), session=null
    06/06/16 14:56:46 Requested Id is 0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:46 EvermindHttpSession.beginRequest()
    06/06/16 14:56:47 EvermindHttpServletRequest.getSession(), session=HTTP Session
    0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:47 EvermindHttpServletRequest.getSession(), session=HTTP Session
    0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:47 EvermindHttpServletRequest.getSession(), session=HTTP Session
    0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:47 EvermindHttpSession.endRequest()
    06/06/16 14:56:47 EvermindHttpServletRequest.getSession(), session=null
    06/06/16 14:56:47 Requested Id is 0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:47 EvermindHttpSession.beginRequest()
    06/06/16 14:56:47 EvermindHttpServletRequest.getSession(), session=HTTP Session
    0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:47 EvermindHttpSession.endRequest()
    06/06/16 14:56:47 EvermindHttpServletRequest.getSession(), session=null
    06/06/16 14:56:47 Requested Id is 0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:47 EvermindHttpSession.beginRequest()
    06/06/16 14:56:47 EvermindHttpServletRequest.getSession(), session=HTTP Session
    0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:47 EvermindHttpServletRequest.getSession(), session=HTTP Session
    0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:47 EvermindHttpSession.endRequest()
    06/06/16 14:56:48 EvermindHttpServletRequest.getSession(), session=null
    06/06/16 14:56:48 Requested Id is 0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:48 EvermindHttpSession.beginRequest()
    06/06/16 14:56:48 EvermindHttpServletRequest.getSession(), session=HTTP Session
    0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:48 EvermindHttpServletRequest.getSession(), session=HTTP Session
    0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:48 Tutalii: C:\oc4j\j2ee\home\applications\targettracking\targett
    racking-web\WEB-INF\classes
    06/06/16 14:56:48 EvermindHttpServletRequest.getSession(), session=HTTP Session
    0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:48 EvermindHttpSession.endRequest()
    EvermindHttpServletRequest.getSession(), session=null
    06/06/16 14:56:48 Requested Id is 0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:48 EvermindHttpSession.beginRequest()
    06/06/16 14:56:48 EvermindHttpServletRequest.getSession(), session=HTTP Session
    0a0b041822b81a3302d5297c4f0d80dfa14538495c89
    06/06/16 14:56:48 EvermindHttpSession.endRequest()

    Hi Lin,
    Here is the code that produces the Records.We are Tablibraries for this showing the data.
    public int doAfterBody() throws javax.servlet.jsp.JspException
              * INITIALIZATION - BEINGS
              HttpSession session = null;
              HlpDeptBuildTree objHlpDeptBuildTree =null;
              String Anchor = null;
              String strKEY_ID_CLICKED = null;     
         String strTOGGLE = null;
              boolean blnCreatedNew = false;
              StringBuffer buffBuildTree = new StringBuffer(); //Used for HTML code generation
              try
                   session = httpServletRequest.getSession(true);
                   objSessionHashName = (Hashtable) session.getAttribute(strTreeName);
                   Anchor = httpServletRequest.getParameter("Anchor");
                   httpServletRequest.setAttribute("Anchor", Anchor);
                   strKEY_ID_CLICKED = httpServletRequest.getParameter("KEY");
                   strTOGGLE = httpServletRequest.getParameter("TOGGLE");
                   if(strKEY_ID_CLICKED==null)
                        strKEY_ID_CLICKED="";
                   if(strTOGGLE==null)
                        strTOGGLE="";
                   // This variable is set to TRUE if the vector is not found in the session.
                   if(objSessionHashName == null)
                        objSessionHashName = new Hashtable();
                        blnCreatedNew = true ;
              catch(Exception e)
                   CommonUtils.log(" PROGRAM: DeptBuildTree.java METHOD:doAfterBody() \nERROR: - " + e.toString() );
              * INITIALIZATION - ENDS
         try
                   buffBuildTree.append("<TABLE width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">");
                   String strKeyId = ""; //used in the logic for identifying the 'Ctrl-Break'
                   boolean blnTestFLAG = false;//When to print the level-2 i.e. when ROOT flag=TRUE      
                   int iRowColor = 1 ;               //Identifies the row count for choosing the bgcolor
                   String rowColor = null;          //Identifies the color of the row
                   for(int i=0; i<objVectResultSet.size(); i++)
                        * Defining the alternate colors of the row
                        // rowColor = ((++iRowColor%2)==0)? "" : "BGCOLOR=\"#FFFFCF\"";
                        * CONTROL BREAK LOGIC HERE - BEGINS
                        * The vector having the row of the resultset
                        Vector vectCompare = (Vector) objVectResultSet.elementAt(i) ;
                        String strCompareKeyId = (String) vectCompare.elementAt(0);
                        String strCompareKeyName = (String) vectCompare.elementAt(1);
                        String strLevel2 = null;
                        int numberOfColumns = vectCompare.size();
                        if(! strKeyId.equals( strCompareKeyId ))
                             strKeyId = strCompareKeyId ;
                             if(strKeyId==null)
                                  strKeyId = "";
                             * Start - Creating the session vector
                             if(blnCreatedNew)
                                  objHlpDeptBuildTree = new HlpDeptBuildTree();
                                  objHlpDeptBuildTree.KEY_ID = strKeyId;
                                  objHlpDeptBuildTree.FLAG = false;
                                  blnTestFLAG = objHlpDeptBuildTree.FLAG ;
                                  objSessionHashName.put(strKeyId, objHlpDeptBuildTree);
                             else
                                  boolean blnFound = false;
                                  if(objSessionHashName.containsKey(strKeyId))
                                       blnFound = true;
                                       if( strKeyId.equals(strKEY_ID_CLICKED) )
                                            objHlpDeptBuildTree = (HlpDeptBuildTree) objSessionHashName.get(strKeyId);
                                            objHlpDeptBuildTree.KEY_ID = strKeyId ;
                                            objHlpDeptBuildTree.FLAG = ! objHlpDeptBuildTree.FLAG;
                                            blnTestFLAG = objHlpDeptBuildTree.FLAG ;
                                            objSessionHashName.put(strKeyId, objHlpDeptBuildTree);
                                       else
                                            objHlpDeptBuildTree = (HlpDeptBuildTree) objSessionHashName.get(strKeyId);
                                            objHlpDeptBuildTree.FLAG = objHlpDeptBuildTree.FLAG;
                                            blnTestFLAG = objHlpDeptBuildTree.FLAG ;     
                                  else
                                       objHlpDeptBuildTree = new HlpDeptBuildTree();
                                       objHlpDeptBuildTree.KEY_ID = strKeyId;
                                       objHlpDeptBuildTree.FLAG = false;
                                       blnTestFLAG = objHlpDeptBuildTree.FLAG ;
                                       objSessionHashName.put(strKeyId, objHlpDeptBuildTree);
                             } //end of IF-ELSE (Created New Session Vector)
                             String strImage = "plus-icon.gif";
                             if( blnTestFLAG )
                                  strImage = "minus-icon.gif";
                             * Printing the Level-: One
                             rowColor = ((++iRowColor%2)==0)? "" : "BGCOLOR=\"#FFFFCF\"";
                             buffBuildTree.append("<TR>");
                             * Printing the Collapsable button
                             buffBuildTree.append("<TD " + rowColor +" CLASS=\"Bold-Blue-Text\" height=\"20\" width=\"3%\"> ");
                             buffBuildTree.append("<A HREF=\"" + href + "&TOGGLE=1&KEY=" + strCompareKeyId +"&Anchor=" + strKeyId + "\"> ");
    buffBuildTree.append("<IMG SRC='/DeptWeb/com/Dept/website/images/" + strImage + "' width='12' height='12' border='0'></A> ");
                             buffBuildTree.append("</TD>");
                             buffBuildTree.append(" <TD " + rowColor +" CLASS=\"Bold-Blue-Text\" height=\"20\" width=\"2%\"> ");
    // If the Form Element is to be displayed
                             if(strFormElementLevel1 != null)
                                  if(strFormElementLevel2.equalsIgnoreCase("RADIO"))
                                       buffBuildTree.append(" <INPUT TYPE="+ strFormElementLevel2 +" NAME=frmElementLevel2 value=\""+ strCompareKeyId +"\" onClick=\"OnRadioClick("+ strCompareKeyId +")\"> ");
                                  else if(strFormElementLevel2.equalsIgnoreCase("CHECKBOX"))
                                       buffBuildTree.append(" <INPUT TYPE="+ strFormElementLevel2 +" NAME=frmElementLevel2 value=\""+ strCompareKeyId +"\" onClick=\"OnCheckboxClick(this.checked)\"> ");     
                             buffBuildTree.append(" </TD> ");
                             buffBuildTree.append(" <TD colspan=\""+ (3+numberOfColumns) +"\" " + rowColor + " height=\"20\" CLASS=\"Bold-Blue-Text\"> ");
                             buffBuildTree.append(" <A NAME=\"#"+ strCompareKeyId +"\"> ");
                             buffBuildTree.append(" <IMG SRC='/DeptWeb/com/Dept/website/images/blank.gif' height=\"1\" WIDTH=\"1\" BORDER=\"0\"> ");
                             buffBuildTree.append(" </A> ");
                             buffBuildTree.append(strCompareKeyName + " - " + strCompareKeyId);
                             buffBuildTree.append(" </TD> ");
                             buffBuildTree.append(" </TR> ");
                        } //end of IF-ELSE (Ctrl-Break)
                        * CONTROL BREAK LOGIC HERE - ENDS
                        * Level-:Two Printing - BEGINS
                        if( blnTestFLAG )
                             String strValue = (String) vectCompare.elementAt(2);
                             if(strValue!=null && strValue!="")
                                  rowColor = ((++iRowColor%2)==0)? "" : "BGCOLOR=\"#FFFFCF\"";
                                  buffBuildTree.append(" <TR "+ rowColor +"> ");
                                  buffBuildTree.append(" <TD height=\"20\" width=\"3%\"></TD> ");
                                  buffBuildTree.append(" <TD height=\"20\" width=\"2%\"></TD> ");
                                  buffBuildTree.append(" <TD height=\"20\" width=\"5%\"> ");
                                  // If the Form Element is to be displayed
                                  if(strFormElementLevel2 != null)
                                       if(strFormElementLevel2.equalsIgnoreCase("RADIO"))
                                            buffBuildTree.append(" <INPUT TYPE="+ strFormElementLevel2 +" NAME=frmElementLevel2 value=\""+ strCompareKeyId +"\" onClick=\"OnRadioClick("+ strCompareKeyId +")\"> ");
                                       else if(strFormElementLevel2.equalsIgnoreCase("CHECKBOX"))
                                            buffBuildTree.append(" <INPUT TYPE="+ strFormElementLevel2 +" NAME=frmElementLevel2 value=\""+ strCompareKeyId +"#""+ strValue + ""\" onClick=\"OnCheckboxClick(this.checked)\"> ");     //satya
                                  } //end of IF(strFormElementLevel2 != null)
                                  buffBuildTree.append(" <IMG SRC=\"/DeptWeb/com/Dept/website/images/blank.gif\" WIDTH=\"1\" height=\"1\" BORDER=\"0\"> ");
                                  buffBuildTree.append(" </TD> ");
                                  // Printing Columns of a Row
                                  for(int iLevelColumn=2; iLevelColumn<numberOfColumns; iLevelColumn++)
                                       strLevel2 = (String) vectCompare.elementAt(iLevelColumn);
                                       if(strLevel2==null || strLevel2=="")
                                            strLevel2 = "" ;
                                       buffBuildTree.append(" <TD height=\"20\" CLASS=\"small-black-text\" nowrap> ");
                                       buffBuildTree.append(strLevel2);
                                       buffBuildTree.append( "</TD> ");
                                  } // end of printing columns FOR-LOOP(iLevelColumn<numberOfColumns)
                                  buffBuildTree.append(" </TR> ");
                             } //end of IF(strValue!=null && strValue!="")
                             * Level Printing - ENDS
                        } //end of IF(blnTestFLAG)
                   } //end of FOR(i<objVectResultSet.size()) Loop
                   session.setAttribute(strTreeName, objSessionHashName);
                   buffBuildTree.append("</TABLE>");
                   getPreviousOut().print(buffBuildTree.toString());
              catch (Exception ioe)
              CommonUtils.log(" PROGRAM: DeptBuildTree.java METHOD:doAfterBody() \nERROR: - In Global try catch " + ioe.toString() );
         return(SKIP_BODY);
         }

  • Problem with oc4j when accessing over the host name?

    Hi!
    I have a standalone oc4j and application is working perfect when I use ip address of the server.
    When I use dns name of the server I just can pass the login page and after that every jsp return me to the login page?
    THANKS FOR A HELP!!!

    The only way that we have found to work with DNS is to remove the redirects in the faces-config.xml navigation cases. If anyone finds a better resolution, please POST!

  • Problems with OC4J 9.0.4 after patch - EJB

    We applied a patch over Oracle iAS 9i.
    Our OC4J was 9.0.4 and now is 9.0.2.4.
    Our web app just does not work in some functionalities. It is a standar J2EE app with EJB.
    One of the errors is:
    com.evermind.server.rmi.OrionRemoteException: java.lang.IllegalStateException: Cannot call setRollbackOnly() current thread is NOT associated with a transaction; nested exception is: java.lang.IllegalStateException: Cannot call setRollbackOnly() current thread is NOT associated with a transaction
    Looks like a different version of EJB was installed on the new patch.
    Any clues?

    Refreshing the post...

Maybe you are looking for

  • DVI = Active but the moniter still goes to sleep for no reason.

     1. Product Name and Number Don't know, some 20" moniter from HP  2. Operating System installed (if applicable)  Windows 7  3. Error message (if any)  No error message, it just goes to sleep like a lazy ass. 4. Any changes made to your system before

  • MacBook won't boot, cursor is frozen at login

    I have a MacBook (late 2006) keeps freezing at the login. When I get to the login screen, the cursor will not move; it's remains in the same place every time I log in. Here's what I think what happened. I created another account in my MacBook because

  • Safari won't open iWeb Password protected site

    Safari just stalls out when I go to a password protected page I created in iWeb and posted on .Mac. I used FireFox and these pages open fine. Message was edited by: nus2

  • Trouble installing Flash 10 with Mac OSX 10.5.8

    I have a Powerbook running Mac OSX 10.5.8 and had Flash 8. I was unable to play a video and was directed to the website to update my player.  Flash 10 downloaded without difficulty but when I tried to install it, I got an error message: "The followin

  • Change variable type during program flow

    Hi there. Please tell me is there a possibility in ABAP to change variable type during program flow? I'd be very thanful for suggestions. Greetings.