Content Enrichment input/output properties limitation

Any body know: What's the count limitation of content enrichment configuration output properties?
In content enrichment configuration of Search Service Application, I use a database query to get all the product attributes and configure them to be output properties. When I assign 2500 properties to it, the crawling process just doesn't call the content
enrichment web service at all. If I try "top 300 attributename..", it works. Is there anybody know the limitation here?
##...Get all product attributes from database and then insert them into a System.Collections.Generic.List[System.String] $attrList.
$config.OutputProperties = $attrList;
Set-SPEnterpriseSearchContentEnrichmentConfiguration -SearchApplication $ssa -ContentEnrichmentConfiguration $config

The web service call may just be timing out.  You can try increasing the timeout.  However, I would heavily evaluate whether you need to return that many properties as the performance implications are huge.
Corey Roth - SharePoint Server MVP blog:
www.dotnetmafia.com twitter: @coreyroth |
SP2 Apps

Similar Messages

  • No warning and no processing when content enrichment output is different from config

    Hi all,
    When
    configuring the content enrichment, you provide the web service's outputted managed properties.
    If the output contains less managed properties than configured, that's not a problem, but if it contains
    more than configured, then the content enrichment fails without any warning at the crawl log, even if Error is configured to warning.
    For example:
    config.OutputProperties = "Author","Title"
    and the web service is outputting two properties "Author" and "Title" - no problem.
    But if you reconfigure config.OutputProperties = "Author", with no change to web service which still outputs "Author" and "Title", the result is that nothing is saved to "Author".
    Amir

    Hi Alexey,
    I've switched to FailueMode = Error and it does write entries to the crawl logs, but only one and not quite a helpful one:
    "The item failed due to an error occurring when sending or receiving data to the external content processing enrichment web service."
    It's always the same message, no matter what the error was, a timeout or a parse error (which can be seen at ULS).
    Amir

  • Content Enrichment - Updating System Defined Managed Properties (Author, Department)

    Hi
    I've been running into a couple of oddities whilst working with the content enrichment web service.   Initially I worked through the sample here:
    http://msdn.microsoft.com/en-us/library/jj163982.aspx#SP15ContentEnrich_configure, which shows how to update the "Author" managed property.   In our case this is something we'd like to do but I haven't been able to get this to work at
    all with the system defined "Author" managed property.
    When we crawl the content everything seems happy enough however we don't get the extra author value "ExampleService" appearing against the "Author" managed property.   I've setup a 'replica' of the "Author" property
    "AuthorReplica", which has the same crawled property mappings etc and the enrichment service happily updates the values of this when I run a full crawl.  
    To further test this I've rebuilt the Search Service as well as also starting up a brand new seperate SharePoint instance.   In all cases I can happily update the "AuthorReplica" managed property but the system defined "Author"
    property won't update at all.  
    I noticed that their is some type of relationship between the "Author" managed property and the "DisplayAuthor" property and I wonder if this could be related.   I also notice with the "Author" managed property, that
    it provides an user lookup type box when you display it as a refiner.   Perhaps their is some further processing occuring with this Managed Property further along which knocks out the update I make.
    A second oddity that I've noticed has been with the "Department" property.   In our case we have instances where content may cover multiple departments.   To enable this I have updated the "Department" property to
    "Allow multiple values".   When I then attempt to update the department property I receive the error: "The item failed due to an error occurring when sending or receiving data to the external content processing enrichment web service."  
    Again, I've created a replica of the "Department" managed property called "DepartmentReplica" which allows multiple values, and this property happily updates using the same code.
    Hopefully this all makes sense.
    Regards
    Pete

    Hi petecuttriss,
    my colleague explained to me with quite complicated method, but the summary that i can get is this issue is by design, so the behaviour is expected.
    consideration:
    if the author property is easily changed, then it may affect other feature that may use that as base point.
    explanation:
    In this case while the indexing was mapping and being indexed properly based on the defined crawl
    property the actual issue was display based and related to how the teaser summary was being defined and displayed based on the query.
    By default the body attribute of the Search index-profile has a static fallback summary defined by the internal teaser field.  This static fallback summary is what is displayed whenever a query is being performed which
    doesn't return any hits over the actual defined body field content(for example a query matching a term in the title or
    author of a document).  Instead of returning the query context sensitive summary of the body with the highlighted query term, the defined fallback static summary is displayed.
    So in this specific use case the dynamic summary based on the managed
    property (body in this case) is only being used if the query submitted actually has a hit in the
    managed properties content(i.e. the defined body).  Otherwise the defined fallback
    managed property content is always being used(i.e. the default ‘teaser’
    managed property content). 
    Here are some example query results illustrating this using the two sample docs you provided with the teaser
    managed property defined as the fallback hit highlighted summary for body:
    Search for "John"(returns both docs with the fallback teaser summary since the query term is not in the body):
    20120126-205524-205418a.html
    Just got child of eden for the xbox after hearing great reviews about it.
    Authors: System Account Date: 2/2/2012 Size: 4KB
    http://moss14/Shared Documents/20120126-205524-205418a.html
    20120126-205524-205418b.html
    BlogPostID:288 BlogAuthor:john.a.evangelista BlogTitle:Check for Alerts BlogBody: Check for Alerts? BlogCategory:BusyBee,2-2 BlogCategoryS:;BusyBee;2-2; PostCategoryR:BusyBee;#2-2 BlogNumComments:0 BlogPublishedDate:7/28/2011 11:37:00 AM BlogModifiedDate:7/28/2011
    11:37:00 AM BlogViewCount:10
    Authors: System Account Date: 2/2/2012 Size: 3KB
    http://moss14/Shared Documents/20120126-205524-205418b.html
    Search for "Alerts"(only returns the one blog doc, teaser displayed is based on the body since alerts is contained in the body):
    20120126-205524-205418b.html
    Check for Alerts?
    Authors: System Account Date: 2/2/2012 Size: 3KB
    http://moss14/Shared Documents/20120126-205524-205418b.html
    Search for "Eden"(only returns the one blog doc, teaser displayed is based on the body since eden is contained in the body):
    20120126-205524-205418a.html
    Just got child of eden for the xbox after hearing great reviews about it. Update: It is really cool!?
    Authors: System Account Date: 2/2/2012 Size: 4KB
    http://moss14/Shared Documents/20120126-205524-205418a.html
    We can see in these query results when the search term is actually contained in the body content that the teaser returned is based directly on the body content(which is the mapped blogbody content).  Otherwise the teaser returned is from the static
    hit highlighting summary fallback(literally the ‘teaser’ managed
    property).
    The problem in this case is that the "teaser" managed
    property is internally generated by the indexing pipeline and
    doesn't necessarily reflect the contents of crawled properties being mapped to the body field.  This difference initially caused the impression that sometimes the default body content was incorrectly being used instead of the mapped BlodyBody content. 
    The only way to guarantee that the result list teaser summary shown is always going to be based on the body would be to set the body as its own hit highlighting fallback(as is the default case with some properties like ‘title’ for example).
    Because body is a very important managed
    property and making changes to it (like mapping a crawled
    property) and modifying the way the indexing pipeline normally populates it can potentially produce unexpected results.  For all content sources which share the body
    managed property the decision was made to not modify the body content and to let the indexing pipeline
    populate it automatically.  From the testing performed it was confirmed that the indexing pipeline was already populating the body using a number of the defined blog crawled properties including BlogBody.
    If you wanted to always display the contents of a particular crawled
    property as a part of the results list display you can always just create a new
    managed property and map those crawled
    property contents to it(assuming a mapping did not already exist).  Then just display that
    managed property as a part of your results.
    The only remaining point of potential concern was if not mapping the BlogBody and BlogBodyNoHtml crawled properties to the CrawledPropertiesContent
    managed property would prevent them from being used to
    populate the body field by the indexing pipeline.
    After removing all the blogbody crawled property related mappings to the body and crawledpropertiescontent
    managed properties I re-crawled the two blog sample documents I was provided with some spy stages inserted into the indexing pipeline so I could see exactly what was being inserted into the BODY attribute.  This is what the body
    managed property populates and what is mapped to the default context full-text-index that all the “free text” searches are being performed against.
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • External Hard Drive Input/Output error

    I recently started having problems with an external hard drive setup that I did not have problems with prior to upgrading to 10.5.5 and trying to setup the drive to be compatible with Time Machine.
    The hard drive enclosure that I have has 2 bays for two SATA drives. I have used this enclosure without any problems until I tried to get 1 drive to act as the backup drive for Time Machine and the other to be storage. I formatted them using Drive Genius. I used the option for GUILD or GUIL which it said was the better format for using with Time Machine.
    The first problem I ran into since upgrading and reformatting the drives is I got an "input/output" error the first couple times I connected the drive via USB to my Mac. I could still use the drives but I got weird errors every once in a while like "input/output error" or "device was not ejected properly" even though the device had not been unplugged.
    Now the drives will not mount using OS 10.5.5. The drives show up when I open Disk Utility, but I cannot get them to mount. I have ran Disk Utility First Aid, and it says the drives are fine. There is one error that shows up when I run the "Repair Disk" feature. It reads "Invalid content in Journal". But Disk Utility also says "The volume was repaired successfully".
    I have seen some posts when I do a search in google about this issue and it seems this is a known issue. Every suggestion I see says to insert your Tiger DVD and reformat the drive using that and the problem will be solved. The only problem with that is I have a lot of important files on the drive that I cannot lose. I had the files backed up until I moved them to the new drive a while back. Now I do not have a backup because I was in the process of switching to bigger drives and erased the old drives after doing so because everything was working fine.
    I am hoping someone out there may have some suggestions (other than erasing the drive) to get my dives to mount so I can transfer the data off to another drive and reformat after.
    Thanks,
    Paul Rugg

    Thanks for the suggestion.
    Do you think that would work better than Drive Genius? I bought Drive Genius 2 and it does not even see the drives when they are plugged in unlike Disc Utility which can see the drives but cannot mount either one.
    Maybe this following post I made to a different questions may help. The data on the drive is other buying another program for if it will work. I think my next step may be to go over to a friends place and try to mount the drives on his computer and transfer stuff off if they connect.
    text below posted to other question relating to external hard drive problem.
    I have recently had the same mounting issue with my new external hard drive. I just purchased a new 750Gb Western Digital Sata drive and got everything transfered over to it. Immediately, I got an error saying that the drive had been ejected incorrectly even though it was still plugged in. I was a little curious. I restarted the computer (hard drive still plugged in via USB 2.0) and the drive showed up just fine. I plugged another 250Gb drive into the same case (2 bays) and the 250GB drive showed up just fine.
    Well, I then noticed there was an OS upgrade available when I ran Software update so i ran it and when I rebooted the drives were gone. I can see the drives in Disc Utility, but they will not mount. Drive Genius cannot see either disc. Disc Utility says I need to repair the drives, but when I do it says they are fixed but they don not mount.
    The problem really seems to be related to mounting USB external drives. I got ahold of 2 seperate external firewire hard drives and one shows up just fine while the other has the same problem (both work on other systems. I would try wiping the drives and reformatting but ALL MY stuff is on them and not everything has been backed up. Yuck! I have not tried connecting my hard drive to another Mac yet.
    The drives being used are #1 Maxtor Maxline Plus II 250GB SATA/150 HDD 1.5b/s 7Y250m00654ra
    and #2 Western Digital WD7500AACS WD Caviar GP Green Power drive.
    I have another post similar to this and I have not received any feedback, but I have been doing my own searching and have found similar posts on the net.
    Anybody have any clue what might be going on here? It really seems to be related to my upgrade.

  • "input/output error' when making disc image from DVD

    I've had problems installing Logic, and a Pro Apps Genius at Applecare suggested I try making an image of the problematic DVD (Audio Content 1) and then trying an install that way.
    While I can make an image of the Install disc to my desktop fine, the Audio Content 1 disc reports an "input/output error".
    This means I'm unable to copy the disc and then successfully install my Logic Studio.
    Any ideas?

    Thanks for your answer.
    Yes, I thought that might be the case - but I'd taken my Mac and Logic disks to a Genius bar, and the 'Genius' had said he'd fixed the issue. I just wish he'd explained what he did and why he didn't replace the faulty disk(s)!
    But is there any way around having the claim a disk, now I'm living abroad and my 'warrantee' has run out? It's going to be a pain in the fundament trying to claim a replacement set.

  • Can't acces to internal laptop hard disc - input/output error

    Sometimes when I use my i can't acces to any file on my hdd and i get input/output error when i type commands in console(i even can't halt or reboot). This is used to happen suddenly after few hour of work in one session (not always, it happend three times during last week)
    When i get this error the hdd control led  is on (I have ibm x60s with ssd hard disc, and normaly this diod only blink sometimes, bbut when i get this error , diod is  the whole time floodlite. I didn't any similar problem in google so i posted it here.

    Welcome to the forums.
    Not exactly alot of info to go on here. Try reading up on the "How to post" article on the wiki.
    As for the trouble at hand. With the limited info given, I'd say start off with running some health checks on your disk (smartctl, fsck,...).
    Last edited by Gcool (2012-03-29 05:23:32)

  • WD External Hard Drive will not format, "Input/Output Error"

    Trying to reformat an old Western Digital external drive, immediate error in Disk Utility "Input/Output Error". Switched USB cords/ports, nothing. Just getting a second opinion before I trash it.
    I know I can probably take out the drive and put it in an external case, but this was just going to be an extra drive for a friend, not worth the $20 for the case.
    Thanks

    I'm getting the same errors from both my USB ports when I try to format a brand new Maxtor 1TB drive.
    I had noticed some strange errors a week ago when Time Machine was reporting an error saying it had failed (this was using a nother external firewire drive). Errors were (not verbatim) "error writing files" & "unknown error".
    I naturally thought there was a prob with the ext drive, so knowing that I had at least a good full back-up on there, bought a new ext drive (larger) to perform a full backup on so I could reformat the firewire drive and utilise it elsewhere - but got errors when I tried to set it up as a Time Machine drive seconds after I took it out of the box.
    I ran "Verify Disk" on my internal macbook HD and it reported some permission errors and mis-reported file sizes and told me to "Repair Disk". I did, and this stated it fixed a few things. Ran Verify again and it still reported some permission errors.
    Now, this leaves me in a sticky spot. I can't format the maxtor external disk in order to manually copy over my disk content, it doesn't even show up in disk Utility or in Finder. I can't perform a Time Machine backup - as it can't see the maxtor disk. I can't do a TM backup on the old Firewire disk - due to the program errors. AND it appears I have permission errors on my internal HD.
    Whatever course of action I take to correct these problems - I would like the knowledge that I have a full backup to restore from if things "head south" while I look to correct the HD permission issues.
    Anyone out there with some REAL SMART ideas that can help me out here ?
    Right now I'll even accept "Half Smart", "Clever" and "**** - Why Didn't I Think Of That" answers !
    S.

  • Input/Output Error USB 2.0 External Hard Drive

    I recently started having problems with an external hard drive setup that I did not have prior to trying to setup the drive to be compatible with Time Machine.
    The hard drive enclosure that I have has 2 bays for two SATA drives. I have used this enclosure without any problems until I tried to get 1 drive to act as the backup drive for Time Machine and the other to be storage. I formatted them using Drive Genius. I used the option for GUILD or GUIL which it said was the better format for using with Time Machine.
    The first problem I ran into since reformatting the drives is I got an "input/output" error the first couple times I connected the drive via USB to my Mac. I could still use the drives but I got weird errors every once in a while like "input/output error" or "device was not ejected properly" even though the device had not been unplugged.
    Now the drives will not mount using OS 10.5.5. The drives show up when I open Disk Utility, but I cannot get them to mount. I have ran Disk Utility First Aid, and it says the drives are fine. There is one error that shows up when I run the "Repair Disk" feature. It reads "Invalid content in Journal". But Disk Utility also says "The volume was repaired successfully".
    I have seen some posts when I do a search in google about this issue and it seems this is a known issue. Every suggestion I see says to insert your Tiger DVD and reformat the drive using that and the problem will be solved. The only problem with that is I have a lot of important files on the drive that I cannot lose. I had the files backed up until I moved them to the new drive a while back. Now I do not have a backup because I was in the process of switching to bigger drives and erased the old drives after doing so because everything was working fine.
    I am hoping someone out there may have some suggestions (other than erasing the drive) to get my dives to mount so I can transfer the data off to another drive and reformat after.
    Thanks,
    Paul Rugg

    I have similar problems with my USB external HD. Reformatting or repartitioning will not solve your problem. I've tried that 2 times already. The problem will reappear. My HD was running great until last month, when it suddenly without warning disappears from disk utility and the mac altogether. It not only dismounts itself, but also ejects itself, while still physically connected and the power is still on. The HD has its own power supply of course and is directly connected to one of the iMac USB ports. I have erased, repartitioned, disk verified, rebuild spotlight indexes, cleared PRAM and NVRAM, but nothing has solved the problem.
    It is application independent, and not related to like iTunes as another post had suggested. Nothing to do with Mac applications. It seems to be USB related.
    Messages in the Console seem to indicate something wrong with 'USB transactions passed their expiration point' and 'USB cannot enumerate something', but these statements are a bit cryptic to me. Perhaps an Apple system engineer can someday shed some light here.
    thanks much for any assistance.

  • Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/ja/BE/char.bin Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/ja/BE/dicrc Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/ja/BE/matrix.bin Open error 5: "Input/outp

    Please can any one help.
    All sound has disappeared from my imac, it just 2 years old, I've run disk warrior and disk repair/verify and this is what come up.
    ARe there any solutions?
    Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/ja/BE/char.bin
    Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/ja/BE/dicrc
    Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/ja/BE/matrix.bin
    Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/ja/BE/sys.dic
    Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/ja/BE/unk.dic
    Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/sc/BE/matrix.bin
    Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/sc/BE/sys.dic
    Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/sc/BE/unk.dic
    Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/tc/BE/char.bin
    Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/tc/BE/dicrc
    Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/tc/BE/matrix.bin
    Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/tc/BE/sys.dic
    Open error 5: "Input/output error" on usr/lib/mecab/dic/apple/tc/BE/unk.dic
    Open error 5: "Input/output error" on System/Library/Extensions/AppleSMBIOS.kext/Contents/CodeDirectory
    Open error 5: "Input/output error" on System/Library/Extensions/AppleSMBIOS.kext/Contents/CodeRequirements
    Open error 5: "Input/output error" on System/Library/Extensions/AppleSMBIOS.kext/Contents/CodeResources
    Open error 5: "Input/output error" on System/Library/Extensions/AppleSMBIOS.kext/Contents/CodeSignature
    Open error 5: "Input/output error" on System/Library/Extensions/AppleSMBIOS.kext/Contents/_CodeSignature/CodeRequirem ents
    Open error 5: "Input/output error" on System/Library/Extensions/SM56KUSBAudioFamily.kext/Contents/PlugIns/AppleSM56KU SBModemFamily.kext/Contents/_CodeSignature/CodeRequirements
    Open error 5: "Input/output error" on System/Library/Extensions/SM56KUSBAudioFamily.kext/Contents/Resources/English.l proj
    Open error 5: "Input/output error" on System/Library/Extensions/SM56KUSBAudioFamily.kext/Contents/Resources/English.l proj/InfoPlist.strings
    Open error 5: "Input/output error" on System/Library/Extensions/SM56KUSBAudioFamily.kext/Contents/_CodeSignature/Code Requirements

    Whew, generally those errors would indicate a serious Hard Drive problem, but possibly RAM or Logic Board... any other drives connected?
    See if the Disk is issuing any S.M.A.R.T errors in Disk Utility...
    http://support.apple.com/kb/PH7029

  • Sending Mail Content as Input to Java WebService through SOA

    Hi Experts,
    I am working on a SOA project in 11.1.1.6
    My project requirement is to send Mail Content (a paragraph with 3 lines with new lines in middle of statements) as input to the Java API which is deployed as webservice.
    To one of the arguments of the Java API, I need to pass this mail content as Input. Need your expert advice on the same. Thanks in Advance.
    Example of Mail Content:
    Hi,
    This is a Test Mail
    Thanks

    - create a new webservice in the composite and link it to your bpel
    - in your bpel invoke the partnerlink
    - to "format" you mail you could create a custom xsl which will create the mail in html format for you"
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <xsl:output method="html"/>
    <xsl:template match="/">
    Hi,<br/>
    <br/>
    This is a Test Mail<br/>
    <br/>
    Thanks
    </xsl:template>
    </xsl:stylesheet>Or css and style the html email in a big cleaner way

  • Input/Output And Method Not Found Problem

    Ok so firstly I think I should apologise on two fronts.
    Firstly, 'cause this is probably posted in the wrong board but I'm not sure this was suitable for the Swing board just 'cause I've been using Swing? And secondly 'cause the code I'm gonna post is so shoddy I would think this constitutes as flaim-bait. >_>
    In my defense this is purely for a little class project to give something to write some documentation on so I'm really not too bothered about the efficiency or ace-mazingness of the end result. I just want it to work.
    To the problem at hand.
    I'm trying to write a program that asks the user a question and then outputs their answer to a file, from which a tally of answers can later be made for the purpose of displaying "results".
    My problem is I've been having problems with the input/output of saving the answers given to the program.
    I'm still learning and input/output is probably my weakest subject (other than, y'know, being good at Java). I've had a bash at it in the following code but all it does it overwrite what is in the file with a single answer so no list of results accumulate. I generally don't have an idea what to try for that one so any pointers would be appreciated.
    Also, my second problem is, in trying to gather results by tallying what is contained in the file, I've run across a problem with the charAt() method not being found and I'm not sure why. Isn't that method a part of java.lang?
    Here's the code thus far:
    //libraries
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.text.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.text.*;
    import java.io.*;
    class CaseStudy {
         public static void main(String args[]) {
              GUI maininterface = new GUI();
              maininterface.setupMenu();
              maininterface.display();
    class GUI {
         //for the actionlisteners
         int whatframe = 0;
         //creates mainframe and border content panel
         JFrame mainframe = new JFrame("Survey Client");
         JPanel borderpanel = new JPanel(), bottompanel = new JPanel();
         JButton quizbutton = new JButton("Take the quiz"), tallybutton = new JButton("Show Results"), submitbutton = new JButton("Submit Results"), menubutton = new JButton("Return To Menu");
         QuizQuestions toppanel = new QuizQuestions();
         QuizResults toppanel2 = new QuizResults();
         GUI() {
              //sets border in borderpanel, this spaces the main content in from the sides of the window
              borderpanel.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));
              //sets up the frame and panels and adds on borders
              mainframe.setDefaultCloseOperation(mainframe.EXIT_ON_CLOSE); // exits java when clicking on close on main frame
              mainframe.getContentPane().add(borderpanel); // adds the panel as a component to the frame, the panel can hold stuffs
              borderpanel.setLayout(new BoxLayout(borderpanel, BoxLayout.PAGE_AXIS));// page_axis means it'll layout vertically
              bottompanel.setLayout(new BoxLayout(bottompanel, BoxLayout.LINE_AXIS));// line_axis means it'll layout horizontally
              //gives button an action
              quizbutton.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        setupQuiz();
              tallybutton.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        if(whatframe == 1) setupResults();
                        else {
                             int rusure = JOptionPane.showConfirmDialog(null, "Are you sure you wish to show results? Any current quiz answers won't be saved.", "Please Choose One", JOptionPane.YES_NO_OPTION);
                             if(rusure == JOptionPane.YES_OPTION) setupResults();
              menubutton.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        setupMenu();
              submitbutton.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        toppanel.doQuiz();
              borderpanel.add(bottompanel);
         public void setupMenu() {
              if(whatframe == 3) {
                   bottompanel.remove(menubutton);
                   borderpanel.remove(toppanel2);
              whatframe = 1;
              //adds components and lays them out
              bottompanel.add(quizbutton);
              bottompanel.add(Box.createRigidArea(new Dimension(0,10)));
              bottompanel.add(tallybutton);
              display();
         public void setupQuiz() {
              bottompanel.remove(quizbutton);
              bottompanel.remove(Box.createRigidArea(new Dimension(0,10)));
              bottompanel.remove(tallybutton);
              whatframe = 2;
              bottompanel.add(submitbutton);
              bottompanel.add(Box.createRigidArea(new Dimension(0,10)));
              bottompanel.add(tallybutton);
              borderpanel.add(toppanel);
              display();
         public void setupResults() {
              if(whatframe == 1) {
                   bottompanel.remove(quizbutton);
                   bottompanel.remove(Box.createRigidArea(new Dimension(0,10)));
                   bottompanel.remove(tallybutton);
              else {
                   bottompanel.remove(submitbutton);
                   bottompanel.remove(Box.createRigidArea(new Dimension(0,10)));
                   bottompanel.remove(tallybutton);
                   borderpanel.remove(toppanel);
              whatframe = 3;
              bottompanel.add(menubutton);
              borderpanel.add(toppanel2);
              display();
         public void display() {
              //sets the size of the frame around it's components and then shows it
              mainframe.pack();
              mainframe.setVisible(true);
              mainframe.validate(); //makes referenced container relayout it's components
    class QuizQuestions extends JPanel {
         LoadingSaving loadsave = new LoadingSaving();
         JPanel popm = new JPanel(), pop1 = new JPanel(), pop2 = new JPanel(), pop3 = new JPanel(), pop4 = new JPanel();
         JFormattedTextField ques = new JFormattedTextField(), op1 = new JFormattedTextField(), op2 = new JFormattedTextField(), op3 = new JFormattedTextField(), op4 = new JFormattedTextField();
         JButton bop1 = new JButton("1"), bop2 = new JButton("2"), bop3 = new JButton("3"), bop4 = new JButton("4");
         char answer;
         QuizQuestions() {
              popm.setLayout(new BoxLayout(popm, BoxLayout.PAGE_AXIS));
              pop1.setLayout(new BoxLayout(pop1, BoxLayout.LINE_AXIS));
              pop2.setLayout(new BoxLayout(pop2, BoxLayout.LINE_AXIS));
              pop3.setLayout(new BoxLayout(pop3, BoxLayout.LINE_AXIS));
              pop4.setLayout(new BoxLayout(pop4, BoxLayout.LINE_AXIS));
              this.add(popm);
              popm.add(ques);
              popm.add(pop1);
              popm.add(pop2);
              popm.add(pop3);
              popm.add(pop4);
              pop1.add(op1);
              pop1.add(bop1);
              pop2.add(op2);
              pop2.add(bop2);
              pop3.add(op3);
              pop3.add(bop3);
              pop4.add(op4);
              pop4.add(bop4);
              //sets up question text fields
              ques.setEditable(false);
              op1.setEditable(false);
              op2.setEditable(false);
              op3.setEditable(false);
              op4.setEditable(false);
              bop1.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        answer = 'a';
              bop2.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        answer = 'b';
              bop3.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        answer = 'c';
              bop4.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e1) {
                        answer = 'd';
              Question1();
         public void doQuiz() {
              loadsave.save(answer);
         public void Question1() {
              ques.setValue("Who's your favourite X-Men character?");
              op1.setValue("Cyclops");
              op2.setValue("Xavier");
              op3.setValue("Wolverine");
              op4.setValue("Rogue");
    class QuizResults extends JPanel {
         LoadingSaving loadsave = new LoadingSaving();
         JPanel popm = new JPanel();
         JFormattedTextField op1 = new JFormattedTextField(), op2 = new JFormattedTextField(), op3 = new JFormattedTextField(), op4 = new JFormattedTextField();
         int[] answerarray = new int[4];
         QuizResults() {
              popm.setLayout(new BoxLayout(popm, BoxLayout.PAGE_AXIS));
              this.add(popm);
              popm.add(op1);
              popm.add(op2);
              popm.add(op3);
              popm.add(op4);
              op1.setEditable(false);
              op2.setEditable(false);
              op3.setEditable(false);
              op4.setEditable(false);
              answerarray = loadsave.load();
              op1.setValue(answerarray[0]);
              op2.setValue(answerarray[1]);
              op3.setValue(answerarray[2]);
              op4.setValue(answerarray[3]);
    class LoadingSaving {
         public void save(char answer) {
              FileReader fr;
              FileWriter fw;
              BufferedReader br;
              String s;
              try {
              //ERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERROR
                   fr = new FileReader("casestudyoutput.txt");
                   fw = new FileWriter("casestudyoutput.txt");
                   br = new BufferedReader(fr);
                   if (br.readLine() == null) s = "x";
                   else s = br.readLine();
                   s = s + answer;
                   fw.write(s);
                   fr.close();
                   fw.close();
              //ERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERROR
              catch(FileNotFoundException exc) {
                   JOptionPane.showMessageDialog(null, "File not found.");
                   return;
              catch(IOException exc) {
                   JOptionPane.showMessageDialog(null, "Something bad happened.");
                   return;
         public int[] load() {
              FileReader fr;
              BufferedReader br;
              int[] answerarray = new int[3];
              String s;
              long length;
              int a = 0, b = 0, c = 0, d = 0;
              answerarray[0] = 0;
              answerarray[1] = 0;
              answerarray[2] = 0;
              answerarray[3] = 0;
              try {
                   fr = new FileReader("casestudyoutput.txt");
                   br = new BufferedReader(fr);
                   if (br.readLine() == null) return answerarray;
                   else s = br.readLine();
                   length = s.length();
                   for(int i = 0; i < length; i++) {
                        char ch = charAt(i); //ERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERRORERROR
                        switch(ch) {
                             case 'a':
                                  a++;
                                  break;
                             case 'b':
                                  b++;
                                  break;
                             case 'c':
                                  c++;
                                  break;
                             case 'd':
                                  d++;
                                  break;
                   answerarray[0] = a;
                   answerarray[1] = b;
                   answerarray[2] = c;
                   answerarray[3] = d;
                   fr.close();
              catch(FileNotFoundException exc) {
                   JOptionPane.showMessageDialog(null, "File not found.");
                   return answerarray;
              catch(IOException exc) {
                   JOptionPane.showMessageDialog(null, "Something bad happened.");
                   return answerarray;
         return answerarray;
    }Any pointers/tips/solutions/angry posts to tell me to stop trying to learn Java would be greatly appreciated.
    Thanks in advance!
    Oh, and in trying to work with it a bit further I realised I'm having a few problems with runtime errors due to exceptions. The first was due to the array being assigned out of bounds (fixed in the above code). But the second reads the following:
    Exception in thread "main" java.lang.NullPointerException
         at Loadingsaving.load(CaseStudy.java:330)
         at QuizResults.(init)(CaseStudy.java.259)
         at GUI.(init)(CaseStudy.java:34)
         at CaseStudy.main(CaseStudy.java:15)Not quite sure what this one means or how to handle it. =\
    Edited by: ThePermster on May 19, 2008 8:08 AM

    A NullPointerException means a method has been called on a null object, or a variable that isn't pointing to any object. Your Exception points to line 330, which is:
    length = s.length();A NPE on that line means that s is null. So let's look at where s is set:
    if (br.readLine() == null) return answerarray;
    else s = br.readLine();s gets it's value from br.readLine(), so that method must be returning null. You have a logical error here. Look at your If-Else. It reads a line, makes sure it isn't null...then it reads another line. Well what if that line is null? You are performing 2 reads here instead of 1.
    Since your If condition returns a value, there's no need for an Else. The code will continue on until it reaches another return. Try this:
    s = br.readLine();
    if (s == null) return answerarray;

  • How to automatically retrieve a task Input/Output structure in SAPUI5?

    Hi guys,
    I am trying to figure out a way to automatically retrieve the complex type specified as a task input/output without hard coding the name of the complex type. So far I have a process with two reporting activities and a task, built as a custom technologies with specified Input and Output from the process context. Then I built a UI where I created an OData model, whose properties I bound to properties of the model, but this happened by exactly specifying the name of the complex type in the controller:
    // bind customer data (i.e. the task input data) to the panel
      customerDataPanel.bindElement("/InputData('" + taskId + "')", {expand : "Customer"});
    and the exact attribute names in the view:
      oMatrix.createRow(
       new sap.ui.commons.Label({text : "First Name", design : sap.ui.commons.LabelDesign.Bold }),
       // property binding of a text field to the attribute in Customer object
       new sap.ui.commons.TextField({value : "{Customer/firstName}"})//property binding
       oMatrix.createRow(
       new sap.ui.commons.Label({text : "Last Name", design : sap.ui.commons.LabelDesign.Bold }),
       new sap.ui.commons.TextField({value : "{Customer/lastName}"})//property binding
       oMatrix.createRow(
       new sap.ui.commons.Label({text : "Street", design : sap.ui.commons.LabelDesign.Bold }),
       new sap.ui.commons.TextField({value : "{Customer/address-street}"})//property binding
       oMatrix.createRow(
      new sap.ui.commons.Label({text : "City", design : sap.ui.commons.LabelDesign.Bold }),
      new sap.ui.commons.TextField({value : "{Customer/address-city}"})//property binding
       oMatrix.createRow(
      new sap.ui.commons.Label({text : "Zip", design : sap.ui.commons.LabelDesign.Bold }),
      new sap.ui.commons.TextField({value : "{Customer/address-zip}"})//property binding
       oMatrix.createRow(
      new sap.ui.commons.Label({text : "Country", design : sap.ui.commons.LabelDesign.Bold }),
      new sap.ui.commons.TextField({value : "{Customer/address-country}"})//property binding
       oMatrix.createRow(
      new sap.ui.commons.Label({text : "Currency", design : sap.ui.commons.LabelDesign.Bold }),
      new sap.ui.commons.TextField({value : "{Customer/currency}"})   //property binding
      oMatrix.createRow(
        new sap.ui.commons.Label({text : "RequestNr", design : sap.ui.commons.LabelDesign.Bold }),
        new sap.ui.commons.TextField({value : "{Customer/requestNr}"})   //property binding
    Is it possible for this binding to happen automatically in some kind of way without me specifying every single attribute name? As you can imagine in a real project, there will be even more complex types used in the UI and it is not feasible at all to have to specify each and every single attribute's name.
    Any suggestions will be much appreciated.

    Hi Deepa,
    How about adding another action to the "Add Company" Button which will also trigger the search?
    See:
    http://help.sap.com/saphelp_nwce711/helpdata/en/48/17fbc3a3050be8e10000000a42189d/frameset.htm
    And:
    http://help.sap.com/saphelp_nwce711/helpdata/en/ae/facedea03743f18aaf2edf12465fd8/frameset.htm
    For more details.
    Hope this helps.
    Regards.
    Omer.

  • Empty Business Rule Facts while assigning input/output facts

    jdev version - 11.1.1.2
    I am trying to call business rules from a BPEL. But when I try to assign input/output facts, business rule facts portion is shown empty.
    Please note that I have defined input and output facts while defining the business rule component. The input/output facts are based on following xsd:
    <?xml version= '1.0' encoding= 'UTF-8' ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.globalcompany.com/ns/CaseStudy/rules"
    targetNamespace="http://www.globalcompany.com/ns/CaseStudy/rules" elementFormDefault="qualified">
    <xsd:element name="approveInput">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="amount" type="xsd:double"/>
    <xsd:element name="approvalRequired" type="xsd:boolean"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="approveOutput">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="status" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    Input fact is of type "approveInput" while output fact is of type "approveOutput".
    I can share my project/application if required.
    Please let me know if something is incorrect/missing here.
    Thanks in advance

    HI,
    Do you have any question? The forum is for questions and discussions,
    if you want to share your Biztalk blogs, it's recommended to post it to TechNet Wiki, and you could follow the article below to join TechNet Wiki,
    Join TechNet Wiki: http://social.technet.microsoft.com/wiki/contents/articles/129.technet-wiki-how-to-join.aspx 
    Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

  • Content Enrichment Fields and OOTB Entity Extraction and hithighlightedsummary

    Hi guys, i have a strange problem. I add several properties at the content enrichment service. They all feature in the full text index. I can check this by searching for phrases that only occur in those properties. However, hithighlightedsummary is not generated
    for those properties and the companies OOTB extractor will not produce any results (although I have checked the companies extraction on the managed properties is turned on).
    This is in contrast to the development environment where both seem to work just fine. Is there something I have to do to turn these features on?
    Thanks, Emir

    ...great:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/19932af1-d461-4a3d-8f75-775c6adf9b69/hithighlightedsummary-empty?forum=sharepointsearch
    Looks like managed properties do not support hithighlightedsummary only the body property does ...

  • Help with Input/Output Parameter Size using OLE DB Provider

    I am using the OLE DB Provider for 9i in an Active Server Page to call a stored procedure in a 9i database. I pass have an input/output parameter (adVarChar with adSize=30) in which I pass a two digit number in, and expect to get a character value greater than 2 characters in return. However, when I execute the stored procedure call, it appears the value being returned in the parameter is being truncated to the size of the value I passed in (2 characters). Is there a way I can insure the parameter will return the entire length of the result regardless of the length of the input value?

    cmd.Parameters.Add("retstatus", OracleDbType.Varchar2, 200, ParameterDirection.InputOutput); It seems to me that you're trying to use an OracleParameter constructor with parameter name, parameter type, parameter SIZE, and parameter direction. But OracleParameter class does not have any such constructor. Therefore, your test tries to use another constructor incorrectly.
    OracleParameter has two constructors with four parameter ...
    public OracleParameter(string parameterName, OracleDbType type, object obj, ParameterDirection direction)
    public OracleParameter(string parameterName, OracleDbType type, int size, string srcColumn)
    ... and none of these matches your constructor. One way to solve this problem is to use appropriate constructor or OracleParameter properties.

Maybe you are looking for

  • SMARTFORMS - DUMP IN CONVERTING AMOUNT TO WORDS

    final internal table BEGIN OF STRUCT_FINAL , WA_FINAL - GTOTAL TYPE PAYR-WAERS, TEXT(75) TYPE C, END OF STRUCT_FINAL. RECORD NOW MOVED TO WA_FINAL IMPORT PARAMETER WA_FINAL - GTOTAL EXPORT PARAMETER WA_FINAL-TEXT CALL FUNCTION 'HR_IN_CHG_INR_WRDS'  

  • How to convert Labview file 10.0 to 7.1

    Hi I was wondering if anyone could tell me how to convert my 10.0 vi file to a 7.1 vi file. Thank you very much. By the way, it's from a student version if that matters at all. -Brian

  • Uix:dateField inside struts html:form

    this renders calendar: <uix:form name="f8"> <uix:dateField name="e2" /> </uix:form> this not: <html:form styleId="f3" action="showsth.do"> <uix:dateField name="e2" /> </html:form> where html:form is struts form why? what am I doing wrong? I thing use

  • Zen V Plus - Charging Prob

    I've plugged my new Zen V Plus into my USB port, and the battery charging indicator has been flashing as expected. However, 9 hours later the battery indicator is only showing about a quarter charge. Any ideas?Thanks?Stompa?

  • Frames Missing When publish live video to fms server

    I am creating flex mobile application , that allows people to connect using a android camera and microphone,then recording video from android camera to Flash Media Server(FMS) 5 starter using adobe flex but when I play the recorded live video from FM