Problem in designing chess board

I designed chess board before by making for loop for rows and anthor one for columns. But here i did inner for loop : one for row ant the other for column but only column appear and row not appear ...
My try:
import java.awt.BorderLayout;
import java.awt.Dimension;
import javax.swing.JFrame;
public class MovePawnTest extends JFrame {
    private BoardGame board;
    public MovePawnTest() {
        board = new BoardGame();
        getContentPane().add(board, BorderLayout.CENTER);
    public static void main(String[] args) {
        MovePawnTest movePawnTest = new MovePawnTest();
        movePawnTest.setDefaultCloseOperation(MovePawnTest.EXIT_ON_CLOSE);
        movePawnTest.setSize(new Dimension(600, 300));
        movePawnTest.setLocationRelativeTo(null);
        movePawnTest.setVisible(true);
        movePawnTest.setExtendedState(MAXIMIZED_BOTH);
import java.awt.Graphics;
import javax.swing.JPanel;
public class BoardGame extends JPanel {
    private final int ROW = 8, COL = 8, x = 100, y = 60;
    private int[][] board;
    public BoardGame() {
        board = new int[ROW][COL];
    @Override
    public void paintComponent(Graphics g) {
        super.paintComponent(g);
        drawBoard(g);
    private void drawBoard(Graphics g) {
        for (int i = 0; i < ROW; ++i) {
            for (int j = 0; j < COL; ++j) {
                g.drawLine((x * j) + 100, (y * i) + 60, (x * j) + 100, (y * i) + 60);
}please say me the
thanks in advance

ah fark
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import javax.swing.*;
@SuppressWarnings("serial")
public class ChessBoard extends JPanel{
  private static final int ROWS = 8;
  private static final int COLS = 8;
  private static final int WIDTH = 600;
  private static final Dimension SIZE = new Dimension(WIDTH, WIDTH);
  private static final Color COLOR1 = Color.white;
  private static final Color COLOR2 = Color.gray;
  public ChessBoard() {
    setPreferredSize(SIZE);
  protected void paintComponent(Graphics g) {
    super.paintComponent(g);
    int panelWidth = getWidth();
    int panelHeight = getHeight();
    for (int row = 0; row < ROWS; row++) {
      double h = (double)panelHeight / ROWS;
      int y = (int)(h * row);
      for (int col = 0; col < COLS; col++) {
        double w = (double)panelWidth / COLS;
        int x = (int)(w * col);
        Color c = ((row % 2 == 0) ^ (col % 2 == 0)) ? COLOR1 : COLOR2;
        g.setColor(c);
        g.fillRect(x, y, (int)w, (int)h);       
  private static void createAndShowUI() {
    JFrame frame = new JFrame("ChessBoard");
    frame.getContentPane().add(new ChessBoard());
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
  public static void main(String[] args) {
    java.awt.EventQueue.invokeLater(new Runnable() {
      public void run() {
        createAndShowUI();
}

Similar Messages

  • Designing a board game

    Is there anychance anyone out there can help me with the design of a risk board game in java - obviously. I am a complete rookie so if you can keep it as simple as possible I will be very greatful.
    Cheers!

    I'm designing a board game called othello. The thing
    is,
    i'm using something minimax, where the computer thinks
    ahead
    in the number of moves. Now, i'm having problems doing
    this,
    as I am using an array of weighted board values
    indicating
    which part of the board are more advantageous than
    others.
    The problem i'm having is to decide how to use this
    function.
    I am designing the game, so that it looks like 3 moves
    ahead.
    Do i call the weighted board values, once it's at the
    3rd move,
    so it then calls the minimax function and decides what
    move is best?
    Basically, does anyone know how to use these weighed
    values, and
    exactly when to call them. If someone could explain
    this in simple
    terms, it would be great.
    thank you so muchone way of handling this is adding up the weights of the possible moves up to the third move ahead, but do this as "branches". Meaning, if you take this first move what moves will it give you, and what moves will those moves give you. Once you have the current moves to third moves branches mapped out, then total the weights of all the moves and that will give you a branch weight. The better the weight branch will then tell your program which current move to make.
    Another thing to consider in your program is not just which spots are best (like corners are advantageous) because I can play the game, give someone a corner and still beat win, it is a simple strategy. There are plenty of other things to consider, for instance, consider mobility in your wieghts. How many moves does this give and how many moves does it take away or give to my opponent.

  • Chess board

    hello
    i need help with this animation i need to make
    i have a chess board and a simple form, lets say a circle, my
    problem is that i need to change the color of the part of the cell
    while the circle pass, so when the cicrle is in a black cell part
    of the cell becomes white and the next white cell should be change
    to white
    thanks alot for you help

    quote:
    Originally posted by:
    chrisf671
    ok i know what you need to do is make collistion detection on
    the cells i found you a tutorial on it. here
    http://www.spoono.com/flash/tutorials/tutorial.php?id=18
    if you need futher help just ask.
    tyvm for your answer chris
    the collinding is really usefull and im sure ill use it, my
    only problem is that i need one of the boxes to gradually change
    color as it is getting into the other box
    lets say that the green box is half in and half outside the
    gray box, meaning that the outside part will rest green and the
    half within the gray box will change to red
    ill make some experiment with it and keep you updated, pls if
    u have any other idea i will really apreciated it
    thxs again

  • How can i make infinite chess board

    Hello.
    for example i want to create an infinite chess board for iphone.
    i want to scale it as i want and to ho throw it up, down, left and right.
    in what way can i make it? what class to use?
    i think UIScrollView, but how? i do not have an image, because it must be infinite
    and then i want to add figures to this chess board. for example if user tap on a cell a figure appears.

    Hi Mywa, and welcome to the Dev Forums!
    I'll try to outline a solution, but I doubt anyone is going to code it for you in a forum, so you'll need some iPhone development experience. As a minimum, make sure you know exactly how the [PageControl|http://developer.apple.com/library/ios/#samplecode/PageControl/Int roduction/Intro.html] sample app works, and have a good understanding of the Tiling example in the [ScrollViewSuite|http://developer.apple.com/library/ios/#samplecode/ScrollViewS uite/Introduction/Intro.html%23//apple_ref/doc/uid/DTS40008904]. It would also help if you're familiar with most of the content in the Scroll View Programming Guide for iOS.
    I would start the project by obtaining a 320 x 320 image of your chess board (e.g. a slice of the board containing 8 x 8 squares, each 40 x 40 pixels). For now, you can just package the image as a single UIImageView object in a xib file (later on we might replace this with a custom subclass of UIView which draws either blank or populated squares, but let's do the basics first).
    In your board controller's viewDidLoad method, create 9 of these objects, setting the frames to make 3 rows of 3 squares each, and add the 9 objects to a 320 x 320 scrollview so that only the central object is visible. Then set the scroll view's [contentSize|http://developer.apple.com/library/ios/documentation/UIKit/Referen ce/UIScrollViewClass/Reference/UIScrollView.html#//appleref/doc/uid/TP40006922-CH3-SW20] property to 960 x 960 and make sure you can scroll horizontally and vertically to the edges of the grid.
    Once you get that part working, you're ready to expand the contentSize and write the code which removes and adds the 320 x 320 image view objects as needed. This is where you'll need to understand the sample apps I recommended. Basically, after each scrolling movement your controller logic needs to decide which image view objects can be released (or recycled), and which grid positions need a new (or reused) image view. The game is to always have an image view ready before any part of an empty grid position becomes visible.
    For best performance, the image view objects should be placed in a "reuse" queue when they're removed from the superview, then pulled off the queue as needed, just as cells are managed by UITableView. But the reuse queue is only an optimization, so I would save it for later. For now, I would just release and create. The important thing is to make sure you never need to have very many more than 9 image view objects in memory at any time.
    Once you have your "infinite" board operating correctly, you're ready to decide how to store the position of each piece, and how to draw the pieces on the visible squares. If the number of pieces is likely to exceed 1000, you might find the data storage to be more challenging than the drawing, because you'll need to locate pieces fast enough to keep up with scrolling. If the number of 8 x 8 board segments is to be considered infinite, you might not want to store the data for all 64 squares of every segment that's ever been visible. In that case you'll need a "sparse array" that only includes info on populated squares, i.e. one element for each piece instead of one element for each location. I think William gave you some good advice on what data structures to use for this. At some point you might also consider a database to implement your sparse array.
    That's probably the best I can do to get you started. I would advise against trying to design all the details ahead of time. E.g., I don't expect you to reply with "Ok, but how do I actually draw the pieces?" until you've got the board working. And I don't expect you to ask how to draw the board until you've become good friends with the recommended sample apps. But once you're seriously into the sample code, we might be able to help with questions like: "I'm trying to calculate which view objects are visible as shown in the layoutSubviews method of [3Tiling/Classes/TiledScrollView.m|http://developer.apple.com/library/ios/sampleco de/ScrollViewSuite/Listings/3_Tiling_Classes_TiledScrollView_m.html#//apple_ref/ doc/uid/DTS40008904-3_Tiling_Classes_TiledScrollView_m-DontLinkElementID26], but ... ". Ok?
    \- Ray

  • Problem in designing the complex report for the client requirement

    Post Author: venkateshvarakala
    CA Forum: General
    Hi,
    I have problem in designing the report (Crystal Report 9.0) with multiple groups wih a sub report in each group with a a group header and footer with a
    detail section in each report.
    My requirement is as follows.1) Xxxx-sub reportwill have one header conetnt and footer content and detail ection in the middle grouped on one parameter2) Yyyyysub reportwill have one header conetnt and footer content and detail ection in the middle grouped on one parameter3) Zzzzzsub reportwill have one header conetnt and footer content and detail ection in the middle grouped on one parameter4)ABCdsub reportwill have one header one footer in group headers grouper on two prameters, My requirement demands customised detail section i.e.static conetent followed by detail section and a static conetnt(which should not repeat with child table records,should come only once with the a record and
    s) and detail section.
    example:
    main table of the sub report 4 has records m1,m2,m3,m4... and child table has
    m1c1m,m1c2,m1c3,m1c4,m2c1,m2c2,m2c3,m2c4,m3c1,m3c2,m3c3,m3c4,m4c1,m4c2,m4c3,m4c4...
    The staic content should come only with m1,m2,m3,m4 not with m1c1,m1c2....like this I need in two places in the same report which may have 500 recors printed in single report.
    all the above section should be suppressable with a condition including the top 3 reports.
    I am able to get the top 3 reports as per the requirement but my forth sub report is getting displayed after each sub-group 1,2,3 which is not happening with
    1,2,3. Only 4th set is repeating with 1,2,3.
    THis report is attached with 6 datasets.
    I linked the main report main table with 1,2,3 (main Table) report filling table but when I am trying to link the 4th table main table  I am able to link but
    I am not getting the result on the report.All the dataset has the one common column. sub report 1,2,3 are filled with common datasets with condition suppressing where as 4th report is filled with
    different results .
    1) My question is why the 4 the report is report is repeating with 1,2,3 why 1,2,3 are coming as expected.2) Is it possible to create
    Please help me in designing the report as per the requiremnt and suggest me if I need any design modifictions.
    Your suggestions and inputs are highy appreciated.Thanks for sparing time in going through my problem and I will be grateful if give solution and share if you have similar experiences.
    Thanks
    Venkatesh Varakala.

    If you create a multiprovider with the two ODS you won’t have this problem.
    Hope it helps.
    Regards.

  • Performance Problem on Designer Repository

    Hello,
    We have performance problem on Designer Repository database, I run system statistics, recreate objects, truncate temporary tablespaces, but compile forms runs very slowly, on top sql is this sql statement:
    SELECT MAX(1)
    FROM I$SDD_WA_CONTEXT CTXT
    WHERE CTXT.OBJECT_IVID = :B1
    AND CTXT.WORKAREA_IRID = JR_CONTEXT.WORKAREA
    AND CTXT.WASTEBASKET = JR_CONTEXT.WASTEBASKET
    how optimize this statement?

    jr_wastebasket.purge_insignificant_versions helps, I drop old versions of forms
    Edited by: Vazha_Mantua on Mar 27, 2009 9:24 AM

  • ADF 12c Rendering Problems at design time

    Hi all,
    I am experimenting the following unexpected rendering problems at Design time with JDEV 12c:
    -  Sometimes a complete page is showed empty or blank but the components exists on the page (you can see them in the structure panel) and the page has no warnings.
    -  Sometimes I cannot click a component because it is behind the container.
    -  Sometimes the containers are rendered in other place on the page.
    -  Sometimes the containers not stretching
    I remember some posts about this problem in 11.1.2.x but I think it was not fixed in 12c. For this reason, I have some questions:
    What is the "real" memory requirement  of Jdev 12c to avoid render problems?
    What is the best configuration in jdev.conf?
    Is it only a memory issue or Is it also a dependency reference problem? According to a blog post of Frank Nimphius:
    Though with Oracle JDeveloper 11g the problem of the IDE not rendering JSF pages properly in the visual editor has become rare, there always is a way for the creative to break IDE functionality. A possible reason for the visual editor in JDeveloper to break is a failed dependency reference, which often is in a custom JSF PhaseListener configured in the faces-config.xml file. To avoid this from happening, surround the code in your PhaseListener class with the following statement (for example in the afterPhase method)
    public void afterPhase(PhaseEvent phaseEvent) {   if(!ADFContext.getCurrent().isDesigntime()){ ... listener code here ... } }
    The reason why the visual editor in Oracle JDeveloper fails rendering the WYSIWYG view has to do with how the live preview is created. To produce the visual display of a view, JDeveloper actually runs the ADF Faces view in JSF, which then also invokes defined PhaseListeners. With the code above, you check whether the PhaseListener code is executed at runtime or design time.If it is executed in design time, you ignore all calls to external resources that are not available at design time.
    source:
    https://blogs.oracle.com/jdevotnharvest/entry/when_jdeveloper_ide_doesn_t
    if it is a known problem, then Why is not fixed in 12c?
    Jhon
    Jdev 12c

    Jhon, what Frank mentioned can't be fixed from the outside. You or the developers who use phase listens without thinking about the design view are the ones to fix this. Frank provided you with the solution for this.
    However, we don't know if you use any self written phase listener. If you don't do this you have another problem. I do see some of your symptoms but can't reproduce them at the moment. As long as we can't reproduce the problem somehow it's difficult to to get a solution.
    My advise is to keep your eyes open (add I do) and whenever you can reproduce this behaviour come back and tell us about it. It's hard or impossible to give the 'best' settings for Jdev.conf as they depend on other factors e.g. operating system, memory, other applications running at the same time and many more.
    Personally I don't change the parameters as long as I can't put the problems to low memory (which I can't at the moment).
    Timo

  • Problem while designing an RPD

    Hi Experts,
    I have a problem while designing a chat.
    Basically I have a pivot table with X axis as calendar week ( 9 weekend dates) and Y axis as value a A
    Value of A in Y Axis
    X axis as : 2/6/2010, 1/30/2010, 1/23/2010, 1/16/2010, 1/9/2010, 1/2/2010, 12/26/2009
    Now my customer wants percentage value of
    1. Current week verses last week i.e value of 2/6/2010 with 1/30/2010
    2. Current week verses last month 1st week.2/6/2010 with 1/2/2010
    It will be great if someone can give me an idea how to design this ( might be in RPD/Answers/Chat/Pivot table)
    Someone suggested me
    It will be easy to do at RPD. YOu have to create metrics based using time series functions. Use Ago() function and calculate WeekAgo and Month Ago metrics. "
    But how? Could you please explain me in detail?
    I appreciate all your help
    Regards
    Jan

    There is a solution in answers, but not bullet proof,. But give a shot if you like it
    assuming you have date column, metric column( like quantity sold) in your report,.
    1. Add metric column to the report again and change the column formula to following and check this table view. Which gives you prior week value in every row.
    msum(Sales."Quantity Sold",2)-Sales."Quantity Sold"
    2. then add metric column again to report, change the folmula like following
    ((msum(Sales."Quantity Sold",2)-Sales."Quantity Sold" )* 100) / Sales."Quantity Sold"
    make you are closing braces correctly. above formula give you % change from last week to this week. Then use this new column in chart to show values.
    You can try same logic for Month Ago week value. but you need to change Msum function to get 4 weeks before value.
    liek this.... msum(Sales."Quantity Sold",5)-msum(Sales."Quantity Sold",4) will give 4 rows back value.
    for all this you report is sorted by date.

  • Problems in designing Gantt Charts through Web Dynpros

    Dear friends,
    We are having a situation in which we need to display the series of production orders in shop floor in a gantt chart having a specific start & end date and time.
    To implement this scenario, we are using Gantt Chart tool available in Web dynpro. In the gantt chart tool we are passing an XML file edited as per data to display production orders starting and ending at particular date and time.
    Now we are facing following problems to design this case.
    1. We are currently using type repository <TypeRepository href="apps/gantt/cprojects/TypeRepository.xml" version="1.0"> as a base type repository to define our XML file. This type repository we found in one of Gantt chart test examples. We believe if we are able to view this file we can know what types are available and how can we use their elements and attributes to define graph in XML file. Please help us how can we view this type repository.
    2. Currently we are viewing scale on Gantt chart only on date base. Can we view the scale at time base too? If yes, how?
    3. Currently we are manually editing our XML file to add up data that we want to display in our gantt charts. We would like to know what is standard procedure to edit XML file in a program. Additionally if you can tell us the functional modules or class-methods to edit XML file in program, this would be very helpful.
    Your kind help would be highly appreciated.
    Best regards,
    Navin Guru

    About where to find file apps/gantt/cprojects/TypeRepository.xml.
    Maybe it's not the best way, but i had access to portal server files (access to /usr/sap directory on server where enterprise portal was installed). And i found it there by jnet search criteria.
    In my case it layed in the following place:
    \usr\sap\<SID>\J01\j2ee\cluster\apps\sap.com\tcwddispwda\servlet_jsp\webdynpro\resources\sap.com\tcwddispwda\root\global\activeComp\

  • Problems Installing Designer 6.0 over Oracle 8i (Linux SUSE 8.0)

    I have problems installing Designer 6.0 over Oracle 8i (Linux SUSE 8.0). When I try to create the repository the installation hang up. I try over Oracle 8i (WIndows 2000) and the problems remain.
    Please any body can help?
    Is it possible to install Designer 6i and generate forms 6.0 (I mean for using Developer 6.0 (NOT 6i))?
    Best regards,
    JAGC

    Marcel,
    I had the same problem. Oracle gives as an answer that Designer 6.0 is not supported against 8.1.7. In the specified package a statement is issued which is a problem for 8.1.7. I changed that package and now it works fine.
    Comment as below and replace with the delete statement, then it compiles fines.
    I don't know if any problem can occur after that, but a Migration from a 1.3.2 repository to 6i works fine through this repository. Hope this helps.
    Kind Regards
    Jan Boersma
    Email: [email protected]
    see here:
    -- Remove Reserved Names entry and comment
    -- delete from sdd_reserved_names
    -- where (rn_res_name, rn_type) in ((upper(view_name), 'VIEW')
    -- ,(upper(pack_name), 'PACKAGE')
    -- ,(upper(pack_name), 'PACKAGE BODY')
    -- ,(upper(app_view_name), 'VIEW BODY'));
    delete from sdd_reserved_names
    where ((rn_res_name = UPPER(view_name) AND rn_type = 'VIEW') OR
    (rn_res_name = UPPER(pack_name) AND rn_type = 'PACKAGE') OR
    (rn_res_name = UPPER(pack_name) AND rn_type = 'PACKAGE BODY') OR
    (rn_res_name = UPPER(app_view_name) AND rn_type = 'VIEW BODY'));
    null

  • Please, I am in a very big problem I designed the project by Adobe director And you test the software on the computers on Windows and works with high quality When I tested the project on Apple Macintosh operating system, Li appeared a number of problems

    Please, I am in a very big problem
    I designed the project by Adobe director
    And you test the software on the computers on Windows and works with high quality
    When I tested the project on Apple Macintosh operating system, Li appeared a number of problems and you dissolve a large part of them
    But I have a problem too big
    The project works on some devices and others show me messages mistakes and why chasm different operating system version
    Apple's Macintosh and these messages
    "biosegnatures" can't be opened becouse it 's from undefined developer "
    others
    shokwave player error
    pleas what can i do

    Welcome to the Support Communities.
    m.raslan wrote:
    I tested the project on Apple Macintosh operating system
    Click on the  menu at top left of your screen, choose About This Mac and, in the panel that appears, note the Version no. in the form 10.n.n. Then update your product list so we can see what version of OS X you're running on the Mac — see this tutorial:
    Update your product list
    m.raslan wrote:
    "biosegnatures" can't be opened becouse it 's from undefined developer "
    This Apple doc may help:
    OS X: About Gatekeeper
    m.raslan wrote:
    shokwave player error
    Is Shockwave Player installed?...
    http://www.adobe.com/shockwave/welcome/
    ...If not, get it here:
    http://get.adobe.com/shockwave/

  • Re: Power Supply Problems/ Bad Design

    The moderator of this site seems to think that any external power supply can have the same problems as apple powerbook supply. "Not so", say I ! Most PC notebooks and yes, I do use them, have a fairly sturdy cord on both sides of the connection. Should one find oneself in a situation without a power supply for a pc notebook it is usually possible to get one from a local Radio Shack or international electrical store. Not so with apple powerbooks. the connections are specifically apple and although there ae a few generic replacement PSU they are not generally available only from mac speciality stores. Why apple decides to design what is obviously a flimsy (my electrical gaffer on my movie looked at it and just laughed)and possibly dangerous device is beyond me. It occurs to me that with all the innovative design apple has come up with in the past has gone to the designer's heads. Now we are faced with a 'magnetic' connector on the new powerbook pro line. Are you kidding apple ? Please just give us a simple, generic power supply and conmnector so that we travellers can rest in peace knowing we can replace the PSU anywhere in the world.
    BTW my PSU was smoking and sparking when I awoke in my hotel room until it just gave up.
    PBG4 1.25MHZ   Mac OS X (10.3.7)  

    Two alternative power adapter manufacturers:
    http://www.lindelectronics.com/cgi-bin/store/shop.cgi/!ORDERID!/ACAdapters/Apple/dbx_gen_mfg_ACAdapters?industry=
    http://eshop.macsales.com/item/Newer%20Technology/APLN2M/
    The most common issues people have with Apple's adapters that I've seen are (not that this applies to you, but perhaps one will refer to something you've done that you didn't realize could cause harm):
    1. They pull by the cord and not the bulb.
    2. They push in without looking.
    3. They let the cord bend at the bulb or at the brick. Give it at least two inches of slack.
    4. They don't remove the plastic wrapping that is clear from the brick when they first get it. This under the wrong conditions could create an overheating condition.
    5. They rely on unreliable power sources. Some older houses have issues with giving reliable power to outlets. Using a backup battery surge protector like those from APC can help.
    By the way, my father's Dell power adapter had to be replaced too. Non-Apple notebook power adapters are actually more flimsy than you give them credit for. Part of the problem is designing the transformer to be in such a compressed space that is lightweight too. Until people don't mind the extra weight of a full fledged desktop power supply inside a notebook, thus allowing standard power cables, or a room temperature superconductor is invented, this will be a persistent issue. Take good care of your cords, and don't let them bend so much that they fray.
    I might add, I went to Radio Shack, and they had the parts for me to build a power adapter for my Powerbook. Unfortunately the transformer brick would have been 3 times as large and as heavy.

  • Designing a board using Artix-7 FPGA where power rail (1.0V = VCCINT, VCCBRAM, MGTAVCC) ramp rate is less than 200usec (min spec)

    I have a board design that uses Artix-7 FPGA (without using the GPT interface) where VCCINT, VCCBRAM, and MGTAVCC rails are tied together to one VRM source of 1.0V.  The power sequence is correct (VCCINT>VCCBRAM>VCCAUX>VCCO), but the ramp rate of the 1.0V rails is less than the spec.
    Currently the 1.0V ramp rate of this design is a high power VRM design that demostrates a ramp rate (100usec) < than the min spec (200usec).
    Since I am new using this device; what is the risk involved on violating this spec if any?  I need to know ASAP as this might drive a board spin.
    Thanks for your support,
    -cb
     

    Hi,
    The specifications for the device ramp rate are developed based on limitations of our test equipment, not limitations of our parts.  The 0.2 ms ramp rate specification is specified because the tester we have does not allow for faster ramp rates.
    However, this is still a violation of our specifications so we cannot guarantee there will not be any reliability issues with the device (since we have not tested this condition).  
    The silicon itself does not have any problems with faster ramp rates.  
    Issues exist when ramp rates are non-monotonic or have excessive ringing, but this will be a limitation with any vendor's silicon and will need to be accounted for in any system.  

  • OIM 9.1 Time-out problem with Design Console

    If I leave the design console running for any length of time, making updates result in the following error:
    17:36:52,578 ERROR [ACCOUNTMANAGEMENT] Class/Method: tcDataBase/getUser encounter some problems: Invalid user found: xelsysadm
    java.lang.RuntimeException: Invalid user found: xelsysadm
    at com.thortech.xl.server.tcDataBase.getUser(Unknown Source)
    at com.thortech.xl.dataobj.tcSVP.isOperationAllowed(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.isUpdatePermissible(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.eventPreUpdate(Unknown Source)
    at com.thortech.xl.dataobj.tcSVP.eventPreUpdate(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.update(Unknown Source)
    at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source) ...
    Closing the Design Console and re-launching produces similar errors. I must stop and restart the JBOSS server to get access again. My environment is Windows 2003 with JBOSS and an 11g database.
    Any help on what to look for would be appreciated.
    KC

    You are correct. If you pre-populate, it will be the requester. The requester would need to manually populate the field during the request with the requestee information. And there is only one form available. You can however, after submission of the request, get the request data, parse the Consolidated Request Data to determine the id's in the request field, and then return appropriate responses to trigger the tasks needed. This will still be a problem in the long run because you can't change the requestee information for each approval task. You're pretty much out of luck on this one.
    -Kevin

  • Problem with Design View in DW5

    I've recently inherited responsibility for my group's website (despite the fact that I'm kind of a noob at all this) and am dealing with an interesting challenge that I hope someone can help me with.
    It seems that our pages are based on a number of templates that for some reason were not saved along with the rest of the site. Short term this is not a huge issue, as the pages have the source code from the templates embedded in them, but this code is not editable and I can't figure out a way to override the fact that I'm "locked out" from making any changes (at least from within Dreamweaver). Up to now I've just been editing the pages individually in Komodo, which is tedious but not horrible, given that our site isn't that big, but it's clearly no way to do business in the long term.
    So I'm trying to re-engineer some templates that I can work with. What I did was use Komodo to strip away all of the template-related language from one of the site pages, and re-imported the code back into Dreamweaver, in the hope that I can then save that as a new template. I'm close, but not quite there. My problem is that DW's Design View isn't rendering the page properly, even though it displays fine in Live View and in browsers. Maybe this isn't a huge deal, but it's really bugging me because: 1) I do rely on Design View, since I'm not an experienced programmer; and 2) I'm kind of anal retentive.
    To see what I'm talking about, here is the page I used as the foundation for creating a new template:
    http://iodp.ldeo.columbia.edu/TOOLS_LABS/TRIPLE/aps.html
    ... and here is my new "template" (although I haven't saved it yet as a DW template):
    http://iodp.ldeo.columbia.edu/TOOLS_LABS/TRIPLE/test3.html
    The second page displays correctly in Live View, Safari and Firefox, but not in DW's Design View, where it looks like this, at least on my computer:
    As you can see, there's an odd "break" between the banner image and the menus on the left, and the body of the page, which should appear to the right of the menus on the left, is instead underneath them. I'm at a loss as to why the same code displays properly for the first page, but not the second.
    I guess my questions are as follows:
    1) Does anyone else get the same messed up display in DW's design view if they import the second page into DW?
    2) And if so, can you pinpoint where the problem is?
    I hope I've explained this clearly and would really be grateful for help. Thanks!

    Validate your code and fix errors.  #1 problem is the lack of a valid Document Type Declaration (DTD) on line 1 of HTML code.
    Code Validation Tools
    CSS - http://jigsaw.w3.org/css-validator/
    HTML - http://validator.w3.org/
    To add a DTD in DW:
    Go to Modify > Page Properties > Title/Encoding.
    Select document type from drop list.  I recommend HTML 4.0 Transitional.
    Hit Apply & OK. 
    Repeat Steps 1 - 3 on remaining site pages.
    I'm not a huge fan of DW Templates (.dwt).  I don't know how big your site is but it might be simpler to disconnect from Templates, giving you freedom to edit anything you wish.  Then use Server-Side Includes (SSIs) for common site wide elements such as menus, headers & footers.
    The great thing about SSIs is that you only need to edit one file, save it and upload to server.   Site pages are automatically updated by the server. With Templates, you have to upload every child page each time you change your template.  Even on small sites, this is tedious.
    Server-Side Includes
    http://www.smartwebby.com/web_site_design/server_side_includes.asp
    More on Server-Side Includes
    http://forums.adobe.com/message/2112460#2112460
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/

Maybe you are looking for

  • How can I workaround a Windows font issue?

    I'm using indd on a Dell Studio XP with Windows 7. I'm trying to use an installed font - Folio BK BT light - but the program continues to tell me the link to the font is missing, even though I find the font and re-establish the link every time I open

  • How do I know how much is on my itunes gift card?

    How do i know how much is left on my itunes gift card?

  • Skd881x daemon has stopped working

    hi all! i got that vista 64 running smooth and all on my d10. but the drivers for my USB Enhanced Performance keyboard are making some noise! "sometimes" when i press the volume buttons the skdaemon.exe(v2.0.2.0) crashes with a  "skd881x daemon has s

  • When to use Pro Res and what else?

    I recently went up to HD and have FCP7, all I've done is DV projects, which I transfer to iDVD. I've been reading a lot about Pro Res, up to now I used DV/DVPRO NTSC. I continue to use DV ftg and slowly am coming up to HD. Question is will Pro Res ma

  • Sound problem with Logitech C260

    Test call sounds fine, and I can record fine to MS Recorder.  BUT, people I can can't hear or understand me. I sound all garbled to them.  Any ideas please.