Unreported error

plese tell this one,
Unreported exception java.lang.class not found exception must be caught or declared to be thrown
          Class.forName("org.postgresql.Driver");
Unreported exception java.sql.sqlexceptionexception must be caught or declared to be thrown
          con = DriverManager.getConnection("jdbc:postgresql://localhost/wsms","postgres","postgres");

Details here:
http://java.sun.com/docs/books/tutorial/essential/exceptions/
Overview:
The base class for all exceptions is Throwable. Java provides Exception and Error that extend Throwable. RuntimeException (and many others) extend Exception.
RuntimeException and its descendants, and Error and its descendants, are called unchecked exceptions. Everything else is a checked exception.
If your method, or any method it calls, can throw a checked exception, then your method must either catch that exception, or declare that your method throws that exception. This way, when I call your method, I know at compile time what can possibly go wrong and I can decide whether to handle it or just bubble it up to my caller. Catching a given exception also catches all that exception's descendants. Declaring that you throw a given exception means that you might throw that exception or any of its descendants.
Unchecked exceptions (RuntimeException, Error, and their descendants) are not subject to those restrictions. Any method can throw any unchecked exception at any time without declaring it. This is because unchecked exceptions are either the sign of a coding error (RuntimeException), which is totally preventable and should be fixed rather than handled by the code that encounters it, or a problem in the VM, which in general can not be predicted or handled.

Similar Messages

  • Error: An unreported error occurred in Appc. No errors were reported.

    Hello Experts,
    Had an error in my jdeveloper 11.1.2.0.0
    Error: An unreported error occurred in Appc. No errors were reported, but the tool returned a failure result code: 1.
    Warning: <Jun 6, 2012 9:32:42 AM EDT> <Error> <J2EE> <BEA-160197> <Unable to load descriptor C:\Fido\PortfolioTurnover\pt_application\ViewController\public_html/WEB-INF/web.xml of module public_html. The error is weblogic.descriptor.DescriptorException: Unmarshaller failed     at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:161)     at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:323)     at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:788)     at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:409)     at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:759)     at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:768)     at weblogic.application.descriptor.AbstractDescriptorLoader2._mergeDescriptors(AbstractDescriptorLoader2.java:562)     at weblogic.application.descriptor.AbstractDescriptorLoader2.mergeDescriptors(AbstractDescriptorLoader2.java:500)     at weblogic.application.descriptor.AbstractDescriptorLoader2.mergeDescriptors(AbstractDescriptorLoader2.java:477)     at weblogic.servlet.internal.WebAppDescriptor.mergeLibaryDescriptors(WebAppDescriptor.java:179)     at weblogic.application.compiler.WARModule.mergeDDFromLibraries(WARModule.java:358)     at weblogic.application.compiler.WARModule.processLibraries(WARModule.java:402)     at weblogic.application.compiler.WARModule.compile(WARModule.java:237)     at weblogic.application.compiler.flow.SingleModuleCompileFlow.proecessModule(SingleModuleCompileFlow.java:18)     at weblogic.application.compiler.flow.SingleModuleFlow.compile(SingleModuleFlow.java:36)     at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)     at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)     at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)     at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)     at weblogic.application.compiler.WARCompiler.compile(WARCompiler.java:29)     at weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCompilerFlow.java:112)     at weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompilerFlow.java:37)     at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)     at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)     at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)     at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)     at weblogic.application.compiler.Appc.runBody(Appc.java:203)     at weblogic.utils.compiler.Tool.run(Tool.java:158)     at weblogic.utils.compiler.Tool.run(Tool.java:115)     at weblogic.application.compiler.Appc.main(Appc.java:262)     at weblogic.appc.main(appc.java:14)Caused by: com.bea.xml.XmlException: weblogic.descriptor.BeanAlreadyExistsException: Bean already exists: "weblogic.j2ee.descriptor.FilterBeanImpl@8e675df6(/Filters[JpsFilter])"     at com.bea.staxb.runtime.internal.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:54)     at com.bea.staxb.runtime.internal.RuntimeBindingType$BeanRuntimeProperty.setValue(RuntimeBindingType.java:539)     at com.bea.staxb.runtime.internal.AttributeRuntimeBindingType$QNameRuntimeProperty.fillCollection(AttributeRuntimeBindingType.java:381)     at com.bea.staxb.runtime.internal.MultiIntermediary.getFinalValue(MultiIntermediary.java:52)     at com.bea.staxb.runtime.internal.AttributeRuntimeBindingType.getFinalObjectFromIntermediary(AttributeRuntimeBindingType.java:140)     at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalBindingType(UnmarshalResult.java:200)     at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalDocument(UnmarshalResult.java:169)     at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:65)     at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:150)     ... 30 moreCaused by: weblogic.descriptor.BeanAlreadyExistsException: Bean already exists: "weblogic.j2ee.descriptor.FilterBeanImpl@8e675df6(/Filters[JpsFilter])"     at weblogic.descriptor.internal.ReferenceManager.registerBean(ReferenceManager.java:231)     at weblogic.j2ee.descriptor.WebAppBeanImpl.setFilters(WebAppBeanImpl.java:715)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)     at java.lang.reflect.Method.invoke(Method.java:597)     at com.bea.staxb.runtime.internal.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:48)     ... 38 more.>
    Warning: <Jun 6, 2012 9:32:42 AM EDT> <Error> <J2EE> <BEA-160187> <weblogic.appc failed to compile your application. Recompile with the -verbose option for more details. Please see the error message(s) below.>
    Warning: Bean already exists: "weblogic.j2ee.descriptor.FilterBeanImpl@8e675df6(/Filters[JpsFilter])"
    Error Shown in Messages
    [9:32:40 AM] Appc compilation begin
    Compiling out of process...
    C:\oracle\Middleware1.1.2.0\jdk160_24\jre\bin\javaw.exe -Xms128m -Xmx512m -Xverify:none -client -classpath C:\oracle\Middleware1.1.2.0\jdk160_24\lib\tools.jar;C:\oracle\Middleware1.1.2.0\wlserver_10.3\server\lib\weblogic.jar -Dweblogic.jsp.diagnosticWithAbsolutePath=true -Dweblogic.classloader.noJarSigners=true weblogic.appc "@C:\Users\santosh\AppData\Local\Temp\appcCommandList2885624487700395398.txt"
    [9:32:42 AM] Appc compilation end
    Writing task flow registry 'file:/C:/Fido/PortfolioTurnover/pt_application/ViewController/classes/META-INF/task-flow-registry.xml'
    [9:32:42 AM] Compilation complete: 1 errors, 3 warnings.
    Any reply please....

    @Sudipto Desmukh well that seams to be the problem :)
    @933601     Check your web.xml file for any errors (e.g. unclosed tags). when you open the web.xml fiel the right hand gutter should show a green quad. If this is Ok then check hte task-flow-Registry.xml file for errors.
    Timo

  • Error in deploy, after migration from jdev 11.1.1.3 to jdev 11.1.2.0

    Hi,
    I am using Jdev 11.1.2.0.
    migration successfully at 11.1.1.3 to jdeveloper 11.1.2.0.
    when I deploy the new version Viewcontroller project I got the error like "An unreported error occurred in Appc. No errors were reported, but the tool returned a failure result code: 1." .
    Regards,
    Ragu.

    same discussed here as well.. have you tried the suggestions provided here
    Re: Migrate from JDeveloper 11.1.1.3 to 11.1.2

  • Compile error after migration from JDeveloper 11.1.1.4 to 11.1.2

    Hi,
    I have recently downloaded JDeveloper 11.1.2 and I need to migrate from 11.1.1.4.
    I got the following error message:
    Error: An unreported error occurred in Appc. No errors were reported, but the tool returned a failure result code:1.
    Can somebody suggest me how do I go about this?
    Regards

    see {thread:id=2241934}

  • Error when opening application developed in jdev11.1.1.5.0 in jdev 11.1.2.0

    Dear All,
    I have developed an application in jdev11.1.1.5.0 and i am just trying to run it in jdev 11.1.2.0.0, first of all it migrated all files sucessfully to its own new format(it was done automatically).
    Now next when i try to run my application it gives me following error and application fails to run i.e it doesnot even goes ahead of compilation means it gives error in compilation.
    Error: An unreported error occurred in Appc. No errors were reported, but the tool returned a failure result code: 1.
    Warning: <Sep 28, 2011 9:56:56 AM IST> <Error> <J2EE> <BEA-160187> <weblogic.appc failed to compile your application. Recompile with the -verbose option for more details. Please see the error message(s) below.>
    Warning: There are 1 nested errors:
    Warning: weblogic.servlet.internal.dd.compliance.ComplianceException: There is no servlet definition for the servlet-name "SaveAnnotations" specified in the filter element "adfBindings".
    Warning:      at weblogic.servlet.internal.dd.compliance.BaseComplianceChecker.addDescriptorError(BaseComplianceChecker.java:76)
    Warning:      at weblogic.servlet.internal.dd.compliance.FilterComplianceChecker.checkFilterMapping(FilterComplianceChecker.java:109)
    Warning:      at weblogic.servlet.internal.dd.compliance.FilterComplianceChecker.check(FilterComplianceChecker.java:55)
    Warning:      at weblogic.servlet.internal.dd.compliance.ComplianceUtils.checkCompliance(ComplianceUtils.java:48)
    Warning:      at weblogic.servlet.jsp.JspcInvoker.checkCompliance(JspcInvoker.java:145)
    Warning:      at weblogic.servlet.jsp.JspcInvoker.compile(JspcInvoker.java:198)
    Warning:      at weblogic.application.compiler.AppcUtils.compileWAR(AppcUtils.java:376)
    Warning:      at weblogic.application.compiler.WARModule.compile(WARModule.java:245)
    Warning:      at weblogic.application.compiler.flow.SingleModuleCompileFlow.proecessModule(SingleModuleCompileFlow.java:18)
    Warning:      at weblogic.application.compiler.flow.SingleModuleFlow.compile(SingleModuleFlow.java:36)
    Warning:      at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
    Warning:      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    Warning:      at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
    Warning:      at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
    Warning:      at weblogic.application.compiler.WARCompiler.compile(WARCompiler.java:29)
    Warning:      at weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCompilerFlow.java:112)
    Warning:      at weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompilerFlow.java:37)
    Warning:      at weblogic.application.compiler.Appc.runBody(Appc.java:203)
    Warning:      at weblogic.utils.compiler.Tool.run(Tool.java:158)
    Warning:      at weblogic.utils.compiler.Tool.run(Tool.java:115)
    Warning:      at weblogic.application.compiler.Appc.main(Appc.java:262)
    Warning:      at weblogic.appc.main(appc.java:14)Thanks & Regards,
    Santosh

    So what was the problem? How did you resolve it?
    --Chris                                                                                                                                                                                                       

  • Error when migrating JDeveloper to 11.1.2.3.0

    Hello,
    I used to work on JDeveloper 11.1.1.1.0 and had a project all set up.
    I installed a new PC (64-bit machine) and a new JDeveloper (11.1.2.3.0) and wanted to run my existing project on it. When porting the project to the new JDev i was asked if i wanted to migrate the existing files to the new JDev format and i clicked on 'Yes'.
    Upon compilation, I got no code compilation errors. However, the compilation failed due to this error: "Error: An unreported error occurred in Appc. No errors were reported, but the tool returned a failure result code: 1. "
    I turned on verbose mode, but couldn't get any additional messages that indicate what the problem might be. I've seen a series of threads where people discuss similar problems, but no-one ever mentioned if he/she resolved the issue.
    Some information about my system:
    JDeveloper version: 11.1.2.3
    java.version: 1.6.0_45
    java.vm.info: mixed mode
    java.vm.name: Java HotSpot(TM) 64-Bit Server VM
    java.vm.version: 20.45-b01
    Let me know if more information is needed and thanks in advance.

    Hi,
    it would help if there was a test case that could run stand alone for support to have a look at. The error message itself doesn't say a lot. If you upgrade from 11.1.1.0 to 11.1.1.7 or 11.1.1.6, test it and then upgrade to 11.1.2.3 (though I would recommend going to 12c) or 11.1.2.4, maybe this intermediate step makes it work.
    Frank

  • Migrate from JDeveloper 11.1.1.3 to 11.1.2

    Hi,
    Previously I was using Jdeveloper 11.1.1.3 .I installed 11.1.2 and opened my application . When i compiled it i got this error
    Error: An unreported error occurred in Appc. No errors were reported, but the tool returned a failure result code: 1.
    What might be wrong?
    Thanks,
    Priya.
    Edited by: Priya on Jun 22, 2011 1:22 AM

    Priya,
    can you create a test case (an 11.1.1.3 app that produces this error when migrated to 11.1.2) ? A simple sample that allows to reproduce the problem ? If you need to find a solution quickly then I suggest to file a SR with customer support. If this solution has time, then I can have a look as well. Note that the test case should be the working 11.1.1.3 version, not the 11.1.2 version that doesn't work
    Frank
    Edited by: Frank Nimphius on Aug 19, 2011 1:28 PM

  • Open/Create file dialog can only create the file

    Hello,
    Very strange problem I got.
    The system is LabView 2014, on Windows 8. All 64bits.
    For long time I was happy and had no big problems with LV. However, after a few months without working on LabView, the LV got the problem.
    When I'm trying to open file using the file selection dialog (for example: insert SubVI, or select data file in LV program) I cannot. I can type a new file name and the press OK in the file selection dialog and have no problems with that. But I cannot open any existing file. When I press OK in the file selection dialog nothing happens. I can open VIs, projects, but nothing inside opened VI. Files I'm trying to open are not Read-Only, and the are no "insane", as the same problem I have for LV example files.
    Looks like something on the level of OS, but I'm not sure where to start to look. I have tried to reinstall LV (just remove/install without additional cleaning, if any exist). Did not help.
    Any suggestions ?
    Thanks.

    Code? You may be telling the code to only use new files, or more likely there is an unreported error causing trouble.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Java.lang.OutOfMemoryError: PermGen space in Oracle Jdevelpoer 11.1.2.3.0

    dear all,
    i am facing PerGen Space Problem to run my application.
    how to resolve this.....???
    Error: An unreported error occurred in Appc. No errors were reported, but the tool returned a failure result code: 1.
    Warning: java.lang.OutOfMemoryError: PermGen space
    Warning:      at java.lang.ClassLoader.defineClass1(Native Method)
    Warning:      at java.lang.ClassLoader.defineClassCond(ClassLoader.java:630)
    Warning:      at java.lang.ClassLoader.defineClass(ClassLoader.java:614)
    Warning:      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    Warning:      at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    Warning:      at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    Warning:      at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    Warning:      at java.security.AccessController.doPrivileged(Native Method)
    Warning:      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    Warning:      at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
    Warning:      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    Warning:      at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
    Warning:      at weblogic.jsp.internal.jsp.JspCheckContext.check(JspCheckContext.java:82)
    Warning:      at weblogic.jsp.internal.jsp.JspAnalyzer.check(JspAnalyzer.java:57)
    Warning:      at weblogic.jsp.internal.ProxySourceFile._check(ProxySourceFile.java:136)
    Warning:      at weblogic.jsp.internal.SourceFile.masterCheck(SourceFile.java:762)
    Warning:      at weblogic.jsp.internal.SourceFile.check(SourceFile.java:314)
    Warning:      at weblogic.jsp.internal.SourceFile.check(SourceFile.java:335)
    Warning:      at weblogic.jsp.internal.ProxySourceFile.codeGen(ProxySourceFile.java:224)
    Warning:      at weblogic.jsp.internal.SourceFile.codeGen(SourceFile.java:327)
    Warning:      at weblogic.jsp.internal.client.ClientUtilsImpl$CodeGenJob.run(ClientUtilsImpl.java:599)
    Warning:      at weblogic.jsp.internal.client.Job.performJob(Job.java:83)
    Warning:      at weblogic.jsp.internal.client.ThreadPool$WorkerThread.run(ThreadPool.java:217)

    Dear Pavan,
    In this scenerio there is issue in PERMGEN space which is the reason it is throwing outOFMemory exception.
    Increase the size of PERMGEN space in setDomainEnv.cmd.
    set MEM_MAX_PERM_SIZE=-XX:MaxPermSize=128m
    Increase the size of this parameter to this:
    MEM_MAX_PERM_SIZE="-XX:MaxPermSize=256m"
    Regards,
    Abdul

  • ADF Mobile-PieGraph not passing Series and GroupAttributes to ClickListener

    JDeveloper Version: 11.1.2.2.0
    We are developing ADF Mobile Apps and using the ADF trinidad DVT PIE Graph component. The custom click listener method I have in place is not able to retrieve the series or group attributes when clicked. All of the Series and group attributes are being returned as NULL. Below is the code I have in place:
    <dvtt:pieGraph id="graph1" value="#{bindings.EroProductReportGrpByView1.graphModel}"
    subType="PIE" customLayout="CL_NONE"
    threeDEffect="true" inlineStyle="width:100%"
    binding="#{processDashBoardCriteria.eroProdReportPie}"
    clickListener="#{processDashBoardCriteria.pieGraphClicked}">
    <dvtt:background> <dvtt:specialEffects/> </dvtt:background>
    <dvtt:graphPieFrame/>
    <dvtt:seriesSet>
    <dvtt:series/>
    </dvtt:seriesSet>
    <dvtt:legendArea automaticPlacement="AP_NEVER" position="LAP_BOTTOM" rendered="false"/>
    <dvtt:slice labelPosition="LP_OUTSIDE_WITH_FEELER"/>
    <dvtt:sliceLabel textType="LD_TEXT_PERCENT"/>
    <dvtt:pieLabel rendered="true"/>
    <dvtt:graphTitle horizontalAlignment="CENTER"
    text=" "/>
    </dvtt:pieGraph>
    In the PAGE DEFINITION FILE:*
    <graph IterBinding="EroProductReportGrpByView1Iterator" id="EroProductReportGrpByView1"
    xmlns="http://xmlns.oracle.com/adfm/dvt" type="PIE">
    <graphDataMap convert="false" leafOnly="true">
    <series>
    <item value="Plant" label="Plant"/>
    <item value="OrderPrefix" label="OrderPrefix"/>
    </series>
    <groups>
    <data>
    <item value="PlantId" label="${adfBundle['com.dam.DAMReportsWebBundle'].PLANT_KEY}"/>
    </data>
    </groups>
    </graphDataMap>
    </graph>
    CLICK LISTENER CODE:_
    public void pieGraphClicked(ClickEvent clickEvent) {       
    ComponentHandle handle = clickEvent.getComponentHandle();
    if (handle instanceof DataComponentHandle)
    DataComponentHandle dhandle = (DataComponentHandle)handle;
    // Get the value displayed in the series
    System.out.println("Value: " + dhandle.getValue(DataComponentHandle.UNFORMATTED_VALUE));
    // Get the series attributes
    Attributes [] seriesInfo = dhandle.getSeriesAttributes();
    Object component = dhandle.getComponent();
    System.out.println("Component is : "+component+" Data Component Handle Name : "+dhandle.getName());
    if(seriesInfo != null)
    for(Attributes attrs: seriesInfo)
    System.out.println("Series value: " + attrs.getValue(Attributes.LABEL_VALUE) + "Series name: " + attrs.getValue(Attributes.LABEL_ATTRIBUTE)+ " Series value id: " + attrs.getValue(Attributes.ID_VALUE));
    System.out.println("Series name id: " + attrs.getValue(Attributes.ID_ATTRIBUTE));
    // Get the group attributes
    Attributes [] groupInfo = dhandle.getGroupAttributes();
    if(groupInfo != null)
    for(Attributes attrs: groupInfo)
    System.out.println("Group value: " + attrs.getValue(Attributes.LABEL_VALUE));
    System.out.println("Group name: " + attrs.getValue(Attributes.LABEL_ATTRIBUTE));
    Any one have an idea where the problem can be?
    Edited by: vp**** on Jul 12, 2012 7:49 AM
    Edited by: vp**** on Jul 12, 2012 8:59 AM

    Hi Frank,
    We have not yet tested on Mobile browser. Currently we are testing on IE and Safari browsers and the click listener is not able to receive the Series and Group attributes of the PIE graph.
    One more question - Does the imageFormat of the Pie Graph needs to be explicitly specified as "FLASH" for the clickListener to work correctly?
    I even tried specifying in the jspx file and it is throwing error as below:
    Error: An unreported error occurred in Appc. No errors were reported, but the tool returned a failure result code: 1.
    Warning: <Jul 13, 2012 12:11:57 PM CDT> <Error> <J2EE> <BEA-160187> <weblogic.appc failed to compile your application. Recompile with the -verbose option for more details. Please see the error message(s) below.>
    Warning: There are 1 nested errors:
    Warning: imageFormat="FLASH">
    Warning: ^----^
    Warning:      at weblogic.servlet.jsp.jspc20.runBodyInternal(jspc20.java:458)
    Warning:      at weblogic.servlet.jsp.jspc20.runJspc(jspc20.java:227)
    Warning:      at weblogic.servlet.jsp.JspcInvoker.compile(JspcInvoker.java:236)
    Warning:      at weblogic.application.compiler.AppcUtils.compileWAR(AppcUtils.java:376)
    Warning:      at weblogic.application.compiler.WARModule.compile(WARModule.java:245)
    Warning:      at weblogic.application.compiler.flow.SingleModuleCompileFlow.proecessModule(SingleModuleCompileFlow.java:18)
    Warning:      at weblogic.application.compiler.flow.SingleModuleFlow.compile(SingleModuleFlow.java:36)
    Warning:      at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
    Warning:      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    Warning:      at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
    Warning:      at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
    Warning:      at weblogic.application.compiler.WARCompiler.compile(WARCompiler.java:29)
    Warning:      at weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCompilerFlow.java:112)
    Warning:      at weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompilerFlow.java:37)
    Warning:      at weblogic.application.compiler.Appc.runBody(Appc.java:203)
    Warning:      at weblogic.utils.compiler.Tool.run(Tool.java:158)
    Warning:      at weblogic.utils.compiler.Tool.run(Tool.java:115)
    Warning:      at weblogic.application.compiler.Appc.main(Appc.java:262)
    Warning:      at weblogic.appc.main(appc.java:14)
    Thanks
    Venkatesh
    Edited by: vp**** on Jul 13, 2012 11:11 AM

  • [BUG] BIOS/ACPI issues

    I have a Z50 laptop and there are a few issues with running Linux.
    1. If I choose UMA Only from the BIOS then the nvidia card is not powered off, it just prevents Linux from seeing the card.I know this because if I choose UMA Only power usage is 13Wh, but if I set to discrete and use bbswitch to power off the nvidia card, power usage is at 9Wh.
    2. The second issue is when I resume from standby I get MCE logs (it only happens when resuming from standby), I have tested the RAM with memtest86+ for 2+ hours and used cachebench to stress the cpu cache and I did not receive any MCEs, but suspended and resumed and thw following message was in mcelog again:
    CPU 0 BANK 6
    MISC 78a0000086 ADDR fef81d00
    TIME 1413513507 Thu Oct 16 19:38:27 2014
    MCG status:
    MCi status:
    Error overflow
    Uncorrected error
    MCi_MISC register valid
    MCi_ADDR register valid
    Processor context corrupt
    MCA: corrected filtering (some unreported errors in same region)
    Generic CACHE Level-2 Generic Error
    STATUS ee0000000040110a MCGSTATUS 0
    MCGCAP c07 APICID 0 SOCKETID 0
    CPUID Vendor Intel Family 6 Model 69
    I tried compiling the dsdt and I get the following errors:
    dsdt.dsl 7127: Store (\_GPE.MMTB (Local2, \_GPE.OSUP (Local2)), Store (Local1, REG6) )
    Error 6126 -                       syntax error, unexpected PARSEOP_STORE ^
    dsdt.dsl 7619: Store (\_GPE.MMTB (Local3, \_GPE.OSUP (Local3)), Store (Local2, REG6) )
    Error 6126 -                      syntax error, unexpected PARSEOP_STORE ^
    The first error happens to be in the _WAK method, I'm not sure if that is related to the mce from waking up from suspend.
    3. Possibly related to the above issue, system fails to resume from standby at times (black screen, system hang). It happens more often if I have graphics mode set to discrete.
    Some other information related to ACPI in dmesg:
    ACPI Warning: SystemIO range 0x0000000000004040-0x000000000000405f conflicts with OpRegion 0x0000000000004040-0x000000000000404f (\_SB_.PCI0.SBUS.SMBI) (20140724/utaddress-258)
    ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver

    The first issue is present on Windows 8 too:
    Discrete card enabled: http://imgur.com/VEk9DJI,Bc2przX#0
    UMA Only: http://imgur.com/VEk9DJI,Bc2przX#1
    I'm not able to reproduce the MCE on Windows.
    This is either a bug in the BIOS when using linux or a bug with Linux - I just need some help figuring out which it is.
    Thanks.

  • How to slove follwoing error "Unreported exception java.io.IOException;"

    Currently I'm using following:
    XP Professional
    J2sdk1.4.2_01
    Xerces-2_5_0
    Xalan-j_2_5_1
    Jakarta-tomcat-4.1.27
    Jdom-b9
    Current Classpath setting
    User variables
    PATH = c:\bmrt2.5\bin; c:\j2sdk\bin;%PATH%;%JAVA_HOME%\bin;
    CLASSPATH=.;c:\xerces\xmlParserAPIs.jar;c:\xerces\xercesImpl.jar;
    c:\xerces\xercesSamples.jar;c:\xalan\xercesImpl.jar;c:\xalan\xmlapis.jar;c:\xalan\xalan.jar;c:\tomcat\lib\webserver.jar;c:\tomcat\lib\jasper.jar;c:\tomcat\lib\xml.jar;c:\tomcat\common\lib\serlet.jar;c:\tomcat\lib\tools.jar; c:\tomcat\lib\tools.jar;c:\jdom\build\jdom.jar;
    CATALINA_HOME= c:\tomcat
    JAVA_HOME= c:\j2sdk
    System variables
    PATH=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;
    c:\j2sdk\bin;%Path%;%JAVA_HOME%\bin;
    CLASSPATH=.;c:\xerces\xmlParserAPIs.jar;c:\xerces\xercesImpl.jar;
    c:\xerces\xercesSamples.jar;c:\xalan\xercesImpl.jar;c:\xalan\xmlapis.jar;c:\xalan\xalan.jar;c:\tomcat\lib\webserver.jar;c:\tomcat\lib\jasper.jar;c:\tomcat\lib\xml.jar;c:\tomcat\common\lib\serlet.jar;c:\tomcat\lib\tools.jar; c:\tomcat\lib\tools.jar;
    CATALINA_HOME= c:\tomcat
    JAVA_HOME= c:\j2sdk
    Program
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import org.jdom.*;
    import org.jdom.Element;
    import org.jdom.Document;
    import org.jdom.output.XMLOutputter;
    import org.jdom.input.SAXBuilder;
    import org.jdom.Attribute;
    import java.util.List;
    public class AddToList extends HttpServlet
         public Document getDocument(File sourceFile, PrintWriter errorsOut)
              try
                   SAXBuilder builder = new SAXBuilder();
                   Document document = builder.build(sourceFile);
                   return document;
              catch(JDOMException e)
                   errorsOut.print("there was a problem building the document: " e. getMessage()"<br/>"+ "Returning blank document.");
                   return new Document(new Element("blank"));
         public void saveDocument(Document saveDoc, File saveFile, PrintWriter errorsOut)
              try
                   FileOutputStream outStream= new FileOutputStream(saveFile);
                   XMLOutputter outToFile= new XMLOutputter(" ",true);
                   outToFile.output(saveDoc, outStream);
                   outStream.flush();
                   outStream.close();
              catch (IOException e)
                   errorsOut.print("Can't save order.xml: " + e.getMessage()+"<br />");
         public void addItem(Element orderElement, String product_id, String quant)
              Element newItem =new Element("item");
              newItem.setAttribute("product_id", product_id);
              Element quantity =new Element("quantity");
              quantity.addContent(quant);
              newItem.addContent(quantity);
              orderElement.addContent(newItem);
         public void doGet(HttpServletRequest request, HttpServletResponse response)
              throws IOException, ServletException
              String thisProduct_id=request.getParameter("addProduct_id");
              String thisQuantity=request.getParameter("addQuantity");
              response.setContentType("text/html");
              PrintWriter out= response.getWriter();
              out.print("Adding "+ thisQuantity + "of item to chart "+ thisProduct_id +" ... ");
              File orderFile = new File ("file:///c:/jdk1.3/orders.xml");
              if(!orderFile.exists())
                   out.print("Creating ordersrocks....<br />");
                   Element root= new Element("orders");
                   root.addContent(" ");
                   Document document = new Document(root);
                   saveDocument (document, orderFile, out);
              else
                   out.print("Orders File Exists.");
              Document document =getDocument(orderFile, out);
              HttpSession session =request.getSession(true);
              String session_id= session.getId();
              Element root =document.getRootElement();
              List orders =root.getChildren();
              int num_orders =orders.size();
              boolean orderExists =false;
              int orderIndex =0;
              for(int i=0; i<num_orders; i++)
                   Element iOrder=(Element)orders.get(i);
                   String iOrder_id=iOrder.getAttributeValue("order_id");
                   if (iOrder_id.equals(session_id))
                        orderExists=true;
                        orderIndex=i;
                        break;
              if(!orderExists)
                   Element order =new Element("order");
                   order.setAttribute("order_id", session_id);
                   Element status =new Element("order_status");
                   status.setText("open");
                   order.addContent(status);
                   addItem(order, thisProduct_id, thisQuantity);
                   root.addContent(order);
              else
                   Element thisOrder=(Element)orders.get(orderIndex);
                   boolean itemExists=false;
                   int itemIndex =0;
                   List items =thisOrder.getChildren("item");
                   int num_items =items.size();
                   for(int i=0; i<num_items; i++)
                        Element iItem=(Element)items.get(i);
                        String iProduct_id =iItem.getAttribute("product_id").getValue();
                        if(iProduct_id.equals(thisProduct_id))
                             itemExists =true;
                             itemIndex =i;
                             break;
                   if(itemExists)
                        Element thisItem=(Element)items.get(itemIndex);
                        String currentQuantity= thisItem.getChildText("quantity");
                        int newQuantity = Integer.parseInt(currentQuantity)+ Integer.parseInt(thisQuantity);
                        String strQuantity= new String().valueOf(newQuantity)+1;
                        thisItem.getChild("quantity").setText(strQuantity);
                   else
                        addItem(thisOrder, thisProduct_id, thisQuantity);
              saveDocument (document, orderFile, out);
         public void doPost(HttpServletRequest request, HttpServletResponse response)
              throws IOException, ServletException
              doGet(request, response);
    When I compile above program, it gives me following error.
    Error
    C:\tomcat\webapps\book\WEB-INF\classes>javac AddToList.java
    AddToList.java:19: unreported exception java.io.IOException; must be caught
    or declared to be thrown
    Document document = builder.build(sourceFile);
    ^
    1 error
    Any help regarding this will be appreciated
    Thank you
    Rocks

    Obadare
    Thank for your help, my program compile successfully. But now I�m facing different kind of error on Tomcat; why it gives me following error and how do I solve it
    http://localhost:8080/rock/servlet/AddToList
    Following Error generate by Tomcat:
    Http Status 500-
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Cannot allocate servlet instance for path /rock/servlet/AddToList
         at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:435)
         at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
    (ApplicationFilterChain.java:247)
    root cause
    java.lang.NoClassDefFoundError: org/jdom/JDOMException
         at java.lang.Class.newInstance0(Native Method)
         at java.lang.Class.newInstance(Class.java:237)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:903)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)
         at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:416)
         at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
    (ApplicationFilterChain.java:247)
    The following is my configuration
    Classpath= .;c:\xalan\bin\xalan.jar;c:\xalan\bin\xml-apis.jar;c:\xerces\xmlParserAPIs.jar;c:\xerces\xercesImpl.jar;c:\tomcat\common\lib\servlet.jar;c:\jdom\build\jdom.jar;
    Java_Home=c:\jdk1.3
    Catalina_Home=c:\tomcat
    Server.xml
    <Engine name="Standalone" defaultHost="localhost" debug="0">
    <Host name="localhost" debug="0" appBase="webapps"
    unpackWARs="true" autoDeploy="true">
    <Context path="/rock" docBase="rock" debug="0"
    reloadable="true" crossContext="true">
    P.S When I try to build javadoc it give me following error:
    C:\jdom>build javadoc
    JDOM Build System
    Building with classpath c:\jdk1.3\lib\tools.jar;.\lib\ant.jar;.\lib\xml-apis.jar
    ;.\lib\xerces.jar;
    Starting Ant...
    Buildfile: build.xml
    [javadoc] Constructing Javadoc information...
    [javadoc] Building tree for all the packages and classes...
    [javadoc] Building index for all the packages and classes...
    [javadoc] javadoc: warning - Tag @link: Class or Package not found: javax.xml.
    transform.TransformerFactory#getFeature
    [javadoc] javadoc: warning - Tag @link: Class or Package not found: javax.xml.
    transform.TransformerFactory#getFeature
    [javadoc] Building index for all classes...
    [javadoc] javadoc: warning - Tag @link: Class or Package not found: javax.xml.
    transform.TransformerFactory#getFeature
    [javadoc] javadoc: warning - Tag @link: Class or Package not found: javax.xml.
    transform.TransformerFactory#getFeature
    [javadoc] javadoc: warning - Tag @link: Class or Package not found: javax.xml.
    transform.Transformer
    [javadoc] javadoc: warning - Tag @link: Class or Package not found: javax.xml.
    transform.Transformer
    [javadoc] javadoc: warning - Tag @link: Class or Package not found: javax.xml.
    transform.Transformer JAXP TrAX Transformer
    [javadoc] javadoc: warning - Tag @link: Class or Package not found: javax.xml.
    transform.TransformerFactory#getFeature
    [javadoc] javadoc: warning - Tag @link: Class or Package not found: javax.xml.
    transform.TransformerFactory#getFeature
    [javadoc] javadoc: warning - Tag @link: Class or Package not found: java.lang.
    Double#NaN
    [javadoc] Generating C:\jdom\build\apidocs\stylesheet.css...
    [javadoc] 10 warnings
    BUILD SUCCESSFUL
    Total time: 12 seconds

  • Why there's error stating "unreported exception" when call function

         public void actionPerformed(ActionEvent evt)
              Object obj = evt.getSource();
              if (obj == DeleteButton)
                   readfile(); // Error here
                   deletefile();
                   rename();
    ========================================================================
         public void readfile() throws Exception
              BufferedReader in = new BufferedReader(new FileReader("WhiteCollar2.txt"));
              line=in.readLine();
              found=0;
              while (line!=null)
                   if ((line.substring(0,6)).equals((String)textfield.getText()))
                        System.out.println("CORRECT\n");
                        found=1;
                   else
                        writefile();                    
                   line=in.readLine();
    ========================================================================
    How come when I call the above readfile(), it gives me :
    DeleteScreen.java:70: unreported exception java.lang.Exception; must be caught or declared to be thrown
    readfile();
    However if I change to the following :
    try{readfile()};
    catch (Exception e) {}
    The code works fine. I am still figuring out on throwing exceptions etc. But how come I already throw exceptions it still complains exception not declared?
    Thanks and Rgds

    but the writefile() function which I called in the
    read() also throw exception but how come I do not need
    to catch it for the write()?The error message says it all: must be caught or declared to be thrown. Thus, you must either catch the exception using try-catch or you must declare that your method throws the exception using the throws declaration.
    Your call to writefile() is in the method readfile() that already declares that it throws Exception. So there is no problem there.
    BTW, you should know that it is generally ill-advised to catch or declare exception using the superclass Exception. You should use as specific an exception class as possible. In this case I suppose it would be IOException.

  • ERROR:Unreportted Exception java.io.IOEcxeption

    import java.io.*;
    public class MyFileWriter{
         BufferedReader br;
         InputStreamReader isr;
         PrintWriter pw;
         FileWriter fw;
         File f;
         String data;
    public MyFileWriter(){
         isr=new InputStreamReader(System.in);
         br=new BufferedReader(isr);
         f=new File("one.txt");
         fw=new FileWriter(f);
         pw=new PrintWriter(fw);
         readData();
    public void readData(){
         try{
         while(true){
         System.out.println("enter the data except #");
         data=br.readLine();
         if(data.equals("#"))
         break;
         writeData();
    catch(IOException ie){
         System.out.println(ie);
    public void writeData(){
         try{
         pw.println(data);
         *}catch(IOException ie){*
         System.out.println(ie);
         public static void main(String []args){
         MyFileWriter mfw=new MyFileWriter();

    fw=new FileWriter(f);This might throw an IOException so better you write this in to try catch block or report the method that it might throw exception
    This can be done as
         public MyFileWriter() throws IOException
              isr=new InputStreamReader(System.in);
              br=new BufferedReader(isr);
              f=new File("one.txt");
              fw=new FileWriter(f);
              pw=new PrintWriter(fw);
              readData();
         }or by
         public MyFileWriter()
              try
                   isr=new InputStreamReader(System.in);
                   br=new BufferedReader(isr);
                   f=new File("one.txt");
                   fw=new FileWriter(f);
                   pw=new PrintWriter(fw);
                   readData();
              } catch(IOException ioe)
                            System.out.println("Any thing here");
         }And go according to your requirement
    Now for this code
         public void writeData()
              try
                   pw.println(data);
              } catch(IOException ie)
                   System.out.println(ie);
         }here pw.println() method doesnot throws any type of exception particularly IOException
    So thats why you are getting this error
    exception java.io.IOException is never thrown in body of corresponding try statement
                    } catch(IOException ie)so either remove "IOException ie" from there or use only "Exception e"
    Hope this might help you
    Better you refer java docs while coding.

  • Unreported Exception error message

    ( Error message:
    AddStudentException must be caught or declared to be thrown)
    Can anyone explain the error message above from this code?
    public class Course
    public void addStudent(Student s) throws AddStudentException
    public static void main(String[] stringArray)
    Course c1 = new Course("CS110",3);
    Student s1 = new Student("Dave");
    CourseAlreadyPassedException message =
    new CourseAlreadyPassedException
    ("This course has already been taken. ");
    c1.addStudent(s5);
    public abstract class AddStudentException extends Exception {
    // Constructors
    public AddStudentException() { }
    public AddStudentException(String message)
    super (message);
    public class CourseAlreadyPassedException extends AddStudentException {
    // Constructors
    public CourseAlreadyPassedException() { }
    public CourseAlreadyPassedException(String message)
    super (message);

    You've declared that a call to addStudent may throw an AddStudentException. So the caller (the main() method in this case) must either:
    A) handle the exception via try/catch blocks
    try {
    ... call the method here ...
    catch (AddStudentException e) {
    ... do something about the exception here
    or
    B) declare that it also throws the exception
    public static void main(...) throws AddStudentException

Maybe you are looking for