VB-Java bridge strange  problem

Hi,
We are using JCom for our application. Our server is a weblogic 6.1 app server
hosting EJB's and our client is a Visual Basic(VB) trying to access these EJB's.
I am using "zero client installation" programming model.
I am getting a strange problem. When I run my jcom bridge from the startup classes
of Weblogic(using Runtime.exec()) the bridge is not accepting requests from VB.
But if I run the same bridge from a command line DOS prompt, the bridge accepts
the request from VB. I have ensured that in both cases the classpath/path variables
are properly set.
WOULD REALLY APPRECIATE, if someone can give inputs on this strange issue.(I am
running my VB client on Win 2k platform and also my weblogic server runs on the
same m/c).
reg
nilesh

Hi,
Am also facing java.lang.OutOfMemoryError: Java heap space. My JSF page retrieves more than 5000 records, the list is iterated and existed the controller(or action) , but throws this exception while displaying the JSF page. I have tried to increase the ram size, but no solution... Can any bosy please help me on this, would really appreciate.
Thanks,
Shan

Similar Messages

  • Strange problem with procedure calling from Java!!!

    I am using Oracle 8.1.7 Database, Oracle 8i Application server and WInNT platform.
    I am facing a strange problem while inserting a String from Java to Oracle database through Procedure. When i am passing the String containing single quotes(e.g "test' and ' and ' end") and without including any escape charactes for the single quotes I am passing the String by the setString() method then the procedure is inserting the single quotes without any problem.
    Of course when I am independently executing the procedure thru backend and passing the same String containing single quotes then the error message comes as " quoted string not properly terminated" which is justified,
    I have even printed the String in a file through sql on the runtime of the procedure when it is called by Java and then also the String contatins single quotes that is passed through java without any escape characters. This means that procedure is inserting the String into the column without any hassles!!!!!
    Can anyone tell me what may be the reason for the peculiar behaviour of Database?
    Thanks

    Sri Ram wrote:
    No actually in the documentation of oracle database 10g plsql user guide, oracle explains the concept of declaring nested plsql subprograms he gave the example but in the main block he gave NULL, without calling any procedure.Can you provide a link to where in the Oracle documentation you saw this example?
    in order to know which procedure is getting first i added a dbms statement in both the functions and called the function from the main block.
    the original example was
    DECLARE
    PROCEDURE proc1(number1 NUMBER); -- forward declaration
    PROCEDURE proc2(number2 NUMBER) IS
    BEGIN
    proc1(number2); -- calls proc1
    END;
    PROCEDURE proc1(number1 NUMBER) IS
    BEGIN
    proc2 (number1); -- calls proc2
    END;
    BEGIN
    NULL;
    END;
    ---------------------------------------------------------------------------------------------------------The original example is equivalent to:
    BEGIN
       NULL;
    END;That is, the main block never calls anything. Either you are misinterpreting the Oracle documentation, or if the example came from a non-Oracle source as I suspect, the author of that example has a deeply flawed understanding of how programming works.
    John

  • Photoshop/Bridge CS4 problem with AFP shares

    Hello,
    I have recently purchased Photoshop CS4 and encountered the following problem: when opening images from a NAS share connected via AFP using File/Open command, Photoshop will correctly display the list of files but Open command in the File open dialog remains disabled after a file is selected from the list.However, I can open the same file by dragging and dropping it from the Finder to the Photoshop Dock icon or later using the Open recent menu command.
    Similar problem is visible in Bridge: it will not display the image thumbnails from any of the subfolders in the network share.
    I am using Leopard with the latest updates, I have a read/write permissions to the network share and Photoshop/Bridge are the only applications that have problems browsing/opening files from the network share. The NAS unit is a Synology DS-107+ with the latest official firmware.
    Futhermore, I have noticed that I can work around the problem by opening the same directory in Finder. After the image thumbnails are visible in Finder, both Photoshop and Bridge will correctly open all files in that directory but opening files from other directories still has the problem.
    Does anyone have any idea on what might be causing this strange problem?

    This is the boilerplate text I use in connection to saving to a network (please NOTE the part where it explains that normally, it does work, but that it is impossible to troubleshoot someone else's network remotely, and that's why it's not supported by Adobe):
    If you are opening files over a network or saving them to a network server, please cease and desist immediately in the event you are currently experiencing problems with one or more files. Working across a network is not supported.
    See: 
    http://www.adobe.com/support/techdocs/322391.html
      Copy the CLOSED file from your server to your local hard disk, work on it, save it again to your local hard disk, close it, and copy the closed file back to the server.
         Of course, the fact that Adobe does not support working across a network does not necessarily mean it won't work.   It should.
        Adobe's position is that there are too many variables in a network environment for them to guarantee that everything will work correctly in every network, especially given the fact that if something does not work properly, it's probably the network's fault, and Adobe has no way of troubleshooting your network.
      If you can't work locally, you are on your own, and if something happens, you're on your own. If you must work from a server, make sure your network administrator is a competent professional.
    When problems arise, a lot of valuable work can be lost.

  • Java/Active Directory problem

    I have a strange problem. We have an application that we login to through a website. The application requires Java 1.42_9 to run properly. These workstations came from Dell with java 1.50_6 preloaded which I removed infavor of the required 1,42_9. Everything works normally when a user logs into the the workstation (WinXP SP2) as the local adminstrator. The problem arises when a user logs into the machine with an Active Directory account. We trying to run the website to login to our application and all we get is the Red X in the upper left hand corner of the screen. There is nothing in the Java console, it seems like java does not even attempt to start. I am not sure what Active Directory has to do with this but as long as we log in as a local admin everything works great. If I load Java 1.50_6 back on the workstation it works but it takes over two minutes for Java to load which is unacceptable. I have also tried 1.50_7 but it too take too long to load.
    Sorry for the long winded post, but Im hoping someone has suggestions on why logging into Active directory causes 1.42_9 to fail.

    Your problem is your use of these two combinations
    constrains.setSearchScope(SearchControls.SUBTREE_SCOPE);
    ctx.search("", "(objectclass=*)", constrains); Many LDAP servers, including Active Directory, do not permit subtree searches from the root.

  • Short code causes a strange problem - About the list again -- please read!

    Hi again people. Maybe you remember my project - has a list, that you can search thru using a text field. During the work I got stuck on a strange problem ( Again :-( ) My app has one text field, one combo box, one list and a text field once more. The code should do the following ->
    *1. Load the list, no problem with that.*
    *2. Show the elements of the list, that match the selected group in the combo box,no problem.*
    *3. Search thru the list using the text field,no problem.*
    4. When the user selects an element from the list, it should display its info in the second text field. This also works fine, but when after looking at info of one of the elements the things on numbers 2 and 3 ( look up! ) stop working. I must say that everything works fine until user selects an element from the list. I couldnt understand this kind of behavior so I am asking you to help me please.
    The code is very simple:
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    class the_window extends JFrame implements DocumentListener, ItemListener, ListSelectionListener {
        FileReader reader;
        String data_base[][];
        String first_pass[];
        int number_of_elements;
        DefaultListModel dflm = new DefaultListModel();
        JList list;
        JTextField text_field = new JTextField();
        JTextField info_field = new JTextField();
        String groups[] = {"1. group" , "2. group"};
        JComboBox groups_cmbx = new JComboBox(groups);
        the_window(){
            super("the Window!");
            JPanel panel = new JPanel(null);
            Container c = this.getContentPane();
            c.add(panel);
            text_field.setBounds(10,10,170,25);
            text_field.getDocument().addDocumentListener(this);
            panel.add(text_field);
            groups_cmbx.setBounds(10,45,170,25);
            groups_cmbx.addItemListener(this);
            panel.add(groups_cmbx);
            list = new JList(dflm);
            list.setBounds(10,90,170,190);
            list.setFixedCellHeight(20);
            list.addListSelectionListener(this);
            panel.add(list);
            info_field.setBounds(10,280,170,25);
            panel.add(info_field);
            load_the_base();
            refresh();
            this.setSize(190,350);
            this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            this.setResizable(false);
            this.setVisible(true);
        public void itemStateChanged(ItemEvent e){
            refresh();
        public void valueChanged(ListSelectionEvent e){
            String str = (String) dflm.getElementAt(list.getSelectedIndex());
            int index = 0;
            for(int i = 0; i < number_of_elements; i++){
                if(str.equals(data_base[0])){
    index = i;
    break;
    info_field.setText(data_base[index][1]);
    private void load_the_base(){
    String data = "";
    try{
    reader = new FileReader("data.txt";);
    int r = 0;
    while((r = reader.read()) != -1){
    char c = (char) r;
    data += c;
    reader.close();
    }catch(IOException e){}
    first_pass = data.split(";");
    number_of_elements = first_pass.length;
    data_base = new String[number_of_elements][];
    for(int i = 0; i<number_of_elements; i++){
    data_base[i] = first_pass[i].split("#");
    private void refresh(){
    String search_str = text_field.getText();
    int selektovano = groups_cmbx.getSelectedIndex();
    dflm.clear();
    for(int i = 0; i < number_of_elements; i++){
    int grupa = Integer.parseInt(data_base[i][2]);
    if(grupa == selektovano){
    String at_the_moment = data_base[i][0]; // if you change this to String at_the_moment = data_base[i][1]; it works perfectly
    if(at_the_moment.startsWith(search_str)){
    dflm.addElement(at_the_moment);
    public void changedUpdate(DocumentEvent e){
    refresh();
    public void removeUpdate(DocumentEvent e){
    refresh();
    public void insertUpdate(DocumentEvent e){
    refresh();
    public class Main {
    public static void main(String[] args) {
    JFrame f = new the_window();
    Now, can you please tell me whats wrong with this?
    For the "data.txt" make a new text file using *notepad* and copy the following line into the document:
    _1. element#1. info#0;2. element#2. info#0;3. element#3. info#1;4. element#4. info#1;5. element#5. info#1;_                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Darryl.Burke wrote:
    Keith, thanks for making that readable. So here's the diagnosis -
    In the refresh() method, calling defaultListModel.clear() results in a valueChanged(...) event in which this method calldefaultListModel.getElementAt(list.getSelectedIndex())results in the exception noted, as getSelectedIndex returns -1, the list being empty... you can't getElementAt(-1).
    I haven't analyzed all the code nor checked whether is now works as desired, but this small change to valueChanged counters the exception being thrown.   public void valueChanged(ListSelectionEvent e) {
    infoField.setText(""); // do this unconditionally
    if (list.getSelectedIndex() != -1) {
    String value = (String)defaultListModel.getElementAt(list.getSelectedIndex());
    for(int i = 0; i < numFields; i++){
    if(value.equals(matrix[0])){
    infoField.setText(matrix[i][1]);
    break;
    db
    Yea! You were right! I didnt think that calling *list_model.clear();* will result in calling *valueChanged()* ........
    That was some *clear()* thinking :-) Thank you!
    corlettk wrote:
    I cleaned up some variable & method names (tut tut), imports (very naighty), and some thread stuff... but it remains fundamentally the same codeIs it so important to "clean" the imports? How much does it slow down the loading time? Should I do this on all my projects, because they are all "very naighty"?
    ps. Thanks to all that gave some help to answering this strange question :-)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Strange problem in AFW custom module (question for gurus)

    Hi there SDN'ers,
    I have I very strange problem with an additional Adapter Module I developed.
    My scenario is: IDOC -> JDBC (Oracle)
    Well, to make a long story short, say that before the JDBC Receiver cc can write my data to the db, I have to do (inside the channel) kinda java mapping in order to produce an XML document that is acceptable for it. So in my module I manipulate the payload via DOM. No problem here.
    The strange story is: at first attempt, the Adapter fails (see error below), while after 5 minutes, when automatically trying again, it succeeds.
    Just because I put some stuff in the message audit log, what I can tell you is this weird thing:
    1. at first, no XML document exists in the payload, but in place of it there's this string:
    org.apache.crimson.tree.XmlDocument@745501c6
    which seems to be a toString() of something I don't (or don't know to) use directly
    2. at the second attempt, even in the audit log I can actually see the weel-formed XML document ready for the JDBC adapter, and in fact data are written to the db.
    ?? WHAT COULD THIS BE CAUSED BY ??
    Say also that the the other way around (JDBC->IDOC) with another very similar module works perfectly.
    Thanks.
    Alex
    <b>Delivery of the message to the application using connection AFW failed, due to: ERROR occured parsing request:com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 6f, 72, 67(:main:, row:1, col:3)(:main:, row=1, col=3) -> com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 6f, 72, 67(:main:, row:1, col:3).</b>
    P.S. -> 6f, 72, 67  is "org", that is the first three letter of the weird payload I get at first attempt.

    Ok guys, I got that workin'.
    I don't know why - and don't think I'll have the time to investigate further - but it seems the implementation of DOM Document used by XI is different the first time AFW executes my module, so here my workaround.
    if (docOut instanceof org.apache.crimson.tree.XmlDocument) {
       org.apache.crimson.tree.XmlDocument tmpDocOut = (org.apache.crimson.tree.XmlDocument)docOut;
       tmpDocOut.write(out);               
    } else {
       out.write(docOut.toString().getBytes());
    Regards,
    Alex

  • Plz Help me Out Strange Problem ...................

    Hello Every One, I m not new to java but i m facing a strange problem.
    I have wriiten a simple applet but my browser does not show that applet, while it shows applets on the internet. which shows that JVM is installed.
    But i don't know why ie does not show my applets. it throws ClassdefinitionNotFound Exception. very strange, while class is in the local same directory.
    Still for the confirmation i have given class path in code base attribute.
    But it did't work.
    Please tell me where is problem or tell me solution.
    Thanx Alot

    Niether i m using any package nor any new features.
    My Applet Code is as Under
    //TestViewer.java
    import java.applet.*;     //Package for the Applet
    import java.awt.*;          //For different AWT Components
    public final class TestViewer extends Applet//SessionViewer Class
    public void init()                                   {
         public void paint(Graphics g)
              g.drawString("Testing", 500, 500);
              g.drawString("Hello There", 0, 0);
         public void start()                         
    HTML Code is as under
    <!-- TestViewer.html -->
    <HTML>
         <HEAD>
              <TITLE>Testing Applet</TITLE>
         </HEAD>
         <BODY>
              <APPLET code="TestViewer.class" height=500 width=500>
              </APPLET>
         </BODY>
    </HTML>
    I have also given codebase tag
    as
              <APPLET code="TestViewer.class" codebase="file://path" <!--or "http://path"--> height=500 width=500>
    It is very strange for me that IE shows the applet from Internet but not from my machine
              </APPLET>

  • Strange problem in applet application

    Hello Everybody,
    I hava an applet whit an image. This image has to changed by color, and text has to be added to the image. The text color is also changable. Here is where it goes wrong.
    When I change the background color of the applet, the transparant image will be colored. This is good.
    At the start text can be added.
    When you change the textcolor, the frame with the JColorChooser will get at the background of the image, like this:
    [http://schaftwagen.ncamade.nl/schaftwagenfout.png|http://schaftwagen.ncamade.nl/schaftwagenfout.png] (image)
    When you change the text with the "opschrift" button (vertical text) the old text stays under the new text.
    When you change the background after this, everything seems to be okay.
    At an other forum I've asked this question, and some of that people didn't had this "problem". I am using Windows 7RC with the newest java version. Tested it on an Windows vista and Windows XP all with the same problem.
    The source is to big for this forum and can be found at [http://www.dreamincode.net/forums/showtopic117029.htm|http://www.dreamincode.net/forums/showtopic117029.htm]. This is the other forum, where I've asked about his issue. (I hope this link isn't against the rules to post this link to the other forum?)
    I hope someone can help me with this problem. The applet can be tested here: [http://schaftwagen.ncamade.nl/colorchooser.asp|http://schaftwagen.ncamade.nl/colorchooser.asp]
    Greats,
    C.H.F.S.
    Edited by: C.H.F.S. on Jul 28, 2009 4:01 AM

    I've just tested it on different boxes, and sometimes it does work indeed, but sometimes other problems come up. On one the background color doesn't change but the text color does it right and changing the text work also correctly in that case.
    Can anyone help me please solving this strange problem?

  • A very strange problem in netbeans

    i debug a project in netbeans,a a very strange problem happens.
    a member variable was different between wtk20 and wtk22.and the variable was changed many places so it's hard to trace!
    but there hasn't the problem when i debug project in jbuilderx!

    My problem is, even I've written the SQL in the correct syntax, in my java code, it just look like this
    adc.SQL("insert into test(subject, content) values('" + sf.filter(subject.getText()) +"'"
                                  + "," + "'"
                                  + sf.filter(board.getText()) + "')" );
                                  subject.setText("");
                                  board.setText("");
    where subject is a textfield and board is a JTextArea and sf is a string filter which use regular expression, I basically want to insert the string in these component into the database, Many strings work, but client for updates can't be inserted.
    With my best,
    Zike Huang

  • Strange problem with WD component build

    Hi all,
    I have strange problem with building one wd component, which is part of SC. I'm getting few errors which stops me from building component (and transporting to other systems via CMS of course). I'm providing sample of the errors (3 types) and ant error:
    [code]     [wdgen] [Error]   com.gbs.gmob.RequisitionFoCust --> ContextValueAttribute startDate [type]: Type missing (Hint: The type property must be set to a simple type, a built in type or any java native type)
         [wdgen] [Error]   com.gbs.gmob.RequisitionFoCust --> ContextValueAttribute stopDate [type]: Type missing (Hint: The type property must be set to a simple type, a built in type or any java native type)
         [wdgen] [Error]   com.gbs.gmob.SuppMatGroupView --> TextView MATERIAL_GROUP_NAME_editor [text]: Context element and property are not compatible
         [wdgen] [Error]   com.gbs.gmob.SuppMatGroupView --> TextView MATERIAL_GROUP_ID_editor [text]: Context element and property are not compatible
         [wdgen] [Error]   com.gbs.gmob.SupplierCust --> ContextModelNode SuppMatGroup [modelClass]: The context model node has not been bound to a model class (Hint: A Context model node has to be bound to a model class or mapped to a model node of another controller.)
         [wdgen] [Error]   com.gbs.gmob.SupplierCust --> ContextValueAttribute material_group_list [type]: Type missing (Hint: The type property must be set to a simple type, a built in type or any java native type)
         [wdgen] [Warning] com.gbs.gmob.ApprovalRejectView --> TextEdit TextEdit: UIElement does not have a label
         [wdgen] [Info]    Catching throwable null
         [wdgen] [Info]    com.sap.webdynpro.generation.ant.GenerationAntTaskError
         [wdgen]      at com.sap.webdynpro.generation.ant.GenerationAnt.showCheckResult(GenerationAnt.java:153)
         [wdgen]      at com.sap.ide.webdynpro.generation.Generation.check(Generation.java:2050)
         [wdgen]      at com.sap.ide.webdynpro.generation.Generation.generatePersistentComponent(Generation.java:1299)
         [wdgen]      at com.sap.ide.webdynpro.generation.console.GenerationConsole.generate(GenerationConsole.java:175)
         [wdgen]      at com.sap.webdynpro.generation.ant.GenerationAnt.main(GenerationAnt.java:50)
         [wdgen]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         [wdgen]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         [wdgen]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         [wdgen]      at java.lang.reflect.Method.invoke(Method.java:324)
         [wdgen]      at com.sap.webdynpro.generation.ant.WDGenAntTask.execute(WDGenAntTask.java:219)
         [wdgen]      at org.apache.tools.ant.Task.perform(Task.java:341)
         [wdgen]      at org.apache.tools.ant.Target.execute(Target.java:309)
         [wdgen]      at org.apache.tools.ant.Target.performTasks(Target.java:336)
         [wdgen]      at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
         [wdgen]      at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:115)
         [wdgen]      at com.sap.tc.buildplugin.AbstractAntBuildAction.execute(AbstractAntBuildAction.java:65)
         [wdgen]      at com.sap.tc.buildplugin.AbstractPlugin.handleBuildStepSequence(AbstractPlugin.java:225)
         [wdgen]      at com.sap.tc.buildplugin.AbstractPlugin.performBuild(AbstractPlugin.java:201)
         [wdgen]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         [wdgen]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         [wdgen]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         [wdgen]      at java.lang.reflect.Method.invoke(Method.java:324)
         [wdgen]      at com.sap.tc.buildtool.PluginCommunicator.maybeInvoke(PluginCommunicator.java:114)
         [wdgen]      at com.sap.tc.buildtool.PluginCommunicatorV2.communicate(PluginCommunicatorV2.java:42)
         [wdgen]      at com.sap.tc.buildtool.PluginHandlerImpl.handlePluginCommunication(PluginHandlerImpl.java:354)
         [wdgen]      at com.sap.tc.buildtool.PluginHandlerImpl.execute(PluginHandlerImpl.java:176)
         [wdgen]      at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1726)
         [wdgen]      at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:5559)
         [wdgen]      at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction.buildDCsForDevConfig(BuildAction.java:307)
         [wdgen]      at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction.access$200(BuildAction.java:58)
         [wdgen]      at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction$1.run(BuildAction.java:212)
         [wdgen]      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
         [wdgen] ERROR: Unknown exception during generation null (com.sap.webdynpro.generation.ant.GenerationAntTaskError)
         [wdgen] ERROR: Generation failed due to errors (6 seconds)
    Ant runtime 9.234 seconds
    Ant build finished with ERRORS
    [Error]   Generation failed!
    Error: Build stopped due to an error: [Error]   Generation failed!
    [/code]
    Strange is that if I try to rebuild and deploy locally, no errors occurs and I can normally deploy and run application manually!
    Does anyone have experience with this problem?
    Thanks in advance!
    Regards,
    Ivan

    Hi Ivan
    I have faced this problem earlier BUT ultimately I have to create the DC from scratch.
    But you can check these things:
    1.Have you copy/pasted Dictionary type from other location (check the path of the dictionary types ) --> If yes then deleted that and create again(do not use copy/paste)
    2.This also happens if your "Used DC" has some problems in the JDI --> Remove the used DC and add it again.
    3.Make sure the NWDI infastructure is perfect- this may be a cause.
    4. Check Context mappings --> delete all mappings > save metadata > Create again.
    5. Delete the model and recreate it again.
    6.If you have done reimporting model make sure to restart J2EE instance.
    Hope this solves the problem - if not please post
    Regards
    Ananda

  • Strange Problem with a Vector wraped inside a Hashtable

    Hi all ,
    I'm having a strange problem with a Vector wraped within a Hashtable inherited Class.
    My goal is to keep the order of the elements of the Hashtable so what I did was to extend Hashtable and wrap a Vector Inside of it.
    Here is what it looks like :
    package somepackage.util;
    import java.util.Enumeration;
    import java.util.Hashtable;
    import java.util.Vector;
    public class OrderedHashTable extends Hashtable {
        private Vector index;
        /** Creates a new instance of OrderedHashTable */
        public OrderedHashTable() {      
            this.index = new Vector();
    //adds a key pair value to the HashTable and adds the key at the end of the index Vector
       public synchronized Object put(Object key,Object value){      
           index.addElement(key);
           Object obj = super.put(key,value);
           System.out.println("inside OrderedHashTable Put method index size = " + index.size());
           return obj;    
    public synchronized Object remove(Object key){
           int indx = index.indexOf(key);
           index.removeElementAt(indx);
           Object obj = super.remove(key);
           return obj;
    public synchronized Enumeration getOrderedEnumeration(){
           return index.elements();
    public synchronized Object getByIndex(int indexValue){
           Object obj1 = index.elementAt(indexValue);
           Object obj2 = super.get(obj1);      
           return obj2;
       public synchronized int indexOf(Object key){
        return index.indexOf(key);
        public synchronized int getIndexSize() {
            return index.size();
        }Everything seemed to work fine util I tried to add objects using a "for" loop such as this one :
    private synchronized void testOrderedHashTable(){
            OrderedHashTable test = new OrderedHashTable();
            for (int i = 1 ; i<15; i++){
                 System.out.println("adding Object No " + i);
                 String s = new String("string number = "+i);
                 test.put(new Integer(i),s);
                 System.out.println("-----------------------------------");
            //try to list the objects
            Enumeration e = test.getOrderedEnumeration();
            while (e.hasMoreElements()){
                Integer intObj = (Integer) e.nextElement();
                System.out.println("nextObject Number = "+ intObj);
        }Here is the console output :
    Generic/JSR179: adding Object No 1
    Generic/JSR179: inside OrderedHashTable Put method index size = 1
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 2
    Generic/JSR179: inside OrderedHashTable Put method index size = 2
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 3
    Generic/JSR179: inside OrderedHashTable Put method index size = 3
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 4
    Generic/JSR179: inside OrderedHashTable Put method index size = 4
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 5
    Generic/JSR179: inside OrderedHashTable Put method index size = 5
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 6
    Generic/JSR179: inside OrderedHashTable Put method index size = 6
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 7
    Generic/JSR179: inside OrderedHashTable Put method index size = 7
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 8
    Generic/JSR179: inside OrderedHashTable Put method index size = 8
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 9
    Generic/JSR179: inside OrderedHashTable Put method index size = 10
    Generic/JSR179: inside OrderedHashTable Put method index size = 10
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 10
    Generic/JSR179: inside OrderedHashTable Put method index size = 11
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 11
    Generic/JSR179: inside OrderedHashTable Put method index size = 12
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 12
    Generic/JSR179: inside OrderedHashTable Put method index size = 13
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 13
    Generic/JSR179: inside OrderedHashTable Put method index size = 14
    Generic/JSR179: -----------------------------------
    Generic/JSR179: adding Object No 14
    Generic/JSR179: inside OrderedHashTable Put method index size = 15
    Generic/JSR179: -----------------------------------
    Generic/JSR179: nextObject Number = 1
    Generic/JSR179: nextObject Number = 2
    Generic/JSR179: nextObject Number = 3
    Generic/JSR179: nextObject Number = 4
    Generic/JSR179: nextObject Number = 5
    Generic/JSR179: nextObject Number = 6
    Generic/JSR179: nextObject Number = 7
    Generic/JSR179: nextObject Number = 8
    Generic/JSR179: nextObject Number = 9
    Generic/JSR179: nextObject Number = 9
    Generic/JSR179: nextObject Number = 10
    Generic/JSR179: nextObject Number = 11
    Generic/JSR179: nextObject Number = 12
    Generic/JSR179: nextObject Number = 13
    Generic/JSR179: nextObject Number = 14
    You can notice that the output seems correct until the insertion of object 9.
    At this point the vector size should be 9 and the output says it is 10 elements long ...
    In the final check you can notice the 9 was inserted twice ...
    I think the problem has something to do with the automatic resizing of the vector but I'm not really sure. Mybe the resizing is done in a separate thread and the new insertion occurs before the vector is resized ... this is my best guess ...
    I also tested this in a pure J2SE evironment and I don't have the same strange behavior
    Can anybody tell me what I am doing wrong or how I could avoid this problem ?
    Thanks a lot !
    Cheers Alex

    Am i doing anything wrong?Uhm, yes. Read the API doc for addElement() and for addAll()

  • A strang problem about Resin database connection pool

    I am a beginner&#65292;hope somebody can help me.
    my web site occured a strange problem after I used the Resin database connection pool instead of
    connecting directly
    the error message as follows:java.lang.IllegalArgumentException: Request cannot be null
    at javax.servlet.ServletRequestWrapper.<init>(ServletRequestWrapper.java:100)
    at javax.servlet.http.HttpServletRequestWrapper.<init>(HttpServletRequestWrapper.java:92)
    at com.caucho.server.connection.RequestAdapter.<init>(RequestAdapter.java:96)
    at com.caucho.server.webapp.DispatchRequest.<init>(DispatchRequest.java:97)
    at com.caucho.server.webapp.IncludeDispatchRequest.<init>(IncludeDispatchRequest.java:77)
    at com.caucho.server.webapp.IncludeDispatchRequest.createDispatch(IncludeDispatchRequest.java:87)
    at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:389)
    at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:345)
    at com.caucho.jsp.PageContextImpl.include(PageContextImpl.java:807)
    at _jsp._intro__jsp._jspService(/intro.jsp:60)
    at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
    at com.caucho.jsp.Page.pageservice(Page.java:571)
    at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:155)
    at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:211)
    at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:177)
    at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:221)
    at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:263)
    at com.caucho.server.port.TcpConnection.run(TcpConnection.java:331)
    at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:464)
    at com.caucho.util.ThreadPool.run(ThreadPool.java:408)
    at java.lang.Thread.run(Thread.java:595)

    <!--
    - Resin 3.0 configuration file.
    -->
    <resin xmlns="http://caucho.com/ns/resin"
    xmlns:resin="http://caucho.com/ns/resin/core">
    <!--
    - Logging configuration for the JDK logging API.
    -->
    <log name='' level='info' path='stdout:' timestamp='[%H:%M:%S.%s] '/>
    <log name='com.caucho.java' level='config' path='stdout:'
    timestamp='[%H:%M:%S.%s] '/>
    <log name='com.caucho.loader' level='config' path='stdout:'
    timestamp='[%H:%M:%S.%s] '/>
    <!--
    - For production sites, change dependency-check-interval to something
    - like 600s, so it only checks for updates every 10 minutes.
    -->
    <dependency-check-interval>2s</dependency-check-interval>
    <!--
    - You can change the compiler to "javac" or jikes.
    - The default is "internal" only because it's the most
    - likely to be available.
    -->
    <javac compiler="internal" args=""/>
    <!-- Security providers.
    - <security-provider>
    - com.sun.net.ssl.internal.ssl.Provider
    - </security-provider>
    -->
    <!--
    - If starting bin/resin as root on Unix, specify the user name
    - and group name for the web server user.
    - <user-name>resin</user-name>
    - <group-name>resin</group-name>
    -->
    <!--
    - Configures threads shared among all HTTP and SRUN ports.
    -->
    <thread-pool>
    <!-- Maximum number of threads. -->
    <thread-max>128</thread-max>
    <!-- Minimum number of spare connection threads. -->
    <spare-thread-min>25</spare-thread-min>
    </thread-pool>
    <!--
    - Configures the minimum free memory allowed before Resin
    - will force a restart.
    -->
    <min-free-memory>1M</min-free-memory>
    <server>
    <!-- adds all .jar files under the resin/lib directory -->
    <class-loader>
    <tree-loader path="$resin-home/lib"/>
    </class-loader>
    <!-- Configures the keepalive -->
    <keepalive-max>500</keepalive-max>
    <keepalive-timeout>120s</keepalive-timeout>
    <!-- The http port -->
    <http server-id="" host="*" port="8080"/>
    <!--
    - SSL port configuration:
    - <http port="8443">
    - <openssl>
    - <certificate-file>keys/gryffindor.crt</certificate-file>
    - <certificate-key-file>keys/gryffindor.key</certificate-key-file>
    - <password>test123</password>
    - </openssl>
    - </http>
    -->
    <!--
    - The local cluster, used for load balancing and distributed
    - backup.
    -->
    <cluster>
    <srun server-id="" host="127.0.0.1" port="6802" index="1"/>
    </cluster>
    <!--
    - Enables/disables exceptions when the browser closes a connection.
    -->
    <ignore-client-disconnect>true</ignore-client-disconnect>
    <!--
    - Enables the cache
    -->
    <cache path="cache" memory-size="10M"/>
    <!--
    - Enables periodic checking of the server status.
    - With JDK 1.5, this will ask the JDK to check for deadlocks.
    - All servers can add <url>s to be checked.
    -->
    <ping>
    <!-- <url>http://localhost:8080/test-ping.jsp</url> -->
    </ping>
    <!--
    - Defaults applied to each web-app.
    -->
    <web-app-default>
    <!--
    - Sets timeout values for cacheable pages, e.g. static pages.
    -->
    <cache-mapping url-pattern="/" expires="5s"/>
    <cache-mapping url-pattern="*.gif" expires="60s"/>
    <cache-mapping url-pattern="*.jpg" expires="60s"/>
    <!--
    - Servlet to use for directory display.
    -->
    <servlet servlet-name="directory"
    servlet-class="com.caucho.servlets.DirectoryServlet"/>
    </web-app-default>
    <!--DataSource jndi configuration-->
    <database>
    <jndi-name>jdbc/artunion</jndi-name>
    <driver type="org.gjt.mm.mysql.Driver">
    <url>jdbc:mysql://localhost:3306/union</url>
    <user>as</user>
    <password>as</password>
    </driver>
    <prepared-statement-cache-size>8</prepared-statement-cache-size>
    <max-connections>20</max-connections>
    <max-idle-time>30s</max-idle-time>
    </database>
    <!--
    - Default host configuration applied to all virtual hosts.
    -->
    <host-default>
    <class-loader>
    <compiling-loader path='webapps/WEB-INF/classes'/>
    <library-loader path='webapps/WEB-INF/lib'/>
    </class-loader>
    <!--
    - With another web server, like Apache, this can be commented out
    - because the web server will log this information.
    -->
    <access-log path='logs/access.log'
    format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
    rollover-period='1W'/>
    <!-- creates the webapps directory for .war expansion -->
    <web-app-deploy path='webapps'/>
    <!-- creates the deploy directory for .ear expansion -->
    <ear-deploy path='deploy'>
    <ear-default>
    <!-- Configure this for the ejb server
    - <ejb-server>
    - <config-directory>WEB-INF</config-directory>
    - <data-source>jdbc/test</data-source>
    - </ejb-server>
    -->
    </ear-default>
    </ear-deploy>
    <!-- creates the deploy directory for .rar expansion -->
    <resource-deploy path='deploy'/>
    <!-- creates a second deploy directory for .war expansion -->
    <web-app-deploy path='deploy'/>
    </host-default>
    <!-- includes the web-app-default for default web-app behavior -->
    <resin:import path="${resinHome}/conf/app-default.xml"/>
    <!-- configures the default host, matching any host name -->
    <host id=''>
    <document-directory>D:/artunion</document-directory>
    <!-- configures the root web-app -->
    <web-app id='/'>
    <!-- adds xsl to the search path -->
    <class-loader>
    <simple-loader path="$host-root/xsl"/>
    </class-loader>
    <servlet-mapping url-pattern="/servlet/*" servlet-name="invoker"/>
    </web-app>
    </host>
    </server>
    </resin>
    Thank you!

  • Strange Problem..No where the host is associated but still gives UnknownHos

    hallo..
    i have a strange problem...
    I connect to an smtp server to send emails.
    the following is the exception i get always
    it gives me Unknownhostexception : aatsv001 (my PC name)
    but i had never used it to send mails..nor in the email addresses(recipients)..but still it comes..
    the log shows the authentication of smtp and at
    354 go ahead it gives IOException..
    please help..
    DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
    DEBUG SMTP: useEhlo true, useAuth true
    250-PIPELINING
    250 8BITMIME
    DEBUG SMTP Found extension "PIPELINING", arg ""
    DEBUG SMTP Found extension "8BITMIME", arg ""
    DEBUG SMTP: use8bit false
    DEBUG SMTP SENT: MAIL FROM:<[email protected]>
    DEBUG SMTP RCVD: 250 ok
    DEBUG SMTP SENT: RCPT TO:< >
    DEBUG SMTP RCVD: 250 ok
    DEBUG SMTP SENT: RCPT TO:< >
    DEBUG SMTP RCVD: 250 ok
    DEBUG SMTP SENT: RCPT TO:< >
    DEBUG SMTP RCVD: 250 ok
    DEBUG SMTP SENT: RCPT TO:< >
    DEBUG SMTP RCVD: 250 ok
    Verified Addresses
    I removed the email addresses here totally 4
    DEBUG SMTP SENT: DATA
    DEBUG SMTP RCVD: 354 go ahead
    java.net.UnknownHostException: aatsv001
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
         at java.net.Socket.connect(Socket.java:426)
         at java.net.Socket.connect(Socket.java:376)
         at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:386)
         at sun.net.www.http.HttpClient.openServer(HttpClient.java:602)
         at sun.net.www.http.HttpClient.<init>(HttpClient.java:303)
         at sun.net.www.http.HttpClient.<init>(HttpClient.java:264)
         at sun.net.www.http.HttpClient.New(HttpClient.java:336)
         at sun.net.www.http.HttpClient.New(HttpClient.java:317)
         at sun.net.www.http.HttpClient.New(HttpClient.java:312)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:481)
         at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:472)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:574)
         at java.net.URL.openStream(URL.java:960)
         at javax.activation.URLDataSource.getInputStream(URLDataSource.java:100)
         at javax.activation.DataHandler.writeTo(DataHandler.java:297)
         at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089)
         at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:635)
         at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:233)
         at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:68)
         at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:849)
         at javax.activation.DataHandler.writeTo(DataHandler.java:305)
         at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089)
         at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1527)
         at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:321)
         at com.aat.PudisJobController.PMail.sendEmail(PMail.java:85)
         at com.aat.server.MessageFilterProcessing.doPostProcessing(MessageFilterProcessing.java:186)
         at com.aat.server.MessageFilterProcessing.doPostProcessing(MessageFilterProcessing.java:161)
         at com.aat.PudisJobController.PTask.doPostProcessingForStdReport(PTask.java:247)
         at com.aat.PudisJobController.PTask.saveTaskInfo(PTask.java:222)
         at com.aat.PudisJobController.PTaskWaiter.run(PTaskWaiter.java:45)
    javax.mail.MessagingException: IOException while sending message;
    nested exception is:
         java.net.UnknownHostException: aatsv001
         at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:353)
         at com.aat.PudisJobController.PMail.sendEmail(PMail.java:85)
         at com.aat.server.MessageFilterProcessing.doPostProcessing(MessageFilterProcessing.java:186)
         at com.aat.server.MessageFilterProcessing.doPostProcessing(MessageFilterProcessing.java:161)
         at com.aat.PudisJobController.PTask.doPostProcessingForStdReport(PTask.java:247)
         at com.aat.PudisJobController.PTask.saveTaskInfo(PTask.java:222)
         at com.aat.PudisJobController.PTaskWaiter.run(PTaskWaiter.java:45)
    can u plss tell me wt actually happening?
    thanx in advance
    K�vi

    re-post

  • Strange Problem

    Hello All,
    I am facing a strange problem with Multi-DataSource configuration against ORACLE 2 Node RAC.
    A particular business scenario executes a SQL using MultiDataSource. This SQL if successfull, the page is rendered and if not Error is thrown.
    I am having Users reporting intermitent failure with this scenario.
    I opened the Debug Parameters for Database JDBC in WebLogic Server and monitored. I found whenever Error occurs, an internal WebLogic Connection Wrapper method "*clearPreparedStatement*" is invoked.
    In normal working scenario, this statement is not invoked.
    From WebLogic API Documentation it says that this statement can be invoked manually from application or from within to clear the statement cache. Our application does not use this API manually.
    My questions:
    1. Is there a setting in WebLogic to disable this behaviour?
    2. Will this statement clear the ORACLE Context Information which is persisted in the connection?
    ####<Nov 3, 2010 1:01:10 PM EST> <Debug> <JDBCInternal> <PAZHOST> <pazappln> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <SA_LEAD> <BEA1-7A94F7DE3777CD76740C> <> <1288749670364> <000000> < CE:getCS (50) ejectedEntry = weblogic.jdbc.common.internal.StatementHolder@37d7dc8c>
    ####<Nov 3, 2010 1:01:10 PM EST> <Debug> <JDBCInternal> <PAZHOST> <pazappln> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <SA_LEAD> <BEA1-7A94F7DE3777CD76740C> <> <1288749670364> <000000> < CE:getCS (60)>
    ####<Nov 3, 2010 1:01:10 PM EST> <Debug> <JDBCInternal> <PAZHOST> <pazappln> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <SA_LEAD> <BEA1-7A94F7DE3777CD76740C> <> <1288749670364> <000000> < < CE:getCS (100.4) entry = weblogic.jdbc.common.internal.StatementHolder@380731cf>
    ####<Nov 3, 2010 1:01:10 PM EST> <Debug> <JDBCSQL> <PAZHOST> <pazappln> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <SA_LEAD> <BEA1-7A94F7DE3777CD76740C> <> <1288749670364> <000000> <[weblogic.jdbc.wrapper.JTSConnection_oracle_jdbc_driver_T4CConnection@b1363b] prepareStatement returns weblogic.jdbc.wrapper.PreparedStatement_oracle_jdbc_driver_T4CPreparedStatement@b1363d>
    ####<Nov 3, 2010 1:01:10 PM EST> <Debug> <JDBCSQL> <PAZHOST> <pazappln> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <SA_LEAD> <BEA1-7A94F7DE3777CD76740C> <> <1288749670364> <000000> <[weblogic.jdbc.wrapper.PreparedStatement_oracle_jdbc_driver_T4CPreparedStatement@b1363d] clearParameters()>
    ####<Nov 3, 2010 1:01:10 PM EST> <Debug> <JDBCSQL> <PAZHOST> <pazappln> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <SA_LEAD> <BEA1-7A94F7DE3777CD76740C> <> <1288749670364> <000000> <[weblogic.jdbc.wrapper.PreparedStatement_oracle_jdbc_driver_T4CPreparedStatement@b1363d] clearParameters returns>
    ####<Nov 3, 2010 1:01:10 PM EST> <Debug> <JDBCSQL> <PAZHOST> <pazappln> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <SA_LEAD> <BEA1-7A94F7DE3777CD76740C> <> <1288749670364> <000000> <[weblogic.jdbc.wrapper.PreparedStatement_oracle_jdbc_driver_T4CPreparedStatement@b1363d] setInt(1, 1000421)>
    ####<Nov 3, 2010 1:01:10 PM EST> <Debug> <JDBCSQL> <PAZHOST> <pazappln> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <SA_LEAD> <BEA1-7A94F7DE3777CD76740C> <> <1288749670364> <000000> <[weblogic.jdbc.wrapper.PreparedStatement_oracle_jdbc_driver_T4CPreparedStatement@b1363d] setInt returns>
    ####<Nov 3, 2010 1:01:10 PM EST> <Debug> <JDBCSQL> <PAZHOST> <pazappln> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <SA_LEAD> <BEA1-7A94F7DE3777CD76740C> <> <1288749670364> <000000> <[weblogic.jdbc.wrapper.PreparedStatement_oracle_jdbc_driver_T4CPreparedStatement@b1363d] setInt(2, 101205)>
    ####<Nov 3, 2010 1:01:10 PM EST> <Debug> <JDBCSQL> <PAZHOST> <pazappln> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <SA_LEAD> <BEA1-7A94F7DE3777CD76740C> <> <1288749670364> <000000> <[weblogic.jdbc.wrapper.PreparedStatement_oracle_jdbc_driver_T4CPreparedStatement@b1363d] setInt returns>
    ####<Nov 3, 2010 1:01:10 PM EST> <Debug> <JDBCSQL> <PAZHOST> <pazappln> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <SA_LEAD> <BEA1-7A94F7DE3777CD76740C> <> <1288749670364> <000000> <[weblogic.jdbc.wrapper.PreparedStatement_oracle_jdbc_driver_T4CPreparedStatement@b1363d] setBoolean(3, true)>
    ####<Nov 3, 2010 1:01:10 PM EST> <Debug> <JDBCSQL> <PAZHOST> <pazappln> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <SA_LEAD> <BEA1-7A94F7DE3777CD76740C> <> <1288749670364> <000000> <[weblogic.jdbc.wrapper.PreparedStatement_oracle_jdbc_driver_T4CPreparedStatement@b1363d] setBoolean returns>
    ####<Nov 3, 2010 1:01:10 PM EST> <Debug> <JDBCSQL> <PAZHOST> <pazappln> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <SA_LEAD> <BEA1-7A94F7DE3777CD76740C> <> <1288749670364> <000000> <[weblogic.jdbc.wrapper.PreparedStatement_oracle_jdbc_driver_T4CPreparedStatement@b1363d] executeQuery()>
    ####<Nov 3, 2010 1:01:10 PM EST> <Debug> <JDBCSQL> <PAZHOST> <pazappln> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <SA_LEAD> <BEA1-7A94F7DE3777CD76740C> <> <1288749670364> <000000> <[weblogic.jdbc.wrapper.JTSConnection_oracle_jdbc_driver_T4CConnection@b1363b] clearPreparedStatement(-- PAZSQLSTMT
    ####<Nov 3, 2010 1:01:10 PM EST> <Debug> <JDBCSQL> <PAZHOST> <pazappln> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <SA_LEAD> <BEA1-7A94F7DE3777CD76740C> <> <1288749670364> <000000> <[weblogic.jdbc.wrapper.JTSConnection_oracle_jdbc_driver_T4CConnection@b1363b] clearPreparedStatement returns true>
    Thanks and regards,
    Pazhanikanthan. P

    Thanks Joe for your explanation. I now understand why clearPreparedStatement is invoked internally by WLS API. This is absolutely fine with me.
    My further question is:
    The scenario (same Java /Database code base) works fine with ORACLE Standalone instance or even each instances of a ORACLE RAC Cluster.
    The scenario (same Java /Database code base) does not works fine with ORACLE RAC Cluster when accessed through Oracle Service Name.
    The values which are not available are: User Defined Context Values.
    I have configured all params according to the link: http://download.oracle.com/docs/cd/E12840_01/wls/docs103/jdbc_admin/oracle_rac.html
    Thanks and regards,
    Pazhanikanthan. P

  • Strange problem with DATE

    Hi,
    I am having a strange problem in the following piece of code :
    this._calendar = new GregorianCalendar();
    this._calendar.set(Calendar.YEAR, 2001);
    System.out.println("definition 152 " + this._calendar.get(Calendar.YEAR));
    this._calendar.set(Calendar.MONTH, 12);
    this._calendar.set(Calendar.DATE, 13);
    this._calendar.set(Calendar.HOUR, 9);
    this._calendar.set(Calendar.MINUTE, 34);
    this._calendar.set(Calendar.SECOND, 45);
    this._calendar.set(Calendar.MILLISECOND, 928);
    System.out.println("definition 153 " + this._calendar.get(Calendar.YEAR));
    String dateform = dateformatter.format(_calendar.getTime());
    System.out.println("definition 155 " + dateform);
    I get the output
    definition 152 2001
    definition 153 2002
    definition 155 2002.01.03 12:11:14.928
    How the year changes from 2001 to 2002 is a mystery. However if I change the month to 6 then the behaviour is different.
    Any ideas as what is going on???????????

    Hi,
    I am having a strange problem in the following piece
    of code :
    this._calendar = new GregorianCalendar();
    this._calendar.set(Calendar.YEAR, 2001);
    System.out.println("definition 152 " +
    " + this._calendar.get(Calendar.YEAR));
    this._calendar.set(Calendar.MONTH, 12);
    this._calendar.set(Calendar.DATE, 13);
    this._calendar.set(Calendar.HOUR, 9);
    this._calendar.set(Calendar.MINUTE, 34);
    this._calendar.set(Calendar.SECOND, 45);
    this._calendar.set(Calendar.MILLISECOND, 928);
    System.out.println("definition 153 " +
    " + this._calendar.get(Calendar.YEAR));
    String dateform =
    m = dateformatter.format(_calendar.getTime());
    System.out.println("definition 155 " + dateform);
    I get the output
    definition 152 2001
    definition 153 2002
    definition 155 2002.01.03 12:11:14.928
    How the year changes from 2001 to 2002 is a mystery.
    However if I change the month to 6 then the behaviour
    is different.
    Any ideas as what is going on???????????
    Months go from 0 to 11. Month 12 is actually month 0 (January) of the next year. See the documentation for the Calendar class at http://java.sun.com/j2se/1.3/docs/api/java/util/Calendar.html and the source for Calendar.java.
    Also, you should use the named constants for the months instead of numbers, e.g. Calendar.DECEMBER.
    Finally, the Calendar class does not attempt to resolve the various fields into milliseconds until one of the following methods is called: get(), getTime(), or getTimeInMillis(). This is explained in the Calendar API docs.
    So, in summary, the reason the date is 2002/01 is because months are 0-based. The reason the date changed is because the milliseconds were recomputed when you called get(Calendar.YEAR).

Maybe you are looking for

  • Apple midi loops load incorect channel strip

    when i preview a midi apple loop in the loop browser it sounds fine, but when i drag it onto an inst. channel it loads up all the wrong channel strip info. it will load the Garage band sampler but the correct samples do not load. I have used Redmatic

  • Transpose ALV output format in Vertical

    Hi ,   I want to transpose the ALV output. For this i have coded like below, but there is no output displaying.Please check the below code & advise me where to write our own fielcatalog & how to write the fieldcatogue. TABLES:EKKO,EKPO. TYPE-POOLS: S

  • Overwriting in batch processing

    Switching from Audition 3 to CS6 has been problematic for me, in the Batch Conversion department. In Audition 3, I could open many hundreds of WAV files, convert them in mp3, and the processor would then erase the old WAV versions. Now, in CS6, I che

  • JDev hangs when opening a file in customization role

    Using JDev PS5. when I open JDev in default role, everything works fine. When i open JDev in customization role everything seems to work fine at first but when I double click on a file to open it, JDev just hangs. It mostly happens when I try to open

  • Se puede cambiar la batería de mi iPod per que se carga muy rápido y se le baja la batería muy rápido

    Me pueden cambiar mi iPod touch por uno nuevo o que cambien la batería por que se le baja la batería muy rápido y se le carga muy rápido