Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

java exception when opening top level QSYS design

I am seeing this Java exception when I open my top level QSYS design.

Any suggestions for workarounds are appreciated because now I have

lost access to my design.

Error: An unexpected error occurred during Open System: java.lang.NullPointerException

Debug: java.lang.NullPointerException

at com.altera.sopcmodel.avalon.AvalonValidator.validateTightlyCoupledPoints(AvalonValidator.java:422)

at com.altera.sopcmodel.avalon.AvalonValidator.validate(AvalonValidator.java:62)

at com.altera.sopcmodel.ensemble.EnsembleAddressValidation.connectionClassValidations(EnsembleAddressValidation.java:216)

at com.altera.sopcmodel.ensemble.Ensemble.validateSelf(Ensemble.java:1272)

at com.altera.sopcmodel.beanelement.BeanElement.validateSelf(BeanElement.java:391)

at com.altera.sopcmodel.beanelement.BeanElement.validate(BeanElement.java:362)

at com.altera.sopcdocument.ReadDocument.read(ReadDocument.java:234)

at com.altera.sopcfactories.QsysFactory$1.getObject(QsysFactory.java:119)

at com.altera.sopcmodel.util.CatalogCard.getObject(CatalogCard.java:483)

at com.altera.sopcmodel.util.CatalogCard$1.getObject(CatalogCard.java:132)

at com.altera.sopcmodel.util.CatalogCard.getObject(CatalogCard.java:483)

at com.altera.sopcmodel.util.CatalogCard$1.getObject(CatalogCard.java:132)

at com.altera.sopcmodel.util.CatalogCard.getObject(CatalogCard.java:483)

at com.altera.sopcplatform.librarian.LibrarianUtils.readEnsemble(LibrarianUtils.java:449)

at com.altera.sopceditor.util.EnsembleIO.loadEnsemble(EnsembleIO.java:163)

at com.altera.sopceditor.tools.saveandload.LoadEnsembleTask.run(LoadEnsembleTask.java:199)

at com.altera.ui.app.base.EditorTaskRunner$12.run(EditorTaskRunner.java:461)

at com.altera.ui.app.base.ThreadRunner$1.run(ThreadRunner.java:65)

at java.lang.Thread.run(Unknown Source)

6 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Same issue in Qsys 12.0 Build 178

    Info: Reading index /home/hill/altera/12.0/quartus/sopc_builder/bin/root_components.ipx

    Info: /home/hill/altera/12.0/quartus/sopc_builder/bin/root_components.ipx: Loading now from components.ipx

    Info: Reading index /home/hill/altera/12.0/quartus/sopc_builder/bin/ip_component_categories.ipx

    Info: /home/hill/altera/12.0/quartus/sopc_builder/bin/ip_component_categories.ipx described 0 plugins, 0 paths, in 0.03 seconds

    Info: /home/hill/altera/12.0/quartus/sopc_builder/bin/ip_component_categories.ipx matched 1 files in 0.03 seconds

    Info: Reading index /home/hill/altera/12.0/ip/altera/altera_components.ipx

    Info: /home/hill/altera/12.0/ip/altera/altera_components.ipx described 585 plugins, 0 paths, in 0.36 seconds

    Info: no _hw.tcl package requested, assuming package require -exact sopc 9.0

    Info: no _hw.tcl package requested, assuming package require -exact sopc 9.0

    Info: no _hw.tcl package requested, assuming package require -exact sopc 9.0

    Info: no _hw.tcl package requested, assuming package require -exact sopc 9.0

    Info: no _hw.tcl package requested, assuming package require -exact sopc 9.0

    Info: no _hw.tcl package requested, assuming package require -exact sopc 9.0

    Info: /home/hill/altera/12.0/ip/**/* matched 1201 files in 0.60 seconds

    Info: /home/hill/.altera.quartus/ip/12.0/**/* matched 0 files in 0.00 seconds

    Info: /home/hill/nios2-rtems/hdwDesign/timedDataSys/ip/**/* matched 0 files in 0.00 seconds

    Info: /home/hill/nios2-rtems/hdwDesign/timedDataSys/* matched 57 files in 0.03 seconds

    Info: /home/hill/nios2-rtems/hdwDesign/timedDataSys/*/* matched 1364 files in 0.21 seconds

    Info: Reading index /home/hill/altera/12.0/quartus/sopc_builder/builtin.ipx

    Info: /home/hill/altera/12.0/quartus/sopc_builder/builtin.ipx described 95 plugins, 0 paths, in 0.07 seconds

    Info: /home/hill/altera/12.0/quartus/sopc_builder/**/* matched 10 files in 0.07 seconds

    Info: Reading index /home/hill/altera/12.0/quartus/common/librarian/factories/index.ipx

    Info: /home/hill/altera/12.0/quartus/common/librarian/factories/index.ipx described 150 plugins, 0 paths, in 0.10 seconds

    Info: /home/hill/altera/12.0/quartus/common/librarian/factories/**/* matched 4 files in 0.10 seconds

    Info: /home/hill/altera/12.0/quartus/sopc_builder/bin/$IP_IPX_PATH matched 1 files in 0.00 seconds

    Info: /home/hill/altera/12.0/quartus/sopc_builder/bin/root_components.ipx described 0 plugins, 9 paths, in 1.05 seconds

    Info: /home/hill/altera/12.0/quartus/sopc_builder/bin/root_components.ipx matched 1 files in 1.05 seconds

    Info: Loading presets

    Warning: ddr_sdram: Used altmemddr 12.0 (instead of 11.1)

    Warning: tse_mac: Used triple_speed_ethernet 12.0 (instead of 11.1)

    Warning: sgdma_tx: Used altera_avalon_sgdma 12.0 (instead of 11.1)

    Warning: clk: Used clock_source 12.0 (instead of 11.1)

    Warning: dma_csr_bridge: Used altera_avalon_mm_bridge 12.0 (instead of 11.1)

    Warning: sys_clk_timer: Used altera_avalon_timer 12.0 (instead of 11.1)

    Warning: periph_clk: Used clock_source 12.0 (instead of 11.1)

    Warning: mm_bridge: Used altera_avalon_mm_bridge 12.0 (instead of 11.1)

    Warning: sysid: Used altera_avalon_sysid_qsys 12.0 (instead of 11.1)

    Warning: jtag_uart_console: Used altera_avalon_jtag_uart 12.0 (instead of 11.1)

    Warning: periph_clk: Used clock_source 12.0 (instead of 11.1)

    Warning: pipeline_bridge: Used altera_avalon_mm_bridge 12.0 (instead of 11.1)

    Warning: tight_coupled_code_ram: Used altera_avalon_onchip_memory2 12.0 (instead of 11.1)

    Info: no _hw.tcl package requested, assuming package require -exact sopc 9.0

    Warning: nios2: Used altera_nios2_qsys 12.0 (instead of 11.1)

    Warning: tsc_flash: Used altera_generic_tristate_controller 12.0 (instead of 11.1)

    Warning: tristate_pin_sharer: Used altera_tristate_conduit_pin_sharer 12.0 (instead of 11.1)

    Warning: tristate_bridge: Used altera_tristate_conduit_bridge 12.0 (instead of 11.1)

    Warning: altpll: Used altpll 12.0 (instead of 11.1)

    Warning: periph_bridge: Used altera_avalon_mm_clock_crossing_bridge 12.0 (instead of 11.1)

    Warning: cpu_bridge: Used altera_avalon_mm_bridge 12.0 (instead of 11.1)

    Warning: ddr_ref_clk: Used clock_source 12.0 (instead of 11.1)

    Error: An unexpected error occurred during Open System: java.lang.NullPointerException

    Debug: java.lang.NullPointerException

    at com.altera.sopcmodel.avalon.AvalonValidator.validateTightlyCoupledPoints(AvalonValidator.java:422)

    at com.altera.sopcmodel.avalon.AvalonValidator.validate(AvalonValidator.java:62)

    at com.altera.sopcmodel.ensemble.EnsembleValidator.connectionClassValidations(EnsembleValidator.java:893)

    at com.altera.sopcmodel.ensemble.EnsembleValidator.validate(EnsembleValidator.java:120)

    at com.altera.sopcmodel.ensemble.Ensemble.validateSelf(Ensemble.java:1284)

    at com.altera.sopcmodel.beanelement.BeanElement.validateSelf(BeanElement.java:392)

    at com.altera.sopcmodel.beanelement.BeanElement.validate(BeanElement.java:363)

    at com.altera.sopcdocument.ReadDocument.read(ReadDocument.java:235)

    at com.altera.sopcfactories.QsysFactory$1.getObject(QsysFactory.java:119)

    at com.altera.sopcmodel.util.CatalogCard.getObject(CatalogCard.java:481)

    at com.altera.sopcmodel.util.CatalogCard$1.getObject(CatalogCard.java:131)

    at com.altera.sopcmodel.util.CatalogCard.getObject(CatalogCard.java:481)

    at com.altera.sopcmodel.util.CatalogCard$1.getObject(CatalogCard.java:131)

    at com.altera.sopcmodel.util.CatalogCard.getObject(CatalogCard.java:481)

    at com.altera.sopcplatform.librarian.LibrarianUtils.readEnsemble(LibrarianUtils.java:449)

    at com.altera.sopceditor.util.EnsembleIO.loadEnsemble(EnsembleIO.java:163)

    at com.altera.sopceditor.tools.saveandload.LoadEnsembleTask.run(LoadEnsembleTask.java:198)

    at com.altera.ui.app.base.EditorTaskRunner$12.run(EditorTaskRunner.java:461)

    at com.altera.ui.app.base.ThreadRunner$1.run(ThreadRunner.java:65)

    at java.lang.Thread.run(Unknown Source)
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    FWIW, I was able to recover my top level QSYS design today. I noticed that the Java crash had something to do with validation of nios2 tightly coupled data and instruction masters when QSYS loads a design file into memory, and I also recalled that the last change I made in QSYS was related to moving the SGDMA descriptor ram between the top level system and the network subsystem (because I was unhappy with how the base address was being maintained in two places - both at the top level and at the subsystem level). I decided to try adding the on-chip SGDMA descriptor RAM back into the network subsystem to work around the QSYS crash but I couldn't remember any-longer the name of the on-chip ram master that was used in the export. Finally, after looking in the ginormous raw .qsys file I determined that the exact name of the export of the ram master, specified in the link in the top level subsystem, was "descr_ram_slave". After properly amending the export name in the network subsytem (using QSYS - I did not modifiy any QSYS files outside of QSYS) then I could open my top level design again in QSYS.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thank you for the update! It's good to know.

    You should submit this bug report to Altera so that they can fix it in a later release.
  • hking4's avatar
    hking4
    Icon for New Contributor rankNew Contributor

    If a Program or code contains several errors or exception in this program that should be removed by the developers. To overcome these issues can get solution from Dart vs Javascript which will help them to sort out these issues easily.