Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at com.mathworks.toolbox.nnet.v6.diagram.nnTransfer.paint(nnTransfer.java:35) at com.mathworks.toolbox.nnet.v6.image.nnOffsetImage.paint(nnOffsetImage.java:49) at com.mathworks.toolbox.nnet.v6.image.nnLayerImage.paint(nnLayerImage.java:50) at com.mathworks.toolbox.nnet.v6.image.nnOffsetImage.paint(nnOffsetImage.java:49) at com.mathworks.toolbox.nnet.v6.image.nnLayerImage.paint(nnLayerImage.java:50) at com.mathworks.toolbox.nnet.v6.image.nnLayerImage.paint(nnLayerImage.java:50) at com.mathworks.toolbox.nnet.v6.image.nnBorderImage.paint(nnBorderImage.java:43) at com.mathworks.toolbox.nnet.v6.image.nnAlignImage.paint(nnAlignImage.java:43) at com.mathworks.toolbox.nnet.v6.image.nnFitImage.paint(nnFitImage.java:49) at com.mathworks.toolbox.nnet.v6.image.nnExpandImage.paint(nnExpandImage.java:55) at com.mathworks.toolbox.nnet.v6.gui.nnImage2JComponent.paint(nnImage2JComponent.java:47) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at javax.swing.JLayeredPane.paint(Unknown Source) at javax.swing.JComponent.paintChildren(Unknown Source) at javax.swing.JComponent.paintToOffscreen(Unknown Source) at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source) at javax.swing.RepaintManager$PaintManager.paint(Unknown Source) at javax.swing.RepaintManager.paint(Unknown Source) at javax.swing.JComponent.paint(Unknown Source) at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source) at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source) at sun.awt.SunGraphicsCallback.runComponents(Unknown Source) at java.awt.Container.paint(Unknown Source) at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source) at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source) at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source) at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source)
How can I use my own transfer function
1 次查看(过去 30 天)
显示 更早的评论
I'm using Matlab2008. There is file template_transfer.m and rename it : fungsiku.m. I write down my function in this file and put it in my working directory. But, I got the outputs and some messages like this
Exception in thread " AWT-EventQue...."
at javax. swing..
at java.awt
.. and the script didnt stop.
What should I do? Thank you.
3 个评论
采纳的回答
sri
2013-9-23
I had the same problem. It is because nntraintool. So I disappear nntraintool while training process using below code,
net.trainParam.showWindow=0;
It worked for me.
I think this will help u.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 File Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!