Thread of execution terminates silently on getting local transferable data

I have the following class to drag and drop node references within a JTree:
     class MyTransferable implements Transferable {
          Item ref;
          final DataFlavor[] flavours = new DataFlavor[1];
          MyTransferable(Item i) {
               super();
               ref = i;
               flavours[0] = new DataFlavor(i.getClass(), DataFlavor.javaJVMLocalObjectMimeType);
               log("items flavour is " + flavours[0]);
          public Item getTransferData(DataFlavor flavor) {
               log("getTransferData. Returning " + ref); // *<-- I see this*
               return ref; // *<-- the procedure never returns*
          public DataFlavor[] getTransferDataFlavors() {log("getFlavours"); return flavours;} // try null
          public boolean isDataFlavorSupported (DataFlavor flavor) {log("isFlavourSupported(" + flavor + ")"); return false;}
     }In the importData(), I have the following code
     try {
          Node target = (Node)((JTree.DropLocation)support.getDropLocation()).getPath().getLastPathComponent();
          log("dropping on " + target); // *<-- I see this*
          Object o = support.getTransferable().getTransferData(null);
          log("dropping item " + o); // <- does not appear on the console
          target.Drop(o);
     } catch (UnsupportedFlavorException e) {
          log("ERROR " + e + " importing the data");
          return false;
     } catch (IOException e) {
          log("ERROR " + e + " importing the data");
          return false;
return true;The execution of the thread mysteriously ceases at the end of getTransferData(). No traces in the console. Yet, application does not fail and goes not reacting on graphic controls in normal way.Any ideas why and where the control jumps?
BTW, I have mentioned that DataFlavor.javaJVMLocalObjectMimeType) creates java.awt.datatransfer.DataFlavor[mimetype=application/x-java-[b]serialized-object;representationclass=SongTree$Pattern
Why does it serialize the local object, which is of type javaJVMLocalObjectMimeType and must be transferred by reference? Can be the problem because I try to gain access the serialized object?
Edited by: valjok on Jan 9, 2008 2:08 PM

Thank you for responding. I have double checked and assure you that the traces are produced by the code.
I have purified the code for you to reproduce. I run
import java.awt.event.*;
import java.awt.*;
import javax.swing.*;
import javax.swing.tree.*;
import javax.swing.filechooser.*;
import java.io.*;
import java.util.*;
import java.awt.datatransfer.*;
class SongTree extends JTree {
     class Item extends DefaultMutableTreeNode {
          Item(Object userObj) {
               super(userObj);
          void appendChild(Item item) {
               ((DefaultTreeModel)treeModel).insertNodeInto(item, this, getChildCount());
          public void Drop(Object o) {
               log("Some " + o + "-thing has dropped on me. Handling is not implemented.");
     static void log(String msg) {
          System.out.println(msg);
     SongTree() {
          super();
         Item top = new Item("root");
          setModel(new DefaultTreeModel(top));
          top.appendChild(new Item("Sample 1"));
          top.appendChild(new Item("Sample 2"));
          getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
          setEditable(true);
          setRootVisible(true);
         setDragEnabled(true);
         setDropMode(DropMode.ON_OR_INSERT);
         expandRow(0);
         setTransferHandler(new TransferHandler() {
               public boolean importData(TransferSupport support) {
                    if (!canImport(support)) {
                        return false;
                    try {
                         Item target = (Item)((JTree.DropLocation)support.getDropLocation()).getPath().getLastPathComponent();
                         log("dropping on " + target + " DEBUG1"); // <- I SEE THIS
                         Object o = support.getTransferable().getTransferData(null);
                         log("dropping item " + o + " DEBUG"); // <-- BUT CANNOT SEE THIS!!
                         target.Drop(o);
                         log("ok");
                    } catch (UnsupportedFlavorException e) {
                         log("ERROR " + e + " importing the data");
                         return false;
                    } catch (IOException e) {
                         log("ERROR " + e + " importing the data");
                         return false;
                         log("ok2");
                    return true;
               public boolean canImport(TransferSupport support) {
                    JTree.DropLocation dropLocation = (JTree.DropLocation)support.getDropLocation();
                    if (!support.isDrop() || dropLocation.getPath() == null) {
                         return false;
                    Class transferrableRefClass = support.getDataFlavors()[0].getRepresentationClass();
                    log("ref is " + transferrableRefClass);
                    return true;//((Item) dropLocation.getPath().getLastPathComponent()).isMethodImplemented("Drop", new Class[] {transferrableRefClass});
               public int getSourceActions(JComponent comp) {
                    log("getSourceActions");
                   return LINK; // COPY
               public Transferable createTransferable(JComponent comp) {
                    final Object ref = getSelectionPath().getLastPathComponent();
                    log("createTransferable(" + (ref) + ")");
                    return new Transferable() {
                         final DataFlavor[] flavours = new DataFlavor[] {new DataFlavor(ref.getClass(), DataFlavor.javaJVMLocalObjectMimeType)};
                         public Object getTransferData(DataFlavor flavor) {
                              log("getTransferData. The item to drop is " + ref + " DEBUG2"); // <- I SEE THIS
                              return ref;
                         public DataFlavor[] getTransferDataFlavors() {log("getFlavours"); return flavours;}
                         public boolean isDataFlavorSupported (DataFlavor flavor) {
                              log("isFlavourSupported(" + flavor + ")");
                              return false; // this normally must not be called
     } // TransferHandler
class JTreeTest {
     public static void main(String[] args) {
        javax.swing.SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                    final JFrame frame = new JFrame("JTreeTest");
                    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                    frame.getContentPane().add(new SongTree(), BorderLayout.CENTER);
                    frame.setPreferredSize(new Dimension(300, 300));
                    frame.pack();
                    frame.setVisible(true);
}java version "1.6.0_10-ea"
Java(TM) SE Runtime Environment (build 1.6.0_10-ea-b09)
Java HotSpot(TM) Client VM (build 11.0-b09, mixed mode, sharing)

Similar Messages

  • How to get local file date and time ( 10g version )

    Hi,
    Would like to ask if there is any way to get the date and time of a local file. It seems that webutil does not have this function.
    And I want to use client_host ( dir c:\file.txt > c:\temp.txt ) and the read this file to get the file date.
    But the problem is the file date and time ( in the dir ) varies in different PCs.
    Best Regards,
    Ivan

    But the problem is the file date and time ( in the dir ) varies in different PCs.
    You mean the format of the date and time don't you?
    If so you maybe could create a java bean which does that for you using the lastModified Method of the File class.
    regards

  • Getting locale specific date and time

    Hi,
    I am tyring to create a program which will display the current date and time for a specific locale. But I am clueless as to how to proceed.
    Please help me.
    Thanks

    examples:
    servers and protocols: http://tf.nist.gov/service/its.htm
    a simple java client using the daytime protocol: http://www.cafeaulait.org/course/week12/18.html
    (u can use the simpledateformat class to parse the output string to a java date)

  • Calculate elapse time of a Java thread  before execution

    Hi,
    I would like to enquire how can I calculate the elapse time of a Java thread BEFORE this thread is executiing or running.?
    I wish to estimate the elapsed time of each Java thread before execution to better schedule these threads to run on multiple processors for load balancing testing.
    Please help
    -meileng-[                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    You can grab the system time in the initiating thread immediately before calling start(), and as the first step in run() in the new thread.
    However, this measurement is utterly meaningless, as it can vary between architectures or even between consecutive runs on the same box. Furthermore, even once a thread starts, it may do nothing more than that one grab-the-system-time instruction before it get swapped out for a theoretically unbounded amount of time.
    By definition, if you spawn multiple threads in Java, you don't know or care which one get CPU time when, except as you control by syncing, sleep, wait, notify, notifyAll, and whatever control priorities give you. Additionally, you don't know when the OS will give your VM cycles, and on multi-CPU machines, you don't know how many CPUs it will get when it does get cycles.

  • Make all other works stop until a thread finishes execution

    Hi,
    I have the following thread.
    _thread = new Thread()
                   public void run()
                        try
                             //Something is executing here
                        catch (Exception e)
                                  System.out.println(e);
              _thread.start();Once the control gets inside this thread, all other works should be posed and the other works should be resumed only once this thread finishes execution.
    how can i do that?
    Please help.
    Any help in this regard will be appreciated with dukes.
    Regards,
    Rony

    RonyFederer wrote:
    Once the control gets inside this thread, all other works should be posed and the other works should be resumed only once this thread finishes execution.You can do that at the method or block level by synchronizing on the same object in all threads. Normally you would only do that for controlling access a specific object or resource, so only one thread can access the object or resource at a time.
    The basic threading operations are suited to such uses, rather than managing the order a sequence of processes.
    You could also use join, but that requires that all the threads threads you want to pause have a reference to the thread you're creating, and need a mechanism to change their behaviour when the thread is started, rather than having to the object used for synchronisation passed to them when they are started. However, with synchronization you can't guarantee which thread gets the lock on the object in which order, so you may want to do it using join.
    The more important question is why you want the other threads to pause.

  • Why are the threads start and terminate randomly?

    Hi there,
    I got the program below. I am wondering why are the threads start and terminate randomly? Everytime, I run the program, it produces different results.
    I know that these four threads have got same normal priority (should be 5), and under windows there is something called timeslice. Then these four threads rotate using this timeslice. How do we know what exactly the timeslice is in seconds? If the timeslice is fix, then why the results are ramdom?
    Thanks in advance!
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package mythreadone;
    * @author Administrator
    public class MyThreadOne implements Runnable {
    String tName;
    Thread t;
    MyThreadOne(String threadName) {
    tName = threadName;
    t = new Thread(this, tName);
    t.start();
    public void run() {
    try {
    System.out.println("Thread: " + tName);
    Thread.sleep(2000);
    } catch (InterruptedException e) {
    System.out.println("Exception: Thread "
    + tName + " interrupted");
    System.out.println("Terminating thread: " + tName);
    public static void main(String args[]) {
    // Why are the threads start and terminate randomly?
    new MyThreadOne("1");
    new MyThreadOne("2");
    new MyThreadOne("3");
    new MyThreadOne("4");
    try {
    Thread.sleep(10000);
    // Thread.sleep(2000);
    } catch (InterruptedException e) {
    System.out.println(
    "Exception: Thread main interrupted.");
    System.out.println(
    "Terminating thread: main thread.");
    1. Firstly, I set in the main function:
    Thread.sleep(10000);
    and I run the program it gives:
    Thread: 1
    Thread: 4
    Thread: 2
    Thread: 3
    Terminating thread: 1
    Terminating thread: 3
    Terminating thread: 4
    Terminating thread: 2
    Terminating thread: main thread.
    BUILD SUCCESSFUL (total time: 10 seconds)
    Run it again, it gives:
    Thread: 2
    Thread: 4
    Thread: 3
    Thread: 1
    Terminating thread: 2
    Terminating thread: 1
    Terminating thread: 3
    Terminating thread: 4
    Terminating thread: main thread.
    BUILD SUCCESSFUL (total time: 10 seconds)
    And my question was why it outputs like this? It suppose to be:
    Thread: 1
    Thread: 2
    Thread: 3
    Thread: 4
    Terminating thread: 1
    Terminating thread: 2
    Terminating thread: 3
    Terminating thread: 4
    Terminating thread: main thread.
    BUILD SUCCESSFUL (total time: 10 seconds)
    Why these four threads start and finish randomly each time I run the program? I use Windows, suppose there is a timeslice (i.e. 1 second), these threads have the same priority. Then the threads should start and finish in turn one by one. Am I right?
    2. My second question is:
    When I change the codes in the 'main' function into:
    Thread.sleep(10000); -> Thread.sleep(2000);
    it gives me the results like:
    Thread: 1
    Thread: 4
    Thread: 3
    Thread: 2
    Terminating thread: main thread.
    Terminating thread: 1
    Terminating thread: 4
    Terminating thread: 3
    Terminating thread: 2
    BUILD SUCCESSFUL (total time: 2 seconds)
    Run it again:
    Thread: 1
    Thread: 2
    Thread: 3
    Thread: 4
    Terminating thread: 3
    Terminating thread: main thread.
    Terminating thread: 4
    Terminating thread: 2
    Terminating thread: 1
    BUILD SUCCESSFUL (total time: 2 seconds)
    I tried several times. The main thread always terminates before or after the first child thread finished.
    My question is why it doesn't output something like:
    Thread: 1
    Thread: 2
    Thread: 3
    Thread: 4
    Terminating thread: 3
    Terminating thread: 4
    Terminating thread: 2
    Terminating thread: main thread.
    Terminating thread: 1
    BUILD SUCCESSFUL (total time: 2 seconds)
    or
    Thread: 1
    Thread: 2
    Thread: 3
    Thread: 4
    Terminating thread: 3
    Terminating thread: 4
    Terminating thread: 2
    Terminating thread: 1
    Terminating thread: main thread.
    BUILD SUCCESSFUL (total time: 2 seconds)

    user13476736 wrote:
    Yes, my machine has multi-core. Then you mean that if I got a one core machine the result should always be:
    Thread: 1
    Thread: 2
    Thread: 3
    Thread: 4
    Terminating thread: 1
    Terminating thread: 2
    Terminating thread: 3
    Terminating thread: 4
    Terminating thread: main thread.
    BUILD SUCCESSFUL (total time: 10 seconds)
    ???No.
    >
    How to explain my second quesiton then? Why the main thread always terminates before some of the child threads end? Thanks a lot.

  • PB12.5 - Oracle 11g conenction issue - Failed to get local NLS_LANG charset ID

    Hi Everyone,
    We have recently migrated our OS to windows 7 and orcle client to 11g since then I am getting error "Failed to get local NLS_LANG charset ID" while connecting to Oracle using the IDE. I tried to connect using O10 Oracle 10g and ORA Oracle interface as I dont see anything for 11g; result was same in both cases. Can someone please help to resolve this issue?
    Following are the system details
    OS - Windows 7 62 Bit
    PB - 12.5 Build 2511
    Oracle Client - 11g 32 bit
    Thanks,
    Robin

    Hi Jacob,
    Here is the entry fronm trace log:
    /*                 3/18/2014  14:17                  */
    (2a922fc): DIALOG CONNECT TO TRACE ORA ORACLE:
    (2a922fc): LOGID=dev_testid
    (2a922fc): SERVER=TESTSRV
    (2a922fc): DBPARM=PBCatalogOwner='dev_testid',DisableBind=1,TrimSpaces=1(DBI_DIALOG_CONNECT) (21.246 MS / 21.246 MS)
    (2a922fc): *** ERROR 999 ***(rc -1) : Failed to get local NLS_LANG charset ID.
    (2a922fc): SHUTDOWN DATABASE INTERFACE:(DBI_SHUTDOWN_INTERFACE) (0.001 MS / 21.247 MS)
    NLS_LANG variable set under HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ORACLE\KEY_OraClient11g_home1
    Value in Registry: AMERICAN_AMERICA.WE8MSWIN1252
    Value in SQL PLUS:
    SQL> SELECT USERENV ('language') FROM DUAL;
    USERENV('LANGUAGE')
    AMERICAN_AMERICA.WE8ISO8859P1
    Thanks,
    Robin

  • Get Local currency - PO creation

    Hello,
    I am creating a PO and giving inputs-- >Vendor, Pur Org, Pur Grp,Company Code, payment terms, incoterms.
    I am developing a badi which will calculate exchange rate based on Currency.
    I need to get local currency in order to calculate exchange rate.
    Please let me know any table or FM which will return the local currency based on the above inputs in PO header.
    Kind regards,
    Shital

    Hello,
    You will get Company code Currency key from T001 - WAERS
    Vendor Order Currency from LFM1 - WAERS
    REgards

  • How to get Locale from Character.UnicodeBlock

    Hi All,
    For Ex: I enter Japanese language (Hiragana/KATAKANA characters) in the text field. My expected result is Locale: 'ja' (this is belongs to Japaneses language)
    How to get locale value from Character.UnicodeBlock.
    or we have any other way to get locale value from "input locale" means what ever language( Japanese /Chinese/other languages supported by java) i enter in the text box and i want to identify the locale of the text.
    This is the example program i found in the forum.
    import java.awt.BorderLayout;
    import java.nio.charset.Charset;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JTextField;
    import javax.swing.SwingUtilities;
    import javax.swing.event.DocumentEvent;
    import javax.swing.event.DocumentListener;
    public class TestSBC {
    public static void main(String[] args) {
         SwingUtilities.invokeLater(new Runnable() {
         @Override
         public void run() {
              new TestSBC().createGUI();
    private void createGUI() {
         JFrame frame = new JFrame();
         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         final JLabel messageLabel = new JLabel("Here comes a message",
              JLabel.CENTER);
         final JTextField textField = new JTextField();
         textField.getDocument().addDocumentListener(new DocumentListener() {
         @Override
         public void changedUpdate(DocumentEvent e) {
              checkEvent(e);
         @Override
         public void insertUpdate(DocumentEvent e) {
              checkEvent(e);
         @Override
         public void removeUpdate(DocumentEvent e) {
              checkEvent(e);
         private void checkEvent(DocumentEvent e) {
              messageLabel
                   .setText(validateText(textField.getText()) ? "KATAKANA"
                        : "other");
         frame.add(messageLabel, BorderLayout.PAGE_END);
         frame.add(textField, BorderLayout.CENTER);
         frame.pack();
         frame.setLocationRelativeTo(null);
         frame.setVisible(true);
    private boolean isKatakana(char c) {
         Character.UnicodeBlock unicodeBlock = Character.UnicodeBlock.of(c);
         System.out.println("unicodeBlock : " + unicodeBlock);
         boolean isKatakana = Character.UnicodeBlock.KATAKANA
              .equals(unicodeBlock);
         System.out.println(isKatakana);
         return isKatakana;
    private boolean validateText(String text) {
         char[] chars = text.toCharArray();
         for (char c : chars) {
         if (isKatakana(c)) {
              return true;
         return false;
    Thanks for your help...

    Hi Joerg22
    Thanks for your response.
    Can you please tell me ...is there any another ways to find the "input locale" value in java.
    There are 3 important locales in Windows: “Input Locale”, “User Locale” and “System Locale” and all 3 can be different.
    That is you can have System Locale = English, Input Locale = Chinese and User Locale = Japanese
    This might represent a Chinese user working in japan on an English PC.
    In this example i want to identify Input Locale means "Chinese "
    Thanks for your help.

  • Cannot get Local Connection, No available resource, Wait-time expired

    Hi Friends,
    Please answer my queries below.
    Thanks and Regards
    Busincess Requirement
    I have to display a particular set of rows in a dashboard or screen, and it is being refreshed every 1 minute, also user can update from that screen displayed values.
    The below program extracts some data from database and passes to the front end through a collection where it is being displayed.
    Code Logic Flow
    1. CockpitAction calls CockpitOraDAO for database results
    2. CockpitOraDAO is a singleton class.
    3. After getting the CockpitOraDAO object, the action will then call the getLabAreaCockpitDetails() method.
    getLabAreaCockpitDetails will
         - Get the Connetion from the OracleConnectionManager class (It is a plain class with getPooledConnection() and releaseConnection() methods).
         - Execute the query and put the result to a collection
         - close the connection
         - return result to the calling action.
    This getLabAreaCockpitDetails() are called around once in every 1 minute
    So, I believe everytime a call is made to action for cockpit display, it will take the existing object of the CockpitOraDAO class and make a call to database. i.e there will be only one object of CockpitOraDAO reside in application server at any particular interval of time.
    My Understandings
    1. Only 1 object of CockpitOraDAO will reside in application server (provided it is not user longer and garbage collected) at a particular instance.
    2. Many objects of Connection will be created and destroyed.(Each time the getLabAreaCockpitDetails() method is called, we will get one connection from connection pool and in finally the Connection will be released to connection pool).
    My Problems
    It is showing the "Cannot get Local Connection, No available resource, Wait-time expired"
    after running around 1 full day.
    My doubts
    1. Can anybody say why I get this error ?
    2. There may be some connections are not closed. But I have checked at finally block, the status of the connection is closed after calling this method.
    3. There may be some problem due to the singleton instane of CockpitOraDAO, Is it affecting performance ?
    4. Is it valid that I have to make CockpitOraDAO as Singleton ?
    public class CockpitOraDAO extends DAOAdaptor //implements BISample
         private static CockpitOraDAO instance=null;
         private static boolean debug = true;
         * The below method will be used to provide the singleton intance of the CockpitOraDAO object.
         public static CockpitOraDAO getInstance()
              if (instance == null)
                   synchronized (CockpitOraDAO.class)
                        if (instance == null)
                             instance = new CockpitOraDAO();
              return instance;
         * The below method will be used to get the cockpit details of the lab area.
         * This will return collecton of sample details for the specific lab.
         public Collection getLabAreaCockpitDetails(Collection prevCockpitDetailList,Collection filterCriteria) throws Exception
         if(debug)
              System.out.println("Inside CockpitOraDAO::getLabAreaCockpitDetails() method");
              Connection conn = null;
              boolean sampleExists = false;
              PreparedStatement pstmt=null;
              ResultSet rs=null;
              String returnStr=null;
              StringBuffer sqlQuery = null;
              String tempComment1=null, tempComment2=null;
              LabCockpitDO labc=null;
              LabCockpitDO labc2=null;
              Collection resultList=null, manCommentList=null, labCommentList=null, labCompCommentList=null;
              ArrayList result1List=null, prevCockpitDetail1List=null,filterList = null;
              OracleConnectionManager manager = null;
              boolean flag = false;
              try
                   labc2 = new LabCockpitDO();
                   prevCockpitDetail1List = (ArrayList) prevCockpitDetailList;
                   sqlQuery = new StringBuffer();
                   sqlQuery.append("select s.sample_sample_no sample_no, s.sample_inspection_lot_no inspection_lot_no,");
                   manager = new OracleConnectionManager();
                   conn = manager.getPooledConnection("myDS");
                   pstmt = conn.prepareStatement(sqlQuery.toString());
                   if(debug)
                   System.out.println("Query********"+sqlQuery.toString());
                   rs = pstmt.executeQuery();
              catch(Exception e)
                   //System.out.println(e);
                   throw e;
              finally
                        try
                             manager.releaseConnection("myDS");
    if(debug)
    System.out.println("Connection Status Closed=true/ Open=false=["+conn.isClosed()+"]");
    if(conn!=null || !conn.isClosed())
    conn.close();
    if(debug)
    System.out.println("Connection Status After Closing Connection Closed=true/ Open=false=["+conn.isClosed()+"]");
                             if(rs != null)
                                  rs.close();
                             if(pstmt != null)
                                  pstmt.close();
                             conn = null;
                             pstmt=null;
                             rs = null;
                             sqlQuery=null;
                             returnStr=null;
                             labc=null;
                             labc2=null;
                             manCommentList=null;
                             labCommentList=null;
                             labCompCommentList=null;
                             tempComment1=null;
                             tempComment2=null;
                             resultList=null;
                             prevCockpitDetailList=null;
                             prevCockpitDetail1List=null;
                        catch(Exception e)
                             //System.out.println("Unable to Release Connection ="+e);
                             throw e;
              //if(debug)     
              //System.out.println(resultList);
              return result1List;
         }

    Hi,
    As you can see from other posts, this is a very common problem. Until now the cause always ends up pointing to a connection not being close.
    I suggest you try to run through a full single cycle of you app, while using the CLI monitoting to check that the connections created/closed matches the expected created/closed connections. Also that the number of free connections at the end is correct.

  • How can i get local MAC address?

    How can i get local MAC address or desk ID?
    thanks a lot;

    How can i get local MAC addressUse the command line command ipconfig or ipconf (depending on o.s.)
    or desk ID?Look at the desk and see if it has a number on it.
    (Untested as my desk doesn't have an id)
    thanks a lot;Your welcome.

  • Get local sql server data in sharepoint online

    Hi
      Can anyone tell, how to  get local sql server data in SharePoint online.

    Hi Partha,
    Are you taking about local content db to SharePoint Online, if yes then there is not direct way to restore your local content db to online instead if you have small data then you can save your site as a template including content and the upload that template
    and create site on online using that template.
    Below mentioned link might also help:
    http://www.dos2web.com/Cloud/index.php/introducing-sharepoint-in-the-cloud/migrating-from-on-premises-to-sharepoint-online
    If want to display data from any SQL database into your online site, please follow the below link
    http://community.office365.com/en-us/f/148/t/178875.aspx
    https://nhutcmos.wordpress.com/tag/show-sql-data-to-sharepoint/
    Best Regards,
    Brij K

  • Get error 500 message trying to get online bank site. Can get local bank that is secure. Can access thru IE. What to do?

    I'm getting error 500 message sometime when trying to get Online bank site. (most times) Can get local bank site which is also secure site. I can access the online bank site using IE 8 on the same computer. How can I fix this?

    Which security software (firewall) do you have?
    Did you check the settings for Firefox ?

  • Get-localized-string usuage

    Hi,
    I am trying to get this function to work in my bpel process. When I do as follows, it works fine :
    orcl:get-localized-string('file:/d:/','','MyResourceBundle','','','','MY_KEY')
    But I don't want my resource bundles to be present at D:, or want to give an absolute path to them. I want them to be bundles with the bpel suitcase. I have placed them there and tried a few combinations like below.
    orcl:get-localized-string('','.','MyResourceBundle','','','','MY_KEY')
    orcl:get-localized-string('.','','MyResourceBundle','','','','MY_KEY')
    orcl:get-localized-string('./','','MyResourceBundle','','','','MY_KEY')
    orcl:get-localized-string('','./','MyResourceBundle','','','','MY_KEY')
    What would be the correct way to invoke this function. The error which I think is irrelative but I give it below anyways :
    <Faulthttp://schemas.xmlsoap.org/ws/2003/03/business-process/http://schemas.xmlsoap.org/soap/envelope/>
    <faultcode>null:selectionFailure</faultcode>
    <faultstring>business exception</faultstring>
    <faultactor>cx-fault-actor</faultactor>
    <detail>
    <summary>Leeres Ergebnis für Variable/Ausdruck. Der XPath-Ausdruck für Variable/Ausdruck "orcl:get-localized-string('','./','MyResourceBundle','','','','MY_KEY')" ist in Zeile 179 leer, wenn ein Lese- oder Kopiervorgang ausgeführt wird. Vergewissern Sie sich, dass das Ergebnis für Variable/Ausdruck "orcl:get-localized-string('','./','MyResourceBundle','','','','MY_KEY')" nicht leer ist. Mögliche Gründe für dieses Problem: Einige XML-Elemente/Attribute sind optional, oder die XML-Daten sind entsprechend dem XML-Schema ungültig. Zur Überprüfung, ob die von einem Prozess empfangenen XML-Daten gültig sind, kann der Benutzer den Schalter "validateXML" auf der Domänenadministrationsseite aktivieren. </summary>
    </detail>
    </Fault>
    Regards,
    Edited by: user638005 on May 19, 2009 12:04 PM

    This is a last post to this to summarize the results of my experimentation. This is what I found.
    What works
    ========
    1. get-localized-string() works fine for absolute paths provided both as url or resource location. But construct should be as follows :
    <from expression="orcl:get-localized-string('','file:/d:/','ResourceBundle','en','EN','','NO_OBJS')"/>
    <from expression="orcl:get-localized-string('file:/d:/','','ResourceBundle','en','EN','','NO_OBJS')"/>
    <from expression="orcl:get-localized-string('','file:/D:/ResourceBundle.zip','ResourceBundle','en','EN','','NO_OBJS')"/>
    <from expression="orcl:get-localized-string('file:/D:/ResourceBundle.zip','','ResourceBundle','en','EN','','NO_OBJS')"/>
    jars files donot work. Dont know why but thats how I found it to be. Also donot forget the "file:/" prefix. Things dont work without it, it seems.
    2. What also works is that you create a jar/zip file of your resource bundles and tell the Oracle App Server where to find it.
    2.1 This is done by editing your "server.xml" under your soa_home. Add a new entry for your jar/zip file under the shared-library name="oracle.bpel.common" section.
    2.2 After doing this and restarting the SOA suite, you just have to provide the name of the resource bundle i.e the 3rd param and everything works.
    2.3 There could be some performance impact here of which I have no idea (whereby the class loader searches all jar files in common location for the given resource bundle.)
    2.4 I personally used the second parameter to atleast provide the name of the jar file which has my resources. Don't know if that has any effect or not.
    2.5 Since the resources are looked up at run time and are not needed for bpel compilation by bpelc, there is no need of adding the resource bundle jar file to the bpelc classpath. E.g.
    <from expression="orcl:get-localized-string('','ResourceBundle.jar','ResourceBundle','en','EN','','NO_OBJS')"/>
    2.6 Here I found things work whether it is zip or jar file.
    3. Specifying a zip file from which a resource bundle should be taken out works when you provide the absolute path as follows: (same applies for url)
    What does not work
    =============
    1. the "." current directory construct does not seem to work. I.e you place the resource bundles in your bpel suitcase and think that the current directory will turn out to be the deploy location of the bpel suitcase. This assumption seems wrong.
    2. Both these forms donot work:
    <from expression="orcl:get-localized-string('','D:/ResourceBundle.zip','ResourceBundle','en','EN','','NO_OBJS')"/>
    <from expression="orcl:get-localized-string('','D:/ResourceBundle.jar','ResourceBundle','en','EN','','NO_OBJS')"/>
    Regards,

  • Duplicate threads of execution in WLS92 MP2

    I was advised to re-post my question to this forum:
              Hi,
              I am working on migrating our EAR application from WLs91 to WLS92 MP2 on Windows, and I found the following issues:
              1. when starting WLS, the following warning shows up:
              <Warning> <Server> <BEA-002611> <Hostname "mpopova.Burlington.Emptoris.com", maps to multiple IP addresses: 10.10.30.111, 127.0.0.1>
              2. once WLS starts, there are duplicate WLS threads of execution running – in the debugger you can see that there are almost twice as many threads running in WLS92 as in WLS91. In particular, there are two threads that load my InitializationServlet, which should be loaded only once (load-on-startup = 1), and as a result of this initialization of resources is done twice, in each thread.
              I’m not sure if #2 is the result of the #1 – but it seems likely.
              the same app was working fine in WLS9.1
              Any ideas why this is happening?
              Thanks,
              Marina Popova

    I would ask about 2) in the weblogic.developer.interest.servlet newsgroup.
    The error message detail for BEA-002611is found here.
    http://edocs.bea.com/wls/docs90/messages/Server.html
    <Marina Popova> wrote in message news:[email protected]..
    Hi,
    I continue working on migrating our EAR application from WLs91 to WLS92 MP2
    on Windows, and I found the following issues:
    1. when starting WLS, the following warning shows up:
    <Warning> <Server> <BEA-002611> <Hostname "mpopova.Burlington.Emptoris.com",
    maps to multiple IP addresses: 10.10.30.111, 127.0.0.1>
    2. once WLS starts, there are duplicate WLS threads of execution running -
    in the debugger you can see that there are almost twice as many threads
    running in WLS92 as in WLS91. In particular, there are two threads that load
    my InitializationServlet, which should be loaded only once (load-on-startup
    = 1), and as a result of this initialization of resources is done twice, in
    each thread.
    I'm not sure if #2 is the result of the #1 - but it seems likely.
    Any ideas why this is happening?
    Thanks,
    Marina Popova

Maybe you are looking for