String to words

Hello,
To split this string "SMITH","ALLEN","WARD","JONES" into a list of names :
SMITH
ALLEN
WARD
JONES
I use this query.
select regexp_substr('"SMITH","ALLEN","WARD","JONES"','[^","]+', 1, level) from dual
connect by regexp_substr('"SMITH","ALLEN","WARD","JONES"', '[^","]+', 1, level) is not null;
But If I introduced either a , ou " in a name like for this string : "SMI"TH","ALL,EN","WARD","JONES"
I would like to get :
SMI"TH
ALL,EN
WARD
JONES
But id does not work.
select regexp_substr('"SMI"TH","ALL,EN","WARD","JONES"','[^","]+', 1, level) from dual
connect by regexp_substr('"SMI"TH","ALL,EN","WARD","JONES"', '[^","]+', 1, level) is not null;
Can you help.

Hi,
It works for me :[11.2] Scott @ My11g > ed
Wrote file afiedt.buf
  1  with t(str) as (
  2  select '"SMI"TH","ALL,EN","WARD","JONES"' from dual
  3  )
  4  select regexp_substr(str,'[^","]+', 1, level) from t
  5* connect by regexp_substr(str, '[^","]+', 1, level) is not null
[11.2] Scott @ My11g > /
REGEXP_SUBSTR(STR,'[^","]+',1,LEVEL)
SMI
TH
ALL
EN
WARD
JONES
6 rows selected.
{code}
Did you change the string in both places ?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • [AS] Find a string of words in text

    Hello - hopefully someone can help as I'm now stuck on this. I want to be able to find a specific string of words within a text frame, though I want to be able to do this without using the Find Text Preferences approach.
    I can get it to work if i am just finding one word, but if there is more than one word it doesn't work.
    For example this works (given a text frame with text in that contains the word Example):
    tell application "Adobe Indesign CS5"
    tell active document
    set mybox to selected
      tell mybox
       set myfind to object reference of every word whose contents = "Example"
      end tell
    end tell
    end tell
    However the same does not work (searching for "The Example", which is two words)
    tell application "Adobe Indesign CS5"
    tell active document
    set mybox to selected
      tell mybox
       set myfind to object reference of every word whose contents = "The Example"
      end tell
    end tell
    end tell
    What i can't figure out is the correct phrasing for finding a string of words, i guess i should not be looking for the object reference of WORD, but nothing else i've tried seems to work. Many thanks for any help

    I think what John has said is correct… I only had a quick look in the dictionary terms. Without find/change the closest you may get is line or paragraph after that you would need to manipulate the line/para contents further… Word by definition I would think can't contain space but is encapsulated in space bar first/last…
    tell application "Adobe InDesign CS5"
    tell active document
    tell story 1
    set myfind to object reference of every word whose contents = "Example"
    end tell
    show text first item of myfind
    end tell
    end tell
    This would show the line you can then break down further…
    tell application "Adobe InDesign CS5"
    tell active document
    tell story 1
    set myfind to object reference of every line whose contents contains "For Example"
    end tell
    show text first item of myfind
    end tell
    end tell

  • How to continously read for a string or word in a file?

    Hi
    I have been trying for a while now to search for a word that is being written to a file.
    I was wondering if anyone can get me over this hump?
    What I am doing is reading from the serial port to a file (example file called test), and while this is being done I want to search for the word "passed" or the phrase "test passed"
    Once I fine this word or phrase, I can stop the test
    I cannot figure out how to search the file, I used the scan file VI and the search/ replace VI etc with no luck!
    Your suggestions is appreciated

    It's always best to post your code so others can see the work you've done.  Suggestions will be more effective that way.
    So your reading from a serial port to a file?  What do you mean by this?  Are you reading from the serial port and writing the data to a file?  It's the file you want to read, isn't it?  If I had your code I could answer my own questions  
    Why don't you just monitor the incoming data stream from the serial port for "passed."
    But to read from a file and search for a string, Smercurio is correct.  Match Pattern will do what you need (You can use this same function for ASCII serial data as well).
    Reese, (former CLAD, future CLD)
    Some people call me the Space Cowboy!
    Some call me the gangster of love.
    Some people call me MoReese!
    ...I'm right here baby, right here, right here, right here at home

  • How can I search a pages document for any of a string of words?

    I am a teacher and would like to search some short stories for vocabulary that I think will help my students get ready for the SATs one day. I have a long list of SAT vocabulary, close to 1,000 words, and I'm wondering if there's any quick way to just put those words into the Find menu and have it search for ANY of those individual words, rather than the whole string. Is that possible?
    Also, info on the arrival of the next version of iWork ('13?) would be awesome.
    Thanks.

    Locating and Searching Comment annotations.
    From the open Comments List you can sort and filter comments.
    This is discussed in Acrobat X Pro's online Help:
    http://help.adobe.com/en_US/acrobat/pro/using/WS58a04a822e3e50102bd615109794195ff-7e42.w.h tml 
    A sorted / filtered list can be used to generate a PDF comment summary report.
    http://help.adobe.com/en_US/acrobat/pro/using/WS75E00763-F15A-43a1-85B7-51B920B1181A.w.htm l
    You could then use Find on the output summary report.
    Using Acrobat X Pro you can embed an index in the PDF.
    http://help.adobe.com/en_US/acrobat/pro/using/WSC28D4DBB-6A78-4027-9E04-F50FE411CFB9.w.htm l
    Then use the Search tool. With the Search pane open tick "Include Comments".
    Search returns have an icon at the left of each instance.
    This portion of Acrobat X Pro's online Help shows and describes these.
    The third up from the list's bottom is the Comments icon.
    http://help.adobe.com/en_US/acrobat/pro/using/WSC28D4DBB-6A78-4027-9E04-F50FE411CFB9.w.htm l 
    One of these or combinations may met your needs. 
    Be well...

  • Search for a string in word document using VBA

    Hi,
    I am new to VBA. My requirement is that VBA code should find the path in the word document., some of the paths are present in the word document.
    search criteria should start with \\\\ and end with .doc. Could anyone please help me out on how to provide the search criteria and is there any predefined methods present.
    Thanks in advance.
    Thanks,.

    Apologies, the line
    Do While .Execute(FindText:=.Text = "\\\\*.doc", MatchWildCards:=True)
    should read
    Do While .Execute(FindText:="\\\\*.doc", MatchWildCards:=True)
    It will however only work for the document body. If the string is in a different story range you will have to loop through those story ranges e.g.
    Sub FindIt()
    Dim wdApp As Object
    Dim wdDoc As Object
    Dim oRng As Object
    Dim bStarted As Boolean
    Dim i As Integer
        On Error Resume Next
        Set wdApp = GetObject(, "Word.Application")
        If Err Then
            Set wdApp = CreateObject("Word.Application")
            bStarted = True
        End If
        On Error GoTo 0
        ActiveWorkbook.Save
        Set wdDoc = wdApp.Documents.Open("C:\Path\DocumentName.docx")
        i = 1
        For Each oRng In wdDoc.StoryRanges
            With oRng.Find
                .MatchWildcards = True
                Do While .Execute(FindText:="\\\\*.doc")
                    Range("A" & i) = oRng.Text
                    oRng.Collapse 0
                    i = i + 1
                Loop
            End With
            If oRng.StoryType <> wdMainTextStory Then
                While Not (oRng.NextStoryRange Is Nothing)
                    Set oRng = oRng.NextStoryRange
                    With oRng.Find
                        .MatchWildcards = True
                        Do While .Execute(FindText:="\\\\*.doc")
                            Range("A" & i) = oRng.Text
                            oRng.Collapse 0
                            i = i + 1
                        Loop
                    End With
                Wend
            End If
        Next oRng
        wdDoc.Close 0
        If bStarted Then wdApp.Quit
        Set oRng = Nothing
        Set wdDoc = Nothing
        Set wdApp = Nothing
    End Sub
    Graham Mayor - Word MVP
    www.gmayor.com

  • How to return a word from an input string in random

    iam trying to return a single word from an input string.the word has to be selected in random.can u help?
    this is wat i tried so far
    private String findKeyWord(String remark)
    String[] input= stringobj.trim().toLowerCase().split(" "); // am splitting the string here and it gets stored in string array//
    return ????? //i should return any one word in the string in random//
    }

    array[random.nextInt(array.length)]

  • Convert HTML to "word string"`?

    HI, I am using C#.I have a template word doc that contains key tags of the format [FIELD_0],
    [FIELD_1], etc...
    I load this document in memory, and then replace those tags with the correct string values.
    When I am done, I return it to the user.
    This is working fine.
    However, now I have a case where one of my string is html format (bold, italic, bullets),
    I am wondering how can I convert this "Hmtl string" into "word doc string" ???
    Thanks.

    Then You can try this free DOC library(http://www.e-iceblue.com/Introduce/word-for-net-introduce.html),download and add reference to your project then add the following code
    Document doc = new Document("sample.docx");
    TextSelection selection = doc.FindString("[FILED_0]", true, true);
    TextRange range = selection.GetAsOneRange();
    int index = range.OwnerParagraph.ChildObjects.IndexOf(range);
    Document htmldoc = new Document();
    StringReader sr = new StringReader("<b>hello </b><i>world</i>");
    htmldoc.LoadHTML(sr, XHTMLValidationType.None);
    foreach (Section section in htmldoc.Sections)
    foreach (Paragraph p in section.Paragraphs)
    foreach (DocumentObject obj in p.ChildObjects)
    range.OwnerParagraph.ChildObjects.Insert(index++, obj.Clone());
    range.OwnerParagraph.ChildObjects.Remove(range);
    doc.SaveToFile("replace1.docx", FileFormat.Docx);

  • Count occurence of words in string

    hi guys. i need some help.
    my problem is. i have a string, and want to know how many times each word appears in it, and print out only the word that appear more than 2 times.
    has any one an idea of how this is possible?

    There are many solutions, but here is the outline of one possible method.
    1) Split your string in words with the StringTokenizer class
    2) Create a HashMap
    3) look up your word in the hash map
    4a) If the word is not in the hashmap, create a new entry in the HashMap, where the key is your word from the original string, and the Value is (new Integer(1))
    4b) if the word is already in the hashmap, get the value from the hashmap, add one to it, then put the new Integer value in the hashmap
    5) for each value in the hashmap, print out the key , if the value is an Integer > 1
    With any luck, that will help you

  • Replacing 'word' in a string

    Hi! I want to replace Strings in a String, but if the the substring which has to be replaced is not a word, then i don't want it to be replaced. Eg.: I want to replace Words for other strings, where words are not substring of other Words :)
    Just want to ask if someone has made this before, and can help me out
    cu
    athalay

    But, my original question wasn't this. I
    want to replace words(string) for other strings in
    sentences(string). I hope it's clearer. So for example
    I have a sentence: This is an applepie. And if I want
    to replace apple for pear, then do not replace this
    sentence for pearpie, just remain it, because there's
    no "apple" word in this sentence. I hope it's clearer.
    My main problem is, that handling the First word of
    the sentence. It easy to replace " "+word+" " for what
    I want, but there are separatorchars like , . etc :)Search for the word you want to replace. Once you have found it, you will need to do a series of other checks...
    1) is it at the beginning or end of the sentence? (then you need to look at the character before or after the word depending on location in entire String to see if it is whitespace or separator character)
    2) is it surrounded by whitespace or separator characters on both sides? (get the surrounding characters and compare to a list of acceptable characters to make this a word, ie " ", ",", ";"...
    Only replace words that pass the conditions (beginning of sentence and followed by whitespace or separator, end of sentence and preceeded by whitespace or separator, or middle of sentence and surrounded by whitespace or separators).

  • Want to replace a string containing consecutive repeating  words to one using regular expression

    Hi Experts,
    I need a regular expression to replace all duplicate words in a string with one.
    eg: 'Hello Hello World 4-4-5 etc etc' should be changed to 'Hello World 4-4-5 etc'.
    I tried many of them but they had one or the other problem. like (\w+\S\W)\1+' replace with ' \1' and  ' (\w+\W)\1+' replaced with ' \1' , etc
    Thanks in advance
    Tarique

    Hi,
    Translating what frank said to JAVA would be something like this:
            StringBuffer result = new StringBuffer();
            String myString = "This is right right, that is wrong.";
            String[] words = myString.split(" ");
            String lastWord = "";
            for (String str : words){
                if (!str.contains(lastWord))
                    result.append(str);
                else
                    result.append(str.substring((lastWord.length() >= 0 ? lastWord.length() : 0 ) , str.length()));
                lastWord = str;
                result.append(" ");
            System.out.println(result);
    If you didnt have points and commas in your message then would be easier. But the code is not 100% correct and you will need to make it work according to yours requirements.

  • Convert dotx or docx to pdf with Word Automation Service failed

    Hello everybody,
    After search on the internet, I'm looking for a solution to this issue.
    I wrote this code for a document conversion in a visual studio 2010 workflow:
    string wordAutomationServiceName = "Word Automation Service";
    ConversionJobSettings jobSettings = new ConversionJobSettings();
    jobSettings.OutputFormat = SaveFormat.PDF;
    ConversionJob job = new ConversionJob(wordAutomationServiceName, jobSettings);
    job.UserToken = workflowProperties.Site.UserToken;
    job.AddFile(workflowProperties.WebUrl + "/" + file.Url,
    workflowProperties.WebUrl + "/" + file.Url.Replace(".docx", ".pdf"));
    job.Start();
    URLs are corrects and the word document exists.
    The problem is when the job is executed, I have errors in SharePoint logs:
    11/18/2011 09:24:15.87     w3wp.exe (0x1BC4)                           0x1CA0    Word Automation Services     
        Office Viewing Architecture       9rte    Medium      Request received for document 00000001-0001-10e2-80af-d08c970b9892, format: , numberInQueue: 0, request id ba03fb58-55b2-4c6c-b1ca-20fad3b11585   
    00000001-0001-10e2-80af-d08c970b9892
    11/18/2011 09:24:15.87     w3wp.exe (0x1BC4)                           0x1CA0    Word Automation Services     
        Office Viewing Architecture       c7ld    Medium      AppManager.BeginProcessRequest adding request to queue    00000001-0001-10e2-80af-d08c970b9892
    11/18/2011 09:24:15.88     w3wp.exe (0x1BC4)                           0x1CA0    Word Automation Services     
        Timer Job                         g27p    Medium      Local Controller '71cf62b9-c34c-46c4-9828-55de2d5f5ac0':
    In Progress: <http://site/Contracts/docsettest/contracttest.dotx> downloaded and queued locally    00000001-0001-10e2-80af-d08c970b9892
    11/18/2011 09:24:15.88     w3wp.exe (0x1BC4)                           0x17C0    Word Automation Services     
        Configuration                     g6xc    Medium      Item 00000001-0001-10e2-80af-d08c970b9892: Assigned to
    local worker process: 1D64 (7524; worker id = cce33245-48b9-4b0d-afcd-e3218845d81a)    00000001-0001-10e2-80af-d08c970b9892
    11/18/2011 09:24:15.88     w3wp.exe (0x1BC4)                           0x1CA0    SharePoint Foundation        
        Monitoring                        b4ly    Medium      Leaving Monitored Scope (ExecuteWcfServerOperation).
    Execution Time=23.6994391735768    2fd2393d-f36d-49a1-bfdf-737aefc8659a
    11/18/2011 09:24:15.88     w3wp.exe (0x1BC4)                           0x211C    Word Automation Services     
        Office Viewing Architecture       vipp    Medium      AppWorker:cce33245-48b9-4b0d-afcd-e3218845d81a initializing for request ba03fb58-55b2-4c6c-b1ca-20fad3b11585   
    00000001-0001-10e2-80af-d08c970b9892
    11/18/2011 09:24:15.88     w3wp.exe (0x1BC4)                           0x211C    Word Automation Services     
        Office Viewing Architecture       vipr    Monitorable    AppWorker:cce33245-48b9-4b0d-afcd-e3218845d81a worker call failed System.ServiceModel.CommunicationObjectAbortedException: The
    communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it has been Aborted.    Server stack trace:      at System.ServiceModel.Channels.CommunicationObject.ThrowIfDisposedOrNotOpen()    
    at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)     at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage
    methodCall, ProxyOperationRuntime operation)     at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)    Exception rethrown at [0]:      at System.Runtime.Re...   
    00000001-0001-10e2-80af-d08c970b9892
    11/18/2011 09:24:15.88*    w3wp.exe (0x1BC4)                           0x211C    Word Automation Services     
        Office Viewing Architecture       vipr    Monitorable    ...moting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)     at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
    msgData, Int32 type)     at Microsoft.Office.Web.Conversion.Framework.Remoting.IAppChannelCallback.Initialize(WorkerRequest request, FileItem fileItem)     at Microsoft.Office.Web.Conversion.Framework.AppWorker.ProcessRequest(ConversionRequest
    request). Worker name WordAutomationServices, Document 00000001-0001-10e2-80af-d08c970b9892    00000001-0001-10e2-80af-d08c970b9892
    11/18/2011 09:24:15.88     w3wp.exe (0x1BC4)                           0x211C    Word Automation Services     
        Service                           g281    Medium      Local Controller '71cf62b9-c34c-46c4-9828-55de2d5f5ac0':
    Failure: <http://site/Contracts/docsettest/contracttest.dotx> not uploaded to <http://site/Contracts/docsettest/contracttest.pdf> (65543)    00000001-0001-10e2-80af-d08c970b9892
    11/18/2011 09:24:15.90     w3wp.exe (0x1BC4)                           0x211C    Word Automation Services     
        Office Viewing Architecture       c78j    Unexpected    AppWorker:cce33245-48b9-4b0d-afcd-e3218845d81a ProcessRequestDone() received error response WorkerException, restarting the worker   
    00000001-0001-10e2-80af-d08c970b9892
    11/18/2011 09:24:15.90     w3wp.exe (0x1BC4)                           0x211C    Word Automation Services     
        Office Viewing Architecture       b1qa    Medium      Shutting down process with force processId: 7524 belonging to AppWorker cce33245-48b9-4b0d-afcd-e3218845d81a   
    00000001-0001-10e2-80af-d08c970b9892
    11/18/2011 09:24:15.91     w3wp.exe (0x1BC4)                           0x1CA0    Word Automation Services     
        Configuration                     g6xb    Medium      Local Controller '71cf62b9-c34c-46c4-9828-55de2d5f5ac0':
    Local worker process exited: 1D64 (7524); exit time = 11/18/2011 09:24:15     
    11/18/2011 09:24:15.91     w3wp.exe (0x1BC4)                           0x1CA0    Word Automation Services     
        Configuration                     d0md    Medium      App 'Word Automation Service': Deleting temp directory
    'C:\Windows\TEMP\wdsrv\21659d2e-c634-46a2-9585-b4cd1398f64c\odsibdmm.cmv\1D64'     
    11/18/2011 09:24:15.92     w3wp.exe (0x1BC4)                           0x211C    Word Automation Services     
        Office Viewing Architecture       xpre    Medium      Removing worker cce33245-48b9-4b0d-afcd-e3218845d81a, thread: 216    00000001-0001-10e2-80af-d08c970b9892
    11/18/2011 09:24:15.92     w3wp.exe (0x1BC4)                           0x211C    Word Automation Services     
        Office Viewing Architecture       f2yg    Medium      CreateSandBoxedProcessWorker() is called    00000001-0001-10e2-80af-d08c970b9892
    11/18/2011 09:24:15.93     w3wp.exe (0x1BC4)                           0x211C    Word Automation Services     
        Office Viewing Architecture       b10e    Medium      Created desktop: Service-0x0-3eaf55d$\Microsoft Office Isolated Environment     00000001-0001-10e2-80af-d08c970b9892
    11/18/2011 09:24:15.93     w3wp.exe (0x1BC4)                           0x211C    Word Automation Services     
        Office Viewing Architecture       2brt    Medium      AppWorker:89d80fff-43ec-459e-9d95-5ed8b67f20bb worker process is started Exe: WordServerWorker.exe Args: /id 89d80fff-43ec-459e-9d95-5ed8b67f20bb
    /convertingService net.pipe://127.0.0.1/WordServer71cf62b9-c34c-46c4-9828-55de2d5f5ac0 /assembly WdsrvWorker.dll /type WACWS /IsBatchedTracing True /LogQuota 100 WorkerType: WorkerType1 Directory: c:\windows\system32\inetsrv, pid : 3700, IsSandBoxed: True,
    UniqueSandBoxSid: S-1-5-26473-19571-45394-48    00000001-0001-10e2-80af-d08c970b9892
    11/18/2011 09:24:15.93     w3wp.exe (0x1BC4)                           0x211C    Word Automation Services     
        Office Viewing Architecture       vioz    Medium      RemoveWorker isRemoved: True session id : uuid:c9cce13b-5285-47d6-a666-29da19e57c67;id=47, Guid: cce33245-48b9-4b0d-afcd-e3218845d81a   
    00000001-0001-10e2-80af-d08c970b9892
    11/18/2011 09:24:15.93     w3wp.exe (0x1BC4)                           0x211C    Word Automation Services     
        Office Viewing Architecture       b4em    Monitorable    AppWorker:cce33245-48b9-4b0d-afcd-e3218845d81a recycle worker process because the conversion failed with result WorkerException.
    Worker is WordAutomationServices    00000001-0001-10e2-80af-d08c970b9892
    11/18/2011 09:24:15.93     w3wp.exe (0x1BC4)                           0x211C    Word Automation Services     
        Office Viewing Architecture       xpre    Medium      Removing worker cce33245-48b9-4b0d-afcd-e3218845d81a, thread: 216    00000001-0001-10e2-80af-d08c970b9892
    11/18/2011 09:24:15.93     w3wp.exe (0x1BC4)                           0x211C    Word Automation Services     
        Office Viewing Architecture       vioz    Medium      RemoveWorker isRemoved: False session id : uuid:c9cce13b-5285-47d6-a666-29da19e57c67;id=47, Guid: cce33245-48b9-4b0d-afcd-e3218845d81a   
    00000001-0001-10e2-80af-d08c970b9892
    11/18/2011 09:24:15.93     w3wp.exe (0x1BC4)                           0x211C    Word Automation Services     
        Office Viewing Architecture       a2oj    Medium      PreProcessTime = 0; InConversionQueueTime = 0.0019142; ResponseTime = 0.0066997; TotalConversionTime = 0.0535976; AvgPreProcessTime
    = 0; AvgInConversionQueueTime = 0; AvgResponseTime = 0; AvgTotalConversionTime = 0; historyCount = 0; result = WorkerException; format = n/a    00000001-0001-10e2-80af-d08c970b9892
    11/18/2011 09:24:15.93     w3wp.exe (0x1BC4)                           0x144C    Word Automation Services     
        Office Viewing Architecture       4sig    Medium      ChildProcess WordServerWorker.exe is launched inside worker 89d80fff-43ec-459e-9d95-5ed8b67f20bb. Pid 3700   
    11/18/2011 09:24:15.93     w3wp.exe (0x1BC4)                           0x144C    Word Automation Services     
        Office Viewing Architecture       d9hn    Medium      NotifyNewChildProcessInWorker has seen WordServerWorker.exe in worker 89d80fff-43ec-459e-9d95-5ed8b67f20bb   
    11/18/2011 09:24:16.45     w3wp.exe (0x1BC4)                           0x18CC    Word Automation Services     
        Office Viewing Architecture       viou    Medium      ... registering worker 89d80fff-43ec-459e-9d95-5ed8b67f20bb     
    11/18/2011 09:24:16.48     w3wp.exe (0x1BC4)                           0x18CC    Word Automation Services     
        Office Viewing Architecture       viox    Medium      Worker 89d80fff-43ec-459e-9d95-5ed8b67f20bb is now initialized.     
    11/18/2011 09:24:16.55     w3wp.exe (0x1BC4)                           0x18CC    Word Automation Services     
        Office Viewing Architecture       vipx    Monitorable    AppWorker:89d80fff-43ec-459e-9d95-5ed8b67f20bb application server host exited unexpectedly  (thread: 6)   
    11/18/2011 09:24:16.55     w3wp.exe (0x1BC4)                           0x18CC    Word Automation Services     
        Office Viewing Architecture       c78j    Unexpected    AppWorker:89d80fff-43ec-459e-9d95-5ed8b67f20bb ProcessRequestDone() received error response WorkerCrashed, restarting the worker   
    11/18/2011 09:24:16.57     w3wp.exe (0x1BC4)                           0x18CC    Word Automation Services     
        Office Viewing Architecture       xpre    Medium      Removing worker 89d80fff-43ec-459e-9d95-5ed8b67f20bb, thread: 6     
    11/18/2011 09:24:16.57     w3wp.exe (0x1BC4)                           0x18CC    Word Automation Services     
        Office Viewing Architecture       f2yg    Medium      CreateSandBoxedProcessWorker() is called     
    11/18/2011 09:24:16.57     w3wp.exe (0x1BC4)                           0x18CC    Word Automation Services     
        Office Viewing Architecture       b10e    Medium      Created desktop: Service-0x0-3eb1722$\Microsoft Office Isolated Environment      
    11/18/2011 09:24:16.57     w3wp.exe (0x1BC4)                           0x18CC    Word Automation Services     
        Office Viewing Architecture       2brt    Medium      AppWorker:59168d75-7086-4318-8d12-633affa7b783 worker process is started Exe: WordServerWorker.exe Args: /id 59168d75-7086-4318-8d12-633affa7b783
    /convertingService net.pipe://127.0.0.1/WordServer71cf62b9-c34c-46c4-9828-55de2d5f5ac0 /assembly WdsrvWorker.dll /type WACWS /IsBatchedTracing True /LogQuota 100 WorkerType: WorkerType1 Directory: c:\windows\system32\inetsrv, pid : 6752, IsSandBoxed: True,
    UniqueSandBoxSid: S-1-5-26473-19571-45394-49     
    11/18/2011 09:24:16.57     w3wp.exe (0x1BC4)                           0x18CC    Word Automation Services     
        Office Viewing Architecture       vioz    Medium      RemoveWorker isRemoved: True session id : uuid:c9cce13b-5285-47d6-a666-29da19e57c67;id=48, Guid: 89d80fff-43ec-459e-9d95-5ed8b67f20bb   
    11/18/2011 09:24:16.57     w3wp.exe (0x1BC4)                           0x144C    Word Automation Services     
        Office Viewing Architecture       4sig    Medium      ChildProcess WordServerWorker.exe is launched inside worker 59168d75-7086-4318-8d12-633affa7b783. Pid 6752   
    11/18/2011 09:24:16.57     w3wp.exe (0x1BC4)                           0x144C    Word Automation Services     
        Office Viewing Architecture       d9hn    Medium      NotifyNewChildProcessInWorker has seen WordServerWorker.exe in worker 59168d75-7086-4318-8d12-633affa7b783   
    11/18/2011 09:24:17.10     w3wp.exe (0x1BC4)                           0x1CA0    Word Automation Services     
        Office Viewing Architecture       viou    Medium      ... registering worker 59168d75-7086-4318-8d12-633affa7b783     
    11/18/2011 09:24:17.13     w3wp.exe (0x1BC4)                           0x1CA0    Word Automation Services     
        Office Viewing Architecture       viox    Medium      Worker 59168d75-7086-4318-8d12-633affa7b783 is now initialized.   
    Thank you for your help.

    Hi Jean,
    Were you able to resolve this?  I am coming across the exact same error on a SharePoint 2010 development machine.  I don't see any other posts on the web about it.  Here is the entry from my ULS logs:
    Local Controller 'fc8b8704-f0f1-4e85-a69a-dc5686c27e39': Failure: <http://ip-0a6ee272/Shared%20Documents/Word/hello.docx> not uploaded to <http://ip-0a6ee272/Shared%20Documents/PDF/hello.pdf>
    (65543)
    Do we share any of the following configuration points?  I'm trying to narrow down the potential root cause ...
    MSDN subscriber EXE install media "SharePoint Server 2010 with Service Pack 1 (x64) - (English)"
    SP1 slipstream patch level.  No cumulative updates.
    http://autospinstaller.codeplex.com/  PowerShell scripted install
    SQL 2008 R2 installed on same box as SharePoint
    Active Directory domain controller on same box as SharePoint
    c:\Windows\System32\drivers\etc\HOSTS file 127.0.0.1 entry for both machine and domain name
    Thanks in advance for the research. 
    I've actually tried re-installing SharePoint several times on brand new virtual machines.  That did not resolve the issue.  Strangely enough, the RTM version of SharePoint appears to work just fine.  With all other configuration points the
    same, I loaded RTM ... ran a Word Automation PowerShell script ... and received the expected PDF output.  Then when I apply the SP1 patch ... it stops working and I get error 65543.
    Best,
      @SPJeff

  • Problem with String in a Vector

    I'm making a small hangman game. And I got a problem with putting words in a Vector... This is the code... Can someone tell me what I'm doing wrong?
    // First I define it.
    Vector Words;
    //  Then add the words
    Vector Words = new Vector();
    Words.add(new String("HELLO"));
    Words.add(new String("GOOD BYE"));
    // When I try to get a string from the Vector I use this.
    // The program compiles but when I try to run it I get NullPointerExeption here
    W = (String) Words.elementAt(0);

    Not sure since I cant see all of your code but looks like this might be your problem:
    // First I define it.
    Vector Words; //<-- here you define a Vector named Words that is null
    // Then add the words
    Vector Words = new Vector(); //<-- here you define another vector named Words that holds a reference to a new Vector. This is a different reference than the one created above so you should probably remove the "Vector" part from the beginning of this line. Is this a local variable to a method and the one before is a global variable?
    //Here you probably access the locally created Words vector which is initialized
    Words.add(new String("HELLO"));
    // When I try to get a string from the Vector I use this.
    // The program compiles but when I try to run it I get NullPointerExeption here
    W = (String) Words.elementAt(0); //<--and here my guess is that this statement is inside another method than the one with the local Words vector defined. Thus this one accesses the global Words Vector that is never initalized and is Null. And that gives you the NullPointerException.
    So try changing the statement
    Vector Words = new Vector();
    to
    Words = new Vector();
    or just remove it totally and move the Vector creation to the place where you introduce the global variable.
    Of course I might be totally wrong since I cant see all of your code but that is my guess.
    Hope it helps,
    -teka

  • How to add words from a JTextField to a JList

    Im working on my final project for Java programming class using JApplet.
    Im trying to create a spelling test/wordfind
    I want to be able to have the user type a word in the JtextField press the "Add" button (Jbutton) and have the word be added to the JList.
    then click the "Start" Button and have the all the words from the JList be put in random stops in a panel and fill around all the words with random letters.
    then when the user clicks on the letter of the words they are finding it will change colors if they click on it again it will change back to its original color.
    So far I have my layout set up its adding the proper Listeners and events to achieve the desired results.
    I know this is way more advanced than what My Instructor is even teacher but I am very interested in Java and want to learn a lot more about it.
    If anyone has suggestions or know where i can find the information Im looking for please let me know.
    Thanks
    Code I have so Far:
    * @(#)SpellingTest.java
    * SpellingTest Applet application
    * @author
    * @version 1.00 2010/11/10
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class SpellingTest extends JApplet implements ActionListener {
         Image img;
         ImageIcon icon;
         private Image title;
         JTextField word;
         JButton addWord;
         JLabel label;
         JList wordList;
         public void init() {//opening init
                   getContentPane().setLayout(null);
                   getContentPane().setBackground(Color.WHITE);
                   title = getImage(getDocumentBase(), "title.jpg");
                   //The text field
                   word = new JTextField();
                   word.setLocation(190,100);
                   word.setSize(85,30);
                   getContentPane().add(word);
                   word.addActionListener(this);
                   //The addWord button
                   addWord = new JButton("ADD");
                   addWord.setLocation(295, 100);
                   addWord.setSize(90,30);
                   getContentPane().add(addWord);
                   addWord.setBackground(new Color(146, 205, 220));
                   addWord.addActionListener(this);
                   //The label
                   label = new JLabel("Type your spelling words:");
                   label.setLocation(25, 65);
                   label.setSize(250,100);
                   getContentPane().add(label);
                   label.setForeground(new Color(146, 205, 220));
                   //The List
                   wordList = new JList();
                   JScrollPane scrollPane = new JScrollPane(wordList,
                   ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
                   ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
                   scrollPane.setLocation(25,150);
                   scrollPane.setSize(150,300);
                   getContentPane().add(scrollPane);
         }//closing init
         public void actionPerformed (ActionEvent ae){
              Object obj = ae.getSource();
              String text = word.getText();
              if (obj == addWord){
                   if (text.length()>0);
                   wordList.addString("");
         public void paint(Graphics g) {
              super.paint(g);
    }

    Read the first posting titled "Welcome to the new home" to learn how to use code tags. Then you can edit your posting so the code is formatted and readable.
    I want to be able to have the user type a word in the JtextField press the "Add" button (Jbutton) and have the word be added to the JList.Read the JList API and follow the link to the Swing tutoral on "How to Use Lists" where you will find a working example.
    So far I have my layout Actually you haven't. You should learn how to use layout managers. Again the Swing tutorial explains what layout managers are and provides working example of using them.
    I am very interested in Java and want to learn a lot more about it.A great place to start is by read tutorials because they always contain working example. Here are some [url http://download.oracle.com/javase/tutorial/]Java tutorrial.

  • Frequency of words in Arrays

    Dear Java Folks,
    I still need your help!
    I am still having problem after succeeding in tokenizing the Strings in LinkedList.
    What I wanted to do is to find the Frequency of words or characters in an Array.
    E.g
    1�A,C,F,G,A
    2�Baby,H,K,A,C,K
    3�Oslo,S,F,T,K
    The first line will return 2A, 1C, 1F, 1G. Thereafter, I will find the Frequency of the second line which will be 1Baby, 1H, 2K, 1A, 1C etc.
    For now, I am only interested in getting the Frequency
    of the first line.
    My Code
    public String DataCall() {
              DataInputStream dis = null;
              String line = null;
              String []words;
              String []Lines;
              List <String>result = new LinkedList<String>();
              List<String> dataList1 = new LinkedList<String>();
              List<String> dataList2 = new LinkedList<String>();
              List<String> onlyWords = new LinkedList<String>();
              List<Integer> frequency = new LinkedList<Integer>();
              int counter = 0;
              try {
                       File data = new File("C:/text.txt");
                        FileInputStream in = new FileInputStream(data);
                        dis = new DataInputStream (in);
                        BufferedReader br = new BufferedReader(new InputStreamReader(dis));
                        line  = br.readLine();
              if (line != null) {
                             Lines = (line.split(" ")); //Split the first row or line
                             for(String datas : Lines)  // add the data to the Linkedlist
                                  dataList1.add(datas);
                             for (int i = 0; i < dataList1.size(); i++) {
                               words = (dataList1.get(i).split("�"));   // split to get to �
                               for (int b = 0; b < words.length; b++) {
                                    String []wordCount = words.split(","); // split the remaing words or characaters
                   for (String saveD : wordCount)
                             onlyWords.add(saveD); // add the data to Linkedlist "onlyWords
              // Start the frequency calculation
              for (int point = 0; point < onlyWords.size(); point++)
                   if (!dataList2.contains(onlyWords.get(point))) //Initially dataList2 is empty here
                        dataList2.add(onlyWords.get(point)); // add data to Linkedlist "datalist2"
                        frequency.add(1); // add 1 to (int) Linkedlist "frequency"
                   else
                        int tmp = 0;
                        tmp = onlyWords.indexOf(point); //get the index where the "word" occured first
                        counter = frequency.get(tmp); //ge the value of the same index in the Linkedlist "frequency"
                        counter++;
                        frequency.set(tmp, counter);
              for (int k = 1; k < dataList2.size(); k++) {
         System.out.println(onlyWords.get(k) + " " + frequency.get(k));
              else System.out.println("There is no data to read\n");
              catch (IOException e) {
                        //catch io errors
                        System.out.println("IOException error: " + e.getMessage());
              finally {
                        // if the file successfully opened
                        if (dis != null) {
                             try {
                             dis.close();
                             catch (IOException ioe){
                             System.out.println("IOException error when trying to close the file: " + ioe.getMessage());
                   }//end if
              }// end finally
                   return null; // just for a test. I will return result
         } // end DataCall
    The code if run shows the the following the errors;
    at java.util.LinkedList.entry(Unknown Source)
    at java.util.LinkedList.get(Unknown Source)
    at fileReader.DataFrequency.DataCall(DataFrequency.java:80)

    here i have modified the code, but still getting the error in the count
    import java.io.File;
    import java.util.Formatter;
    import java.util.Scanner;
    public class StudentPoll_dasariHaritha {
    private Scanner x;
    int[] frequency = new int[5];
    int count =0;
    public void openFile(){
    try{
    x = new Scanner(new File("numbers.txt"));
    catch(Exception e){
    System.out.printf("No File found");
    public void readFile(){
    while(x.hasNext()){
    int a= x.nextInt();
    if(a==1){
    frequency[0]=0;
    ++frequency[0];
    break;
    else if (a== 2){
    frequency[1]=0;
    ++frequency[1];
    break;
    else if( a==3){
    frequency[2]=0;
    ++frequency[2];
    break;
    else if (a==4){
    frequency[3]=0;
    ++frequency[3];
    break;
    else if (a== 5){
    frequency[4]=0;
    ++frequency [4];
    break;
    System.out.printf("%s%10s\n","Rating","Frequency");
    System.out.printf("%s%10s\n","1",++frequency[0]);
    System.out.printf("%s%10s\n","2",++frequency[1]);
    System.out.printf("%s%10s\n","3",++frequency[2]);
    System.out.printf("%s%10s\n","4",++frequency[3]);
    System.out.printf("%s%10s\n","5",++frequency[4]);
    public void closeFile(){
    x.close();
    in the main method iam calling these methods
    StudentPoll_dasariHaritha read = new StudentPoll_dasariHaritha();
    read.openFile();
    read.readFile();
    read.closeFile();
    i think in the while loop iam making a mistake. can someone help me in rectifying it.

  • How to autoflow a very long word in InDesign?

    I am trying to insert/import/paste a text into InDesign. The text contains some text-strings (or 'words') that are more than 3000 characters long. This causes InDesign to have overset text, and not being able to auto-flow the text.
    When I import (or paste) the text I am shift+clicking (I have also tried option+shift+click) to make the text auto-flow down along the pages, but the auto-flow stops at page 16 (where the long 'words' start to occur), although my file contains more than 200 pages. I get the little red plus sign below in the last text-box, that indicates that I have overset text.
    I then tried to click the red plus sign and continue the text-flow on the following pages, but I just end up with empty text-boxes on the following pages every time I try click the red plus sign.
    I removed the long 'words', and tried again, and now InDesign does not appear to have an issue with my text. So the problem is caused by the long 'words'.
    The format of the text is unimportant (I have tried .rtf and .txt) and InDesign is able to recognise both.
    However, I cannot insert spaces or end-of-line into these long 'words', as this would change the 'words'. The number of characters in each 'word' is important, and if I start adding extra spaces or end-of-line charecters it would change the 'words'.
    I have a lot of places in the text where I have these long 'words', and I would like to avoid too much clicking and inserting to get around this issue.
    I am running InDesign CS3 on a Macintosh 10.5.8 computer
    I would be grateful if anyone have an idea how to work around these.
    Thanks in advance for both your time and help

    Peter Spier wrote:
    Why don't the words break at the hyphens? Would additional hyphens be a problem?
    Hyphenation is a paragraph level attribute, so it can be found inthe panel menu for the Paragraph panel or the Control panel when the Text tool is active, or it can be turned on or off in the paragraph style assigned to the text, which is probably the best place to do it.
    Perhaps they aren't true hyphens? To test, copy and paste one into the Find What text field and type a hyphen into the the Change To field, and try a single find/change. If that works, save copies of the documents before trying find/change all.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

Maybe you are looking for

  • How can I delete a fixed profile rule in a Linksys ATA?

    I have a Linksys SPA2100 ATA that I used with a previous VoIP provider. I did a factory reset but their profile rule is still listed in the first Profile Rule section under the Provisioning tab. Profile Rule B, C and D are blank and I can enter a pro

  • BP Hierarchy in CRM 4.0

    Hi Gurus, Landscape - R/3 4.6C with CRM 4.0 Scenario - We have Customer hierarchy maintained in R/3. Based on which, we have pricing, partner detn etc done in R/3. With CRM 4.0, after customer hierarchy initial load, I do not see that hierarchy in Tx

  • IMovie will not open after ram upgrade. How can I fix this?

    I updated the ram on my computer by myself from 2gb to 4gb. Everything seemed to work fine, yet when I go to open imovie, it will not open after endlessly bouncing on my dock. I have verified disk permissions. Repaired disk Permissions. Tried replaci

  • Error when more data are acquired

    i'm using usb 6259 to acquire data. I get error when I try to increase the samples per loop. If I increase the sample rate, I get a new problem, a buffer size must be increased also. I can't edit the buffer size because it's modified automatically in

  • Real Time Report Placed in iFrame and then Within a Web Applet

    Real-Time Reports built and executed BI tool retrieve real-time updates. However, when report URL is placed within an IFRAME and that is then placed in a Web Applet and the Web Applet is placed within a Page Layout Section, the real-time report no lo