Weird runtime error

Hi. I'm currently taking a beginners java-programming class at the University in Bergen, Norway. This week we got an assignment that we have to do before friday. If I don't pass, they won't let me take the final exam... :(
So we're making a sudoku game, and the teacher gave us a bunch of classes. We're supposed to "fill in the blanks". It all went reasonably well, until I tried to print out the sudoku table, and i got this really weird output. Instead of numbers, I got this: Region@112f614 (Region is the class of which the cells in the table are objects - I think...) Does anyone know what causes this? If needed, I could post the code, but it is a lot of code, and all the comments and the names are all in norwegian. But if you need to see the code in order to help me, please just ask.

Thanks alot for the fast replies! :) I guess that would work, however, for some reason, I'm not allowed to make any changes to the classes I got from my teacher, except the one that contains the main method. But is it possible to do the same thing in the class containing the main method? In that case, how would I do that? I'm not very good yet... :p

Similar Messages

  • Weird Runtime error, please help.

    I recently started teaching myself java from a book, I liked it so I continued reading the book etc. I got to the chapter where it starts to talk about swing classes. The examples previous to this chapter compiled and worked great. Althoug in the swing class chapter none of the examples compile, well I shouldn't say that. They do "compile" but when I try to run them I get this error....
    Here it is in full:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D00FA9B
    Function=[Unknown.]
    Library=(N/A)
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.
    Current Java thread:
         at sun.java2d.loops.Blit.Blit(Native Method)
         at sun.java2d.pipe.DrawImage.blitSurfaceData(DrawImage.java:627)
         at sun.java2d.pipe.DrawImage.renderSurfaceData(DrawImage.java:355)
         at sun.java2d.pipe.DrawImage.clipAndRenderSurfaceData(DrawImage.java:333)
         at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:64)
         at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:48)
         at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:715)
         at sun.java2d.pipe.ValidatePipe.copyImage(ValidatePipe.java:147)
         at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2782)
         at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:2772)
         at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4745)
         at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4688)
         at javax.swing.JComponent._paintImmediately(JComponent.java:4632)
         at javax.swing.JComponent.paintImmediately(JComponent.java:4464)
         at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:404)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:443)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:190)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
    Dynamic libraries:
    0x7D750000 - 0x7D76D000      C:\WINDOWS\SYSTEM\IMAGEHLP.DLL
    Local Time = Thu Mar 21 20:50:59 2002
    Elapsed Time = 7
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed mode)
    If anyone knows how to fix this I would really appreciate the help.
    Thanks in advance,
    Tuskony

    Your right, I am using JDK 1.4.0, on Windows 98.
    Here is a shortened down version of the code:
    import javax.swing.*;
    import javax.swing.text.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.Toolkit;
    import java.awt.event.*;
    public class JTextFieldExample extends JPanel
    JLabel lblName = new JLabel( "Name:", JLabel.RIGHT );
    JTextArea txtName = new JTextArea( 40, 40 );
    public JTextFieldExample()
    setLayout( new GridLayout( 2, 2 ) );
    add( txtName );
    public static void main( String[] args )
    JFrame frame = new JFrame();
    JTextField example = new JTextField();
    frame.getContentPane().add( example, BorderLayout.CENTER );
    frame.setSize( 200, 200 );
    frame.setVisible( true );
    frame.addWindowListener
    new WindowAdapter()
    public void WindowClosing( WindowEvent e )
    System.exit( 0 );

  • Weird JNI runtime error

    With thread a I want to register a java object in C. Sometime later with thread b I go native and want to call a method of the object I registered some time ago with thread a. I get a runtime error which I can not explain. This is how my code looks like:
    thread a
    JNIEXPORT void JNICALL Java_nativeMethodA( JNIEnv *env, jobject obj, jobject rememberObject ) {
    jclass localClass = (*env)->GetObjectClass( env, rememberObject );
    globalClass = (*env)->NewGlobalRef( env, localClass );
    some time later, thread b
    JNIEXPORT jstring JNICALL Java_nativeMethodB( JNIEnv *env, jobject obj ) {
    jstring jVariable;
    jmethodID = (*env)->GetMethodID( env, globalClass, "MyJavaMethod", "()Ljava/lang/String;" );
    jVariable = (jstring) (*env)->CallObjectMethod( env,globalClass , jmethodID );
    I check every step, everything goes ok until the CallObjectMethod. This gives the error:
    "JNI panic: native code used a wrong method ID to invoke a Java method"
    Which I do not understand because in the line before I got the methodID (not zero). Both threads use their own JNIEnv variable, but the same object by global reference (if I do it right).

    The second argument to CallObjectMethod should be an instance of globalClass. You are passing the globalClass itself. Unless "MyJavaMethod" is the name of a method in java.lang.Class (which it is not) your code will fail.
    You probably meant to pass "obj" instead of "globalClass".

  • Runtime Error message when trying to download 7.2

    Can somebody please help me?
    Whenever I go into iTunes now, it asks me if I would like to download iTunes 7.2. I say yes and this message pops up:
    Microsoft Visual C++ Runtime Library
    Runtime Error!
    Program: iTunes
    This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.
    Then I hit OK and iTunes closes. This happened also when I tried to download 7.1, and I ended up downloading it from the site myself. I just really want to know what to do, because it has been doing weird things with my library and maybe that has something to do with it.

    Hello debyani,
    I think some error occurred with the downloaded files. You should try to download it again and then try to Install it and before that please go through the link below it may help you.
    http://community.norton.com/t5/Norton-Internet-Security-Norton/Error-message-when-trying-to-install-Norton-Internet-Security/td-p/876274.

  • Runtime errors are not showing in debugger!

    Hi,
    I have recently faced a very strange problem. at first I thought maybe it's because of the new Air SDK 15 build 302 but after switching back to older SDK the problem is still there! any idea or hint about this would be great. just tell me the first thing that comes to your mind and I will search about it more...
    the problem is that when I was testing my apps in debug mode (on Android or iOS) if there were a runtime error, the app used to stop and my IDE (I use FlashDevelop) could take me to the exact line were the error had occurred... and I could fix the bug. I've been doing this for many years of course! (I'm NOT a newbie)
    but in the past week, the debugger is not throwing errors any more! in some cases it does but on other runtime errors, it does not!
    this is not happening on my computer only, it is happening on another computer we have here too! that is so weird and annoying! not being able to see error messages is silly.
    My guess:
    I don't know if this can be related or not, but the project we're working on is huge and there are a lot of .as classes to be compiled, maybe the debugger is giving up on this project because of it's size? maybe I should switch some of the classes into swc?

    Sounds like the project somehow does not use the flash debug player but the standard flash player; I'm not familar with FlashDevelop but you should check if you are really using a debug player. You can do this programatically, too: flash.system.Capabilities.isDebugger

  • SharePoint ULS Diagnostic Logging for Runtime Error not captured

    Hi Guys,
    I have this weird issue whereby my development SharePoint server 2013 (one single box with DC, SQL, CA, Distributed Cache, Search, User Profile and also Visual Studio installed in it) does not log SharePoint Foundation - Runtime errorf for my web part or
    appliaction pages
    This development server is scheduled to shutdown after 8PM and will only be turn on in the 8AM next day.
    Whenever i hit runtime error (such as my custom web part error), it generate a Correlation ID but when i go into the ULS (LOGS folder) to locate them, it is not being captured at all. 
    There is no additional configuration in the Diagnostic Logging  in the Central Admin. Everything was left default.
    Does anyone face this issue before?
    Cheng

    Hello Cheng,
    there few things you can do, 
    1. first of all confirm that logging is working, log files are getting generated, and sharepoint tracing service is running.
    2. as you have a correlation ID, use
    Merge-SPLog with correlation parameter. 
    3. if step 2 does not give you anything, try enabling logging in verbose mode, go to CA -> monitoring -> configure diagnostic logging -> select all categories and select verbose in both the drop downs.
    4. alternatively, you can try to enabled "callstack" and trun OFF "customerrors", it will display the same error as ULS log.
    happy Troubleshooting :)
    Thanks, Noddy

  • BI Portal iView Runtime Error

    reposted to I believe a more appropriate thread.
    Hello,
    After a successful integration using SupportDesk tool on our BI Portal (SP14), we were able to successfully test reports but once after publishing it on the PCD - and previewing it gives me an error:
    *Portal Runtime Error
    An exception occurred while processing your request
    Exception id: 11:20_13/10/08_0008_3165050
    See the details for the exception ID in the log file.*
    How do we resolve this? It says
    the log from the defaultTrace is as follows:
    [EXCEPTION]
    {0}#1#com.sapportals.portal.prt.runtime.PortalRuntimeException: Exception in SAP Application Integrator occured: Unable to parse template
    the problem occured at position 138. Cannot process expression <FPN.PCDHomeLocation>
    This one's weird since I believe we did not alter any FPN settings as we have no plans to implement FPN yet
    Thank you all.
    Edited by: Jan Michael Jaudian on Oct 13, 2008 9:31 AM

    Hi ,
    The problem might be due to system alias settings,  these links might help.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/ep/connectivity
    BI Workbooks and the Application Integrator
    regards
    Naresh Garg

  • RunTime Error and Xml Source

    Hi,
    When I try to view the xml source of my form, I have a runtime error c++ and Designer crashes. It doesn't happen on all my forms. Has my form to many scripts or objects ? Or Is my development environment not appropriate to work correctly ?
    I develop with Windows XP 2GO ram, Livecycle ES JBOSS Turnkey installation.
    Thanks for any advice.

    Hello Paul,
    Thank you for your help, but the project that I'm working on I'm unable to send to you the PDF file, for security policies reason.
    The form has 11 pages and trying to solve the problem I deleted 10 pages. So now I can see the XML Source but I found a weird thing:
    in a Decimal Field, I found up to 65.000 occurrences of
    instead of just one. What is it mean?
    Is there another way to see the XML source?
    Diego

  • Runtime Error C++ etc..

    Hi. Frustrated.
    Ive been using Premier Elements 11 for sometime now. Maybe 6 months. All has been good. Loaded the program onto my new computer, all has been better. http://www.toshiba.com/us/computers/laptops/qosmio/X70/X75-A7298?src=ANEM&cm_mmc=SF_Google PLS&CAWELAID=400007100000000331&catargetid=400007100000000853&cadevice=c&cagpspn=pla
    Its a very good machine so things have been really slick.
    until this morning. Dreaded runtime error. Seems only to be when I click on the effects link at the bottom. Ive tried all i can think of. Everything is updated. Graphics card. Flash. every other program that might have an input.
    I went through a bunch of toshiba updates.
    The program wa working fine on this pc for about 6 weeks. One thing i thought it might be is i have just installed a wireless mouse, but even with this disabled the problem persists. And the program has worked with this mouse in the past.
    Not sure where to look.
    i know the issue is probably windows based, but hoped someone here might have a clue of what to try next.
    Many thanks, in advance.
    Looking forward to any replies.

    cappedup
    1. I tried to rename the preferences file, but, and this is weird, i couldnt find a folder named 'application data'. Searched my whole PC, a few times. Not really sure what thats about, but it was a dead end, nonetheless.
    Go the path in Windows 7, 8, or 8.1 64 bit
    Local Disc C
    Users
    Owner
    AppData
    Roaming
    Adobe
    Premiere Elements Folder
    11.0 Folder
    and in the 11.0 Folder is the Adobe Premiere Elements Prefs file that you delete. The key is to be working with Folder Option Show Hidden Files, Folders, and Drive active so that you can see the complete path.
    If the above does not help, then delete the whole 11.0 Folder in which the Adobe Premiere Elements Prefs file exists.
    Another important aspect of your presenation is "Is this problem with just this one project or does it apply to new projects as well?"
    If it applies to just this one project, then we need to dig deeper into this project.
    Please review and then we can decide what next.
    Thank you.
    ATR

  • Spry data not displaying properly (IE Runtime Error)

    Built a few pages for a site using Spry to pull in some XML
    pages.
    They are supposed to update when a certain selection is
    chosen and it works flawlessly in Firefox, Opera and Safari but not
    in IE.
    IE just shows the SPRY placeholders and doesn't push any XML
    data into the fields.
    I tried to run the browser compatibility and cleaned up
    anything that may be affecting it but nothing is showing an error.
    The weird thing is, the page has a total of 585 lines but IE
    is saying there is an 'Unknown Runtime Error' on the page at Line:
    1163 Char: 4.
    does the browser continue to count lines as it pulls in
    additional information from attached files (like external css,
    javascripts, xml, etc.)?
    If so, how do I find out where the error is?
    i'm pounding my head against the wall trying to solve this,
    but i'm not having much luck.
    basically, i'm looking for two things:
    How to find the error in the code.
    How to FIX the code to work in IE.
    any help would be greatly appreciated.
    I posted this over in the DW forums, but thought it might be
    beter solved over here in the SPRY forums.
    TIA!

    quote:
    Originally posted by:
    Donald Booth
    You can't have spry:regions on <tr> or <table>
    Make sure you have then in <div>s or other tags.
    You have lots of little regions. You can have a region and a
    repeat in the same tag.
    Fix that and then try it.
    How do I use both detail regions and master regions in a spry
    div then?
    my whole problem was, I couldn't get the menu items into the
    same table as the detail regions.
    If I put the whole table into a spry detail region it would
    just read the menu items as a detail region and give me static
    data. and if I did it as a standard region, the stuff I wanted to
    update wouldn't show as a detail region.
    I tried to keep them in <span> tags within the table
    but I guess IE doesn't like that.
    When I try to insert a detail region within an already
    existing DIV tagged spry region I get the DW error "
    Spry does not support nesting of spry:region blocks.
    Obviously, I must be missing something.
    it's been a long time since I built sites from scratch
    (99-00), but because my company asked, it is now my project.
    I have to relearn stuff and am not 100% familiar w/ building
    using DIV, SPAN and CSS. I have the basics; just enough to get me
    into trouble. maybe it's time to go back through the Spry
    Handbook?

  • Runtime error in starting Lightroom

    I receive the following message when I try to start Lightroom:
    Microsoft Visual C++ Runtime Library
    Runtime Error!
    Program:...Files\Adobe\Adobe Photoshop Lightroom 1.2\lightroom.exe
    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the application's support team for more information.
    Lightroom ran well for several days and then failed to open with the above message.
    I have tried everything I know to do (uninstalled and reinstalled the application, restored the computer to a restore point before Lightroom was originally installed, etc.) and do not know were to go from here. Suggestions would be appreciated.
    I am using Windows XP sp2 and have 4 GB of ram and 250 GB of hard disk space.
    Thanks,
    Cliff Culp

    Aha! A fix! Please look at this...
    http://www.adobeforums.com/cgi-bin
    bob frost, "Help! Runtime error after Lightroom 1.1 install!" #10, 27 Jun 2007 6:54 am

  • Runtime error while executing rule

    Hello All,
      While executing the DTP for a cube, im facing the error as Runtime error while executing rule -> see long text .
      For this source is another Cube, where im loading the data from Cube to Cube.
    Error Description are as follows:-
    Error Location: Object Type    TRFN
    Error Location: Object Name    0T9SCR6Q4VWS1SOPNRRBOY1YD51XJ7PX
    Error Location: Operation Type ROUTINE
    Error Location: Operation Name
    Error Location: Operation ID   00034 0000
    Error Severity                 100
    Original Record: Segment       0001
    Original Record: Number        557
    and Also descripton is :-
    Diagnosis
        An error occurred while executing a transformation rule:
        The exact error message is:
        Division by zero
        The error was triggered at the following point in the program
        GP4H0CW3MLPOTR3E8Y93QZT2YHA 4476
    System Response
        Processing the data record has been terminated.
    Procedure
    The following additional information is included in the higher-level
    node of the monitor:
       Transformation ID
       Data record number of the source record
       Number and name of the rule which produced the error
    Let me know ur valuable suggestions on these error...
    thanks.

    Hello,
    I have checked all the transformation and End Routines.All are working fine.Yesterday i have loaded some data into it, but today its gettting errored out.
    Checked completely in the forum for threads related to this, but couldnt find proper thread which had solutions....
    thanks,
    srinivas.

  • Could someone help me with a Runtime Error while saving a PDF file?

    While saving a 28 page PDF file in Illustrator today, I got a window saying, "This application has requested the "Runtime" to terminate it in a unusual way." It said to contact the applications support team for more information. I keep getting the same thing each time I try it. Does anyone know how to fix this issue or how I contact the applications support team ?
    Thank you for any insight.
    Pam

    It is a 13.5x11 inch calendar. There are 14 pages with images on them and
    some text. The other pages have text, a grid and a colored background with a
    gaussian blur. I saved each page as an "outline".
    The printer I am using requested I save all pages in a pdf file. I was
    successful in saving all but about six pages, now I can't even open the
    file.
    What happens is... I open Illustrator
                                   I open the pdf file
                                   A window appears that says... Runtime Error,
    This application has requested the Runtime to terminate it in an unusual
    way. Please contact the application's support team for more information.
                                   I select ok
                                   then a window appears that says... Adobe
    Illustrator CS5 has stopped working. A problem caused the program to stop
    working correctly. Windows will close the program and notify you if a
    solution is available.
                                   Then the program closes.
    So far I have not been notified of anything.
    Please let me know if you need more details.
    Thank you so much for helping me with this.
    Pam

  • RunTime Error while saving a Sales Order

    Hi All,
    When i am saving a Sales Order, the system is throwing a Runtime Error.
    The ABAP Code in the Runtime Error screen as follows.
              select * from (t681-kotab) appending table <cond_tab>
                     up to 1 rows
                     where kappl  = se_kappl
                     and   kschl  = se_kschl
                     and   datbi >= se_date
                     and   datab <= se_date
                     and   (coding_tab).
    Till these days, there was no such error while saving a Sales Order.
    How to resolve this issue?
    Regards
    Pavan

    Hi,
    The below piece of code is trying to get the contents of the table mentioned in T681-KOTAB.
    select * from (t681-kotab) appending table <cond_tab>
    up to 1 rows
    where kappl = se_kappl
    and kschl = se_kschl
    and datbi >= se_date
    and datab <= se_date
    and (coding_tab).
    The reason could be is someone has screwed up the entries in T681 table. Check that out.
    Try to put a break point on this SELECT query and see what the value of T681-KOTAB holds before the SELECT query. Check whether such a table entry exists in DB.
    Let me know if you are still stuck up.
    If you can send me the ST22 dump of the run time error, i might be able to help you more  on this.
    Hope this helps.
    Thanks,
    Balaji

  • WHILE DELETING A SALE ORDER GETTING A RUNTIME ERROR

    hi to all experts,
    whenever i try to delete a particular sale order im getting a runtime error
    stating that
    Short text
        Screen: Illegal message
    What happened?
        The current screen processing action was terminated since a situat
        occurred where the application could not continue.
        This is probably due to an error in the ABAP program or in the cur
        screen.
    Error analysis
        The program attempted to issue a " " message during "Exit Command" processing.
        This is an illegal operation.
        The program was terminated.
        Screen name.............. "SAPMV45A"
        Screen number............ 4001
    Trigger Location of Runtime Error
        Program                                 SAPMV45A
        Include                                 MV45AFZZ
        Row                                     370
        Module type                             (FORM)
        Module Name                             USEREXIT_SAVE_DOCUMENT
    SourceCde
                  message e001(zm) WITH text-335 ltab-kunnr text-334.
                else.
                  if ktab-jkunnr <> ltab-kunnr.
                    ktab-jkunnr = ltab-kunnr.
                    jobsitecode = ltab-kunnr.
                    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
                    EXPORTING
                      input  = jobsitecode
                      IMPORTING
                      output = jobsitecode.
                    SELECT SINGLE * FROM kna1 WHERE kunnr = jobsitecode.
                    IF sy-subrc = 0.
                      ktab-jname1 = kna1-name1.
                      ktab-jstras = kna1-stras.
                    ENDIF.
                    chg_flg = 'X'.
                  endif.
                endif.
              else.
                message e001(zm) WITH text-336.
    * Validation for relationship between Sold-to Party and Ship-to Party
    *          if ktab-ckunnr+0(4) NE ktab-jkunnr+0(4).
    *            message e001(zm) WITH text-335 ktab-jkunnr text-337 ktab-ckunnr.
    *          endif.
              custcode1 = ktab-ckunnr.
              CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
                EXPORTING
                  input  = custcode1
                IMPORTING
                  output = custcode1.
              jobsitecode1 = ktab-jkunnr.
              CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
                EXPORTING
                  input  = jobsitecode1
                IMPORTING
                  output = jobsitecode1.
              SELECT SINGLE * FROM knvp
              WHERE kunnr = custcode1
                AND vkorg = vbak-vkorg
                AND vtweg = vbak-vtweg
                AND spart = vbak-spart
                AND parvw = 'WE'
    Error analysis
        The program attempted to issue a " " message during "Exit Command"
        This is an illegal operation.
        The program was terminated.
        Screen name.............. "SAPMV45A"
        Screen number............ 4001
    Trigger Location of Runtime Error
        Program                                 SAPMV45A
        Include                                 MV45AFZZ
        Row                                     370
        Module type                             (FORM)
        Module Name                             USEREXIT_SAVE_DOCUMENT

    Hi,
    Seems there is some problem with the user exit USEREXIT_SAVE_DOCUMENT..
    Put a breakpoint and see.
    Regards,
    Nagaraj

Maybe you are looking for

  • Can't network Mac with W7 Ultimate 64 bit (but W7Pro32 and WXP work)

    Hi all, I posted a long (probably too long) issue recently but despite nearly 200 people viewing it, no-one offered a solution. So I am re-posting a shorter, clearer statement here but below I also enclose the long full diagnostic information (at the

  • Ipod touch trying to get wireless with dsl verizon

    does anyone know how to get password or what password i would use to input into my ipod touch to access my dsl wireless router from verizon

  • Premiere CS3 export fails

    Hello everyone, I've been trying to export the movie I've been working on for a couple of days now, however each time I attempt this it crashes. I'm trying to export to a single file I can distribute to other people, put on DVD and upload to Vimeo. A

  • Have upgraded to monthly subscription, but can't load Muse files to my own domain

    When I tried to load the Muse files for my website, developed during the trial period, to my own domain, I discovered that wasn't an option. I have upgraded from trial sub to month-to-month sub.  The "Trial period ends in (x) days" no longer appears

  • IPhone 4 mic problems, can anyone help?

    My iPhone 4 doesn't allow me to speak to people when they call, I'm guessing its a problem with my mic, however when i create a video it does record sound??? I'm confused as to what it could be... Anyone got any ideas?