Please help explain strange behaviour of progressive relaxation..

Hello
I am building theo Oracle text querry and I stumbled on a behaviour which I cannot explain...
here is the topo:
I have created a synonym thusly:
ctx_thes.create_relation('GR_THESAURUS','LEBOURGNEUF','SYN','BOURGNEUF');
when I issue this select:
SELECT      SCORE(1) NIVEAU_RECHERCHE, NOM,NO_MATRC,NO_NOM_REGST
FROM DUMMY
WHERE CONTAINS(nom, 'SYN(LEBOURGNEUF, GR_THESAURUS)', 1) > 0 ;
I get the expected result set which containsentries with either 'LEBOURGNEUF' or 'BOURGNEUF'. So far so good.
Now, when I combine search criterias using progressive relaxation, thus:
SELECT SCORE(1) NIVEAU_RECHERCHE, DUMMY.NO_MATRC,DUMMY.NO_NOM_REGST,DUMMY.NOM
FROM DUMMY
WHERE CONTAINS(nom, '<query>
<textquery lang="FRENCH" grammar="CONTEXT">LEBOURGNEUF golf
<progression>
<seq><rewrite>transform((TOKENS, "{", "}", "AND"))</rewrite></seq>
<seq><rewrite>transform((TOKENS, "{", "}", "OR"))</rewrite></seq>
<seq><rewrite>transform((TOKENS, "SYN(", ",GR_THESAURUS)", "OR"))</rewrite></seq>
</progression>
</textquery>
<score datatype="INTEGER" algorithm="DEFAULT"/>
</query>', 1) > 0;
I do NOT get any results matching synonym 'BOURGNEUF'.. only those with 'LEBOURGNEUF' are returned...
further, if I intentionaly make a syntax error in the line
<seq><rewrite>transform((TOKENS, "SYN(", ",GR_THESAURUS)", "OR"))</rewrite></seq>
say like this:
<seq><rewrite>transform((TOKENS, "xSYN(", ",GR_THESAURUS)", "OR"))</rewrite></seq>
no error is returned and I get the same result set...
so this leads me to conclude that only the first two lines of the query are parsed/executed...
does anyone here have any ideas what is going one here?
in the preceding quire I neeed to add
                                                  <seq><rewrite>transform((TOKENS, "SYN(", ",GR_THESAURUS)", "AND"))</rewrite></seq>
<seq><rewrite>transform((TOKENS, "SYN(", ",GR_THESAURUS)", "OR"))</rewrite></seq>
and possibly
<seq><rewrite>transform((TOKENS, "NT(", ",2,GR_THESAURUS)", "OR"))</rewrite></seq>
can this be done???
why is there no errors when I execute the query (in sqldeveloper) ???
any hints will be greatly appreciated!
Cheers
Edited by: user8848610 on 2009-10-29 07:46

now it works... although the simpler and cleaner solution of using transform would have been perfect, this function does a somewhat adequate job... I put it here so maybe it will help others ;)
     FUNCTION BuildSearchPredicate (texte IN NOM_ASSJT.NOM%TYPE) RETURN VARCHAR2 IS
     sSQL VARCHAR2(5000);
     sSeq1 VARCHAR2(1000);
     sSeq2 VARCHAR2(1000);
     sSeq3 VARCHAR2(1000);
     iFirst NUMBER(1);
     iPosition NUMBER;
     iToken NUMBER;
     CURSOR curWords(line_text IN VARCHAR2)      IS      
               select regexp_substr(line_text, '[^ ]+', 1, level) word
               from dual
               connect by regexp_substr(line_text, '[^ ]+', 1, level) is not null;
     BEGIN
     sSQL := sSQL || '<query><textquery lang="FRENCH" grammar="CONTEXT"><progression> ';
     sSeq1 := '';
     iFirst := 1;
     iToken := 0;
     FOR r_curWord IN curWords(texte)
     LOOP
     iToken := iToken + 1;
     IF iFirst = 0 THEN
               sSeq1 := sSeq1 || ' AND {' || trim(r_curWord.word) || '}';
               sSeq2 := sSeq2 || ' OR {' || trim(r_curWord.word) || '}';
               sSeq3 := sSeq3 || ' OR SYN(' || trim(r_curWord.word) || ',GR_THESAURUS)';
          ELSE
               sSeq1 := '{' || trim(r_curWord.word) || '}';
               sSeq2 := '{' || trim(r_curWord.word) || '}';
               sSeq3 := 'SYN(' || trim(r_curWord.word) || ',GR_THESAURUS)';
               iFirst := 0;
          END IF;
     END LOOP;
     sSQL := sSQL || '<seq>' || sSeq1 || '</seq>';
     iPosition := instr(sSeq1, ' AND ');
     IF instr(sSeq1, ' AND ',iPosition + 1) > 0 THEN -- we must have at least 2 AND operator for this to make sense
          WHILE iPosition > 0
          LOOP
IF instr(substr(sSeq1, iPosition + 5), ' AND ') > 0 THEN
sSQL := sSQL || '<seq>' || substr(sSeq1, iPosition + 5) || '</seq>';
END IF;
               iPosition := instr(sSeq1, ' AND ', iPosition + 1);
          END LOOP;
     END IF;
     IF iToken > 1 THEN -- no use in having OR if there is only one word
          sSQL := sSQL || '<seq>' || sSeq2 || '</seq>';
     END IF;
     sSQL := sSQL || '<seq>' || sSeq3 || '</seq>';
     RETURN sSql;
     END BuildSearchPredicate;     
END GR_RECH;
this will combine search words using AND and OR and SYN like so:
SELECT GR_RECH.BuildSearchPredicate('LEBOURGNEUF GOLF') FROM DUAL;
will result in :
<query><textquery lang="FRENCH" grammar="CONTEXT"><progression> <seq>{LEBOURGNEUF} AND {GOLF}</seq><seq>{LEBOURGNEUF} OR {GOLF}</seq><seq>SYN(LEBOURGNEUF,GR_THESAURUS) OR SYN(GOLF,GR_THESAURUS)</seq>
thanks for you help!
cheers
gth

Similar Messages

  • Please Help With Strange Cache Issue

    My Setup:
    a rpt report is "publish as web service" to a site hosted on IIS 7
    a Reportviewer control from a win app. accessing the report by seting its reportsource to http://xxxxxxxxxx/x.asmx
    Everything load and work correctly the first time i open my report from the winform
    My Strange Problem:
    When i re access the report (by closing down the winform then reload it and the reportviewer control) , it does not refresh data from the database again. I run a trace and verify this. It seem to be using some kind of server cache that i would like to turn off and ahve it hit the database every time i open the report
    Could someone please help?
    thanks

    So, all of the below is unknown:
    What version of CR? Unknown
    What updates for CR have been applied? None that I know of
    Make sure "Saved data" with report is not enabled. Unknown
    Make sure you dispose and close the report object. Unknown
    With all due respect, to use an analog, you're essentially saying; I got a car and it does not work. No idea if it has three wheels or four. No idea what make. No idea what engine. No idea if it uses gas, jet fuel, hydrogen... Now see if your local neighborhood mechanic can give you an idea ho to fix the car.
    Not sure why you do not have the info, unless this is a 3rd party app. If that is the case, you need to go to who ever created the app and get them to support you on it. E.g.; they will know the details and if need be, they can supply those to you or to this forum and we can go and see if we can get that car going.
    Ludek

  • Please Help - Very strange problem with internal String encoding

    I created a file in one-byte russian encoding cp1251 and declared String literal with 2 letters:
    String str = "ab"; //attention! ab - two russian characters
    After I got bytes from it - str.getBytes("cp1251") - it returned 2 byte's array.
    Now I created a file with UTF-8 encoding with equal content and suddenly:
    After I got bytes from it - str.getBytes("cp1251") - it returned 4! byte's array. Why?
    I need to get a one-byte encoded arrays (cp1251 or koi8-r) but getBytes ALWAYS returns two-byte encoded arrays.
    It is very strange: cp1251 is always one-byte encoded, but .getBytes("cp1251") returns two-byte on each letter. Why? Please help.

    I did not read a string from a file. I created 2 .java files with different encodings (cp1251 and UTF-8) and compiled them, telling compiler with -Dfile.encoding=*** to read them correctly. While execution java interprets two looking equal in editor strings as different objects with different .intern() representation.
    Why java consider source .java file encoding while creating internal representation of String object and creates from looking equally in editor strings two DIFFERENT Unicode representations. And it is impossible to convert one representation to other - impossible to get two equal byte[] arrays.

  • I forgot my passcode. Please help explain the steps to restore

    Forgot the password after changing it :/ So what should i do? It locked me out for a good 5 days. now i can stop it getting locked by attempting to sync into itunes and that way i tried 40 different combinations with similar patterns to what i THOUGHT i'd set it to. i don't want to loose my contacts or texts. most of my music is in my library so thats not an issue. i've seen a few videos on youtube where you hold down the power button and the home button. would this work? i backed it up last week (before i set the new password). when i just went to restore it, it offered me a choice to back it up again as well. if i were to back it up now would that make it imposible for me to restore since the new back up has the lost password on it? or should i just restore it to the one from last week??? Please help?? Phoning doesnt seem to work. i want to restore it to the backup i made last week but the way its asking me if i want to back up before i restore is what's confusing me.... if i click "dont back up" it says it will restore to factory defaults and everything will be lost but if i back up does'nt that mean it'll just restore to the way it is now...as in it'll restore itself to the part where i dont know the password... if any of that made any sense :S

    If you are unable to restore your iPhone with iTunes without having to enter the passcode, you will not be able to update your iPhone's backup. You will need to place the iPhone into recovery mode in order to restore the iPhone with iTunes and you can restore from the most recent backup available.
    http://support.apple.com/kb/ht1808

  • Please help with strange monitor/Lightroom 4 interaction problem

    I bought a Dell Ultrasharp U3011 yesterday, and I'm now facing a very strange problem. It's sort of related to the common discussed issue of Lightroom's color management, but there is a twist here. I'll explain.
    The monitor I had been using (and still have) was a Samsung SyncMaster 244T. I had no problems at all with it.
    With the U3011, I've run into this problem:
    -When I view files in Lightroom 4, the colors are muted and contrast low. The same files seen in Xnview, ACDSee Pro (with the color management turned off), Digital Photo Professional (colorspace set to sRGB), are much more vivid. In Photoshop, if I use the default color setting, it looks muted like Lightroom (I'm guessing because Adobe products have default color profile set to ProPhoto RGB), but if I set the color profile to the monitor's profile, it becomes vivid and matches the other software I mentioned. If I use any other profile such as sRGB IEC81966-2.1, ProPhoto RGB, Adobe RGB, etc, it doesn't match the other software I mentioned. This is strange because the other ones match each other because they are set to sRGB, but in Photoshop, even if I set the color profile to sRGB, it still doesn't match.
    -In Lightroom 4, even if I use Soft Proofing, nothing changes. It's as if Soft Proofing is broken--it doesn't do anything, no matter what color profile I choose.
    -Now, here's the twist. I didn't have any of these problems when I use the 244T. This leads me to assume that the problem is how the U3011 is interacting with Lightroom. I did a quick comparison of opening up the same image on both monitors in ACDSee Pro, and they looked identical. (At this point, I had the U3011's preset set to sRGB. This is the only preset that makes the U3011 look identical to the 244T).
    Next, I did an experiment, and I was very surprised by what happened. This is what I did:
    With both monitors as a dual display setup, I turned on Before/After comparison in Lightroom (made sure both version had the same setting and look identical by copying the After's setting to Before). I then moved Lightroom's window so that one photo is seen on the U3011, and the other shows up on the 244T. And OMIGOD, they looked different! Why is this happening? I've already established that the same image looks identical on both monitors when viewed with ACDSee Pro, but in Lightroom, they looked different on each monitor.
    And then things got even more weird. When I dragged the Lightroom window fully to one monitor or the other, Lightroom actually started changing the colors right before my eyes as it responded to which monitor was displaying which photo! Lightroom was somehow interacting with the monitor in real-time. So if the Before looked muted on U3011 and the After looked vivid on the 244T, when I drag the whole window into 244T, the muted Before will stay muted for about a second or so, and then it'll suddenly change and become identical to After. And when I did the reverse (drag the window into U3011), the reverse also happened--the vivid After will stay vivid on U3011 for about a second or so, and then it would suddenly change and become muted. Lightroom was identifying each monitor's color profile setting and changing the images according to which monitor was doing the displaying, and when the images were split between the two monitors, Lightroom was slitting them into two different settings to match whichever monitor is displaying which side.
    So what the hell does that all mean, and what can I do to get Lightroom to display the photos so that they look the same as on all the other software I mentioned (so I don't have to play the guessing game of editing the images, export them out to other software to check how they turned out). Also, remember that I didn't have this problem with the 244T--Lightroom displayed the photos the same way as the other software I mentioned. The problem right now is that the U3011 is somehow causing Lightroom to display the photos differently, and no color profile presets in the OSD control can make them match.
    I need to solve this problem, or else my last resort would be to return the U3011 and try another brand/model and see if that helps.
    Any ideas?

    Yes, that's basically sensible advice you got there (but I was more succinct ).
    An important point that was mentioned over there is that you must not confuse document/source profile with monitor profile. They are both links in the color management chain, but they serve different purposes. The document profile defines the colors in a standard color space. The monitor profile describes the monitor's own native color space - its response to the RGB numbers it's fed. So one is translated into the other, by the application on the fly, through a normal profile conversion, and that way the colors appear on-screen as intended.
    If those two profiles/color spaces are roughly similar, as they would be in the case of an sRGB document displayed on a standard gamut display - then you can get by without color management. It won't look too far off. But a wide gamut monitor changes the rules, because its native color space is not similar to sRGB, it's much closer to Adobe RGB.
    Anyway, this is what color management is about. Any profile can be translated into any other. So in this context it doesn't really matter what color space the document is in - as long as you have a good monitor profile it will display correctly (within practical limitations). Lightroom is a sort of special case because its internal working color space is not one of the standard ones, instead it's a modified ProPhoto space with linear gamma. But the basic principle is exactly the same: source profile > monitor profile.
    Just to go a little more in-depth while I'm at it: When you calibrate a display you actually do two separate things. You first calibrate it to a more or less standardized response. But that's just a linear one-dimensional correction. It does nothing about how color is actually reproduced, how red is red for instance. The calibration is global and affects everything system-wide because it's read into the video card or monitor hardware.
    Then, once calibrated, a monitor profile is made. This is a full, complete and accurate description of the monitor's behavior, in three-dimensional color space. The precision level is much higher. This profile is used, by color managed applications like Lightroom and Photoshop, to display the image.
    Other applications that are not color managed will simply ignore this profile, and send the RGB numbers straight through to the display, unmodified. With a standard gamut monitor (and an sRGB document) the difference won't be too dramatic and you may not notice it unless you look closely. But a wide gamut monitor will make the difference jump out immediately.

  • Please Help with strange error.

    I've searched extensively for an answer to this strange problem I'm having both throughout this forum and in Google and have come up dry. Any help would be HUGELY appreciated.
    I'm using Audition 3 with a Windows XP Pro SP3 comp.
    I have recorded some live music at 44.8/24 bit sample rate and used Audition to cut the individual tracks and make a few other minor editing changes. I saved the files and they play with no problem. I did this for about 10 complete live shows so this represents a lot of work and there are many files.
    Now I want to downsample the files to 44.1/16 like I have done many times before with no problems. Well, it seems that about 25% of the files I've saved, although can be played with my default player with no problems can NOT be opened using Audition. I receive an "above file name is invalid" error. I also tried to open with Audacity and get the same error message. I tried to right click on these files and choose "open with" but that option, along with copy, cut, rename, properties etc is not there. The names of these files are perfectly valid but I'm unable to rename the files. When I try to move, copy or cut the file, nothing happens.
    I've rebooted as well as defragged the drive but still no joy. I still have the original large files but it was so much work to edit these files I really don't want to do it all over again. I would like to know why it happened so it won't happen anymore.
    I think I covered everything here but if you have questions please ask. Does anyone have any ideas why this is happening and what I can do about it?
    Thank you very much,
    Seth
    UPDATE: I just found that Windows Media Player gives me the same error. I'm using XM Player as my audio player and it doesn't have any problems playing these files.

    Are these files "real" files or perhaps shortcuts to the files, and/or are these files located on a local hard drive or on a network drive (Windows Home Server...)? The "file" name may actually be a perfectly valid name, but when you are not logged in to that server, you might get that message.
    Is "above file name is invalid" the only part of the error, or is the filename (or part of it) in this error message. E.g. "04 above file name is invalid": it might indeed be possible that the spaces in the filename cause this error. But since you cannot rename them there's hardly a remedy other than to record these files again in AA whilst playing them in XM player.
    There is a utility called "unstoppable copier"; it can copy files that you normally cannot copy (http://www.roadkil.net/). Try that one so we can have a look at one of the files.

  • Please help, Very strange issue when generate different template

    Hello, Can someone help for below Strange Problem.
    1. The PDF template files are defined in BI Publisher Layout as a.pdf, b.pdf
    2. the parameters are defines in BI too
    4. logic as below, generated PDF based on a.pdf. generated PDF based on b.pdf,
    then merger a.pdf and b.pdf together.
    5. Codes for generated PDF as below
    this.reportDefinitionResp = bIPublisher.getReportDefinition(this.reportAbsolutePath, this.userID, this.password);
    this.reportRequest = new ReportRequest();
    this.reportRequest.parameterNameValues = this.reportDefinitionResp.reportParameterNameValues;
    this.reportResponse = bIPublisher.runReport(this.reportRequest, this.userID, this.password);
    6. the PDF generated by the a.pdf is correct, but generated by the b.pdf is not correct, instead it is same as a.pdf?
    so after merger, we get the duplicate pages.
    7. Not all templates has same issue, sometime we get this issue, how to fix it?

    Hi
    Click your HD to go to Finder,
    Go to Your User/Library/Caches,
    Drag com.apple.preferencepanes.cache to trash
    Restart your macbook.
    Good Luck.

  • Please help explain SAP Benchmark Terminology

    Hello,
    I am looking for help in understanding the terminology of some benchmarks for SAP applications.  I have read and re-read several pages on their website, including http://www.sap.com/solutions/benchmark/index.epx but still are not 100% clear.  I would greatly appreciate if someone familiar with SAP would answer the following questions:
    Q1. SD Standard Benchmark  - is it correct that this is not a single benchmark, but actually a generic term referring to all the SAP benchmarks including benchmarks for: Power, ERP, Supply Chain, Banking, Utilities, NetWeaver, Enterprise Portal, Customer Relationship Management, Product Lifecycle Management, and Retail?  If not, what is it?
    Q2. SAPS - is it correct that this is a unit of measurement and not a benchmark?  It looks like the results of the Sales and Distribution (SD) Benchmark are reported in SAPS.
    Q2b. I have seen cases where people refer to the "SAPS" benchmark.  If SAPS is a unit of measurement, is it safe to say that SAPS is another way of referring to the Sales and Distribution (SD) benchmark?  If yes, is it the 2-tier or 3-tier version?
    Q3. I have also seen cases where people refer to the "SAP" benchmark.  What are they most likely referring to?
    Q4. Please confirm that the following all refer to the same benchmark: SAP-SD Two-Tier, SAP SD 2-tier, SD2 SAPS, and SAP SD2
    Q5. Similarly, please confirm that the following all refer to the same benchmark: SAP-SD Three-Tier, SAP SD 3-tier, SD3 SAPS, and SAP SD3
    Q6. Finally, out of all of the SAP benchmarks, which one benchmark, if any, is most widely used?
    Thanks so much for your help!!!!

    apparently, I have to repackage ALL my classes via the "export to JAR" link in NWDS.  Using winzip is somehow screwing up the JAR.

  • Dv7t-3000 - Sata or Sata 2 - Please help explain what this has!

    I assumed that Sata 2 being mainstream for so long, this new laptop of mine would have it.
    I want to buy one of the nicer SSD for this unit, but I can NOT confirm anywhere that it will run up to 300 megs.
    If it's Sata 1 then I wouldn't be getting much performance gain from a SSD as this 7200RPM HDD rates up to 100 megs.
    I contacted HP Support and got told that my laptop only has Sata 1.
    I find this impossible to believe.  Why in the world would HP do that?  I read in a post on the forums that this laptop
    falls into the top 5% for overall performance for laptops.  How is that so unless it has sata 2?  Why would they
    have old Sata 1 in such new technology? 
    Can anyone confirm if HP Support is correct?  I have the guy second guessing himself right now and he asked for serial number to try and find documentation to support his claim.  I may have to RMA this beast and start searching for a laptop that has SATA II because that is the main reason I wanted a laptop!  For the SSD to WOW me!
    Thanks in advance for your thoughts, input, and effort you may put into this!
    WWW2000
    UPDATE:
    Otay.  Now I understand why all the reviews out there say what they say about HP support.  Makes you feel like you carried your new puppy into an auto garage to learn about it.  WRONG people, wrong place!
    Can anyone who knows english and knows about computers please tell me why the ...  why HP would be retarded and put Sata 1 in this killer laptop?  Do they really enjoy upsetting their customers?  All I kept getting for that supervisior was "you computer customized and you hard drive you choose sata 1" 
    I bought it directly from HP.com so I could have everything in it that you may not get from a retail store.  She couldn't seem to grasp that nowhere on hp.com does it let you know if you get sata 1 or sata 2.   Option not offered and it SHOULDN'T be.  It should automatically be sata 2!  Sata one was like so 1998!
    Sorry for being so upset.  I just want a killer SSD to make this beast all it should be and HP is telling me it's not going to happen.  Do I need to start an RMA?  Or can someone confirm that I can get read speeds of 230 from that SSD I want?
    Message Edited by www2000 on 12-01-2009 11:07 AM
    This question was solved.
    View Solution.

    Hi,
    Many owners(those who can afford it) of the dv7t series are putting OCZ agility and vertex drives in to replace their SATA hard disk.
    I have no doubt that the speed of the SSD disk will wow you even if it isn't SATA2. Think about restart times of 58 seconds!
    regards,
    erico 
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • Please help explain these bitwise operations!

    I am working with a file that has a header with the size of the file encoded into 4 bytes like:
    >
    The ID3v2 tag size is encoded with four bytes where the most significant bit (bit 7) is set to zero in every byte, making a total of 28 bits. The zeroed bits are ignored, so a 257 bytes long tag is represented as $00 00 02 01.
    I have found someone's code that puts this together into the integer value, but i don't understand why they do each step. Is there anyone here who can explain this code to me?
    //Read in the bytes (why do they read char[] instead of byte[]?)
    char[] tagSize = br.ReadChars(4);    // I use this to read the bytes in from the file
    //Store the shifted bytes (why is it int[], not byte[]?)
    int[] bytes = new int[4];      // for bit shifting
    int size = 0;    // for the final number
    * Why are they combining these bytes in this way if they're
    * going to again combine them below (in the line setting "size")?
    //how do they know they only care about the rightmost bit on the 3rd byte?
    //how do they know to shift it 7 to the left?
    bytes[3] =  tagSize[3] | ((tagSize[2] & 1) << 7) ;
    //Why do they use 63 here (I know it's 111111)?
    //how do they know they only want the 3 rightmost of byte 2nd byte?
    //And how know to shift it 6 to the left?
    bytes[2] = ((tagSize[2] >> 1) & 63) | ((tagSize[1] & 3) << 6) ;
    bytes[1] = ((tagSize[1] >> 2) & 31) | ((tagSize[0] & 7) << 5) ;
    bytes[0] = ((tagSize[0] >> 3) & 15) ;
    //how do they know to shift these bytes the amount that they do to the left?
    size  = ((UInt64)bytes[3] | ((UInt64)bytes[2] << 8)  | ((UInt64)bytes[1] << 16) | ((UInt64)bytes[0] << 24)) ;

    6tr6tr wrote:
    You've GOT to be kidding! I posted only ONCE on THIS forum. Javaranch is owned by a different company and does NOT have all the same members that this web forum has. Posting the same question on completely different websites' forums is NOT cross-posting. Cross-posting is posting the same thing in different boards of ONE website's forums.Absolute rubbish. Here a couple of links for you:
    Wikipedia:
    [Crossposting is the act of posting the same message to multiple forums, mailing lists, or newsgroups.|http://en.wikipedia.org/wiki/Crossposting]
    JavaRanch's FAQ:
    [There might be times when you are inclined to post a question not only at JavaRanch, but also at some other site. When you do so, keep in mind that this is not generally in the interests of the posters who might be responding to your posts - those folks may find they've wasted their time. You certainly don't want to annoy those you want to help you, so you might want to make the experience as painless as possible.|http://faq.javaranch.com/java/BeForthrightWhenCrossPostingToOtherSites]
    Sun's FAQ, section C2:
    [Post once and in the right area: Multiple postings are discouraged, because they make the category lists longer and create more email traffic for developers who have placed watches on multiple categories. Because of this, duplicate posts are considered a waste of time and an annoyance to many community members, that is, the people who might help you.|http://wikis.sun.com/display/SunForums/Forums.sun.com+FAQ]

  • Please help explain: Difference btw Seekbar in a skin and Seekbar standalone component

    Hi,
    I am confused about the follwing, can someobe please
    enlighten me.
    I noticed that the "Seekbar" component inside any of the
    default skins (e.g StellOverAll.fla) is just a place holder, it has
    2 layers with one layer having just an outline of a rectangle. And
    the SeebarProgress and the SeekbarHandle are place somewhere else
    inside the Skin component. However, if I select the "Seekbar"
    component from the component window and place it on the stage and
    double click to look inside, I can see 4 layers, with the
    SeekbarProgress component in one layer and the SeebarHandle on
    another layer.
    So my question is the following:
    1. Is the "Seekbar" component in the skin DIFFERENT than the
    "Seebar" component from the Component Window?
    2. How does the "Seekbar" component in the skin interact with
    the "SeekbarProgress" and "SeekbarHandle" components in the skin,
    when they are OUTSIDE the "Seekbar" component?
    Any answer will be greatly appreciated.

    20. How Throttling is implemented in OSB?
    SOA Work and Guide: OSB 11g - Throttling
    21. How Transactions are configured in OSB? How you would set the transaction time-outs?
    http://atheek.wordpress.com/2011/04/21/transaction-handling-within-osb/
    Regards
    Nasir

  • Please help explain this formulae

    if {SOP10100.SOPTYPE} in [3, 4] then
    {SOP10200.QUANTITY}
    else
    0
    Does "in(3,4) mean that if the value of SOP10100.SOPTYPE is 3 or 4 ?

    Yes the IN function means if the tested value is one of the possible values
    for example
    if 1 in [1,2] then
    "in"
    else
    "not in"
    will result in the word in being displayed because the tested value 1 is one of the possible values 1 OR 2
    The square brackets [ ] surround the list of possible values
    You can also do this
    if "abc" in "abcdefgh" then
    "in string"
    else
    "not in string"
    Look in the help index for IN
    Best regards
    Patrick

  • Please help!  Strange problem with HTTPD.Conf and OC4J (I think)

    Hi,
    We have been trying to configure the 10g "infrastructure" Apache server/instance to work with our own authentication module, and as part of this, we need to configure a directory alias containing some of our JSPs. To do this, the only thing that we did was that we took the standard HTTPD.CONF file that got installed with the 10g AS installation, and added a small section at the end.
    However, we are finding that if our addition to the HTTPD.CONF is included, instead of the JSPs in our aliased directory being processed, Apache seems to be just serving the JSPs as text pages :(..
    If we remove the section at the end of the HTTPD.CONF, and point a browser to the unaliased path, the JSPs get processed correctly.
    I was wondering if anyone here might take a look at our HTTPD.CONF below, and tell me if you can see something there that might be causing this behavior? The section that we added is at the very end. We think that the problem might be something like the "order" of the directives, etc. in the HTTPD.CONF file may be such that the alias is taking priority ahead of the OC4J, or something like that.
    Thanks in advance, and apologies for the long message.
    Jim
    =====================================================
    ServerType standalone
    ServerRoot "/orad59/10gAS/infrastructure/Apache/Apache"
    PidFile /orad59/10gAS/infrastructure/Apache/Apache/logs/httpd.pid
    ScoreBoardFile /orad59/10gAS/infrastructure/Apache/Apache/logs/httpd.scoreboard
    Timeout 300
    KeepAlive On
    MaxKeepAliveRequests 100
    KeepAliveTimeout 15
    MinSpareServers 5
    MaxSpareServers 20
    StartServers 5
    MaxClients 150
    MaxRequestsPerChild 0
    LoadModule onsint_module libexec/mod_onsint.so
    LoadModule mmap_static_module libexec/mod_mmap_static.so
    LoadModule vhost_alias_module libexec/mod_vhost_alias.so
    LoadModule env_module libexec/mod_env.so
    LoadModule define_module libexec/mod_define.so
    LoadModule config_log_module libexec/mod_log_config.so
    LoadModule agent_log_module libexec/mod_log_agent.so
    LoadModule referer_log_module libexec/mod_log_referer.so
    LoadModule mime_magic_module libexec/mod_mime_magic.so
    LoadModule mime_module libexec/mod_mime.so
    LoadModule negotiation_module libexec/mod_negotiation.so
    LoadModule status_module libexec/mod_status.so
    LoadModule info_module libexec/mod_info.so
    LoadModule includes_module libexec/mod_include.so
    LoadModule autoindex_module libexec/mod_autoindex.so
    LoadModule dir_module libexec/mod_dir.so
    LoadModule cgi_module libexec/mod_cgi.so
    LoadModule asis_module libexec/mod_asis.so
    LoadModule imap_module libexec/mod_imap.so
    LoadModule action_module libexec/mod_actions.so
    LoadModule speling_module libexec/mod_speling.so
    LoadModule userdir_module libexec/mod_userdir.so
    LoadModule alias_module libexec/mod_alias.so
    LoadModule access_module libexec/mod_access.so
    LoadModule auth_module libexec/mod_auth.so
    LoadModule anon_auth_module libexec/mod_auth_anon.so
    LoadModule dbm_auth_module libexec/mod_auth_dbm.so
    LoadModule digest_module libexec/mod_digest.so
    LoadModule proxy_module libexec/libproxy.so
    LoadModule cern_meta_module libexec/mod_cern_meta.so
    LoadModule expires_module libexec/mod_expires.so
    LoadModule headers_module libexec/mod_headers.so
    LoadModule usertrack_module libexec/mod_usertrack.so
    LoadModule unique_id_module libexec/mod_unique_id.so
    LoadModule setenvif_module libexec/mod_setenvif.so
    LoadModule perl_module libexec/libperl.so
    LoadModule fastcgi_module libexec/mod_fastcgi.so
    <IfDefine SSL>
    LoadModule ossl_module libexec/mod_ossl.so
    </IfDefine>
    LoadModule wchandshake_module libexec/mod_wchandshake.so
    ExtendedStatus On
    Port 7777
    Listen 7777
    User oracle
    Group dba
    ServerAdmin [email protected]
    ServerName ge1ssd04.test.com
    DocumentRoot "/orad59/10gAS/infrastructure/Apache/Apache/htdocs"
    <Directory />
    Options FollowSymLinks MultiViews
    AllowOverride None
    </Directory>
    <Directory "/orad59/10gAS/infrastructure/Apache/Apache/htdocs">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    <IfModule mod_userdir.c>
    UserDir public_html
    </IfModule>
    <IfModule mod_dir.c>
    DirectoryIndex index.html
    </IfModule>
    AccessFileName .htaccess
    <Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    </Files>
    UseCanonicalName On
    <IfModule mod_mime.c>
    TypesConfig /orad59/10gAS/infrastructure/Apache/Apache/conf/mime.types
    AddEncoding x-compress Z
    AddEncoding x-gzip gz tgz
    AddLanguage ar .ar
    AddLanguage da .dk .da
    AddLanguage nl .nl
    AddLanguage en .en
    AddLanguage et .ee
    AddLanguage fi .fi
    AddLanguage fr .fr
    AddLanguage de .de
    AddLanguage el .el
    AddLanguage es .es_ES .es
    AddLanguage he .he .iw
    AddLanguage hu .hu
    AddCharset ISO-8859-8 .iso8859-8
    AddLanguage it .it
    AddLanguage ja .ja
    AddCharset ISO-2022-JP .jis
    AddLanguage ko .ko
    AddLanguage kr .kr
    AddCharset ISO-2022-KR .iso-kr
    AddLanguage nn .nn
    AddLanguage no .no
    AddLanguage pl .po
    AddCharset ISO-8859-2 .iso-pl
    AddLanguage pt .pt
    AddLanguage pt-br .pt_BR .pt-br
    AddLanguage ltz .lu
    AddLanguage ca .ca
    AddLanguage sk .sk
    AddLanguage sv .sv
    AddLanguage th .th
    AddLanguage tr .tr
    AddLanguage cz .cz .cs
    AddLanguage ro .ro
    AddLanguage ru .ru
    AddLanguage zh-cn .zh_CN
    AddLanguage zh-tw .zh_TW
    AddCharset Big5 .Big5 .big5
    AddCharset WINDOWS-1251 .cp-1251
    AddCharset CP866 .cp866
    AddCharset ISO-8859-5 .iso-ru
    AddCharset KOI8-R .koi8-r
    AddCharset UCS-2 .ucs2
    AddCharset UCS-4 .ucs4
    AddCharset UTF-8 .utf8
    <IfModule mod_negotiation.c>
    LanguagePriority ar en da nl et fi fr de el it ja ko kr no pl pt pt-br ro ru ltz ca es sk sv th tr zh-cn zh-tw zh-cn
    </IfModule>
    AddType application/x-tar .tgz
    </IfModule>
    DefaultType text/plain
    <IfModule mod_mime_magic.c>
    MIMEMagicFile /orad59/10gAS/infrastructure/Apache/Apache/conf/magic
    </IfModule>
    HostnameLookups Off
    ErrorLog "|/orad59/10gAS/infrastructure/Apache/Apache/bin/rotatelogs /orad59/10gAS/infrastructure/Apache/Apache/logs/error_log 43200"
    LogLevel warn
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    LogFormat "%{Referer}i -> %U" referer
    LogFormat "%{User-agent}i" agent
    CustomLog "|/orad59/10gAS/infrastructure/Apache/Apache/bin/rotatelogs /orad59/10gAS/infrastructure/Apache/Apache/logs/access_log 43200" common
    ServerSignature On
    <IfModule mod_alias.c>
    Alias /icons/ "/orad59/10gAS/infrastructure/Apache/Apache/icons/"
    Alias /jservdocs/ "/orad59/10gAS/infrastructure/Apache/Jserv/docs/"
    Alias /javacachedocs/ "/orad59/10gAS/infrastructure/javacache/javadoc/"
    <IfModule mod_perl.c>
    Alias /perl/ "/orad59/10gAS/infrastructure/Apache/Apache/cgi-bin/"
    </IfModule>
    <Directory "/orad59/10gAS/infrastructure/Apache/Apache/icons">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    ScriptAlias /cgi-bin/ "/orad59/10gAS/infrastructure/Apache/Apache/cgi-bin/"
    <Directory "/orad59/10gAS/infrastructure/Apache/Apache/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
    </Directory>
    </IfModule>
    <IfModule mod_autoindex.c>
    IndexOptions FancyIndexing
    AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
    AddIconByType (TXT,/icons/text.gif) text/*
    AddIconByType (IMG,/icons/image2.gif) image/*
    AddIconByType (SND,/icons/sound2.gif) audio/*
    AddIconByType (VID,/icons/movie.gif) video/*
    AddIcon /icons/binary.gif .bin .exe
    AddIcon /icons/binhex.gif .hqx
    AddIcon /icons/tar.gif .tar
    AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
    AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
    AddIcon /icons/a.gif .ps .ai .eps
    AddIcon /icons/layout.gif .html .shtml .htm .pdf
    AddIcon /icons/text.gif .txt
    AddIcon /icons/c.gif .c
    AddIcon /icons/p.gif .pl .py
    AddIcon /icons/f.gif .for
    AddIcon /icons/dvi.gif .dvi
    AddIcon /icons/uuencoded.gif .uu
    AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
    AddIcon /icons/tex.gif .tex
    AddIcon /icons/bomb.gif core
    AddIcon /icons/back.gif ..
    AddIcon /icons/hand.right.gif README
    AddIcon /icons/folder.gif ^^DIRECTORY^^
    AddIcon /icons/blank.gif ^^BLANKICON^^
    ReadmeName README
    HeaderName HEADER
    IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
    </IfModule>
    <IfModule mod_setenvif.c>
    BrowserMatch "Mozilla/2" nokeepalive
    BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
    BrowserMatch "RealPlayer 4\.0" force-response-1.0
    BrowserMatch "Java/1\.0" force-response-1.0
    BrowserMatch "JDK/1\.0" force-response-1.0
    </IfModule>
    <Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from localhost ge1ssd04.test.com ge1ssd04
    </Location>
    SetEnv PERL5LIB "/orad59/10gAS/infrastructure/perl/lib/5.6.1:/orad59/10gAS/infrastructure/perl/lib/site_perl/5.6.1"
    <IfModule mod_perl.c>
    PerlModule Apache
    PerlModule Apache::Registry
    <Location /perl>
    SetHandler perl-script
    PerlHandler Apache::Registry
    AddHandler perl-script .pl
    Options +ExecCGI
    PerlSendHeader On
    </Location>
    </IfModule>
    <DirectoryMatch /WEB-INF/>
    Order deny,allow
    Deny from all
    </DirectoryMatch>
    <IfModule mod_fastcgi.c>
    Alias /fastcgi/ "/orad59/10gAS/infrastructure/Apache/fastcgi/"
    ScriptAlias /fcgi-bin/ "/orad59/10gAS/infrastructure/Apache/Apache/fcgi-bin/"
    <Directory "/orad59/10gAS/infrastructure/Apache/Apache/fcgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
    SetHandler fastcgi-script
    <IfModule mod_ossl.c>
    SSLOptions +StdEnvVars
    </IfModule>
    </Directory>
    </IfModule>
    PassEnv ORACLE_HOME
    PassEnv LD_LIBRARY_PATH
    PassEnv NLS_LANG
    PassEnv TNS_ADMIN
    <IfModule mod_oprocmgr.c>
    <Location /oprocmgr-service>
    SetHandler oprocmgr-service
    Order deny,allow
    Deny from all
    Allow from localhost ge1ssd04.test.com ge1ssd04
    </Location>
    <Location /oprocmgr-status>
    SetHandler oprocmgr-status
    Order deny,allow
    Deny from all
    Allow from localhost ge1ssd04.test.com ge1ssd04
    </Location>
    </IfModule>
    include "/orad59/10gAS/infrastructure/Apache/Apache/conf/mod_oc4j.conf"
    include "/orad59/10gAS/infrastructure/Apache/Apache/conf/dms.conf"
    LoadModule rewrite_module libexec/mod_rewrite.so
    include "/orad59/10gAS/infrastructure/Apache/Apache/conf/ssl.conf"
    include "/orad59/10gAS/infrastructure/Apache/Apache/conf/mod_osso.conf"
    include "/orad59/10gAS/infrastructure/Apache/Apache/conf/oracle_apache.conf"
    # MY ADDITIONS TO HTTPD.CONF GO BELOW HERE....
    LoadModule my_auth_module /opt/myagent/apache/lib/libmy_apache_agent_mod_ssl.so
    AddModule my_apache_mod.c
    <IfModule my_apache_mod.c>
         MYAgentRoot /opt/myagent/apache
    </IfModule>
    <IfModule my_apache_mod.c>
    <Location />
    AuthType Basic
    Require valid-user
    AuthName MYAUTH
    </Location>
    </IfModule>
    <IfModule my_apache_mod.c>
    Alias /mydir/ "/orad59/10gAS/infrastructure/j2ee/OC4J_SECURITY/applications/sso/web/jsp/myagentdir/"
    <Directory "/orad59/10gAS/infrastructure/j2ee/OC4J_SECURITY/applications/sso/web/jsp/myagentdir/">
    AuthType Basic
    Require valid-user
    AuthName MYAUTH
    </Directory>
    </IfModule>

    Hi,
    I wanted to post what we found on this.
    As indicated in my original msg, we had an Alias directory in the httpd.conf. However, after thinking about the problem a bit, I think that the Alias was not the right thing to do.
    The Alias tells Apache to map a URL fragment to a FILESYSTEM location. Well, obviously, Apache only SERVES pages... it doesn't process JSPs.
    We switched to using a Redirect directive instead of the Alias, and things worked a little better, but we've run into a bit of a problem with "Redirect looping", but that's a different story :)...
    Jim

  • Please help explain the error "Can't make «script» into type Unicode text"

    i am writing an applescript for my eyetv installation that handles recorded shows. i have posted in their forums, without reply, so thought maybe i could get some understanding of the technicalities of the fault to try to fix myself!!
    i have a sub-routine:
    to deleteeyetvrecording(theRecordingID)
    set theScriptLibrary to load script file "Macintosh HD:Library:Scripts:ScriptLibraryv1.scpt"
    tell application "EyeTV"
    theScriptLibrary's log_event("RecordingDone", "Deleting EyeTV recording: " & (get title of theRecordingID), 2)
    try
    delete theRecordingID
    on error theErrorMessage number theErrorNumber from theErrorObject
    theScriptLibrary's log_event("RecordingDone", "deleteeyetvrecording: " & theErrorNumber & ": " & theErrorMessage & ". Object: " & theErrorObject, 2)
    end try
    end tell
    end deleteeyetvrecording
    even though the line above the error works fine and retrieves the Title property of the eyetv recording, the delete command on the next line outputs to the log file:
    Sunday, October 26, 2008 09:50:51 [ 1 ] Error deleting file (4/4): -1700: Can’t make «script» into type Unicode text.
    what does this error mean? what syntax changes are needed?
    note this sub-routine worked in v1 of my script - i only copy and pasted it to the v2 script! go figure!
    regards
    jingo_man

    Hello
    Without knowing what theRecordingID is, how deleteeyetvrecording() is called and what the actual code of log_event() is, I can only guess.
    The said error log is most likely not written by the code in the try block you provided, which should throw error by itself when theErrorObject cannot be coerced to string. I'd guess you have an enclosing try block where you call deleteeyetvrecording() and the said error log comes from there.
    As far as I can tell, you should not assume that you can always coerce theErroObject (that is obtained from 'from' parameter of 'on error' statement) to text.
    Too little information to go any further.
    H

  • Please help explain

    Hi,
    I do not understand why my customized logon.par is not loading.  I have modified my SAPMLogonLogic.java file so that my reset password functionality is customized.  I have managed to load the classes and resolved build errors.  I have removed the com folder from the umelogonbase.jar file.  Prior to all these modifications, my logon.par was working without any complications.  With all these modifications, my logon.par is not loading with a class not found exception (IAccessToLogic).  I can understand that the logon.par fails because the portal is attempting to find this class in the umelogonbase.jar, which no longer has the class.  However, I do not understand why it should still refer to umelogonbase.jar for the class since the class has already been built and output to the classes.api folder. 
    If I put a privatesharingrefernce or add com.sap.runtime.logon to the sharingreference, the logon.par loads, but without my customizations. 
    Questions:
    1. why does my logon.par refer to the umelogonbase.jar for a class that is no longer there, but defined within classes.api (or src.core)?
    2. wat should I do with the rest of the properties file in umelogonbase.jar?
    Thank You.

    apparently, I have to repackage ALL my classes via the "export to JAR" link in NWDS.  Using winzip is somehow screwing up the JAR.

Maybe you are looking for