异常抛出(不含try...catch...)

package kkk;
class DivideException extends Exception{
	public DivideException(){
		super();
	}
	public DivideException(String message){
		super(message);
	}
}
public class Test {
	public static void main(String args[])throws DivideException{
			int result = divide(4,0);
			System.out.println(result);
			}
	public static int divide(int x, int y)throws DivideException{
		int result = x/y;
		return result;
	}
}

Weblogic的抛出NoSuchBeanDefinitionException异常

08-17

我在用Weblogic时,把一个基于ssh架构的项目在MyEclipse下打成war包,拷贝到Weblogic 10.2中,在启动的时候没有问题,但用IE访问的时候,就会抛出异常。(在Tomcat下是能够正常运行的),异常信息如下:rn<2009-8-17 上午10时46分30秒 GMT+08:00> <[weblogic.sernrvlet.internal.WebAppServletContext@3c58a9 - appName: '_appsdir_oa_war', name: 'rnoa.war', context-path: '/oa', spec-version: '2.5'] Servlet failed with Exceptionrnorg.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'rnsessionFactory' is definedrn at org.springframework.beans.factory.support.DefaultListableBeanFactory.rngetBeanDefinition(DefaultListableBeanFactory.java:355)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getMergrnedBeanDefinition(AbstractBeanFactory.java:800)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBeanrn(AbstractBeanFactory.java:237)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBeanrn(AbstractBeanFactory.java:160)rn at org.springframework.context.support.AbstractApplicationContext.getBearnn(AbstractApplicationContext.java:646)rn Truncated. see log file for complete stacktracern>rn是不是因为hibernate.cfg.xml没加载成功。还是哪儿写错了,能不能帮我分析一下,先谢了!rnapplication-context.xml:rnrn rn classpath:hibernate.cfg.xmlrn rn rnweb.xlm:rnrn contextConfigLocationrn classpath*:applicationContext-*.xmlrn rn

ECLIPSE抛出内存溢出异常

05-19

!ENTRY org.eclipse.ui 4 0 2009-05-19 21:50:32.062rn!MESSAGE java.lang.OutOfMemoryError: Java heap spacern!STACK 0rnjava.lang.RuntimeException: java.lang.OutOfMemoryError: Java heap spacern at org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocument.stopRewriteSession(JobSafeStructuredDocument.java:275)rn at org.eclipse.wst.sse.core.internal.undo.StructuredTextUndoManager.undo(StructuredTextUndoManager.java:646)rn at org.eclipse.wst.sse.ui.StructuredTextViewerUndoManager.undo(StructuredTextViewerUndoManager.java:183)rn at org.eclipse.jface.text.TextViewer.doOperation(TextViewer.java:3718)rn at org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:891)rn at org.eclipse.jface.text.source.projection.ProjectionViewer.doOperation(ProjectionViewer.java:1423)rn at org.eclipse.wst.sse.ui.internal.StructuredTextViewer.doOperation(StructuredTextViewer.java:595)rn at org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOperationAction.java:131)rn at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)rn at org.eclipse.ui.texteditor.TextOperationAction.run(TextOperationAction.java:129)rn at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)rn at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:185)rn at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:109)rn at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)rn at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)rn at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)rn at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:471)rn at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:822)rn at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:880)rn at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:569)rn at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:511)rn at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:126)rn at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)rn at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1184)rn at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1002)rn at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)rn at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)rn at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1040)rn at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1036)rn at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1352)rn at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3894)rn at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:341)rn at org.eclipse.swt.widgets.Control.windowProc(Control.java:3787)rn at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:337)rn at org.eclipse.swt.widgets.Display.windowProc(Display.java:4528)rn at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)rn at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2370)rn at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3420)rn at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)rn at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)rn at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)rn at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)rn at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)rn at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)rn at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)rn at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)rn at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)rn at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)rn at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)rn at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)rn at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)rn at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)rn at org.eclipse.equinox.launcher.Main.run(Main.java:1236)rn上面是LOG所报出的信息,请各位帮忙找下问题出在哪里

没有更多推荐了,返回首页

私密
私密原因:
请选择设置私密原因
  • 广告
  • 抄袭
  • 版权
  • 政治
  • 色情
  • 无意义
  • 其他
其他原因:
120
出错啦
系统繁忙,请稍后再试