string tokens

Hello, I have a string that looks something like "cmd_name cmd_arg" where the "cmd_name" is separated from the 'cmd_arg' by a space. Is there a quick way to TestStand to separate the command string while substrings chips and using the space character as a delimiter, similar to the function strtok in C++?

This is really a job for a code module in your programming language of choice such as LabVIEW, c#, C, or C++.

However, if you want to keep it all in TestStand, the step following statement will extract the cmd_arg in Locals.Token:

Locals.Expression = Engine.NewExpression (),

Locals.Expression.AsExpression.Text = "cmd_name cmd_arg."

Locals.Expression.AsExpression.Tokenize (0, 0),

Locals.Expression.AsExpression.GetToken (1, 0 / * unused * / 0, / * unused * / 0, / * used * /, Locals.Token)

you will need create Locals.Expression as a reference and Locals.Token as a string.

Tags: NI Software

Similar Questions

  • Is there any generator of string tokens that manages citations?

    I need a generator of string tokens that manages quotes in LabVIEW.

    Suppose there is a channel, abc bcc = "xxx yyy".

    After chips, 1 token of abc and 2 chips is bcc = "xxx yyy".

    The tokenizer must ignore the white characters in quotation marks.

    I use LabVIEW 2009 SP1.

    Someone at - it a tokenizer of VI?

    Hello

    There is a String Tokenizer VI in LabVIEW 2010

    You can try this.

    Concerning

    Gilles

  • Problem with scanning chips string token

    Hi, I use the string scanning for token read in a string of tokens that contain key "*" char in front of each string and ends when the token index = - 2. It works fine if I said * 12345 * 1234 and so forth, but if there is incorrect data, say 1234 the leaderless ' * ' in front, the return value token index is always-1 and it returns the data I read thinking that there the «*» Maybe I shouldn't use the string for the symbolic function since it is probably intended just for the chips to end and not data with tokens. Is there a way to make this work, or should I use another method to search for tokens in a string?

    Thank you.

    Here try this one.  He did the same thing and exposed uses functions.

    The string functions look for something mark the end of a string.  All languages that I know to do it.  So, as I said, delete the first element.  I recommend the subarray with the index value 1 function and length thread continues.

  • Research in the string token.

    Hello world

    I was wondering if there is any VI that makes the function of finds a particular substring in a string and a Boolean value (True / False) as output. If found, to give a real. Cannot be found, give a fake.

    Thank you! ~

    You will not receive directly a BOOLEAN output, but for those kinds of requirements, there are different functions available and each of these functions is called 'Delay of game' (or 'offset last game' in some functions).

    Now based on the requirement, you can select any one of the following:

    1. chain of research/Split: (easiest and fastest function)

    2. model of correspondence: (powerful and slower)

    3. regular expression matching: (most powerful and slower)

    Now, when you use any of these functions if this particular exit 'Delay of game' (or 'offset last game' in certain functions) gives '-1' (negative 1), this means that the substring (token) is not found in the main chain, so a simple check will give you, your desired features.»

  • Mulitpart post http to download images and string parameters

    It is the first time I use http multipart post to download files. I download the two parameters of string (token source) and a captured image of terminal BlackBerry. I tried the following code but it gives me error.

    I don't know if it's the right way to create the MULTIPART post request.

    StringBuffer buffer = new StringBuffer();
    String boundary = "--@#$--";
    byte[] image = byte[] from camera.getsnapshot;
    
    buffer.append(boundary+"\r\nContent-Disposition: form-data;name=\"token\"\r\n"+token+"\r\n");
    buffer.append(boundary+"\r\nContent-Disposition: form-data;name=\"source\"\r\n"+"Blackberry"+"\r\n");
    buffer.append(boundary+"\r\nContent-Disposition: form-data;name=\"file.jpg\";filename=\""+ filename+"\""+"\n" +     "Content-Type:image/jpeg"+"\n"+ "Content-Transfer-Encoding: binary" + boundary +"\r\n" +new String(image));
    buffer.append("\r\n" + boundary + "\r\n");
    
    String string = new String(buffer);
    
    byte[] post = string.getBytes();
    
    HttpConnection connection = (HttpConnection)Connector.open(url);
    
    connection.setRequestMethod(POS);
    
    connection.setRequestProperty(HttpProtocolConstants.HEADER_CONTENT_TYPE,
        HttpProtocolConstants.CONTENT_TYPE_MULTIPART_FORM_DATA+
        ";boundary="+boundary);
    
    connection.setRequestProperty(HttpProtocolConstants.HEADER_CONTENT_LENGTH,String.valueOf(post.length));
    connection.setRequestProperty("User-Agent", "Profile/MIDP_2.0 Configuration/CLDC-1.0");
    OutputStream postStream =connection.openOutputStream();
    postStream.write(post,0,post.length);
    postStream.close();
    

    If someone has done this before, your help would be very appreciated

    Finally worked,

    private final String boundary = "akfdskdjfkl";
    private final String lineend = "\r\n";
    private final String twoHyphens = "--";
    
    OutputStream pos = connection.openOutputStream();
    
    pos.write(twoHyphens.getBytes());
    pos.write(boundary.getBytes());
    pos.write(lineend.getBytes());
    
    pos.write("Content-Disposition: form-data;   name=\"authenticity_token\"".getBytes());
    pos.write(lineend.getBytes());
    pos.write(lineend.getBytes());
    pos.write(app.userAccount.getUser_auth_token().getBytes());
    pos.write(lineend.getBytes());
    
    pos.write(twoHyphens.getBytes());
    pos.write(boundary.getBytes());
    pos.write(lineend.getBytes());
    
    pos.write("Content-Disposition: form-data; name=\"source\"".getBytes());
    pos.write(lineend.getBytes());
    pos.write(lineend.getBytes());
    pos.write("blackberry".getBytes());
    pos.write(lineend.getBytes());
    
    pos.write(twoHyphens.getBytes());
    pos.write(boundary.getBytes());
    pos.write(lineend.getBytes());
    
    String filename = "blackberry" + filepath;
    pos.write("Content-Disposition: form-data; name=\"Filedata\"; filename=\"".getBytes());
    pos.write(filename.getBytes());
    pos.write("\"".getBytes());
    pos.write(lineend.getBytes());
    
    pos.write("Content-Type: image/jpeg".getBytes());
    pos.write(lineend.getBytes());
    pos.write(lineend.getBytes());
    
    pos.write(image, 0, image.length);
    
    pos.write(lineend.getBytes());
    
    pos.write(twoHyphens.getBytes());
    pos.write(boundary.getBytes());
    pos.write(twoHyphens.getBytes());
    pos.write(lineend.getBytes());
    

    Formatted string is vital, accurate use of hyphens, limit, and new line must be ensured.

  • connection problems with an authentication token.

    I have a test application that creates a House of Java. It generates the following authentication token.

    String roomName = "dynamically_created_room1";

    Contact collabAcctMngr = new AccountManager (CollaborationConstants.COLLABORATION_ACCT_URL);
    collabAcctMngr.login (CollaborationConstants.COLLABORATION_ACCT_ID, CollaborationConstants. COLLABORATION_ACCT_PASSWORD);
    collabAcctMngr.createRoom (roomName, true); / /: removes the room to the exit
    Session collabSession = collabAcctMngr.getSession (roomName);
    collabSession.secret = CollaborationConstants.COLLABORATION_ACCT_SHARED_SECRET;

    String token = collabSession.getAuthenticationToken (CollaborationConstants.COLLABORATION_ACCT_SHARED_SEC PENSION,
    ("jeff -" + "-phelps", "uid1", UserRoles.PUBLISHER);

    log.info ("token =" + token);

    The room is created fine.

    I then run my flex app CollaborationTest

    " < = xmlns:fx s:WindowedApplication ' http://ns.Adobe.com/MXML/2009 "
    xmlns:s = "library://ns.adobe.com/flex/spark".
                           xmlns:rtc=" http://ns.Adobe.com/RTC "
    xmlns:MX = "library://ns.adobe.com/flex/mx" >
    < fx:Declarations >
    <! - Place non-visual elements (e.g., services, items of value) here - >
    "< rtc:AdobeHSAuthenticator id ="auth"userName =" "password =" "protocol ="rtmfp"authenticationKey ="{AUTH_KEY}"/ >
    < rtc:RoomSettings id = "roomSettings" self-promotion = "true" guestsMustKnock = "false" / >
    < / fx:Declarations >

    < fx:Script >

    <! [CDATA]

    public const COLLABORATION_ACCT_URL:String = " " https://collaboration.adobelivecycle.com/endlessmind ";

    public const AUTH_KEY:String = 'exx = eDpqZWZmLS1waGVscHM6OmVuZGxlc3NtaW5kOnVpZDE6ZHluYW1pY2FsbHlfY3JlYXRlZF9yb29tMTo1MDo 0YTI4NmFjN2FkYzk4ZTI3YTZkNWYwMmVhYWE5ZTgwNzUwYjRiZjFl';

    private var testRoomURL:String = " " https://collaboration.adobelivecycle.com/endlessmind/dynamically_created_room1 ";

    protected function button1_clickHandler(event:MouseEvent):void {}
    cSession.roomURL = testRoomURL;
    cSession.login ();
    }

    []] >
    < / fx:Script >

    < mx:Panel title = "Test the ability to connect to a room with an authentication key" >
    < s:Button label = "PUSH THE LOGIN" click = "button1_clickHandler (event)" / >
    < rtc:ConnectSessionContainer authenticator = initialRoomSettings '{auth}"="{roomSettings}"id ="cSession' width = '100% '.
    Height = "100%" autoLogin = "false" >

    < / rtc:ConnectSessionContainer >
    < / mx:Panel >

    < / s:WindowedApplication >

    When I push the button to connect, I got the following exception

    requestInfo https://collaboration.adobelivecycle.com/endlessmind/dynamically_created_room1?Exx=eDpqZWZ mLS1waGVscHM6OmVuZGxlc3NtaW5kOnVpZDE6ZHluYW1pY2FsbHlfY3JlYXRlZF9yb29tMTo1MDo0YTI4NmFjN2FkY zk4ZTI3YTZkNWYwMmVhYWE5ZTgwNzUwYjRiZjFl & mode = x & xml = 0.6030149115249515
    11:51:46 GMT - 0600 #THROWING ERROR # bad authentication key
    Error: Invalid username or password: login again
    at com.adobe.rtc.authentication::AbstractAuthenticator/onLoginFailure() [/ users/arun/work/apo nnusa_theoden.corp.adobe.com_1666/depot/branches/connect/1104/cocomoPlayer10.1/src/com/ado be/rtc/authentication/AbstractAuthenticator.as:200]
    at com.adobe.rtc.authentication::AbstractAuthenticator/onAuthorizationFailure() [/ Users/arun/Work/aponnusa_theoden.corp.adobe.com_1666/depot/branches/connect/1104/cocomoPlayer10.1/src com/adobe/rtc/authentication/AbstractAuthenticator.as:215]
    at com.adobe.rtc.session.sessionClasses::MeetingInfoService/onComplete() [/ users/arun/work/ap onnusa_theoden.corp.adobe.com_1666/depot/branches/connect/1104/cocomoPlayer10.1/src/com/ad obe/rtc/session/sessionClasses/MeetingInfoService.as:331]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()

    Any help is greatly appreciated.

    Thank you.

    Jeff

    I watched the news and I see a lot of message about invalid tokens. The main reason is usually that the 'shared secret' you use is bad. If please, check the value for the secret shared in the DevPortal and make sure it is what you use in your application.

    Also, remember that the external authentication tokens are 'one shot': they are valid for the duration of a single session of the specified room, so if you start a room, stop it and start it again, you will have to generate new tokens.

  • BIS push registration for lack of client app

    Hi all

    I'm trying to implement the push BIS service in the client application.

    I got the Port number, appId, BPA URL & using that i'm trying to register using the code below

    public boolean registerBpas() {}

    Logger.info ("MyScreen.registerBpas ()");
    /**
    As the suffix of the connection is fixed I just use a Thread to call the code of connection
    *
    **/

    isValue Boolean = false;
           
    try {}
    Logger.info ("-step 1");
    String conparam = getConnParam();
    Logger.info ("---> conparam:" + conparam);
    final String registerUrl = formRegisterRequest (null, BPAS_URL, APP_ID), + conparam / * Conn.getConnectionParameters () * /;
    Logger.info ("\n\n\n msg registerBPAS URL is:" + registerUrl);
    HttpConnection httpConnection = (HttpConnection), Connector.open (registerUrl);
    InputStream is = httpConnection.openInputStream ();
    Response string = new String (IOUtilities.streamToBytes (is));
    Logger.info ("\n\n\n\n\n\n msg RESPOSE CODE:" + response);
    Close (httpConnection, is, null);
    String nextUrl = formRegisterRequest (BPAS_URL, APP_ID response) + conparam / * Conn.getConnectionParameters () * /;
    Logger.info ("\n\n\n\n\n\n msg nextUrl:" + nextUrl);
    HttpConnection nextHttpConnection = (HttpConnection), Connector.open (nextUrl);
    InputStream nextInputStream = nextHttpConnection.openInputStream ();
    response = new String (IOUtilities.streamToBytes (nextInputStream));
    Logger.info ("\n\n\n\n\n\n msg RESPOSE CODE 1:" + response);
    Close (nextHttpConnection, is, null);
    If (REGISTER_SUCCESSFUL.equals (response) |) {USER_ALREADY_SUBSCRIBED. Equals (Response))}
    Logger.info ("saved successfully to push BIS msg");
                            
    Returns true;
    } else {}
    Logger.info ("msg record BPA rejected");
    isValue = false;
    Returns false;
    }
    } catch (final IOException e) {}

    Logger.info ("IOException msg on register()" + e + "" + e.getMessage ());
    isValue = false;
    Returns false;
    }
                    
    Return isValue;
    }

    public static close Sub (conn connection, InputStream is, OutputStream os) {}
    If (OS! = null) {}
    try {}
    OS. Close();
    } catch (IOException e) {}
    }
    }
    If (is! = null) {}
    try {}
    is. Close();
    } catch (IOException e) {}
    }
    }
    If (conn! = null) {}
    try {}
    Conn.Close ();
    } catch (IOException e) {}
    }
    }
    }

    Public Shared Sub errorDialog (final String message)
    {
    UiApplication.getUiApplication () .invokeLater (new Runnable()
    {
    public void run()
    {
    Dialog.Alert (message);
    }
    });
    }

    private static String formRegisterRequest (String bpasUrl, String appId, string token) {}
    StringBuffer sb = new StringBuffer (bpasUrl);
    SB. Append("/MSS/PD_subReg?");
    SB. Append ("ServiceId ="). Append (appid);
    SB. Append("&OSVersion="). Append (DeviceInfo.getSoftwareVersion ());
    SB. Append("&Model="). Append (DeviceInfo.getDeviceName ());
    If (token! = null & token.length () > 0) {}
    SB. Append("&"). Append (Token);
    }
    Return sb.toString ();
    }
        
        
        
    public static String getConnParam() {}
    String connectionParameters = "";
    If (WLANInfo.getWLANState () == WLANInfo.WLAN_STATE_CONNECTED) {}
    Connected to a WiFi access point
    connectionParameters = «;» deviceside = true; interface = wifi. "
    } else {}
    int coverageStatus = CoverageInfo.getCoverageStatus ();
    ServiceRecord record = getWAP2ServiceRecord();
    If (record! = null)
    & (coverageStatus & CoverageInfo.COVERAGE_DIRECT) ==
    CoverageInfo.COVERAGE_DIRECT) {}
    Having network coverage and a book of WAP 2.0 service record
    connectionParameters = «;» deviceside = true; ConnectionUID ="
    + record.getUid ();
    } else if ((coverageStatus & CoverageInfo.COVERAGE_MDS) ==)
    CoverageInfo.COVERAGE_MDS) {}
    Have a book cover and SDM service network
    connectionParameters = «;» deviceside = false;
    } else if ((coverageStatus & CoverageInfo.COVERAGE_DIRECT) ==)
    CoverageInfo.COVERAGE_DIRECT) {}
    Have the network coverage, but no trace of service WAP 2.0 book
    connectionParameters = «;» deviceside = true;
    }

    }
    Return connectionParameters;
    }
    private static {ServiceRecord getWAP2ServiceRecord()
    Full book sb = ServiceBook.getSB ();
    Reviews [] ServiceRecord = sb.getRecords ();
    for (int i = 0; i)< records.length;="" i++)="">
    String cid = records [i] .getCid () .toLowerCase ();
    String uid = records [i] .getUid () .toLowerCase ();

    If (cid.indexOf ("wptcp")! = - 1 &)
    uid.indexOf ("wifi") ==-1 &.
    uid.indexOf ("mms") ==-1) {}
    Returns records [i];
    }
    }
    Returns a null value.
    }

    But I m getting the error below

    Timeout occurred while processing the operation.

    Check the log of the unit below

    INFO: File created successfully
    INFO: MyScreen.registerBpas)
    INFO:-step 1
    NEWS :---> conparam:; deviceside = true; ConnectionUID = WAP2 trans
    INFO:

    registerBPAS MSG URL is: http://pushapi.eval.blackberry.com/mss/PD_subReg?serviceid=2350-7la145e5r36mi1n42M6037M9600e95a1155&... trans
    INFO:

    MSG RESPOSE CODE:

    Timeout occurred while processing the operation.

    INFO:

    MSG nextUrl: http://pushapi.eval.blackberry.com/mss/PD_subReg?serviceid=2350-7la145e5r36mi1n42M6037M9600e95a1155&...

    Timeout occurred while processing the operation.

    ; deviceside = true; ConnectionUID = WAP2 trans
    INFO:

    MSG RESPOSE CODE 1:

    Has received a bad request formed.

    INFO: msg BPA rejected registration
    INFO:-isSub: false

    Hi Simon

    His work... Register register & to work...

    Thank you very much for your answer...

    In fact, in connection suffix, I used [deleted inappropriate content]

    There must be a hyphen (-) between mds & public, its not allow me to type this text because it's in this forum.

    And tested device in...

    This connection suffix is transposition BIS & now I am able to register and de-register my app to push.

    But still, I need to test the receiver push message part, once my server implementation is made.

    Once again thanks a lot...

    Thank you

    Lauriane


  • Several persistent object

    Hi guys,.

    I am a new blackberry applications developer.  I am working on an app I need to store

    First of all:

    username (String)

    password (String)

    user (String) token

    Then I need to store travel information based on the user's token. Travel information contains a lot of vectors

    such as:

    Names of travel (Vector)

    Locator (vectors) travel

    ....

    I am able to stor channels without any problem in store it and retrieve it without any problem. I have problems storing vectors. This is my persistent class:

    class StoreUserInfo implements Persistable
    {
    private vector _elements;
    public static final int UserEmail = 0;
    public static final int UserPass = 1;
    public static final int UserToken = 2;
     
        Private vector _Trip_Locators; is it good?

    public StoreUserInfo()
    {
    _elements = new Vector (3);
    for (int i = 0; i)< _elements.capacity();="">
    {
    _elements. AddElement (new String(""));
    }
            
             _Trip_Locators = new Vector();  ////
    }
        
    public String getElement (int id)
    {
    Return (String) _elements.elementAt (id);
    }
        
    ' Public Sub setElement (int id, String value)
    {
    _elements.setElementAt (value, id);
    }
        
        public Vector getTripLocator()
    {
    Vector temp = new Vector();
    for (int j = 0; j)< _trip_locators.capacity();="">
    {
    temp.addElement (_Trip_Locators.elementAt (j));
    }
    Return (Vector) temp;
    }
        
        
    public void setTripLocator (String addValue)
    {
    _Trip_Locators.addElement (AddValue);
    }

       
     
    }

    Here's how to store information:


    synchronized (storeUser)
    {
    If (storeUser.getContents () is nothing)
    {
    storeUser.setContents (new Vector());
    storeUser.commit ();
    }
               
    UserInfoData = new Vector();
    UserInfoData = storeUser.getContents ((vector));
                        
    StoreUserInfo info = new StoreUserInfo();
    info.setElement (StoreUserInfo.UserEmail, UName);
    info.setElement (StoreUserInfo.UserPass, PWord);
    info.setElement (StoreUserInfo.UserToken, UserReceivedToken);
                        
    UserInfoData.addElement (info);
    storeUser.setContents (UserInfoData);
    storeUser.commit ();

    }

    and here's how to get the information stored:

    Synchronized (storeUserSaved)
    {
    If (storeUserSaved.getContents () is nothing)
    {
    storeUserSaved.setContents (new Vector());
    storeUserSaved.commit ();
    }
             
    SavedData = new Vector();
    SavedData = storeUserSaved.getContents ((vector));
             
             
    If (!.) SavedData.isEmpty ())
    {
    Info StoreUserInfo = (StoreUserInfo) SavedData.lastElement ();
    Political = info.getElement (StoreUserInfo.UserEmail);
    pass = info.getElement (StoreUserInfo.UserPass);
    sentUserToken = info.getElement (StoreUserInfo.UserToken);

    These work very well. However, I want to know how to store several objects (Vector) as unique user name.

    Could someone help me with this? I browsed the forum and I found similar posts, but still I can not solve this problem.

    Thanks in advance guys.

    Shan

    You can store a vector in the store persistent as long as all classes stored in the vector to implement the persistable interface.

    Can you elaborate on the problem that you are experiencing?  Is an error or an exception thrown?  If so, what is it?

  • A JMS message is not a property of the unity of the order and a unit of work property


    I received this message on my side Client of JMS:

    weblogic.jms.common.JMSException : A JMS message is not a property of the unity of the order and a unit of ownership of the work

    I put only the unit of work properties in what follows.  Don't know why he complains that I put together.

    Joe

    ***************************************************

    message.setStringProperty ("JMS_BEA_UnitOfWork", rMes.getPid ());

    message.setIntProperty ("JMS_BEA_UnitOfWorkSequenceNumber", rMes.getSequence ());

    message.setBooleanProperty ("JMS_BEA_IsUnitOfWorkEnd", rMes.isEnd ());

    } catch (Exception e) {}

    System.out.println ("Unit of work" + e.getMessage ());

    }

    queueSender.send (message, DeliveryMode.PERSISTENT, 7, 0);

    I think I found the answer.  While I was watching Oracle Oracle guru Jeff West of Youtube video, he suddenly appeared to me that I missed the series WL classes JMS.

    Import weblogic.jms.extensions.WLConnection;

    Import weblogic.jms.extensions.WLDestination;

    Import weblogic.jms.extensions.WLQueueSession;

    Import weblogic.jms.extensions.WLMessageFactory;

    Import weblogic.jms.extensions.WLMessageProducer;

    Import weblogic.jms.extensions.WLQueueSession;

    This is the code that actually works!  I changed to PUA, however, based on the characteristics of our company. Now the Weird message of "properties have PUA both UOW" disappeared!

    Joe

    *****************

    package test.viant.edi.translator.messaging.processor.images.impl;

    import java.io.BufferedReader;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.util.ArrayDeque;
    import java.util.Hashtable;
    to import java.util.Iterator;

    Import javax.jms.DeliveryMode;
    Import javax.jms.JMSException;
    Import javax.jms.Queue;
    Import javax.jms.QueueConnection;
    Import javax.jms.QueueConnectionFactory;
    Import javax.jms.QueueSender;
    Import javax.jms.QueueSession;
    Import javax.jms.Session;
    to import javax.jms.TextMessage;
    to import javax.naming.Context;
    Import javax.naming.InitialContext;
    Import javax.naming.NamingException;

    Import weblogic.jms.extensions.WLConnection;
    Import weblogic.jms.extensions.WLDestination;
    Import weblogic.jms.extensions.WLQueueSession;
    Import weblogic.jms.extensions.WLMessageFactory;
    Import weblogic.jms.extensions.WLMessageProducer;
    Import weblogic.jms.extensions.WLQueueSession;

    public class UOOProducer {}
    private static string = "-1" current group
    private static int currentSeq = 1;

    Public Shared Sub main (String [] args) {}

    Dim queueName = "jms/MsgProcSvc/gisInboundQueue";
    String queueConnectionFactoryName = "jms/MsgProcSvc/jmsMsgProcConnectionFactory";
    Context jndiContext = null;
    Factory Factory = null;
    WLConnection queueConnection = null;
    WLQueueSession queueSession = null;
    Queue queue = null;
    WLMessageProducer queueSender = null;
    TextMessage message = null;
     
    / * Set the environment for a connection to the OC4J instance * /.
    Hashtable env = new Hashtable();
    env.put (Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    env.put ("java.naming.rmi.security.manager", "Yes");
    env.put (Context.PROVIDER_URL, "t3: / / localhost:5557, localhost:5558" "");
    /*
    The value of the context object. * Search for the queue connection factory. *
    * Search for the JMS Destination.
    */
    try {}
    jndiContext = new InitialContext (env);
    Factory = jndiContext (Factory)
    . Lookup (queueConnectionFactoryName);
    queue = jndiContext.lookup (queueName) (tail);
    } catch (NamingException e) {}
    System.out.println ("JNDI lookup failed:" + try ());
    System.Exit (1);
    }
    /*
    To create the connection. * Create connection session. * Create
    * sender. To create text message. To send messages. Send some out of text
    the message at the end of the text messages. * Close the connection.
    */

    try {}
    queueConnection (WLConnection) = queueConnectionFactory.createQueueConnection ();
    queueSession (WLQueueSession) = queueConnection.createQueueSession (false,
    Session.AUTO_ACKNOWLEDGE);
    queueSender (WLMessageProducer) = queueSession.createSender (tail);
    message = queueSession.createTextMessage ();
      
      
    try {}
    Open the file
    FileInputStream fstream = new FileInputStream("U:\\114157\\testFile1.txt");
    BufferedReader br is new BufferedReader (new InputStreamReader (fstream));.

    String strLine;
    ArrayDeque messageDeque = null;
       
    Read the file line by line
    While ((strLine = br.readLine ())! = null) {}
    Print content on the console
    System.out.println (strLine);
    String pidOfLine = getpid(2) (strLine);
    EDIMessage em = new EDIMessage();
        
    If (! pidOfLine.Equals (currentGroup)) //If this is a new group or the beginning of the message
    {
         
    If (messageDeque! = null &! messageDeque.isEmpty ()) {}
    EM = (EDIMessage) messageDeque.removeLast ();
    em.setEnd (true);
    messageDeque.addLast (em);
          
    EDIMessage AFFECTS = null;
    The message group is now ready.
    for (Iterator itr = messageDeque.iterator (); itr.hasNext ();)  {
    AFFECTS = (EDIMessage) itr.next ();
    try {}
    message.setText (em.getMessage ());
    message.setStringProperty ("JMS_BEA_UnitOfOrder", rMes.getPid ());
    * message. SetStringProperty ("JMS_BEA_UnitOfWork", rMes.getPid ());
    message.setIntProperty ("JMS_BEA_UnitOfWorkSequenceNumber", rMes.getSequence ());
    message.setBooleanProperty ("JMS_BEA_IsUnitOfWorkEnd", rMes.isEnd ());
    String of PUA = message.getStringProperty ("JMS_BEA_UnitOfOrder");
    String uow = message.getStringProperty ("JMS_BEA_UnitOfWork");
    System.out.println ("PUA:" + PUA);
    System.out.println ("uow:" + uow) ;*/
            
    } catch (Exception e) {}
    System.out.println ("Unit of work" + e.getMessage ());
    }
    System.out.println ("before sending the message:" + AFFECTS + "\n");
    queueSender.send (message);
            
    }

    }
    current group = pidOfLine;
    currentSeq = 1;
    messageDeque = new ArrayDeque();
         
         
    }
        
    What is the new nest or not, fill these values
    em.setPid (pidOfLine);
    em.setSequence (currentSeq);
    em.setEnd (false);
    em.setMessage (strLine);
    messageDeque.addLast (em);
        
           
        
    }

    Close the input stream
    Br. Close();
    } catch (IOException ioe) {}
    System.out.println (ioe.getMessage ());
    }
      
      
    } catch (Throwable e) {}
    e.printStackTrace ();
    System.out.println ("Exception occurred:" + e.getMessage ());
    } {Finally
    If (queueConnection! = null) {}
    try {}
    queueConnection.close ();
    } catch (JMSException e) {}
    System.out.println ("error in closing:" + try ());
    }
    }
    }
    }

    private static String getpid(2) (String sampleString) {}
    int start = nthIndexOf (sampleString, "|", 4);
     
    System.out.println ("start =" + start);
    int end = nthIndexOf (sampleString, "|", 5);
    System.out.println ("end =" + end);
    Return sampleString.substring (start + 1, end);
    }

    public static int nthIndexOf (final String string, final string token
    final int index) {}
    int j = 0;

    for (int i = 0; i)< index;="" i++)="">
    j = string.indexOf (token, j + 1);
    If (j == - 1).
    break;
    }

    return j;
    }

    }

  • Access to the VCO rest api vsphere Client Web plugin

    Hello

    I want access to vco rest api vsphere Web Client plugin. I know I can find key holder in UserSession object but I failed generate the Authorization (especially the signature part) header. I'm trying to generate the authorization as described in the message header . But still get the signature verification failed. I can't use java sdk to rest because the user credentials not available for the plugin.

    Could someone help?

    Hello

    Here are a few snippets of the existing plugin that communicates with the vCO using the REST API.

    Please let me know if that is enough or you need something more.

    import java.security.PrivateKey;
    import com.vmware.vim.sso.http.AuthCalculator;
    import com.vmware.vim.sso.http.AuthCalculatorFactory;
    import com.vmware.vim.sso.http.SignatureAlgorithm;
    import com.vmware.vise.vim.security.sso.SsoService;
    
    httpRequest.addHeader("Accept-Language", locale.toString().replace('_', '-'));  // Not sure if this is related
    
    PrivateKey keyPair = ssoService.getHokPrivateKey();  // You should have this already
    SamlToken samlToken = ... // You should have this already
    String currentToken = samlToken.toXml();
    
    String[] token = null;
    if (keyPair != null && currentToken != null) {
       AuthCalculator calc = AuthCalculatorFactory.instance(SignatureAlgorithm.RSA_SHA256);
       token = calc.computeToken(request, keyPair, currentToken);
    }
    
    if (token != null) {
       for (int i = 0; i < token.length; i++) {
          httpRequest.addHeader("Authorization", token[i]);
       }
    }
    

    Try it and let me know if you have any questions.

  • Web site: error Client with Web Services


    Howdy.  I try to use web services ServiceContent and PropertyCollector objects into my vSphere client Web application.  I borrowed code example in the SimpleClient and PropertyCollector examples for my application.

    I put the parameters hardcoded for the server URL, username and password get the ServiceContent object.  However, when I call retrieveServiceContent() (see below), I get error 'Invalid Cookie', although vimPort returns a serviceContent non-zero.

    serviceContent = vimPort.retrieveServiceContent (SVC_INST_REF);

    Later I try to use this object as well as PropertyCollector serviceContent to try to retrieve a reference to host by host name, but the call to _vimPort.retrievePropertiesEx () fails with the error "Connection Refused", perhaps because of the invalid cookie.

    Any ideas?

    -Eric

    more details code below:

    private ServiceContent getServiceContent()

    {

    /*

    • borrowed from the example of SimpleClient

    */

    Server URL and credential information.

    String serverName = "10.128.111.222"; args [0];

    String userName = 'myuser '; args [1];

    String password = "MonMotpasse"; args [2];

    String url = " " https:// "+ serverName +" / sdk/vimService ";  

    VR;

    {

    ManagedObjectReference SVC_INST_REF = new ManagedObjectReference();

    VimService vimService = null;

    VimPortType vimPort = null;

    ServiceContent serviceContent;

    HostnameVerifier hv = new HostnameVerifier() {}

    public boolean verify (String urlHostName, SSLSession session) {}

    Returns true;

    }

    };

    trustAll();

    HttpsURLConnection.setDefaultHostnameVerifier (hv);


    SVC_INST_REF. SetType ("ServiceInstance");
    SVC_INST_REF. SetValue ("ServiceInstance");

    vimService = new VimService();
    vimPort = vimService.getVimPort ();
    Map < String, Object > fixed = (vimPort) .getRequestContext ((BindingProvider));

    CTXT.put (BindingProvider.ENDPOINT_ADDRESS_PROPERTY, url);
    CTXT.put (BindingProvider.SESSION_MAINTAIN_PROPERTY, true);

    ERROR Invalid Cookie here
    serviceContent = vimPort.retrieveServiceContent (SVC_INST_REF);

    vimPort.login (serviceContent.getSessionManager (), user name, password, null);

    Return serviceContent;
    }
    catch (Exception ex)
    {
    ex.printStackTrace ();
    Returns a null value.
    }
    }

    public static (retrievePropertiesAllObjects) list < ObjectContent >
    List < PropertyFilterSpec > listpfs, ServiceContent service)
    throws RuntimeFaultFaultMsg, {InvalidPropertyFaultMsg}

    RetrieveOptions propObjectRetrieveOpts = new RetrieveOptions();

    List < ObjectContent > listobjcontent = new ArrayList < ObjectContent > ();

    ManagedObjectReference propCollectorRef = service.getPropertyCollector ();

    Rslts RetrieveResult = _vimPort.retrievePropertiesEx (propCollectorRef,
    (listpfs, propObjectRetrieveOpts);
    If (rslts! = null & & rslts.getObjects ()! = null)
    & &! rslts.getObjects () .isEmpty ()) {}
    listobjcontent.addAll (rslts.getObjects ());
    }
    String token = null;
    If (rslts! = null & & rslts.getToken ()! = null) {}
    Token = rslts.getToken ();
    }
    While (token! = null & &! token.isEmpty ()) {}
    ERROR connection refused here
    rslts = _vimPort.continueRetrievePropertiesEx (propCollectorRef,
    token);
    Token = null;
    If (rslts! = null) {}
    Token = rslts.getToken ();
    If (rslts.getObjects ()! = null & &! rslts.getObjects () .isEmpty ()) {}
    listobjcontent.addAll (rslts.getObjects ());
    }
    }
    }

    _logger.info ("ManagedObjectService::retrievePropertiesAllObjects, listobjcontent return");
    Return listobjcontent;
    }

    Here is the solution to the problem that other people can have:

    -You call an action on a custom object and want to access the vSphere API of the java code for this action.

    -If you only pass a custom object reference it not will give you access to the vCenter serverGuid the way, which would be a reference of vSphere object (see samples/vsphere-wssdk-service/src/main/java/com/vmware/samples/vspherewssdk/VmDataProviderImpl.java ) because the serverGuid of the object has nothing to do with vCenter.

    -The solution is to use the objects global UserSession which contains the list of the ServerInfos with the IDS of connected vCenter.

    -However, you still need to provide a way to choose the vCenter just in case there is more than one (in the user interface, or may be by other means)

  • Field validation text for the time format

    Hi all

    I have been breaking my head for almost 2 weeks, but am not able to figure it out... Please help me solve the riddle... here, it will:

    In a text field, I want to perform an operation in the following way:

    > a text default to 00:00:00 is defined at the moment as the text field is for the moment and the length in characters of the field is 8.

    > if the cursor is in position 0 (zero) and if I press a number of key it should replace the value of the 0 position and move the cursor to the next position.

    for example: 00:00:00

    20:00

    explanation : now the cursor is in position 0 and I press the 2 key it should replace the value 0 in position 0 and den move the cursor on the position 1 ie. next position...

    When I press a button not digital it shouldn't replace the value, but the slider should move to the next position.

    This seems to work ok. You need to test more, however. I've added a few properties for the hours, minutes and seconds as well.

    import java.util.regex.Pattern;
    
    import javafx.application.Application;
    import javafx.beans.binding.Bindings;
    import javafx.beans.binding.IntegerBinding;
    import javafx.beans.property.ReadOnlyIntegerProperty;
    import javafx.beans.property.ReadOnlyIntegerWrapper;
    import javafx.geometry.Insets;
    import javafx.scene.Scene;
    import javafx.scene.control.IndexRange;
    import javafx.scene.control.Label;
    import javafx.scene.control.TextField;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    
    public class TimeTextFieldTest extends Application {
    
     @Override
      public void start(Stage primaryStage) {
      VBox root = new VBox(5);
      root.setPadding(new Insets(5));
      Label hrLabel = new Label();
      Label minLabel = new Label();
      Label secLabel = new Label();
      TimeTextField timeTextField = new TimeTextField();
      hrLabel.textProperty().bind(Bindings.format("Hours: %d", timeTextField.hoursProperty()));
      minLabel.textProperty().bind(Bindings.format("Minutes: %d", timeTextField.minutesProperty()));
      secLabel.textProperty().bind(Bindings.format("Seconds: %d", timeTextField.secondsProperty()));
    
      root.getChildren().addAll(timeTextField, hrLabel, minLabel, secLabel);
      Scene scene = new Scene(root);
      primaryStage.setScene(scene);
      primaryStage.show();
      }
    
      public static void main(String[] args) {
      launch(args);
    
      }
    
      public static class TimeTextField extends TextField {
    
        enum Unit {HOURS, MINUTES, SECONDS};
    
        private final Pattern timePattern ;
        private final ReadOnlyIntegerWrapper hours ;
        private final ReadOnlyIntegerWrapper minutes ;
        private final ReadOnlyIntegerWrapper seconds ;
    
        public TimeTextField() {
          this("00:00:00");
        }
        public TimeTextField(String time) {
          super(time);
          timePattern = Pattern.compile("\\d\\d:\\d\\d:\\d\\d");
          if (! validate(time)) {
            throw new IllegalArgumentException("Invalid time: "+time);
          }
          hours = new ReadOnlyIntegerWrapper(this, "hours");
          minutes = new ReadOnlyIntegerWrapper(this, "minutes");
          seconds = new ReadOnlyIntegerWrapper(this, "seconds");
          hours.bind(new TimeTextField.TimeUnitBinding(Unit.HOURS));
          minutes.bind(new TimeTextField.TimeUnitBinding(Unit.MINUTES));
          seconds.bind(new TimeTextField.TimeUnitBinding(Unit.SECONDS));
        }
    
        public ReadOnlyIntegerProperty hoursProperty() {
          return hours.getReadOnlyProperty();
        }
    
        public int getHours() {
          return hours.get() ;
        }
    
        public ReadOnlyIntegerProperty minutesProperty() {
          return minutes.getReadOnlyProperty();
        }
    
        public int getMinutes() {
          return minutes.get();
        }
    
        public ReadOnlyIntegerProperty secondsProperty() {
          return seconds.getReadOnlyProperty();
        }
    
        public int getSeconds() {
          return seconds.get();
        }
    
        @Override
        public void appendText(String text) {
          // Ignore this. Our text is always 8 characters long, we cannot append anything
        }
    
        @Override
        public boolean deleteNextChar() {
    
          boolean success = false ;
    
          // If there's a selection, delete it:
          final IndexRange selection = getSelection();
          if (selection.getLength()>0) {
            int selectionEnd = selection.getEnd();
            this.deleteText(selection);
            this.positionCaret(selectionEnd);
            success = true ;
          } else {
            // If the caret preceeds a digit, replace that digit with a zero and move the caret forward. Else just move the caret forward.
          int caret = this.getCaretPosition();
          if (caret % 3 != 2) { // not preceeding a colon
            String currentText = this.getText();
            setText(currentText.substring(0, caret) + "0" + currentText.substring(caret+1));
            success = true ;
          }
          this.positionCaret(Math.min(caret+1, this.getText().length()));
          }
          return success ;
        }
    
        @Override
        public boolean deletePreviousChar() {
    
          boolean success = false ;
    
          // If there's a selection, delete it:
          final IndexRange selection = getSelection();
          if (selection.getLength()>0) {
            int selectionStart = selection.getStart();
            this.deleteText(selection);
            this.positionCaret(selectionStart);
            success = true ;
          } else {
          // If the caret is after a digit, replace that digit with a zero and move the caret backward. Else just move the caret back.
            int caret = this.getCaretPosition();
            if (caret % 3 != 0) { // not following a colon
              String currentText = this.getText();
              setText(currentText.substring(0, caret-1) + "0" + currentText.substring(caret));
              success = true ;
            }
            this.positionCaret(Math.max(caret-1, 0));
          }
          return success ;
        }
    
        @Override
        public void deleteText(IndexRange range) {
          this.deleteText(range.getStart(), range.getEnd());
        }
    
        @Override
        public void deleteText(int begin, int end) {
          // Replace all digits in the given range with zero:
          StringBuilder builder = new StringBuilder(this.getText());
          for (int c = begin; c 23) {
              return false ;
            }
            if (mins < 0 || mins > 59) {
              return false ;
            }
            if (secs < 0 || secs > 59) {
              return false ;
            }
            return true ;
          } catch (NumberFormatException nfe) {
            // regex matching should assure we never reach this catch block
            assert false ;
            return false ;
          }
        }
    
        private final class TimeUnitBinding extends IntegerBinding {
    
          final Unit unit ;
          TimeUnitBinding(Unit unit) {
            this.bind(textProperty());
            this.unit = unit ;
          }
          @Override
          protected int computeValue() {
            // Crazy enum magic
            String token = getText().split(":")[unit.ordinal()];
            return Integer.parseInt(token);
          }
    
        }
    
      }
    }
    
  • split multiple files from a single file in files(xml's) individual

    Hello
    I have a file (.txt) of newspaper which has all the inputs and output xmls as well as a few other details of the server log, I want to use it as an entry, and then to hold the input files required, say 50 xmls in the input message unique and 50 xmls of output messages that is unique to root element is the element root ignoring the unnecessary data.

    as:
    input and output xml will have the standard root as < input > elements < / input > and < output > < / output >.

    Thank you.

    Published by: user12679330 on May 15, 2013 22:52

    Published by: user12679330 on May 15, 2013 22:53

    Published by: user12679330 on May 15, 2013 22:53

    import java.io.BufferedInputStream;
    import java.io.BufferedReader;
    import java.io.BufferedWriter;
    import java.io.File;
    import java.io.FileInputStream;
    to import java.io.FileNotFoundException;
    to import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.OutputStreamWriter;

    import java.util.StringTokenizer;

    public class ExtractXmls {}

    Public Shared Sub main (String [] args) throws FileNotFoundException,
    IOException {}

    ("String data = readFile("C:/MyFolder/DataFile.log ");
    String startData ="<>

    StringTokenizer stk = new StringTokenizer (data, startData);
    int count = 0;
    While (stk.hasMoreTokens ()) {}
    String token = stk.nextToken ();
    Count ++;
    }
    System.out.println (Count);
    EndData string = "";
    int start = data.indexOf (startData);
    int end = data.indexOf (endData);
    end = end + 5;
    int i = 1;
    While (i< 5000)="">
    String fileData = data.substring (start, end);
    System.out.println (BancsData);
    data = data.substring (end);
    Start = data.indexOf (startData);
    end = data.indexOf (endData);
    end = end + 5;
    createFile (fileData, i);
    i ++ ;
                     
    }

    }

    private public static void createFile (String, int count data) {}
    FileOutputStream fos;
    try {}
    FOS = new FileOutputStream ("C:/target/output/file" + count + ".xml");
    BufferedWriter BW = new BufferedWriter (new OutputStreamWriter (fos));
    BW. Write (Data);
    bw.newLine ();
    BW. Flush();
    Count ++;
    } catch (Exception e) {}
    Generative TODO catch block
    e.printStackTrace ();
    }

    }
         
    private static String readFile (String path) {}
    StringBuilder sb = new StringBuilder();
    try {}
    = New File (path);
    FileInputStream fis = new FileInputStream (file);
    Bis buffer = new BufferedInputStreamfis();
    int = 0;
    char inChar.
    {}
    in = bis.read ();
    inChar = (char);
    If (in! = - 1) {}
    SB. Append (inChar);
    }
    } While ((dans! =-1));
    bis. Close();
    } catch (FileNotFoundException exception) e {}
    e.printStackTrace ();
    } catch (IOException ioe) {}
    ioe.printStackTrace ();
    }
    Return sb.toString ();

    }

    }

  • Double games of results returned on stored procedure call

    Hello

    I have a stored procedure created Java and called using the Spring JDBC using StoredProcedure class, stored procedure returns duplicate rows, is this a known problem?

    When I run the stored procedure even in DBVizualiser it not show correctly.

    The class below is used to execute the stored procedure:

    public class CustomerSearchProcedureRunner extends StoredProcedure {
     public CustomerSearchProcedureRunner(JdbcTemplate jdbcTemplate) {
      super();
      this.setJdbcTemplate(jdbcTemplate);
      this.declareParameter(new SqlReturnResultSet(RETURN_RESULTS, new CustomerRowMapper()));
      this.declareParameter(new SqlParameter(CUST_SP_IN_PARAM, Types.VARCHAR));
      this.setSql("{CALL INSURANCE.SEARCHCUSTOMER (?) ON ALL}");
      this.setSqlReadyForUse(true);
      this.compile();
     }
    }
    


    and Java Stored Procedure that runs SQLFire is given below:

    public class CustomerSearchProcedure {
     
     private static final String DOLLAR = "\\$";
     private static final String COLON = ":";
     private static final String CUST_NAME = "CUST_NAME";
     private static final String CUST_NO = "CUST_NO";
     private static final String GENDER = "GENDER";
     
     
     public static void searchCustomer (String customers, ResultSet[] outResults,
       ProcedureExecutionContext context) throws SQLException {
      StringBuilder sql = new StringBuilder();
      StringBuilder whereCondt = new StringBuilder();
      String[] tokens = new String[]{};
      
      if (customers != null && customers.trim().length() > 0) {
       tokens = customers.split(DOLLAR);
      }
      
      sql.append("<global>SELECT * FROM INSURANCE.CUSTOMERS ");
      whereCondt.append("WHERE CUST_PRIMARY IN ('Y', 'N') ");
      // Apply dynamic where condt
      for (int i=0; i < tokens.length; i++ ) {
       String token = tokens[i];
       if (token.startsWith(CUST_NO)) {
        if (whereCondt.length() > 0) {
         whereCondt.append(" AND ");
        }
        whereCondt.append("CUST_NO = " + token.substring(token.indexOf(COLON)+1));
       }
       if (token.startsWith(CUST_NAME))  {
        if (whereCondt.length() > 0) {
         whereCondt.append(" AND ");
        }
        whereCondt.append("CUST_NAME LIKE '"+ token.substring(token.indexOf(COLON)+1).trim() + "%'");
       }
       if (token.startsWith(GENDER)) {
        if (whereCondt.length() > 0) {
         whereCondt.append(" AND ");
        }
        whereCondt.append("GENDER ='"+ token.substring(token.indexOf(COLON)+1).trim() + "'");
       }
      } //End of for
      
      if (whereCondt.length() > 0) {
       sql.append(whereCondt.toString());
      }
      
      Connection cxn = context.getConnection();
      Statement stmt = cxn.createStatement();
      ResultSet rs = stmt.executeQuery(sql.toString());
      outResults[0] = rs;
     } //END OF METHOD
    }
    

    A correction preceding: "for the case on the information in the TABLE of the DataSet to be targeted on each node is also sent for the tag requests will target only this dataset (and avoids duplicates).»

    should read "in the case of on TABLE query Tags will only target the local primary data on the node for tables partitioned, while for replicated tables, it is sent to only one of the lines (and so avoids duplicates in both cases).» WHERE clause to TABLE is not used for cutting data only for the size of the set of nodes to the target.

    The tag prunes yet the query to all of the local primary buckets in all cases (i.e. which WE ALL and on GROUPS of SERVERS) so the comment about and equivalent was incorrect. However, this will always be looking for data in duplicate for replicated tables and TABLE is the only way to avoid it for now.

  • Please help, sensitive to both... Class path

    I'm trying to put in place the apple on my new server push notification CF. I have a set of files that I use for this to work. However, I can't Coldfusion to 'pick up' and use the classes. I tried six hours to add a path to the class. My code to use the class looks like this: com.notnoop.apns. My mistake is that he can't find the classpath. I tried to put the com folder in the (cf installation directory) / lib and tried to manually add the class path but no luck. Help please.

    <! - alert user - >

    < name cffunction = "alertUser" access = "remote" returntype = "string" output = "no" >

    < name cfargument = "send_token" type = "string" required = "yes" >

    < cfset returnString = "Notification sent" >

    < cfset APNS = createObject ("java", "com.notnoop.apns.APNS") >

    < cfset APNSService = createObject ("java", "com.notnoop.apns.APNS"). newService()

    .withCert ("/ secretLink", "*")

    . withSandboxDestination()

    . Build() / >

    < cfset payload = createObject ("java", "com.notnoop.apns.APNS"). newPayload()

    badge (1)

    .alertBody ("Alert")

    .actionKey ("View")

    . Sound ("PushNotification.CAF")

    . Build() / >

    < cfset token = "#send_token #" >

    < cfset APNSNotification = createObject ("java", "com.notnoop.apns.SimpleApnsNotification") .init (javacast ("string", token), javacast ("string", payload)) / >

    < cfset APNSService.push (APNSNotification) >

    < cfreturn returnString >

    < / cffunction >

    <!-->-->

    <!-->-->

    <!-->-->

    After just re-read your question, I think that I thought about it. This sentence:

    "I tried to put the com folder in the (cf installation directory) / lib and tried to manually add the class path but no luck." Help please. »

    Tells me that you downloaded the source code, but it did not compile.

    Java isn't like ColdFusion. You can just put the source code in a directory and wait for it to run. You * must * compiling everything first.

    The link I've included in the other post has a precompiled version of the library with the necessary dependencies. Put * that * in your CF to dir and restart/lib.  Delete this folder com so that this does not cause problems while you're there.

Maybe you are looking for

  • Is it possible to extract product recovery disk Norton?

    My installed copy of Norton has crapped out, otherwise the machine is OK. Symantec procs ask the original program uninstalled and reinstalled from 'download' or bought the CD. Otherwise, I have to pay for another download. I would like to be able to

  • No on Satellite R830-182 TOSHIBA recovery media creator

    I just bought a R830-182, whenever I start it, "TOSHIBA Recovery Reminder" appears to tell me to run "TOSHIBA Recovery Media Creator", however, no similar application does seem to exist anywhere on the machine. Any ideas where I can find it? Thank yo

  • Autonomy of the E260 v1

    A new Member here. I bought I bought an e260 several years ago and almost never used. He had been sitting in stock for at least 6 years and maybe more. I came across it yesterday while searching for something else and decided to see if it still worke

  • How can I activate my Audio for my desktop PC output device?

    My volume control has an 'x' on red and displays an error message: "no Audio output device is installed" y at - it a link to download the device on my computer?

  • How to display progress defrag on Vista 32-bit

    When you run defrag, how can I see his process (I have 32 bit OS Visa)?