How to debug this key listener
how would I figure out what this key listener is actually doing, if anything?
piece1 is a new piece object that has a center at certain part on a matrix, with its width being at startPlaceX.
What I think should happened here is that when the user presses the left arrow key, it calls moveXLeft, which in turn, decrements the spot on the matrix that the current piece is.
In otherwords, how can I tell that the keyListener is doing anything? I have a function in my actionListener
public void startAnimation()
if (animationTimer == null)
animationTimer = new Timer(ANIMATION_DELAY, new TimerHandler());
animationTimer.start();
else
if (!animationTimer.isRunning())
animationTimer.restart();
public class TimerHandler implements ActionListener
public void actionPerformed(ActionEvent actionEvent)
piece1.moveDown(board);
piece1.drawIt(board, true);
repaint();
public void moveDown(int[][]board)
//startPlaceY++;
startPlaceY++;that works (IE, every given interval, it moves the specified piece down by 1)
here is the code in question
public void moveXLeft(int [][]temp)
startPlaceX--;
//startPlaceY+= change;
public class KeyHandler implements KeyListener
public void keyPressed(KeyEvent event)
switch (event.getKeyCode())
case KeyEvent.VK_LEFT:
piece1.moveXLeft(board);
//x -= size;
break;
case KeyEvent.VK_RIGHT:
piece1.moveXRight(-1);
//x += size;
break;
repaint();
public void keyReleased(KeyEvent event) {}
public void keyTyped(KeyEvent event) {}
}if you need any more info, please say so.
Edited by: thenextbesthang on Dec 16, 2007 12:33 PM
Edited by: thenextbesthang on Dec 16, 2007 12:33 PM
heres the whole of my code (right now)
import java.awt.* ;
import java.awt.event.* ;
import javax.swing.* ;
import java.awt.font.* ;
import java.awt.geom.* ;
public class project3{
public static void main(String[] args)
JFrame window = new JFrame();
window.setTitle("Tetris");
commenceGame begin = new commenceGame();
begin.init();
begin.startAnimation();
window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
window.getContentPane().add(begin);
window.pack();
window.setVisible( true );
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Pieces{
public int x;
public int y;
public int cross[][] = {{1,1,1},
{0,1,0}};
private int leftL[][] = {{2,2,2},
{2,0,0}};
private int rightL[][] = {{3,3,3},
{0,0,3}};
private int leftS[][] = {{0,4,4},
{4,4,0}};
private int rightS[][] = {{5,5,0},
{0,5,5}};
private int square[][] = {{6,6},
{6,6}};
private int tetris[][]= {{7,7,7,7}};
private int blankSquare[][] ={{0}};
public int startPlaceY;
public int startPlaceX;
public int shape;
public int replacement_board[][];
public Pieces()
x = 0;
y = 1;
startPlaceX = 4;
startPlaceY = 0;
shape = (int)(Math.random()*7);
replacement_board = new int[20][10];
public int[][] drawIt(int[][]temp2_board, boolean por)
//1
//temp2_board = replacement_board;
makeTetris(temp2_board);
//if(por) makeCross(temp2_board);//2
// temp2_board = replacement_board;
// else reMakeCross(replacement_board);
/* switch(shape)
case 0:
makeCross(temp2_board);
break;
case 1:
makeLeftL(temp2_board);
break;
case 2:
makeRightL(temp2_board);
break;
case 3:
makeLeftS(temp2_board);
break;
case 4:
makeRightS(temp2_board);
break;
case 5:
makeSquare(temp2_board);
break;
case 6:
makeTetris(temp2_board);
break;
return temp2_board;
public int[][] makeCross(int[][]temp)
replacement_board= temp;
for(int i=0;i<temp.length;i++)
for(int j = 0;j<temp[0].length;j++)
temp[i][j] = 0;
int color;
for(int i = 0;i<2;i++)
for(int j = 0;j<3;j++)
color = cross[i][j];
temp[startPlaceX+i][startPlaceY+j] = color;
return(temp);
//this method is designed to take the initial condition and create the new matrix
public int[][] makeLeftL(int[][]temp)
for(int i=0;i<temp.length;i++)
for(int j = 0;j<temp[0].length;j++)
temp[i][j] = 0;
int color;
for(int i = 0;i<2;i++)
for(int j = 0;j<3;j++)
color = leftL[i][j];
temp[startPlaceX+i][startPlaceY+j] = color;
return temp;
public int[][] makeRightL(int[][]temp)
for(int i=0;i<temp.length;i++)
for(int j = 0;j<temp[0].length;j++)
temp[i][j] = 0;
int color;
for(int i = 0;i<2;i++)
for(int j = 0;j<3;j++)
color = rightL[i][j];
temp[startPlaceX+i][startPlaceY+j] = color;
return temp;
public int[][] makeLeftS(int[][]temp)
for(int i=0;i<temp.length;i++)
for(int j = 0;j<temp[0].length;j++)
temp[i][j] = 0;
int color;
for(int i = 0;i<2;i++)
for(int j = 0;j<3;j++)
color = leftS[i][j];
temp[startPlaceX+i][startPlaceY+j] = color;
return temp;
public int[][] makeRightS(int[][]temp)
for(int i=0;i<temp.length;i++)
for(int j = 0;j<temp[0].length;j++)
temp[i][j] = 0;
int color;
for(int i = 0;i<2;i++)
for(int j = 0;j<3;j++)
color = rightS[i][j];
temp[startPlaceX+i][startPlaceY+j] = color;
return temp;
public int[][] makeSquare(int[][]temp)
for(int i=0;i<temp.length;i++)
for(int j = 0;j<temp[0].length;j++)
temp[i][j] = 0;
int color;
for(int i = 0;i<2;i++)
for(int j = 0;j<2;j++)
color = square[i][j];
temp[startPlaceX+i][startPlaceY+j] = color;
return temp;
public int[][] makeTetris(int[][]temp)
for(int i=0;i<temp.length;i++)
for(int j = 0;j<temp[0].length;j++)
temp[i][j] = 0;
int color;
for(int i = 0;i<4;i++)
for(int j = 0;j<1;j++)
color = tetris[j];
temp[startPlaceX+i][startPlaceY+j] = color;
return temp;
public int[][] makeBlankSquare(int[][]temp, boolean check)
int color;
for(int i = 0;i<1;i++)
for(int j = 0;j<1;j++)
if(check) color = blankSquare[i][j];
else color = 0;
temp[startPlaceX+i][startPlaceY+j] = color;
return temp;
public void moveDown(int[][]board)
//startPlaceY++;
startPlaceY++;
replacement_board = board;
System.out.println(startPlaceY);
//temp[startPlaceX+i][startPlaceY+j] = color;
replacement_board = board;
if(board[startPlaceY][startPlaceX] &&
board[startPlaceY+1][startPlaceX] &&
board[startPlaceY-1][startPlaceX] &&
board[startPlaceY][startPlaceX+1] &&
board[i][j]==1) board[i][j]=0;
for(int i=0;i<board.length;i++)
for(int j = 0;j<board[0].length;j++)
System.out.print(board[i][j] + " ");
System.out.println();
System.out.println();
//System.out.println(startPlaceY);
//makeCross(board);
//return replacement_board;
public void moveXLeft(int [][]temp)
startPlaceX--;
//startPlaceY+= change;
public void moveXRight(int [][]temp)
startPlaceX++;
makeCross(replacement_board);
//startPlaceY+= change;
public int[][] killLiving(int[][]temp)
for(int i = 0;i<temp.length;i++)
for(int j = 0;j<temp[0].length;j++)
if(temp[i][j]!= 0)
temp[i][j] = -1;
return temp;
} import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class commenceGame extends JPanel
public int x;//starting x location of block
public int y;//starting y location of block
public int width;//width of block
public int height;//height of block
public int board[][];
/*{{-1,-1, -1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1},
{-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1},
{-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1},
{-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1},
{-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1},
{-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1},
{-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1},
{-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1},
{-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1},
{-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1},
{-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1},
{-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1},
{-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1},
{-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1},
{-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1},
{-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1},
{-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1},
{-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1},
{-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1},
{-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1},
{-1,-1, -1, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1}};//game play board*/
public int temp_storage_board[][];
public int xBoard;//width of board matrix
public int yBoard;//height of board matrix
public Timer animationTimer;
public int ANIMATION_DELAY;
Pieces piece1;//the piece that gets modified
Pieces piece2;//the piece that is the result of the modification
public commenceGame()
xBoard = 10;
yBoard = 20;
width = 20;
height = 20;
x = 5;
y = 0;
board = new int[yBoard][xBoard];
//this is the board where pieces appear
temp_storage_board = new int[yBoard][xBoard];//this is the main board
piece1 = new Pieces();
piece1.drawIt(board, true);
// piece2 = new Pieces();
// piece2.drawIt(board, false);
ANIMATION_DELAY = 500;
public void init()
JPanel panel = new beginGame();
add(panel);
public class beginGame extends JPanel
public beginGame()
setPreferredSize(new Dimension(400,800));
setBackground(Color.white);
public void paintComponent(Graphics g)
super.paintComponent(g);
Graphics2D g2 = (Graphics2D)g;
temp_storage_board = board;
for (int i = 0 ; i < yBoard; i++)
for (int j = 0 ; j < xBoard; j++)
if(temp_storage_board[i][j] == 1) drawCross(g2, i, j);
else if(temp_storage_board[i][j] == 2) drawLeftL(g2, i, j);
else if(temp_storage_board[i][j] == 3) drawRightL(g2, i, j);
else if(temp_storage_board[i][j] == 4) drawLeftS(g2, i, j);
else if(temp_storage_board[i][j] == 5) drawRightS(g2, i, j);
else if(temp_storage_board[i][j] == 6) drawSquare(g2, i, j);
else if(temp_storage_board[i][j] == 7) drawTetris(g2, i, j);
else if(temp_storage_board[i][j] == -1) drawDeadSquare(g2, i, j);
public void drawCross(Graphics2D g2, int x, int y)
// piece1.makeCross(board, true);
g2.setColor(Color.red);
g2.fillRect(x*width,y*height,width,height);
g2.setColor(Color.black);
g2.drawRect(x*width,y*height,width,height);
//else if (board[i][x] == 2)
public void drawLeftL(Graphics2D g2, int x, int y)
// piece1.makeLeftL(board, true);
g2.setColor(Color.red);
g2.fillRect(x*width,y*height,width,height);
g2.setColor(Color.black);
g2.drawRect(x*width,y*height,width,height);
//else if (board[i][x] == 3)
public void drawRightL(Graphics2D g2, int x, int y)
// piece1.makeRightL(board, true);
g2.setColor(Color.cyan);
g2.fillRect(x*width,y*height,width,height);
g2.setColor(Color.black);
g2.drawRect(x*width,y*height,width,height);
//else if (board[i][x] == 4)
public void drawLeftS(Graphics2D g2, int x, int y)
// piece1.makeLeftS(board, true);
g2.setColor(Color.orange);
g2.fillRect(x*width,y*height,width,height);
g2.setColor(Color.black);
g2.drawRect(x*width,y*height,width,height);
//else if (board[i][x] == 5)
public void drawRightS(Graphics2D g2, int x, int y)
// piece1.makeRightS(board, true);
g2.setColor(Color.yellow);
g2.fillRect(x*width,y*height,width,height);
g2.setColor(Color.black);
g2.drawRect(x*width,y*height,width,height);
//else if (board[i][x] == 6)
public void drawSquare(Graphics2D g2, int x, int y)
// piece1.makeSquare(board, true);
g2.setColor(Color.blue);
g2.fillRect(x*width,y*height,width,height);
g2.setColor(Color.black);
g2.drawRect(x*width,y*height,width,height);
//else if (board[i][x] == 7)
public void drawTetris(Graphics2D g2, int x, int y)
// piece1.makeTetris(board, true);
g2.setColor(Color.green);
g2.fillRect(x*width,y*height,width,height);
g2.setColor(Color.black);
g2.drawRect(x*width,y*height,width,height);
// else if (board[i][x] == 0)
public void drawBlankSquare(Graphics2D g2, int x, int y)
// piece1.makeBlankSquare(board, true);
g2.setColor(Color.white);
g2.fillRect(x*width,y*height,width,height);
//else if (board[i][x] == -1)
public void drawDeadSquare(Graphics2D g2, int x, int y)
// piece1.makeDeadSquare(board, true);
g2.setColor(Color.gray);
g2.fillRect(x*width,y*height,width,height);
public void startAnimation()
if (animationTimer == null)
animationTimer = new Timer(ANIMATION_DELAY, new TimerHandler());
animationTimer.start();
else
if (!animationTimer.isRunning())
animationTimer.restart();
public class TimerHandler implements ActionListener
public void actionPerformed(ActionEvent actionEvent)
// System.out.println("aP");
piece1.moveDown(board);
// piece1.moveXLeft(board);
piece1.drawIt(board, true);
repaint();
if (piece1.startPlaceY> 10)
piece1.killLiving(board);
//y += size;
//if (y > height) y = 10;
public class KeyHandler implements KeyListener
public void keyPressed(KeyEvent event)
switch (event.getKeyCode())
case KeyEvent.VK_LEFT:
piece1.moveXLeft(board);
//x -= size;
break;
case KeyEvent.VK_RIGHT:
piece1.moveXRight(board);
//x += size;
break;
repaint();
public void keyReleased(KeyEvent event) {}
public void keyTyped(KeyEvent event) {}
Basically, what this does is creates an applet, picks a random piece, and makes the piece fall down until it reaches the end (at which point it can't fall down any further)
As I mentioned before, the method: public class TimerHandler implements ActionListener
public void actionPerformed(ActionEvent actionEvent)
// System.out.println("aP");
piece1.moveDown(board);works, because the thing DOES fall down.
However, when I try to replicate that with the keyListener, using essentially the same process, it doesn't work.
I'll look up what yall said
Similar Messages
-
How to debug this error? trying to load excel file to Database
SSIS package "c:\users\asubedi\documents\visual studio 2012\Projects\Integration Services Project1\Integration Services Project1\PackageToLoadBuyerDedupe.dtsx" starting.
Information: 0x4004300A at BuyerDedupe, SSIS.Pipeline: Validation phase is beginning.
Error: 0xC0209303 at PackageToLoadBuyerDedupe, Connection manager "Excel Connection Manager": The requested OLE DB provider Microsoft.ACE.OLEDB.12.0 is not registered. If the 64-bit driver is not installed, run the package in 32-bit mode. Error code: 0x00000000.
An OLE DB record is available. Source: "Microsoft OLE DB Service Components" Hresult: 0x80040154 Description: "Class not registered".
Error: 0xC001002B at PackageToLoadBuyerDedupe, Connection manager "Excel Connection Manager": The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine. For more information, see http://go.microsoft.com/fwlink/?LinkId=219816
Error: 0xC020801C at BuyerDedupe, Excel Source [2]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "Excel Connection Manager" failed with error code 0xC0209303. There may be error messages posted before this with more information on why the AcquireConnection method call failed.
Error: 0xC0047017 at BuyerDedupe, SSIS.Pipeline: Excel Source failed validation and returned error code 0xC020801C.
Error: 0xC004700C at BuyerDedupe, SSIS.Pipeline: One or more component failed validation.
Error: 0xC0024107 at BuyerDedupe: There were errors during task validation.
SSIS package "c:\users\asubedi\documents\visual studio 2012\Projects\Integration Services Project1\Integration Services Project1\PackageToLoadBuyerDedupe.dtsx" finished: Failure.
how to debug this issue?Hi Arjunji,
The issue occurs because you have only 32-bit Microsoft ACE 12.0 OLEDB drivers installed, however, the package runs in 64-bit runtime mode which requires 64-bit drivers.
To avoid this issue, you need to either install the 64-bit
Microsoft Access Database Engine 2010 Redistributable or run the package in 32-bit runtime mode. To run the package in 32-bit runtime mode, in SSDT, you can set the Run64BitRuntime property of the IS project to False; in a SQL Server Agent job, you can
configure the SSIS Package Job step and check the “Use 32 bit run time” option.
In addition, please note that the 32-bit install file of Microsoft Access Database Engine 2010 Redistributable and the 64-bit one cannot be installed side by side on a single server. However, if your current ACE 12.0 OLE DB drivers are installed by 32-bit
Office suit, you can go ahead and install the 64-bit Microsoft Access Database Engine 2010 Redistributable.
Regards,
Mike Yin
TechNet Community Support -
Dock application gets killed itself on Lion, how to debug this issue?
Hi, Dock application gets killed itself and it dissappears and relaunches itself after for few seconds, This is happening for every 5 min or so. it is quite annoying problem. how to debug this issue? any help?
When I look the system logs - there is an exception each time I try to run the application or open a window:
9/5/09 10:33:12 PM Linear[23545] Cannot create BOOL from object <Regression: 0x1461f0> of class Regression -
My browser is IE9. While I read my friend mails that are sent through Firefox. Suddenly I received an error message "Bad request error 400". Now I cannot access my gmail inbox anymore. I don't know what to do now. Please show me how to debug this so I can go back to my gmail because there are a ton of email in gmail inbox. Please help!!
The following relates to inbox problems in GMail in Nov 2011, no error 400 was seen, only a blank area where the message should have been. Since two people tied into this message this week I think theirs may be a need to update Adblock Plus filters per question [https://support.mozilla.com/questions/896267 896267]
-
ORA-03113 - How to Debug This?
Hi All,
I am seeing this error ORA-03113.
How do I debug this?
How can I find what is causing this to happen?
Thanks a lot.
~JayantI too received the same "ORA-03113: end-of-file on communication channel" error and here is the scenario:-
I have a database link that connects another database, a package brings in data from remote database, a job is scheduled via dbms_job to run the package. I received this below error when the listener or database at the remote location (where the database link connects) becomes unavailable:-
Errors in file d:\oracle\admin\<sid>\udump\<sid>j0002536.trc:
ORA-12012: error on auto execute of job 1
ORA-28546: connection initialization failed, probable Net8 admin error
ORA-02068: following severe error from <db_link>
ORA-03113: end-of-file on communication channel
ORA-06512: at "pkg.proc", line 4
ORA-06512: at line 1You might get this error at different scenarios, like database startup or due to network failure or firewall etc.,
Did you get it during startup or while running or in the alert.log? There should be more ORA- errors associated with it, which will help in identifying the cause of ORA-03113 error. -
NEED HR KEY(HOW TO FIND THIS KEY)
HI,
I am working with EE 4.7 version, can i use this version for HR module.. will it be possible. DO i need to install any other softwares with this package.. I aslosa looking for the HR module key.. Could u please tel me where to find this key in my PC.
thanking you,Hello Jijay
If the <i>software component</i> <b>SAP_HR</b> is installed on your SAP system then you have the HR module available. The dependencies between software components can be seen using transaction <b>SPAM</b>.
For example, on ECC 5.0 SAPKE50004 (SP 04 for SAP_HR 5.0) requires
- SAPKA64009 (SP 09 for SAP_ABA)
- SAPKB64009 (SP 09 for SAP_BASIS)
- SAPKE50003 (SP 03 for SAP_HR 5.0)
- SAPKW35009 (SP 09 for SAP_BW 3.5)
Regards
Uwe -
Under Flash Player 10.1 on Windows, we are suddenly getting an error that did not occur under player 9 or 10, and does not appear in any version of player on Mac. The biggest problem is that the entire error stack is inside the Flash framework, initiated by a callLaterDispatcher. Flash complains that an index is out of bounds, but gives zero information on what the parent or child object is, or what the index number is that is being passed.
I have all bug given up trying to find the source of the problem in our code, which runs for several thousand lines, covering half a dozen internally created classes. I see a 'hook' at (C:\autobuild\3.2.0\frameworks\...), but cannot even see that folder on my system? (yes, I have 'show invisible' set for my file system -- this is Windoze XP, for what it's worth).
Any suggestions on how to track down a problem like this?
RangeError: Error #2006: The supplied index is out of bounds.
at flash.display::DisplayObjectContainer/getChildAt()
at mx.core::Container/getChildAt()[C:\autobuild\3.2.0\frameworks\project s\framework\src\mx\core\Container.as:2334]
at fl.managers::FocusManager/addFocusables()
at fl.managers::FocusManager/addFocusables()
at fl.managers::FocusManager/addFocusables()
at fl.managers::FocusManager/addFocusables()
at fl.managers::FocusManager/addFocusables()
at fl.managers::FocusManager/activate()
at fl.managers::FocusManager()
at fl.core::UIComponent/createFocusManager()
at fl.core::UIComponent/initializeFocusManager()
at fl.core::UIComponent/addedHandler()
at flash.display::DisplayObjectContainer/addChild()
at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::createContentPane()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\Contai ner.as:4665]
at mx.core::Container/createOrDestroyScrollbars()[C:\autobuild\3.2.0\fra meworks\projects\framework\src\mx\core\Container.as:4410]
at mx.core::Container/createScrollbarsIfNeeded()[C:\autobuild\3.2.0\fram eworks\projects\framework\src\mx\core\Container.as:4359]
at mx.core::Container/createContentPaneAndScrollbarsIfNeeded()[C:\autobu ild\3.2.0\frameworks\projects\framework\src\mx\core\Container.as:4175]
at mx.core::Container/validateDisplayList()[C:\autobuild\3.2.0\framework s\projects\framework\src\mx\core\Container.as:2691]
at mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.2.0\f rameworks\projects\framework\src\mx\managers\LayoutManager.as:622]
at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0 \frameworks\projects\framework\src\mx\managers\LayoutManager.as:695]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\framew orks\projects\framework\src\mx\core\UIComponent.as:8628]
at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\framewo rks\projects\framework\src\mx\core\UIComponent.as:8568]RangeError: Error #2006: 提供的索引超出范围。
at flash.display::DisplayObjectContainer/getChildAt()
at mx.core::Container/getChildAt()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.a s:2751]
at MainApp/getChildAt()[D:\!Source\SrcClient\Main\AppMain\src\MainApp.mxml:239]
at fl.managers::FocusManager/addFocusables()[D:\Program Files\Adobe\Adobe Flash CS5.5\Common\Configuration\Component Source\ActionScript 3.0\User Interface\fl\managers\FocusManager.as:272]
at fl.managers::FocusManager/addFocusables()[D:\Program Files\Adobe\Adobe Flash CS5.5\Common\Configuration\Component Source\ActionScript 3.0\User Interface\fl\managers\FocusManager.as:274]
at fl.managers::FocusManager/addFocusables()[D:\Program Files\Adobe\Adobe Flash CS5.5\Common\Configuration\Component Source\ActionScript 3.0\User Interface\fl\managers\FocusManager.as:274]
at fl.managers::FocusManager/activate()[D:\Program Files\Adobe\Adobe Flash CS5.5\Common\Configuration\Component Source\ActionScript 3.0\User Interface\fl\managers\FocusManager.as:465]
at fl.managers::FocusManager()[D:\Program Files\Adobe\Adobe Flash CS5.5\Common\Configuration\Component Source\ActionScript 3.0\User Interface\fl\managers\FocusManager.as:178]
at fl.core::UIComponent/createFocusManager()[D:\Program Files\Adobe\Adobe Flash CS5.5\Common\Configuration\Component Source\ActionScript 3.0\User Interface\fl\core\UIComponent.as:1621]
at fl.core::UIComponent/initializeFocusManager()[D:\Program Files\Adobe\Adobe Flash CS5.5\Common\Configuration\Component Source\ActionScript 3.0\User Interface\fl\core\UIComponent.as:1532]
at fl.core::UIComponent/addedHandler()[D:\Program Files\Adobe\Adobe Flash CS5.5\Common\Configuration\Component Source\ActionScript 3.0\User Interface\fl\core\UIComponent.as:1553]
at flash.display::DisplayObjectContainer/addChild()
at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::createContentPane()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:5437]
at mx.core::Container/createOrDestroyScrollbars()[E:\dev\4.y\frameworks\projects\mx\src\mx\c ore\Container.as:5183]
at mx.core::Container/createScrollbarsIfNeeded()[E:\dev\4.y\frameworks\projects\mx\src\mx\co re\Container.as:5132]
at mx.core::Container/createContentPaneAndScrollbarsIfNeeded()[E:\dev\4.y\frameworks\project s\mx\src\mx\core\Container.as:4929]
at mx.core::Container/validateDisplayList()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Co ntainer.as:3312]
at mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.y\frameworks\projects\framework \src\mx\managers\LayoutManager.as:736]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.y\frameworks\projects\framewo rk\src\mx\managers\LayoutManager.as:819]
at mx.managers::LayoutManager/validateNow()[E:\dev\4.y\frameworks\projects\framework\src\mx\ managers\LayoutManager.as:878]
at mx.core::Application/resizeHandler()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Applic ation.as:1734]
at mx.core::Application/commitProperties()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\App lication.as:1086]
at mx.core::UIComponent/validateProperties()[E:\dev\4.y\frameworks\projects\framework\src\mx \core\UIComponent.as:8219]
at mx.managers::LayoutManager/validateProperties()[E:\dev\4.y\frameworks\projects\framework\ src\mx\managers\LayoutManager.as:597]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.y\frameworks\projects\framewo rk\src\mx\managers\LayoutManager.as:813]
at mx.managers::LayoutManager/validateNow()[E:\dev\4.y\frameworks\projects\framework\src\mx\ managers\LayoutManager.as:878]
at mx.core::Application/resizeHandler()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Applic ation.as:1734]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::SystemManager/Stage_resizeHandler()[E:\dev\4.y\frameworks\projects\framework \src\mx\managers\SystemManager.as:3227]
I got the Same Error
My application with the layout desc bellow
[MainApp:mx:Application]
--[xxxx:mx:UIComponent]
---[a_mc_like_dialog:MovieClip]
-----[ctrl:fl:UIComponent] //type of fl.controls.*
when MainApp handle stage resize event
the application crash
the cause is in function
Container::createScrollbarsIfNeeded and it change the _firstChildIndex
the local var
needContentPane is true
My solution is set MainApp's properties like this
horizontalScrollPolicy="off"
verticalScrollPolicy="off"
clipContent="false" -
How to debug this Dynamic Action JS code?
Hi guys!
I have a dynamic action which fires on page load and checks if some field in tabular form has changed:
$('#UZT01').find('input,select').not('[name=f01],[id=check-all-rows],[type=checkbox]').change( function(){
$s('P5_IS_TABULAR_FORM_CHANGED','Y');
$('[value="Dodaj"]').hide();
});What is most annoying in this piece of code?
It changes only the value of an item to 'Y' and does not hide the button and most of all it still reacts with "select row" checkbox column...
If I comment the first line - script hides the button but still reacts with checkbox column...
If I comment the second line - you already know...
How to make it right? Please help and many thanks in advance for your time :)
With regards,
PsmakRHi!
Thanks for the reply :)
No warning and errors using firebug ;/
With regards,
PsmakR -
How to debug this error.
I wrote the managed bean for shuttle.But i m getting so many errors.Can anybody help me on this.
Error(62,23): type oracle.insurance.viking.asset.view.List does not take parameters
Error(47,41): cannot find method findIteratorBinding(java.lang.String)
Error(48,30): incompatible types
Error(49,25): cannot find method getAllRowInRange()
Error(51,32): cannot find method getAttribute(java.lang.String)
Error(66,41): cannot find method findIteratorBinding(java.lang.String)
Error(67,13): type oracle.insurance.viking.asset.view.List does not take parameters
Error(69,25): cannot find method getAllRowInRange()
Error(71,45): cannot find method getAttribute(java.lang.String)
Error(71,83): cannot find method getAttribute(java.lang.String)
Error(93,25): cannot find method getAllRowInRange()
Error(94,11): cannot find method remove()
Error(96,40): cannot find method size()
Error(97,46): cannot find method size()
Error(99,39): cannot find variable STATUS_INITIALIZED
Error(100,52): cannot find method getCurrentAssetCategoryId()
Error(101,48): cannot find method getSelectedAttributes()
Error(102,41): insertRow(oracle.jbo.Row) in oracle.jbo.RowIterator cannot be applied to (com.sun.rowset.internal.Row)
Error(103,51): cannot find method getKey()
Error(122,21): cannot find method getOperationBinding(java.lang.String)Can u just tell which all to import i have imported these...
import com.sun.rowset.internal.Row;
import com.sun.xml.internal.ws.wsdl.writer.document.Binding;
import java.util.ArrayList;
import javax.faces.event.ValueChangeEvent;
import javax.faces.model.SelectItem;
import oracle.adf.model.AttributeBinding;
import oracle.adf.model.BindingContainer;
import oracle.adf.model.BindingContext;
import oracle.adf.model.binding.DCBindingContainer;
import oracle.adf.model.binding.DCIteratorBinding;
import oracle.binding.OperationBinding; -
Hi all,
I'm creating an application by using the J2SE v 1.4.2_10 SDK with NetBeans 4.1 Bundle. I have created 4 button and handles event each. I would like to create a hotkey for each button, "F2" key for jButtton2, "F3" key for jButton3, "F8" key for jButton4, "F1" key for jButton5, once i click on the key, the event will be triggered and the coding inside will be executed.
Actually I have read through a few including How to Write a Key Listener, How to Write a Component Listener, How to Write an Action Listener, How to Use Actions, How to Use Key Bindings... but i really not so clear about that and don't know how to apply that into my task... Hope someone can help me...Thanks
The following is part of my coding...
* RegisterStudent_ADD.java
* Created on November 15, 2005, 11:12 PM
import java.awt.*;
import java.sql.*;
import javax.swing.*;
import java.lang.*;
public class RegisterStudent_ADD extends javax.swing.JFrame {
/** Creates new form RegisterStudent_ADD */
public RegisterStudent_ADD() {
initComponents();
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
// <editor-fold defaultstate="collapsed" desc=" Generated Code ">
private void initComponents() {
jDialog1 = new javax.swing.JDialog();
jOptionPane1 = new javax.swing.JOptionPane();
jLabel7 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
jTextField2 = new javax.swing.JTextField();
jTextField3 = new javax.swing.JTextField();
jTextField4 = new javax.swing.JTextField();
jTextField5 = new javax.swing.JTextField();
jButton5 = new javax.swing.JButton();
jSeparator2 = new javax.swing.JSeparator();
jLabel1 = new javax.swing.JLabel();
jSeparator1 = new javax.swing.JSeparator();
jButton2 = new javax.swing.JButton();
jButton3 = new javax.swing.JButton();
jButton4 = new javax.swing.JButton();
jLabel3 = new javax.swing.JLabel();
jDialog1.getContentPane().setLayout(null);
jDialog1.getContentPane().add(jOptionPane1);
jOptionPane1.setBounds(0, 0, 262, 90);
getContentPane().setLayout(null);
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
setTitle("Register Student - ADD");
jLabel7.setText("Student Phone No");
getContentPane().add(jLabel7);
jLabel7.setBounds(5, 180, 150, 14);
jLabel6.setText("Student Address");
getContentPane().add(jLabel6);
jLabel6.setBounds(5, 155, 150, 14);
jLabel5.setText("Student IC# ");
getContentPane().add(jLabel5);
jLabel5.setBounds(5, 130, 150, 14);
jLabel4.setText("Student Name");
getContentPane().add(jLabel4);
jLabel4.setBounds(5, 105, 150, 14);
jLabel2.setText("Student Code");
getContentPane().add(jLabel2);
jLabel2.setBounds(5, 80, 150, 14);
jLabel8.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED));
getContentPane().add(jLabel8);
jLabel8.setBounds(130, 75, 160, 19);
jTextField2.setColumns(8);
jTextField2.setName("");
getContentPane().add(jTextField2);
jTextField2.setBounds(130, 100, 160, 19);
jTextField3.setColumns(8);
jTextField3.setName("");
getContentPane().add(jTextField3);
jTextField3.setBounds(130, 125, 160, 19);
jTextField4.setColumns(8);
jTextField4.setName("");
getContentPane().add(jTextField4);
jTextField4.setBounds(130, 150, 340, 19);
jTextField5.setColumns(10);
jTextField5.setName("");
getContentPane().add(jTextField5);
jTextField5.setBounds(130, 175, 160, 19);
jButton5.setText("F1-Retry");
jButton5.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton5ActionPerformed(evt);
getContentPane().add(jButton5);
jButton5.setBounds(5, 34, 90, 23);
getContentPane().add(jSeparator2);
jSeparator2.setBounds(0, 30, 800, 2);
jLabel1.setText("Register Student");
getContentPane().add(jLabel1);
jLabel1.setBounds(5, 10, 150, 14);
getContentPane().add(jSeparator1);
jSeparator1.setBounds(0, 60, 800, 2);
jButton2.setText("F2-NxRec");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
getContentPane().add(jButton2);
jButton2.setBounds(100, 34, 90, 23);
jButton3.setText("F3-PreRec");
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
getContentPane().add(jButton3);
jButton3.setBounds(195, 34, 90, 23);
jButton4.setText("F8-Save");
jButton4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton4ActionPerformed(evt);
getContentPane().add(jButton4);
jButton4.setBounds(290, 34, 90, 23);
jLabel3.setText("mode : ADD");
jLabel3.setBorder(new javax.swing.border.TitledBorder(""));
getContentPane().add(jLabel3);
jLabel3.setBounds(680, 3, 100, 25);
setBounds(0, 0, 800, 600);
// </editor-fold>
private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {
......//some coding here.
private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {
......//some coding here.
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
......//some coding here.
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
......//some coding here.
* @param args the command line arguments
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new RegisterStudent_ADD().setVisible(true);
// Variables declaration - do not modify
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
private javax.swing.JButton jButton4;
private javax.swing.JButton jButton5;
private javax.swing.JDialog jDialog1;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JLabel jLabel5;
private javax.swing.JLabel jLabel6;
private javax.swing.JLabel jLabel7;
public javax.swing.JLabel jLabel8;
private javax.swing.JOptionPane jOptionPane1;
private javax.swing.JSeparator jSeparator1;
private javax.swing.JSeparator jSeparator2;
private javax.swing.JTextField jTextField2;
private javax.swing.JTextField jTextField3;
private javax.swing.JTextField jTextField4;
private javax.swing.JTextField jTextField5;
// End of variables declaration
}Ning.Use the Action architecture (http://java.sun.com/products/jfc/tsc/articles/actions/):
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.KeyStroke;
public class HotKeyComponent extends JPanel {
public static void main(String[] args) {
HotKeyComponent c = new HotKeyComponent();
UselessAction a1 = new UselessAction("Action 1", "action.1", KeyStroke.getKeyStroke("F1"));
UselessAction a2 = new UselessAction("Action 2", "action.2", KeyStroke.getKeyStroke("F2"));
UselessAction a3 = new UselessAction("Action 3", "action.3", KeyStroke.getKeyStroke("F4"));
c.addButton(a1);
c.addButton(a2);
c.addButton(a3);
JFrame frame = new JFrame("HotKey Test");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setBounds(100, 100, 400, 300);
frame.add(c);
frame.setVisible(true);
public void addButton(Action action) {
Object command = action.getValue(Action.ACTION_COMMAND_KEY);
KeyStroke stroke = (KeyStroke)action.getValue(Action.ACCELERATOR_KEY);
getInputMap(WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(stroke, command);
getActionMap().put(command, action);
JButton button = new JButton(action);
add(button);
static class UselessAction extends AbstractAction {
public UselessAction(String name, Object actionCommand, KeyStroke stroke) {
putValue(Action.NAME, name);
putValue(Action.ACTION_COMMAND_KEY, actionCommand);
putValue(Action.ACCELERATOR_KEY, stroke);
public void actionPerformed(ActionEvent actionEvent) {
System.out.println("actionPerformed " + getValue(Action.NAME));
}The example contains three buttons. You can either click them, or press the key which is mapped to an Action. -
How to debug when you can't recreate error consistently
I have a simple illustrator-type application in which I draw rounded rectangles to a JPanel and then the user is able to move them around (the position and repaint is done in via the mouseDragged interface.
Sometimes, the application shuts down when I am dragging a box with this message:
# An unexpected error has been detected by HotSpot Virtual Machine:
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d236a0c, pid=3400, tid=2716
# Java VM: Java HotSpot(TM) Client VM (1.5.0_07-b03 mixed mode, sharing)
# Problematic frame:
# C [dcpr.dll+0x6a0c]
# An error report file with more information is saved as hs_err_pid3400.log
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
I checked the error report and it suggests the problem is within the PathFiller.WriteAlpha. The entire report is below. The problem I have is that if I restart the application and place boxes in the exact same locations as before, and try moving the one that caused the error, the error is not thrown.
I have no idea how to debug this as I can't even consistently reproduce. I just upgraded to the newest JDK (I think it was 7).
Thanks for any insight and help you can offer.
# An unexpected error has been detected by HotSpot Virtual Machine:
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d236a0c, pid=3400, tid=2716
# Java VM: Java HotSpot(TM) Client VM (1.5.0_07-b03 mixed mode, sharing)
# Problematic frame:
# C [dcpr.dll+0x6a0c]
--------------- T H R E A D ---------------
Current thread (0x00acae38): JavaThread "AWT-EventQueue-0" [_thread_in_native, id=2716]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000007
Registers:
EAX=0x00a9c6b8, EBX=0x02e33930, ECX=0x00a9c6a4, EDX=0x00000001
ESP=0x0303f314, EBP=0x0303f328, ESI=0x00a35f1c, EDI=0xffffffff
EIP=0x6d236a0c, EFLAGS=0x00010286
Top of Stack: (sp=0x0303f314)
0x0303f314: 02e2865c 00a35f1c 02e33930 ffffffff
0x0303f324: 02e2865c 0303f34c 6d236ce8 02e33930
0x0303f334: 00a35f1c 02e33930 02e2865c 02e33930
0x0303f344: 00acaef8 02e34774 0303f378 6d2326be
0x0303f354: 02e33930 00a35f1c 02f13380 00000001
0x0303f364: 00000020 00000000 22fb02e8 22fad0d0
0x0303f374: 00acae38 0303f3a0 00b6a767 02f13380
0x0303f384: 0303f3b8 0303f3b4 00000001 00000020
Instructions: (pc=0x6d236a0c)
0x6d2369fc: 85 ff 89 7d f8 0f 84 16 01 00 00 eb 03 8b 7d f8
0x6d236a0c: d9 47 08 d8 15 50 c0 23 6d 8b 47 04 d9 55 fc 89
Stack: [0x03000000,0x03040000), sp=0x0303f314, free space=252k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [dcpr.dll+0x6a0c]
C [dcpr.dll+0x6ce8]
C [dcpr.dll+0x26be]
J sun.dc.pr.PathFiller.writeAlpha8([BIII)V
J sun.java2d.pipe.DuctusRenderer.getAlpha(Lsun/dc/pr/Rasterizer;[BIII)V
J sun.java2d.pipe.DuctusShapeRenderer.renderPath(Lsun/java2d/SunGraphics2D;Ljava/awt/Shape;Ljava/awt/BasicStroke;)V
J sun.java2d.pipe.DuctusShapeRenderer.fill(Lsun/java2d/SunGraphics2D;Ljava/awt/Shape;)V
J sun.java2d.pipe.PixelToShapeConverter.fillRoundRect(Lsun/java2d/SunGraphics2D;IIIIII)V
J sun.java2d.SunGraphics2D.fillRoundRect(IIIIII)V
J writingplatform.PlatformNode.paintComponent(Ljava/awt/Graphics;)V
J writingplatform.TextNode.paintComponent(Ljava/awt/Graphics;)V
J writingplatform.PlatformPanel.paintComponent(Ljava/awt/Graphics;)V
J javax.swing.JComponent.paint(Ljava/awt/Graphics;)V
J javax.swing.JComponent.paintWithOffscreenBuffer(Ljavax/swing/JComponent;Ljava/awt/Graphics;IIIILjava/awt/Image;)V
J javax.swing.JComponent.paintDoubleBuffered(Ljavax/swing/JComponent;Ljava/awt/Component;Ljava/awt/Graphics;IIII)Z
J javax.swing.JComponent._paintImmediately(IIII)V
J javax.swing.JComponent.paintImmediately(IIII)V
J javax.swing.RepaintManager.paintDirtyRegions()V
J javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run()V
J java.awt.event.InvocationEvent.dispatch()V
J java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V
J java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z
v ~RuntimeStub::alignment_frame_return Runtime1 stub
j java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+26
j java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
j java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
j java.awt.EventDispatchThread.run()V+9
v ~StubRoutines::call_stub
V [jvm.dll+0x86401]
V [jvm.dll+0xdb172]
V [jvm.dll+0x862d2]
V [jvm.dll+0x8602f]
V [jvm.dll+0xa0bcb]
V [jvm.dll+0x10bdad]
V [jvm.dll+0x10bd7b]
C [MSVCRT.dll+0x2a3b0]
C [kernel32.dll+0xb50b]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J sun.dc.pr.PathFiller.writeAlpha8([BIII)V
J sun.java2d.pipe.DuctusRenderer.getAlpha(Lsun/dc/pr/Rasterizer;[BIII)V
J sun.java2d.pipe.DuctusShapeRenderer.renderPath(Lsun/java2d/SunGraphics2D;Ljava/awt/Shape;Ljava/awt/BasicStroke;)V
J sun.java2d.pipe.DuctusShapeRenderer.fill(Lsun/java2d/SunGraphics2D;Ljava/awt/Shape;)V
J sun.java2d.pipe.PixelToShapeConverter.fillRoundRect(Lsun/java2d/SunGraphics2D;IIIIII)V
J sun.java2d.SunGraphics2D.fillRoundRect(IIIIII)V
J writingplatform.PlatformNode.paintComponent(Ljava/awt/Graphics;)V
J writingplatform.TextNode.paintComponent(Ljava/awt/Graphics;)V
J writingplatform.PlatformPanel.paintComponent(Ljava/awt/Graphics;)V
J javax.swing.JComponent.paint(Ljava/awt/Graphics;)V
J javax.swing.JComponent.paintWithOffscreenBuffer(Ljavax/swing/JComponent;Ljava/awt/Graphics;IIIILjava/awt/Image;)V
J javax.swing.JComponent.paintDoubleBuffered(Ljavax/swing/JComponent;Ljava/awt/Component;Ljava/awt/Graphics;IIII)Z
J javax.swing.JComponent._paintImmediately(IIII)V
J javax.swing.JComponent.paintImmediately(IIII)V
J javax.swing.RepaintManager.paintDirtyRegions()V
J javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run()V
J java.awt.event.InvocationEvent.dispatch()V
J java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V
J java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z
v ~RuntimeStub::alignment_frame_return Runtime1 stub
j java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+26
j java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
j java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
j java.awt.EventDispatchThread.run()V+9
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x000360c0 JavaThread "DestroyJavaVM" [_thread_blocked, id=696]
=>0x00acae38 JavaThread "AWT-EventQueue-0" [_thread_in_native, id=2716]
0x00ac5530 JavaThread "AWT-Windows" daemon [_thread_in_native, id=3396]
0x00ac50b0 JavaThread "AWT-Shutdown" [_thread_blocked, id=2656]
0x00ac3eb8 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=1644]
0x00a6ef28 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=408]
0x00a6dc28 JavaThread "CompilerThread0" daemon [_thread_blocked, id=992]
0x0003fda0 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=1756]
0x00a42240 JavaThread "Finalizer" daemon [_thread_blocked, id=2156]
0x00a40d58 JavaThread "Reference Handler" daemon [_thread_blocked, id=328]
Other Threads:
0x00a3e460 VMThread [id=3024]
0x00a702a8 WatcherThread [id=1740]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 576K, used 20K [0x22a70000, 0x22b10000, 0x22f50000)
eden space 512K, 2% used [0x22a70000, 0x22a73220, 0x22af0000)
from space 64K, 12% used [0x22af0000, 0x22af2128, 0x22b00000)
to space 64K, 0% used [0x22b00000, 0x22b00000, 0x22b10000)
tenured generation total 1408K, used 435K [0x22f50000, 0x230b0000, 0x26a70000)
the space 1408K, 30% used [0x22f50000, 0x22fbcd10, 0x22fbce00, 0x230b0000)
compacting perm gen total 8192K, used 388K [0x26a70000, 0x27270000, 0x2aa70000)
the space 8192K, 4% used [0x26a70000, 0x26ad1170, 0x26ad1200, 0x27270000)
ro space 8192K, 67% used [0x2aa70000, 0x2afcd9f8, 0x2afcda00, 0x2b270000)
rw space 12288K, 46% used [0x2b270000, 0x2b813808, 0x2b813a00, 0x2be70000)
Dynamic libraries:
0x00400000 - 0x0040d000 C:\Program Files\Java\jdk1.5.0_07\jre\bin\java.exe
0x7c900000 - 0x7c9b0000 C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f4000 C:\WINDOWS\system32\kernel32.dll
0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 - 0x77f01000 C:\WINDOWS\system32\RPCRT4.dll
0x77c10000 - 0x77c68000 C:\WINDOWS\system32\MSVCRT.dll
0x6d730000 - 0x6d8c7000 C:\Program Files\Java\jdk1.5.0_07\jre\bin\client\jvm.dll
0x77d40000 - 0x77dd0000 C:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f57000 C:\WINDOWS\system32\GDI32.dll
0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
0x6d2f0000 - 0x6d2f8000 C:\Program Files\Java\jdk1.5.0_07\jre\bin\hpi.dll
0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
0x6d700000 - 0x6d70c000 C:\Program Files\Java\jdk1.5.0_07\jre\bin\verify.dll
0x6d370000 - 0x6d38d000 C:\Program Files\Java\jdk1.5.0_07\jre\bin\java.dll
0x6d720000 - 0x6d72f000 C:\Program Files\Java\jdk1.5.0_07\jre\bin\zip.dll
0x6d070000 - 0x6d1d7000 C:\Program Files\Java\jdk1.5.0_07\jre\bin\awt.dll
0x73000000 - 0x73026000 C:\WINDOWS\system32\WINSPOOL.DRV
0x76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32.dll
0x774e0000 - 0x7761d000 C:\WINDOWS\system32\ole32.dll
0x5ad70000 - 0x5ada8000 C:\WINDOWS\system32\uxtheme.dll
0x73760000 - 0x737a9000 C:\WINDOWS\system32\ddraw.dll
0x73bc0000 - 0x73bc6000 C:\WINDOWS\system32\DCIMAN32.dll
0x73940000 - 0x73a10000 C:\WINDOWS\system32\D3DIM700.DLL
0x6d2b0000 - 0x6d2ef000 C:\Program Files\Java\jdk1.5.0_07\jre\bin\fontmanager.dll
0x74720000 - 0x7476b000 C:\WINDOWS\system32\MSCTF.dll
0x7c9c0000 - 0x7d1d5000 C:\WINDOWS\system32\shell32.dll
0x77f60000 - 0x77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
0x773d0000 - 0x774d2000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll
0x5d090000 - 0x5d127000 C:\WINDOWS\system32\comctl32.dll
0x605d0000 - 0x605d9000 C:\WINDOWS\system32\mslbui.dll
0x77120000 - 0x771ac000 C:\WINDOWS\system32\OLEAUT32.DLL
0x6d530000 - 0x6d543000 C:\Program Files\Java\jdk1.5.0_07\jre\bin\net.dll
0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\WS2_32.dll
0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.dll
0x6d550000 - 0x6d559000 C:\Program Files\Java\jdk1.5.0_07\jre\bin\nio.dll
0x6d230000 - 0x6d253000 C:\Program Files\Java\jdk1.5.0_07\jre\bin\dcpr.dll
VM Arguments:
java_command: writingplatform.Main
Launcher Type: SUN_STANDARD
Environment Variables:
CLASSPATH=C:\Program Files\Java\jre1.5.0_05\lib\ext\QTJava.zip
PATH=C:\Program Files\Microsoft DirectX 9.0 SDK (August 2005)\Utilities\Bin\x86;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\SSH Communications Security\SSH Secure Shell
USERNAME=Wanderer
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 9, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows XP Build 2600 Service Pack 2
CPU:total 2 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht
Memory: 4k page, physical 1047764k(366012k free), swap 2518724k(2059484k free)
vm_info: Java HotSpot(TM) Client VM (1.5.0_07-b03) for windows-x86, built on May 3 2006 01:04:38 by "java_re" with MS VC++ 6.0This is not your bug, it's Sun's. All you can do is to:
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
On the other hand, if you cannot afford to wait and just
want to find a quick workaround, you will at least need
to find a way to reproduce the bug with a reasonable
frequency. If you are absolutely unable to reproduce it,
just forget it, but still report it to Sun. -
How to debug zrffous_c payment advice script program?
Hi experts,
Payment advice is printing through (ZRFFOUS_C) this program. I want to debug this program .I tried in this way.
Put the break-point in the program and execute then enter the input data and execute then the following message is displayed.
"A:FO:098 29.01.2009 PNB" after this stopped the program .How to debug this program? I want to find these values (REGUP-BELNR, REGUP-XBLNR) in the program .The location where these values selecting in the program?I tried but i didn't get.
please give me the details or give me form name?
please help me in this?Hi,
Your procedure of debugging is correct.
when you getting the error message , double click on the message on status bar and see wheather it is standard message or
custome message.
you are getting that error because of invalid data so get the valid data from respective Functional consultant
and try to debug again.
You ll not get that error after giving valid data.
Regards,
Pravin -
How to debug a run time error encountered while executing ZFunction Module
Hi all,
My requirement is to create a ZFunction Module that Generated a sales order
for multiple line items and works for both Variant Configurable material and a Normal Material.
I am using BAPI_SLSTRANSACT_CREATEMULTI in my Zfunction Module to create a
Sales order
My ZFunction Module works well if I give normal material as input.
It also works well and generates a sales order if I give all Variant Configurable materials as input.
But if I give both Variant Configurable material and a normal material it throws a run time error.
Can some one tell me what is wrong? can some one suggest me how to debug this run time error
Termination occurred in the ABAP program "SAPLCRM_CONFIG_OW" - in
"CONFIG_TO_CBASE".
The main program was "RS_TESTFRAME_CALL ".
In the source code you have the termination point in line 63
of the (Include) program "LCRM_CONFIG_OWF02".
Source Code Extract
Line SourceCde
| 33| LT_CUXI_CUPRT
| 34| LT_CUXI_CUVAL
| 35| LT_CUXI_CUVK
| 36| LS_CUXI_CUCFG.
37
| 38| PERFORM CREATE_PRICING_CSTIC USING IS_CONFIG-CUCFG-CFGINFO.
39
| 40|* set config to cbase
| 41| CALL FUNCTION 'COM_CUXI_SET_SINGLE_CFG'
| 42| EXPORTING
| 43| I_CFG_HEADER = LS_CUXI_CUCFG
| 44| I_ROOT_INSTANCE = CV_INT_OBJ_NO
| 45| I_LOGSYS = LV_LOGSYS
| 46| IMPORTING
| 47| E_ROOT_INSTANCE = CV_INT_OBJ_NO
| 48| TABLES
| 49| I_TAB_INSTANCES = LT_CUXI_CUINS
| 50| I_TAB_PART_OF = LT_CUXI_CUPRT
| 51| I_TAB_VALUES = LT_CUXI_CUVAL
| 52| I_TAB_VAR_KEYS = LT_CUXI_CUVK
| 53| I_TAB_RESTRICTIONS = LT_CUXI_CURES
| 54| EXCEPTIONS
| 55| INVALID_INSTANCE = 1
| 56| INTERNAL_ERROR = 2
57
OTHERS = 3. 58
| 59| IF SY-SUBRC <> 0.
| 60| if sy-msgno is initial.
| 61| MESSAGE X010 WITH 'COM_CUXI_SET_SINGLE_CFG'.
| 62| else.
|>>>>>| MESSAGE ID SY-MSGID TYPE 'X' NUMBER SY-MSGNO
| 64| WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
| 65| endif.
| 66| ENDIF.
67
| 68|ENDFORM. " CONFIG_TO_CBASEHey Amit...
Can I Create a Sales order for VC and Non VC items using BAPI_SLSTRANSACT_CREATEMULTI
Is it a limitation for BAPI_SLSTRANSACT_CREATEMULTI
I am trying to create a Sales Order using a Zprogram. I have used BAPI_SLSTRANSACT_CREATEMULTI. If I give the input as Normal material I am able to generate a sale order. If I give the input as VC material I am able to generate a sales order. But if I give both VC and Normal material as input, I get a run time error as follows.
Is it a limitation for BAPI_SLSTRANSACT_CREATEMULTI that we cannot create a sales order with both VC and Non-VC items or am I missing some data which I need to pass when I give both VC and Non VC items? I get this error only for my Zprogram. But if I try to create an order on screen manually I donu2019t get any error. This happens only if I create an order with my Zprogram.
Some one please help me u2026I am just stuggling to get this doneu2026
I dint find any posts that gives me information about this error.
CUX1 034 u201CNo root instance found in header datau201D
In the source code you have the termination point in line 63 of the (Include) program "LCRM_CONFIG_OWF02". -
How to debug payment advice program
Hi experts,
iI copied program from RFFOUS_C and named as ZRFFOUS_C.
payment advice is printing through ( ZRFFOUS_C) this program?
If yes how to debug this program ?.I want to konw the values printing in payment advice sheet came from which subroutine.?
I tried but i didn't get.I tried in this way, put the break point in the program and execute then fill the values and execute
then the following message is displayed "A:FO:098 29.01.2009 PNB".
I want to konw document (REGUP-BELNR) YOUR DOCYUMENT (REGUP-XBELNR) about this values came from which sub routine.
If u know anybody pls gime the answer.pls help me in this .well at first you need to set a breakpoint somewhere in your program.
Then you need to check if your program is customized for payment slips, otherwise standard program will get triggered but not yours.
And finally you probably need to switch on "update task debugging" since output types are quite often processed in update task. -
How to debug routine in process type "Deletion of overlapping requests"
Hi all,
I created a process chain including a process of the type "Deletion of overlaopping requests from InfoCube".
In this process I created a routine to decide which requests to delete. Now I would like to debug this routine, but do not know how.
Merely setting a breakpoint does not seem to help.
Does anyone have a hint how to debug this routine?
Many thanks,
StefanHi,
put a "BREAK-POINT." statement into your code (don't forget to remove it afterwards). Then you activate your process chain and go the menu Execution at the top of RSPC. There you choose "Execute synchronous to Debugging". The process chain should then kick off and stop at the point where you put the break point.
Hope it helps.
Stefan
Maybe you are looking for
-
Hi, I'm a real newbie in XML and Java. But I must use Java for this. But all I want to do is the following: I generate a XML file like this: <day atday=12><hour athour=10><minute atminute=10> <second atsecond=20>value1</second> <second atsecond=21>va
-
InvalidRecordException: Input record does not have a valid Id.
I am trying to export data from hybris to endeca. I have set up the index schema, index element, cas config, added properties. I have added queries the index elements but somehow the recordstore are not exporting the data to endeca. When, I checked t
-
My beloved MacBook is getting on in age. I'm finding that my screen blacks out unexpectedly. Moving the screen around restores the image, but it's happening more and more frequently, and getting a little harder to get my screen back. I'm thinking
-
Solaris/JVM/JNI crashes
Hello, I am experiencing periodic crashes in an application while using Solaris 2.8 and JVM 1.3.0. The application is invoking multi-threaded java code from C++ and the conflict causing the crashes seems to be in how the threads are being handled. Is
-
Latest Arch Linux & Huawei E398 GSM Modem
Hello, I have a Huawei E398 GSM Modem running on the latest Arch linux. Kernel 3.8.10, modemmanager 0.7.990-4, usb_modeswitch 1.2.5-1, usbutils 006-1. The device was working properly until couple of days ago when I last used it. Now it doesn't show