Help with production jvm issues at customer site

Following is a brief overview of two production issues experienced by an Oracle customer. Customer is currently running 32 bit Java 1.5_20 on Solaris 64 bit OS.
1)     OOM heap issues – SR #3-2611053901 – Recently we have been seeing OOM errors due to heap space. What we have seen is that some of the instances are not able to free up any memory space even after full GC, which results into a series of full GC’s back to back and eventually leads to OOM. During this time when continuous full GC is going on, we have seen the TCP connections and active JDBC connections shoot up and also lots of stuck threads. This error occurs during peak hours.
This is the output just before OOM. Just to be clear, this line is printed as last line of Full GC which meant that OOM happened right after Full GC:
[PSYoungGen: 111616K->82323K(172544K)] [PSOldGen: 1865727K->1865727K(1865728K)] 1977343K->1948051K(2038272K) [PSPermGen: 209111K->209061K(210944K)] GC time is exceeding GCTimeLimit of 98%, 13.3644395 secs]
2)     OOM swap space- SR: #3-1724941721 – From time to time, we get Exception in thread "CompilerThread0" java.lang.OutOfMemoryError: requested 32756 bytes for ChunkPool::allocate. Out of swap space?’ error in our production. Mostly this error occurs during off hours or off-peak hours. When this happen, there is plenty of heap and perm memory available which indicates that this is a native memory error. We already put two workarounds suggested by Oracle i.e. -XX:CodeCacheMinimumFreeSpace=8m -XX:ReservedCodeCacheSize=128m but still running into this problem.
What we are looking for:
1)     Recommendations on tuning our config parameters -
These are some recommendations we discussed internally. Please validate these recommendations and provide us the recommended values. We would also welcome any new recommendation on updating other parameters if that will help with our issues.
•     Change Xmx to 2048m and MaxPermSize to 512m
•     Specify ratio of young generation to old generation (-XX:NewRatio), and possibly survivor spaces.
•     Use Concurrent old generation collector (-XX:+UseConcMarkSweepGC), with a compatible parallel young generation collector (-XX:+UseParNewGC)
Our current config settings are:
JAVA Memory arguments: -Did=chaserels-cm21 -Xms1024m -Xmx2048m -XX:MaxPermSize=1024m -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:CodeCacheMinimumFreeSpace=8m -XX:ReservedCodeCacheSize=128m -verbose:gc -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=1641 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.awt.headless=true -Dfile.encoding=ISO646-US
In a subset of servers, the settings are same as above but for MaxPermSIze, which is set to -XX:MaxPermSize=512m
2)     Diagnostic help in how to further narrow down to the problem and what tool to use to gather heap dumps
We have tried to take heap dump using jmap on our production servers when OOM occurs due to heap but most of the time, we run into an exception (attached - which is probably an unresolved jvm bug). While we researched some alternatives to jmap for taking heap dumps, most of these require changing the start-up scripts or installing the tool on production system which may have a performance overhead. What we want is a least intrusive tool which could provide us heap dumps/snapshots without much overhead and could be preferably used remotely. If there are other ways of collecting data than heap dump, we could also use them.
Let me know if you have any questions or need any data.
Thanks for your help.
Error from heap dump :
Exception in thread "main" sun.jvm.hotspot.debugger.UnalignedAddressException: Trying to read at address: 0xfec080a7 with alignment: 4
at sun.jvm.hotspot.debugger.DebuggerUtilities.checkAlignment(DebuggerUtilities.java:40)
at sun.jvm.hotspot.debugger.proc.ProcDebuggerLocal.readCInteger(ProcDebuggerLocal.java:309)
at sun.jvm.hotspot.debugger.DebuggerBase.readAddressValue(DebuggerBase.java:425)
at sun.jvm.hotspot.debugger.proc.ProcDebuggerLocal.readOopHandle(ProcDebuggerLocal.java:326)
at sun.jvm.hotspot.debugger.proc.ProcAddress.getOopHandleAt(ProcAddress.java:96)
at sun.jvm.hotspot.oops.Oop.getKlassForOopHandle(Oop.java:198)
at sun.jvm.hotspot.oops.ObjectHeap.newOop(ObjectHeap.java:346)
at sun.jvm.hotspot.runtime.JavaThread.getThreadObj(JavaThread.java:333)
at sun.jvm.hotspot.utilities.AbstractHeapGraphWriter.writeJavaThreads(AbstractHeapGraphWriter.java:113)
at sun.jvm.hotspot.utilities.AbstractHeapGraphWriter.write(AbstractHeapGraphWriter.java:98)
at sun.jvm.hotspot.utilities.HeapHprofBinWriter.write(HeapHprofBinWriter.java:399)
at sun.jvm.hotspot.tools.JMap.writeHeapHprofBin(JMap.java:133)
at sun.jvm.hotspot.tools.JMap.writeHeapHprofBin(JMap.java:143)
at sun.jvm.hotspot.tools.JMap.run(JMap.java:71)
at sun.jvm.hotspot.tools.Tool.start(Tool.java:204)
at sun.jvm.hotspot.tools.JMap.main(JMap.java:126)

1)     OOM heap issues – SR #3-2611053901 – Recently we have been seeing OOM errors due to heap space. What we have seen is that some of the instances are not able to free up any memory space even after full GC, which results into a series of full GC’s back to back and eventually leads to OOM. Which would be exactly what would happen if there were many objects which were not eligible for collection.
Causes would be either a bug (something not releasing something it should) or because the server is overloaded.
If there were no code changes it could still be a bug that has now only become apparent due to changes in usage patterns.
If that is the case then such bugs can usually be made more apparent by reducing the maximum heap. Doing that will cause it to occur faster.

Similar Messages

  • Can anyone help with Double Command issues. This a specific keyboard question and they do not seem to know.

    Before I go into a lengthy explanation of the problem: Can anyone help with Double Command issues. This a specific keyboard question and they do not seem to know.
    Thanks much.
    Emile

    Choose Force Quit from the Apple menu and close Mail from there.
    (103661)

  • Background image seems to be applied twice Can someone help with this CSS issue....

    Can someone help with this CSS issue....
    http://66.162.81.144/cms400min/default.aspx
    If you view the main page you will see that our background is
    2 shades of
    orange.. if you look at the line that divides those colors to
    the right and
    left you wil notice that the line is higher
    if you notice that it seems that there is another background
    on top of the
    first one..its the only thing i can think of..
    the only place where the image is being referenced is in this
    CSS style
    html, body
    min-height:100%;
    margin-bottom:1px;
    text-align:center;
    background-repeat:no-repeat;
    background-image:url(images/Background-Color2.jpg);
    background-color:#F74902;
    background-position:center;
    background-attachment:fixed;
    Is there something wrong with the above CSS that could or
    would cause this?
    is it because im applying the image to both the HTML and
    BODY?
    ASP, SQL2005, DW8 VBScript, Visual Studio 2005, Visual Studio
    2008

    You've attached the background to both the html and the body.
    I would do this:
    html, body {
    min-height:100%;
    margin-bottom:1px;
    body{
    text-align:center;
    background-repeat:no-repeat;
    background-image:url(images/Background-Color2.jpg);
    background-color:#F74902;
    background-position:center;
    background-attachment:fixed;
    Having said that the image doesn't look any higher on the
    right than the
    left to me in Firefox. Is it just an optical illusion?
    Daniel wrote:
    > Can someone help with this CSS issue....
    >
    >
    http://66.162.81.144/cms400min/default.aspx
    >
    > If you view the main page you will see that our
    background is 2 shades of
    > orange.. if you look at the line that divides those
    colors to the right and
    > left you wil notice that the line is higher
    >
    > if you notice that it seems that there is another
    background on top of the
    > first one..its the only thing i can think of..
    >
    > the only place where the image is being referenced is in
    this CSS style
    >
    > html, body
    >
    > {
    >
    > min-height:100%;
    >
    > margin-bottom:1px;
    >
    > text-align:center;
    >
    > background-repeat:no-repeat;
    >
    > background-image:url(images/Background-Color2.jpg);
    >
    > background-color:#F74902;
    >
    > background-position:center;
    >
    > background-attachment:fixed;
    >
    >
    > }
    >
    > Is there something wrong with the above CSS that could
    or would cause this?
    > is it because im applying the image to both the HTML and
    BODY?
    >

  • Need help with expression builder issue

    Hi all
    I'm hoping someone can help with an issue I'm having. I'm creating a database for a manufacturing joinery. For 1 of my forms, Ive to create a despatch form which includes order details along with customer details. Some customers can have contracts in which
    they get a fixed price on certain item. This is where the problem lies.
    For my customers table, I have a field called "On contract" which is a Yes/No field. I've created a query to attempt to make this form. I'm having trouble with adding a total column at the end of this query. Quantity,Unit Price, Contract Price
    are also in the query. I've been trying to build an expression to say like;
    iif [on contract] = "Yes", [Quantity] * [Contract Price]
    iif [on contract] = "no", [Quantity] * [Unit Price]
    It obviously wont work, what am I doing wrong?
    Thanks in advance

    Hi,
    Assuming you are using the database is SQL Server:
    SELECT [CustomerID]
    ,[Quantity]
    ,[Unit Price]
    ,[Contract Price]
    ,[Total] = CASE WHEN [On Contract] = 'Yes' THEN [Quantity] * [Contract Price]
    WHEN [On Contract] = 'No' THEN [Quantity] * [Unit Price] END
    FROM [Customers]
    Modify the SQL to suit your need.
    Hope this helps.
    ~J.

  • Seeking Help with Album Image Issues in iPod Classic

    Hi folks -
    I have a new 160 iPod Classic and have two album image-related issues I'd appreciate some help with.
    In the case of several albums where I'd associated my own art with them in iTunes, the formatting appeared off in my iPod due to the vertical/horizontal proportions. So I corrected the images, replaced the images via iTunes, and re-synced. All of the old images were replaced - except for two. Is there any way to get my iPod to recognize the change to these two images, as it did for all the others?
    Secondly, my "The Allman Brothers Band Live at Fillmore East" album was appearing twice in both the Cover Flow and Album list. That was strange, except that after the latest sync it now appears six times! It's only in one place in iTunes, and not erroneously set as a compilation or anything. This is the only album displaying this behavior...
    Thanks for any suggestions or advice!
    Frank
    Message was edited by: frank3si

    Yes my e-mail address is [email protected] 
    Thank you for your kind attention to my problem. I am looking for one on one brief consultation with my laptop in Cincinnati. If not then I will compose a clear question with VI.
    These manuals are well known to me NI Visions Concepts ManualIMAQ Vision for LaVIEW User ManuelNI-IMAQ for USB Cameras My problem is moving to the next step of Create an array of USB imagePerform math on array Display results Sincerely,Tom Lohre cell 513-236-1704, [email protected] http://tomlohre.com/images/lafley.jpgAG Lafley, Chairman & CEO of Proctor & Gamble http://tomlohre.com/lafley.htm A.G. Lafley enjoyed hearing of Tom's painting robot and thought it played well to his new book: "The Game-Changer: How You Can Drive Revenue and Profit Growth With Innovation." http://tomlohre.com/newart.htm
    Tom Lohre artist/scientist
    Has a operating painting robot using RoboLab/RCX
    Developing a LabView/ NXT robot that analyzes an image for aesthetic quality.

  • Can you help with my connection issues

    I cannot connect to my Contribute CS3 even though my server is fine. Does anyone have any suggestions? I spent the last hour on the phone with my server company and they tried but failed to help me connect.

    Please try the following steps.
    Delete the existing connection from Edit -> My connection .
    Create a new connection and when you Click the Advanced button next to the "How do you connect to your web server?" field in the Connection Information dialog box.
    Try toggling the Passive Mode check box (if it is unchecked, check it; if it is checked, uncheck it).
    If you are behind a firewall, check the Use firewall/proxy settings when connecting check box and click the Firewall Settings or Proxy Settings button to enter firewall information. Ask your local network administrator for help with these settings.
    Once done with the new connection you would be able to connect to your website. For more information on connection issues you may use this link http://helpx.adobe.com/contribute/kb/troubleshoot-connection-problems-contribute.html
    Regards,
    Rajeev

  • Help with a CS2 issue

    hey there. I have a strange issue going on with my Photoshop CS2. When I open the program and begin to work with my image the program closes without any warning. I have never had any issues before and have done high quality graphics before with it. My current project is a poster for work that is 20 x 30. I tried at 300 and 200 dpi. When I start anything after the original layer it just closes. Is is because of the size? DPI? know the file size is a little larger than normal but to crash right off seemed kind of strange. I included my computer info so I hope that helps and if this has been mentioned before - newbie I apologize.
    Brent
    ps I haven't used the programs help in a long time.For some reason it isn't working. Is there any issues with the help option not working properly?
    (I pulled this from the system info so I included what I thought would help - with some things yeah could use a new computer no that old but could be better :-)
    Adobe Photoshop Version: 9.0.2 (9.0.2x296)
    Operating System: Windows XP
    Version: 5.1 Service Pack 1
    System architecture: AMD CPU Family:6, Model:10, Stepping:0 with MMX, SSE Integer, SSE FP
    Physical processor count: 1
    Processor speed: 2079 MHz
    Built-in memory: 1023 MB
    Free memory: 459 MB
    Memory available to Photoshop: 908 MB
    Memory used by Photoshop: 55 %
    Image cache levels: 6
    Serial number: [deleted by forum host]
    Startup, 105.4G, 49.9G free
    1 Gig of RAM

    First of all, you should update your OS to service Pack 2 and then apply the other updates that have come out since then.
    Try resetting your preferences. There are several ways to do this; the simplest is: Immediately after clicking to open Photoshop, press and hold Ctrl+Alt+Shift; if you get a dialog about your preferences, tell it to delete or clear them, after which Photoshop will open. If you don't get the dialog, you weren't fast enough. Some people find that it helps to press and hold Ctrl+Shift down before clicking, then immediately pressing Alt in addition.
    If you have reset your preferences and still have the problem, you can try doing a repair install; if that doesn't work, try uninstalling and reinstalling (which doesn't take long for PSCS2 and is no big deal).
    Let us know what happens.

  • Help with some iPhone issues please

    Ok, I am starting to have some problems with my iPhone 3G, and would really appreciate any help with these issues.. here is what is happening
    1) iPhone Vibrate is pretty much broken, turns off and on vibrate by itself.. and now is vibrating very softly.
    2) iPhone wont sync my Music anymore, I have 3 playlists that I use on my iPhone, and none of them will update. When I sync my iPhone, everything syncs but the music.
    3) iPhone sometimes completely freezes and i cant get it to go to the locksreen or power off, so I have to do a hard restart.

    Hi Matt,
    Try restoring the iPhone, this article: http://support.apple.com/kb/HT1414 will walk you through the process.
    If the vibrate and unlock issues persists, the iPhone may need hardware repair. Just make a reservation to have a Genius, at a local Apple retail store, take a look at it or call AppleCare.
    http://www.apple.com/retail/geniusbar/
    U.S. iPhone technical support: 1-800-MY-IPHONE (1-800-694-7466)
    Message was edited by: Jason L

  • Help with iPad update issue

    Need help with update issue please

    Please see your duplicate thread below for answer already provided.
    https://discussions.apple.com/message/25940896#25940896

  • Need help with Itunes Authorization issue

    I've been a Itunes/Ipod user for a couple years. During that time, I've sure spent over $500.00 on Itunes music from the Itunes store for my Ipod. My daugter and I both have Ipods.. There have only been 2 machines with Itunes installed here but I occasionally rebuild my computers to have the latest and greatest hardware for my business.. The other day I backed up all my music and data before rebuilding my machine due to hardware upgrades. Everything went smoothly including importing my purchased music back into Itunes.. The problem is I can't listen to it now. When I try to double click a song I get an error that says "You have already authorized 5 computers with this account. To authorize this computer you must first deauthorize one of the other computers" This isn't possible because the computers aren't around anymore to deauthorize. They were all housed (except 1, my daughters pc) in the same case as I have now.. Please respond...

    The other day I backed up all my music and data before rebuilding my machine due to hardware upgrades.
    okay. you may have ended up with multiple authorisations on that PC due to the system changes. if so the following documents should be of some help with techniques for freeing up authorisations:
    One computer using multiple iTunes Music Store authorizations
    About iTunes Store authorization and deauthorization

  • Help with Keychain password issue

    Need help with publishing website using iWeb. Everytime I try to publish website it asks for keychain password. When I use my login password it does not work. I have checked keychain access and do not know what I need to do to fix this or even know what password it is asking for. Please help.

    This support document should help...
    http://docs.info.apple.com/article.html?artnum=106973

  • Need help with Firefox display issue on one page of site

    I have a page that W3C validates, displays properly in IE and Netscape, but does not display properly in Firefox. The issue is with a style class applied to the inner centered table. class= "vert_table" This class works on all of the other pages in the site, but not in this one.
    The page:
    http://www.redshift.com/~lorac/sdy-46-49.html
    The issue:
    < table class="vert_table" width="760" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#f1ebe8" >
    The vertical rule does not display, and further down the page a dark left-right border appears starting with this text.
    my mother, when I was wasting my life away not knowing who I was,
    and ends with:
    Mojin: (hugging him) I don't expect you to love me. I just want you to live, that's all.
    I have been looking through this code for two days, searching for any offending omission in code or redundancy that would break the page. I've searched for missing div tags but none are apparent to me. I'm hoping someone with fresh eyes can spot it right away.
    It's odd that the page validates but Firefox cannot display it properly.
    Sample page of code working properly:
    http://www.redshift.com/~lorac/sdy-41-45.html
    Any help is appreciated.

    Hi Jim, thanks for the reply. Your suggestions sound interesting but I'd like to figure out why this particular page doesn't work when all of the others do. I'm sure it's just a little code thing that I'm overlooking.
    I could revert back to a saved page, but I updated text and images on this page before the verticle border broke, so I don't want to lose those edits. And that is why I'd like to fix this one instead of redesigning the page.
    BTW, I forgot to mention in my first post, GoLive CS, W2K.

  • Help With Various Dreamweaver Issues

    Dear Friends,
    This is my first post and I appreciate any help any of you
    can give me. My knowledge of web design is minimal, but I do have a
    basic understanding. The fundamentals of HTML and web design as a
    whole are pretty clear. My weakness, however, shows in the fine
    detailed issues that come up throughout the course of designing a
    website, and much of it may have to do with a lack of knowledge
    with the software I'm using. I love Dreamweaver CS3. It's an
    excellent program. I'm totally hooked!
    I'm in the process of building a website for a friend who
    owns a retail gift store. The site has a total of 41 pages. The URL
    is
    http://www.southerncharmgifts.net
    It has taken me over a month to get this site to the place
    where it is now. I've learned a TON about web design, CSS, and the
    Dreamweaver program itself. I've been able to work through many of
    the issues I've had, but I'm stuck on a few things:
    1.
    Browser Issues.
    I've found it hard to sync the content between browsers:
    namely IE and Firefox.
    For example:
    In IE the sub-menus wrap (as I want them to), but in Firefox
    they do not. But in Firefox the sub-menu
    box borders are visible (vertical menus), even though the
    text doesn't wrap, but it's obviously in the dimensions that are
    seen in IE.
    In Firefox, the sub-menus are too far from the parent. It
    looks bad. But they are perfect in IE.
    The background image is centered in IE between the menus and
    adverts, but not in Firefox. How do I get the background image to
    remain between the menus and adverts? (Note: There is no background
    on the home page. Also, wider screens seem to move the background
    in IE, too.)
    In the horizontal menu "Category" the sub-menu item "Babies"
    cannot be selected in Firefox. In IE it works.
    There are gaps between items in the horizontal sub-menu. It
    appears to be related to items not wrapping, but it doesn't seem
    that enlarging the sub-menu box causes the item to not wrap. For
    example, under "Category" "Candles & Fragrances" is wrapped and
    it seems to be the reason why there is a large gap between "Babies"
    and "Eyewear." If I can find a way to get Candles & Fragrances
    to NOT wrap it might remove the gap.
    2. CSS Issue.
    I can't find a way to have the sub-menu hover
    underline instead of highlight the items. I want it to
    underline.
    3. "False" Issue.
    In the
    vertical sub-menu "by CATEGORY" the word "false" shows up
    just below the word "Babies." (It's hard to see, but it's there.)
    THANKS!!

    > In the limited research and reading I've done in the
    last few
    > years I've never heard anyone say this about APdivs.
    Your limited research has failed to uncover the essence of
    proper technique
    in creating web pages. Layers are NOT a general layout tool
    and will cause
    you much more grief than you ever imagined. Here's one big
    reason -
    http://www.great-web-sights.com/g_layer-overlap.asp
    > divs/layers are an excellent tool in Dreamweaver
    They are, but only for specialty applications.
    > "Is this true or is this
    > bregent's personal opinion?"
    It is my personal opinion based on seeing hundreds (if not
    thousands) of new
    users throw themselves on their swords as a result of having
    committed to
    pages built with layers, on this very forum.
    > Starting over from
    > scratch isn't an option and the owner of the website
    likes my work.
    Starting over from scratch need not involve a redesign of the
    graphics. But
    on a site built from layers, it would certainly involve a
    rethinking of the
    layout method. Read this -
    http://apptools.com/examples/pagelayout101.php
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Mark 8:36" <[email protected]> wrote in
    message
    news:[email protected]...
    >
    quote:
    Originally posted by:
    bregent
    > >I'm in the process of building a website for a
    friend who owns a retail
    > >gift
    > store.
    > >The site has a total of 41 pages. The URL is
    > >
    http://www.southerncharmgifts.net
    >
    > It is unfortunate that you started working on a
    production site without
    > first
    > having a grasp of the techniques and tools required. You
    wouldn't start
    > building cabinets until you had a basic knowledge and
    experience with wood
    > and
    > woodworking tools, or you'd end up with a large pile of
    sawdust. And
    > unfortunately that's where you are heading with this
    site. You've made the
    > basic mistake of laying out the site using AP divs. AP
    Divs should be used
    > rarely if ever, and only for special purposed. They are
    not a primary
    > layout
    > tool. Honestly, I would start over from scratch. But
    first, spend the next
    > few
    > weeks or months learning proper layout techniques and
    working through
    > tutorials
    > before actually starting on a production site. Good
    luck.
    >
    > Ok, forgive me for doubting what you said here, but this
    is the first I've
    > heard of this. In the limited research and reading I've
    done in the last
    > few
    > years I've never heard anyone say this about APdivs.
    Because I think
    > divs/layers are an excellent tool in Dreamweaver. And
    with the exception
    > of my
    > background image problem, which probably can be fixed by
    changing the
    > perameters, the only problems with the website are the
    menus. Everything
    > else
    > looks good on both IE and Firefox.
    >
    > So my question for the rest of the forum is: "Is this
    true or is this
    > bregent's personal opinion?" No offense meant bregent,
    but equating a
    > months+
    > worth of extremely hard work to sawdust is rather
    disturbing. I just want
    > to
    > make sure what you're saying is the general consensus
    before I take this
    > too
    > seriously.
    >
    > Thanks for your input, though. I appreciate your
    honesty. Starting over
    > from
    > scratch isn't an option and the owner of the website
    likes my work. But
    > I'll
    > keep these things in mind for the future. Take care.
    >
    >

  • Need help with an innerjoin issue

    Hello;
    I am writting a small app for my web site and have run into
    an issue with an innerjoin. Let me explain what the function is for
    this so maybe you can understand what I am doing.
    There are 2 pages to this. Page 1, is a category selection
    page. It loads all the categories on the page with a link that
    passes a category ID to page 2. Page 2, then allows you to view all
    the projects that are associated to the specific category. There is
    a numbered navigation on this page, kind of like google, 1 2 3 4
    More> Next>
    Now what I am trying to do it create a select function that
    allows you to choose another category to look through on page 2 so
    you don't have to go back to page 1 and select another category
    there.
    Right now, I have the innerjoin working well with page 1
    going to page 2 and the numbered nav, it is doing what it is
    supposed to. BUT the select function is working off the where
    clause and not working independantly from what the numbered nav and
    body is supposed to be doing. There is also a spot I added to this
    page that kind of works like the select function, it puts the name
    of the category your viewing on the page.
    What is happening with the select function and this name
    function is lets say there are 5 project records tied to the
    category you selected, then the select function gets 5 names of the
    same category in it and so does the category name function.
    (Follow this?)
    Let me post the code for page 1 and page 2. also will add
    what the tables are in the db.
    DB tables:
    Table1: Categories
    Name (this is the actual category name), MYFile(the file that
    give an image of the category), Description(a description of this
    category), CategoryID (this is added to the projects table for each
    project that is connected to each category)
    Table 2: Projects
    ProjectID (this is the ID of the projects), Name (this is the
    name of the project) Body (thi sis the description and picture of
    the project), CategoryID (this is the id of what category the
    project falls under, also assigned to tproject from the categories
    table)
    There is a lot of code that goes in this, so I am going to
    post the code that is pertinent to this question, 90% of it is
    working at this time, just not the select function and category
    name on page 2.
    Page1 Code:
    <CFQUERY name="GetRecord"
    datasource="#APPLICATION.dataSource#">
    select Name, MYFile, Description, CategoryID
    FROM Categories
    </CFQUERY>
    <head>
    </head>
    <body>
    <cfloop query="GetRecord" startRow="#URL.startRow#"
    endRow="#endRow#"><cfoutput>
    <img src="../img/cat/#MYFile#" width="50" height="50">
    <a
    href="portfolio-detail.cfm?CategoryID=#CategoryID#">#Name#</a>
    #Description#
    </cfoutput></cfloop>
    <!--- there is a numbered nav on this page, it works nice
    so I didn't add the code, that is why I am using a cfloop --->
    Page2 code:
    <CFQUERY name="getProjects"
    datasource="#APPLICATION.dataSource#">
    SELECT Projects.ProjectID, Projects.Name, Projects.Body,
    Projects.CategoryID,
    Categories.CategoryID AS catID, Categories.Name AS cat_name
    FROM Projects
    INNER JOIN Categories
    ON Categories.CategoryID = Projects.CategoryID
    WHERE Projects.CategoryID = #categoryID#
    ORDER BY ProjectID
    </CFQUERY>
    <cfif getProjects.recordCount is 0>
    No projects in this category.
    <cfabort>
    </cfif>
    <head>
    <!--- this script is for the select function so when you
    make a selection, it goes to the next category without having to
    hit a submit button --->
    <script language="Javascript">
    function changeRecord(){
    document.category.submit();
    </script>
    </head>
    <body>
    <!--- here are the Category name and select functions that
    aren't working properly yet --->
    <cfoutput
    query="getProjects">#cat_name#</cfoutput>
    <form Name="category" method="post"
    Action="portfolio-detail.cfm?CategoryID=true">
    <select name="CategoryID" size="1"
    onChange="category.submit();">
    <option value=""> --Select a Category--
    </option>
    <CFOUTPUT query= "getProjects">
    <option value="#CategoryID#">#cat_name#</option>
    </CFOUTPUT>
    </select>
    </form>
    <!--- this part is working properly, it also has a
    numbered nav, like google that is working properly at this point
    --->
    <cfoutput query="GetProjects" startRow="#startRow#"
    maxRows="#maxRows#">
    #Name#
    #Body#
    </cfoutput>
    <!--- next is the cfmodule for the nav, the nav is a lot
    of code, a whole page on it's own so I am not posting it --->
    <cfmodule
    template="../CFdocs/PageNav.cfm"
    totalItems="#numRows#"
    numPerPage="#maxRows#"
    startRow="#startRow#"
    url="#cgi.script_name#?categoryID=#categoryID#&startRow=#startRow#">
    The main part that is not working properly is the select, and
    category name. How to I get those to work independantly from my
    where clause? (I need the where clause for the numbered nav and
    cycling through the projects tied to the category you called up
    from page 1.
    Can someone help me tweek my code from this point? I am
    stumped, I looked at the cf docs and I can't find a solution. I am
    using CF 8.
    Any help would be appreciated. Thank you!
    CFmonger

    I fixed a lot of this since I posted it this morning. Now all
    that isn't working properly is the select, it isn't passing the
    proper variable to make the query work.
    This is what I have now:
    Page 2:
    <CFQUERY name="getProjects"
    datasource="#APPLICATION.dataSource#">
    SELECT Projects.ProjectID, Projects.Name, Projects.Body,
    Projects.CategoryID,
    Categories.CategoryID AS catID, Categories.Name AS cat_name
    FROM Projects
    INNER JOIN Categories
    ON Categories.CategoryID = Projects.CategoryID
    WHERE Projects.CategoryID = #categoryID#
    ORDER BY ProjectID
    </CFQUERY>
    <!--- I will add the <cfqueryparam> in a bit --->
    <cfif getProjects.recordCount is 0>
    No projects in this category.
    <cfabort>
    </cfif>
    <!--- This query populates the select nav --->
    <CFQUERY name="cata"
    datasource="#APPLICATION.dataSource#">
    select Name, MYFile, Description, CategoryID
    FROM Categories
    </CFQUERY>
    <head>
    <script language="Javascript">
    function changeRecord(){
    document.category.submit();
    </script>
    </head>
    <body>
    <!--- this output works well now, gives me what I need and
    changes when you select a category from page 1 --->
    <cfoutput query="getProjects"
    maxrows="1">#cat_name#</cfoutput>
    <!-- the select isn't passing the CategoryID properly, it
    is now throwing an error --->
    <form Name="category" method="post"
    Action="portfolio-detail.cfm?CategoryID=#CategoryID#">
    <select name="CategoryID" size="1"
    onChange="category.submit();">
    <option value=""> --Select a Category--
    </option>
    <CFOUTPUT query= "cata">
    <option value="#CategoryID#">#Name#</option>
    </CFOUTPUT>
    </select>
    </form>
    <!-- the rest of the code goes after this, it ias all
    working --->
    The error I get when using the select is this:
    Error Executing Database Query.
    [Macromedia][SequeLink JDBC Driver][ODBC
    Socket][Microsoft][ODBC Microsoft Access Driver] Syntax error
    (missing operator) in query expression 'Projects.CategoryID ='.
    The error occurred in C:\Websites\folio\portfolio-detail.cfm:
    line 12
    10 : INNER JOIN Categories
    11 : ON Categories.CategoryID = Projects.CategoryID
    12 : WHERE Projects.CategoryID = #categoryID#
    13 : ORDER BY ProjectID
    14 : </CFQUERY>
    I also tried doing it this way:
    <form Name="category" method="post"
    Action="portfolio-detail.cfm?CategoryID=true"
    This way didn't work at all, it only made the numbered nav on
    the page cycle through all the projects in all the categories.
    What do I need to change to pass the proper variable from the
    select nav to the innerjoin query and my where statement?

  • Can you pls help with theis OIM issue

    1. How can I assign as APPROVER dynamically without using the OIM defaul approval process. Is there any way to use custom process?
    Any Code/Help will be hioghly appreciated.

    There are two ways you can do this (actually three if you want to use process determination rules and route the object to a completely different approval process - those are developed in the role designer and placed in the "process determination rules" tab on the Resource Object).
    The easiest way to do it is to build a couple of task assignment rules (also in the rule designer). Assuming you want to use some value in the object form to determine which approver is assigned, you just make sure you build the rule with the type = Task Assignment, subtype = user provisioning and the object and process fields filled in (process should be the approval process). Then you will be able to build a role using the object form data.
    example: Object form field A == "value A".
    Build as many of these as you need and place them in the task assignment tab of the approval task, selecting the proper approver for each rule.
    Note that you can also write the rule to route based on user data, only be aware that some versions of oim (actually all that I have tried, but it may be fixed in 9.1, not sure) will not process this correctly if there is a request submitted for multiple users. Rather than route each correctly it will assign all of them to approver determined for the last user submitted (this also holds true if you are assigning to user's manager). Oracle added an option in 9.0.3.1.6 to restrict requests to one user to get around this issue.
    The other alternative is to write a task assignment adapter in the adapter factory. I've done this in cases where I need to lookup the approver in an external data source. Write the adapter to take in any user or object form data it needs to make the assignment. These adapters return two parameters (which do not need to be mapped in the task assignment tab where you map the input parameters). One return value is a string containing the Target Type ("User", "Group", etc) and the other containing either the user key or group key the approval is being routed to.
    Note that for some reason you cannot just set the target type string in the adapter with a "Set Variable" adapter task, you actually have to call java code that returns the string you want to set this to.

Maybe you are looking for

  • Uploading data from excel sheets through BDC's into sap system

    hi guys, can you please help me with this. As we use gui_upload to upload data from flat file to sap system, which function module you use to upload data from Excel sheet to sap system through bdc's

  • Safari crashes with BBC video

    Ever since the 4.0 update, Safari has been crashing on video at the BBC site. Just updated to 4.0.3, no difference. Flash etc. all updated. Camino plays OK. Can someone confirm that the following video is playing in their system: <http://news.bbc.co.

  • I can't create filename "AUX"

    Hi, Any one tell me that I can't create a file name "AUX" Why its so.

  • Embedding an existing Adobe Form into a Webdynpro Application

    Hi Everyone, I have an existing adobe form created thro transaction SFP and its working well. I need to launch the form with a Webdynpro application now. I was able to embed the adobe form into the Webdynpro View. The View's context is supposed to pi

  • Console access Cisco 1113 ACS

    We have a new ACS and cannot access the device thru the console. I am using TeraTerm and I can see the characters but it is a bunch of garble almost like the terminal settings are incorrect. I have 8 1 and no parity for the Serial port settings. Has