JDEV 11G TP3: exception when setting preferences for java code style

I got this exception when calling the panel in the preferences settings for java code style.
How to restore it ?
java.lang.NullPointerException
     at oracle.jdevimpl.style.profile.ProfileModel$ProfileComparator.compare(ProfileModel.java:409)
     at java.util.Arrays.mergeSort(Arrays.java:1284)
     at java.util.Arrays.sort(Arrays.java:1223)
     at java.util.Collections.sort(Collections.java:159)
     at oracle.jdevimpl.style.profile.ProfileModel.<init>(ProfileModel.java:72)
     at oracle.jdevimpl.style.preferences.CodingStylePreferencesPanel.<init>(CodingStylePreferencesPanel.java:144)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
     at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
     at oracle.ide.panels.MetaTraversable.newTraversable(MetaTraversable.java:315)
     at oracle.ide.panels.MetaTraversable.newTraversable(MetaTraversable.java:219)
     at oracle.ide.panels.MDDPanel.getTraversable(MDDPanel.java:1243)
     at oracle.ide.panels.MDDPanel.mav$getTraversable(MDDPanel.java:116)
     at oracle.ide.panels.MDDPanel$Tsl.updateSelectedNavigable(MDDPanel.java:1506)
     at oracle.ide.panels.MDDPanel$Tsl.updateSelection(MDDPanel.java:1414)
     at oracle.ide.panels.MDDPanel$Tsl.actionPerformed(MDDPanel.java:1408)
     at javax.swing.Timer.fireActionPerformed(Timer.java:271)
     at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
     at java.awt.Dialog$1.run(Dialog.java:525)
     at java.awt.Dialog$2.run(Dialog.java:553)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.awt.Dialog.show(Dialog.java:551)
     at java.awt.Component.show(Component.java:1300)
     at java.awt.Component.setVisible(Component.java:1253)
     at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
     at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
     at oracle.ide.dialogs.WizardLauncher.runDialog(WizardLauncher.java:55)
     at oracle.ide.panels.TDialogLauncher.showDialog(TDialogLauncher.java:225)
     at oracle.ide.config.IdeSettings.showDialog(IdeSettings.java:808)
     at oracle.ide.config.IdeSettings.showDialog(IdeSettings.java:593)
     at oracle.ide.cmd.IdeSettingsCommand.doit(IdeSettingsCommand.java:45)
     at oracle.ide.controller.CommandProcessor.invoke(CommandProcessor.java:309)
     at oracle.jdevimpl.vcs.cvs.CVSPreferencesCommand.doit(CVSPreferencesCommand.java:46)
     at oracle.ide.controller.CommandProcessor.invoke(CommandProcessor.java:309)
     at oracle.ide.controller.IdeAction.performAction(IdeAction.java:531)
     at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:784)
     at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:481)
     at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
     at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
     at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
     at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
     at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
     at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
     at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
     at java.awt.Component.processMouseEvent(Component.java:5501)
     at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
     at java.awt.Component.processEvent(Component.java:5266)
     at java.awt.Container.processEvent(Container.java:1966)
     at java.awt.Component.dispatchEventImpl(Component.java:3968)
     at java.awt.Container.dispatchEventImpl(Container.java:2024)
     at java.awt.Component.dispatchEvent(Component.java:3803)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
     at java.awt.Container.dispatchEventImpl(Container.java:2010)
     at java.awt.Window.dispatchEventImpl(Window.java:1778)
     at java.awt.Component.dispatchEvent(Component.java:3803)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

I got this exception for menu tools\preference\extensions.
I erased folder C:\JDeveloper\myDirectory\system11.1.1.0.22.49.49 and the error appeared.
Jun 12, 2008 11:20:55 PM oracle.ide.panels.MDDPanel exitTraversable
SEVERE: Exception exiting traversable oracle.ideimpl.extension.preference.ExtensionOptionsPanel[,0,0,485x391,layout=java.awt.BorderLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=9,maximumSize=,minimumSize=,preferredSize=]
java.lang.NullPointerException
     at oracle.ideimpl.extension.preference.ExtensionOptionsPanel.disabledIdsHaveChanged(ExtensionOptionsPanel.java:191)
     at oracle.ideimpl.extension.preference.ExtensionOptionsPanel.onExit(ExtensionOptionsPanel.java:182)
     at oracle.ide.panels.MDDPanel.exitTraversable(MDDPanel.java:1160)
     at oracle.ide.panels.MDDPanel.mav$exitTraversable(MDDPanel.java:116)
     at oracle.ide.panels.MDDPanel$Tsl.updateSelectedNavigable(MDDPanel.java:1470)
     at oracle.ide.panels.MDDPanel$Tsl.updateSelection(MDDPanel.java:1414)
     at oracle.ide.panels.MDDPanel$Tsl.actionPerformed(MDDPanel.java:1408)
     at javax.swing.Timer.fireActionPerformed(Timer.java:271)
     at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
     at java.awt.Dialog$1.run(Dialog.java:525)
     at java.awt.Dialog$2.run(Dialog.java:553)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.awt.Dialog.show(Dialog.java:551)
     at java.awt.Component.show(Component.java:1300)
     at java.awt.Component.setVisible(Component.java:1253)
     at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
     at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
     at oracle.ide.dialogs.WizardLauncher.runDialog(WizardLauncher.java:55)
     at oracle.ide.panels.TDialogLauncher.showDialog(TDialogLauncher.java:225)
     at oracle.ide.config.IdeSettings.showDialog(IdeSettings.java:808)
     at oracle.ide.config.IdeSettings.showDialog(IdeSettings.java:593)
     at oracle.ide.cmd.IdeSettingsCommand.doit(IdeSettingsCommand.java:45)
     at oracle.ide.controller.CommandProcessor.invoke(CommandProcessor.java:309)
     at oracle.jdevimpl.vcs.cvs.CVSPreferencesCommand.doit(CVSPreferencesCommand.java:46)
     at oracle.ide.controller.CommandProcessor.invoke(CommandProcessor.java:309)
     at oracle.ide.controller.IdeAction.performAction(IdeAction.java:536)
     at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:843)
     at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:486)
     at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
     at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
     at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
     at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
     at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
     at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
     at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
     at java.awt.Component.processMouseEvent(Component.java:5501)
     at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
     at java.awt.Component.processEvent(Component.java:5266)
     at java.awt.Container.processEvent(Container.java:1966)
     at java.awt.Component.dispatchEventImpl(Component.java:3968)
     at java.awt.Container.dispatchEventImpl(Container.java:2024)
     at java.awt.Component.dispatchEvent(Component.java:3803)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
     at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
     at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
     at java.awt.Container.dispatchEventImpl(Container.java:2010)
     at java.awt.Window.dispatchEventImpl(Window.java:1778)
     at java.awt.Component.dispatchEvent(Component.java:3803)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Message was edited by:
ericardezp

Similar Messages

  • Using Presence Service in JDev 11g TP3

    I am trying to use Presence Service in JDev 11g TP3.
    I have followed Chapter 13 (Integrating Presence) in Fusion Middleware Developer's Guide for Oracle WebCenter to create the page.
    1. Created connection to presence service in Application Resources(ViewController).
    2. Dropped presence and presenceData into JSF page.
    When I ran the page, getting exception(Unable to find a valid RTC connection). Looks like it is not using the connection I have created and would like to know, how to resolve this problem?. Thanks.

    Hi JP,
    The WebCenter TP3 Release Notes spell out what is and what is not available in TP3.
    Let me know if you have more questions.
    Peter

  • JDEV 11G TP3 [BUG]: Diagramming / Use Case & Activity  / open save

    I'm not able to open existing use diagram and couldn't save activity diagram after i created them. So UML is not functional in this preview release.
    Is this knowns bugs ?
    Is some workarounds knows ?
    I need these diagrams very soon and would know if i have to create them in a another tools or it is a way to use JDeveloper for them.
    Thank you

    You can find more details in these threads
    http://forums.oracle.com/forums/thread.jspa?threadID=622107
    JDEV 11G TP3 [BUG]: Diagramming / Use Case & Activity  / open save
    I already sent my project files to Shay. I may sent them to you too if needed.
    I suspect the problem may be due by the fact i'm using two workspaces simultanously, both managed with subversion. I already detected in the same configuration that "Select in Navigator" from pl/sql editor doesn't find an edited file (loaded from the offline database navigator) in the offline database navigator because it was searching the same project but in the wrong workspace.

  • Please help: unable to set preferences for planning from workspace.

    Hi Experts,
    unable to set preferences for planning from workspace.(file--->preferences----->planning), when doing this task prompts " An Error occured" preferences works fine with other components IR, FR, WEB ANALYSIS.problem is only with the planning.
    1) i restarted the workspace and planning services but even then the same issue.
    Please help me out on this issue.
    Thanks.

    Hi,
    Do you get the same problem if you access planning directly ? http://<planningmachine>:8300/HyperionPlanning/
    Just trying to understand if it related directly to planning and maybe you will get a different error message.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • After installing Mt. Lion, Mail no longer asks for a password, even though I set preference for using a password.

    After installing Mt. Lion 10.8.2, Mail no longer asks for a password before opening messages, even though I tried to set preferences for using the password. Help!

    In Mail Preferences, Accounts item: I tried to delete the password (but that did not save). I got this idea from some Mail Help item that I cannot seem to find again. I cannot recall how I did it in Snow Leopard, but I had it set to ask for a password that was used solely for Mail. It would not download anything until I entered that password. Note: I am not on a network; just the single user of the MacPro. Thank you for any guidance you might be able to offer.

  • TS1292 i have an itunes card that when scratching off for the code some of the numbers rubbed off.  This was a gift so i really dont want to ask for a receipt.  Any suggestions?

    i have an itunes card that when scratching off for the code some of the numbers rubbed off.  This was a gift so i really dont want to ask for a receipt.  Any suggestions?

    Click here and ask the iTunes Store staff for assistance. Supply them with as much of the code as you can.
    (97364)

  • Setting java_home through java code

    Hello , i went through lots of information for setting java_home through java code but i was unable to find any useful information, does anybody know how to set java home through java code
    Regards
    Mayur Mitkari

    The question doesn't make any sense to me. If Java needs the JAVA_HOME variable set, how is it ever going to execute any code that does so? And if it doesn't need it, why set it?

  • Error java.sql.exception when setting up repository for OWB 11g

    Hey all,
    I am encountering the following error on the last step of Repository Assistant, that is, while trying to set up the design repository in OWB 11g:
    "The Warehouse Builder workspace installation failed
    java.sql.SQLException : ORA-00942 table or view does not exist"
    Below is an excerpt from the the log file:
    main.TaskScheduler timer[5]20080620@14:51:54.054: 00> oracle.wh.service.impl.assistant.ProcessEngine.processSQLUserToken(ProcessEngine.java:1106)+>     at java.lang.Thread.run(Thread.java:595)
    main.TaskScheduler timer[5]20080620@14:51:54.054: 00> oracle.wh.service.impl.assistant.ProcessEngine.display(ProcessEngine.java:1572): Exception = java.sql.SQLException: ORA-00942: table or view does not exist
    main.TaskScheduler timer[5]20080620@14:51:54.054: 00> oracle.wh.ui.install.assistant.wizards.AssistantWizardDefinition.display(AssistantWizardDefinition.java:788): [executeOwbReposOrRuntime]: Error occurred during Workspace Installation. Exception =java.lang.Exception: java.sql.SQLException: ORA-00942: table or view does not exist
    main.AWT-EventQueue-0[6]20080620@14:51:54.054: 00> oracle.wh.ui.jcommon.WhButton@a22671: WhButton setLabel rtsString = OK
    main.AWT-EventQueue-0[6]20080620@14:58:17.017: 00> oracle.wh.ui.install.assistant.wizards.AssistantWizardDefinition.display(AssistantWizardDefinition.java:788): before open 'UnSuccessDialog'
    main.AWT-EventQueue-0[6]20080620@14:58:17.017: 00> oracle.wh.ui.install.assistant.wizards.AssistantWizardDefinition.display(AssistantWizardDefinition.java:788): Open UnSuccessDialog ...
    main.AWT-EventQueue-0[6]20080620@14:58:17.017: 00> oracle.wh.ui.jcommon.WhButton@a22671: WhButton setLabel rtsString = OK
    I am new to OWB so please let me know if I've left out any information that would help in figuring out why the installation is not completing.
    Thanks.

    The only thing I can think of in OWB 11g is that the main schema that is used, which is OWBSYS, wasn't fully installed or it doesn't have all the tables or views it needs or they weren't created properly with the cat_owb.sal script.
    Something must not have been created right. I would try to stop all OWB services with the appropriate scripts in:
    <your_owb_home>owb\rtp\sql
    try the stop_service.sql script.
    Then try to drop the users owbsys and whatever you might have created (if it exists) for a workspace owner user. Then clean up with:
    <your_owb_home>\owb\UnifiedRepos\clean_owbsys.sql
    After that it is back to the drawing board from the beginning. DO these steps again that you likely did in the first place:
    1. create owbsys with:
    <your_owb_home>\owb\UnifiedRepos\cat_owb.sql <tablespace_name>
    2. Set the control center home with:
    <your_owb_home>\owb\UnifiedRepos\reset_owbcc_home.sql <your_owb_home>
    *pay attention to the case of the the OWB HOME you give as a variable to the above script.  It needs to match the case of your real path.
    3. Finally unlock owbsys.
    4. look at <your_owb_home>\owb\bin\admin\ if the rtrepos.properties file size is at '0'. If it is for some reason, rename it to something else right now.
    5. Then try to run the repository assistant again.
    -Greg

  • Setting preferences for the Type Tool

    Is there a way to change the preferences for the TypeTool? For example, when using it to create a frame, can I set it so that the vertical justification is center instead of top? At present I have to use command B to bring up a panel to make that change. CS4 on a Mac.

    You're not talking about preferences for the Type tool. That would be for character or paragraph formatting. You're talking about preferences for a type frame.
    You should create an Object Style (Window > Styles > Object Styles) that creates a frame the way you like and apply it as an object style.

  • Setting preferences for hyperlink display properties

    I want all new hyperlinks created by InDesign and InCopy users at my site to have a certain set of properties. I want them to be sort of orange, with a thin dotted line around them. This is not so that they can be exported to pdf with buttons, but just so that we can preserve links in text for a print paper which is later going to be exported to the web, and I have a script that expands them into html at that point.
    But I can't seem to find any preference that I can set that will allow me to set default display options for all hyperlinks newly created by users.  Hyperlinks used to show up automatically as black rectangles for us, and now they show up invisible. So because I have personally witnessed some change in the default behavior, I feel sure there must be a preference I can set somewhere. But it's possible that was just the switchover from standard behavior in CS4 to standard behavior in CS5.
    Any ideas?

    Sorry but no. There are no viewing preferences for the iTunes Store.

  • How to set preferences for all users?

    I'm working with a windows CITRIX server and I need to disable the 'Remember passwords for sites' preference for all the users on the server. How do you do this for any user launching firefox on the server?

    You can lock the signon.rememberSignons pref to false via the mozilla.cfg file.
    lockPref("signon.rememberSignons", false);
    You canuse a mozilla.cfg file in the Firefox program folder to lock prefs or specify new (default) values.
    Place a local-settings.js file in the defaults\pref folder where also the channel-prefs.js file is located to specify using mozilla.cfg.
    pref("general.config.filename", "mozilla.cfg");
    pref("general.config.obscure_value", 0);
    These functions can be used in the mozilla.cfg file:
    defaultPref(); // set new default value
    pref(); // set pref, allow changes in current session
    lockPref(); // lock pref, disallow changes
    See:
    *http://kb.mozillazine.org/Locking_preferences
    *http://mike.kaply.com/2012/03/16/customizing-firefox-autoconfig-files/
    *http://mike.kaply.com/2014/01/08/can-firefox-do-this/

  • Setting preferences for a book

    I can't figure out how to set the font, size, & its color for use throughout the book as I was able to do in previous versions of iPhoto. Is in possible in '11 & if so how?

    Thanks for the info. Since I already converted the library I guess I'm stuck? I do have the library, in '08 on another computer but it will require adding all the pics I've added since I installed '11. A big job but maybe worth it. Do you have any thoughts on my original question regarding the preferences for the books?

  • Starting tomcat server after setting classpath for java

    Sorry if this is nothing to do with java, it is more to do with starting tomcat server.
    Tomcat server has been working totally fine, but when I wanted to compile a java servlet I wrote for it, I needed to run a BAT file called gojava in MS-DOS that had the classpath for java to work properly. I then attempted to run Tomcat, but just got 'bad command'. As long as I don't start up java by setting the classpath, tomcat will work, but as I need java to write servlets and then to test them without restarting my PC each time, how do I get tomcat to work?
    Thanks
    Hannah

    Sounds like your batch file is changing your path, not your classpath. If you're getting "Bad command or filename" when attempting to run Tomcat, it can't find the executable. Check out the .bat file and see what it's doing (maybe even post it here for further clarity). If it's changing your path at all, make sure it includes a %path% to indicate that it simply wants to append items to the path, not overwrite it completely. Sorry if i'm way off base with my suggestions, but it sounds like that's where the problem's going to be, especially if rebooting resolves the problem.

  • Class not found Exception when accessing database through java using ASP

    I am trying to access the database through ASP via java:
    the database is setup as a system database..
    the java class works fine if i try to run it as a stand alone.. but as soon as I run it through ASP.. it does not get passed the driver line.. is there anything in particular I need to do ?
    JAVA and ASP and the output code looks like as follows:
    java code looks like this:
    import java.sql.*;
    public class testDB{
    private Connection connection;
    private Statement statement;
    public static void main(String[] args){
    public String getDriver(){
    String x = "start of program ";     
    try{
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              x = x + " Got Driver";
              connection = java.sql.DriverManager.getConnection("jdbc:odbc:database", "sunny", "jassal");
              x = x + " After connection statement";
              statement = connection.createStatement();
              x = x + " After statement statement";
              statement.execute("Insert into name (name, age) values ('hello', 33)");
              x = x + " after insert";
              connection.close();
         } catch (Exception sqlex){x = x + sqlex.getMessage() + " " ;
              x = x + sqlex.toString() + " " ;
              x = x + sqlex.getLocalizedMessage();}
    return x;
    and the asp looks like this:
    <html>
    <%
         set javaobject = GetObject("java:testDB")
         response.write "after getting object"
         response.write javaobject.getDriver()
         set javaobject = nothing
    %>
    </html>
    after getting objectstart of program sun/jdbc/odbc/JdbcOdbcDriver java.lang.ClassNotFoundException: sun/jdbc/odbc/JdbcOdbcDriver sun/jdbc/odbc/JdbcOdbcDriver

    what would I set the classpath to be .. and I am sorry I am new to this.. but how would I be able to check the CLASSPATH .. or even how do I set the CLASSPATH.. to which directory would i need to set the classpath to
    I know I can set the classpath in dos by set CLASSPATH=
    but I dont know how to set it so it would read the drivers

  • Exception   When trying to build  java schedular

    Dear Members,
    i am trying recieving exception when am executing following code
    package javaapplication1;
    import java.util.Date;
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    import org.quartz.JobDetail;
    import org.quartz.Scheduler;
    import org.quartz.SchedulerFactory;
    import org.quartz.SimpleTrigger;
    import org.quartz.TriggerUtils;
    import org.quartz.impl.StdSchedulerFactory;
    import org.apache.log4j.*;
    * This Example will demonstrate how to start and shutdown the Quartz
    * scheduler and how to schedule a job to run in Quartz.
    * @author rakesh nair
    public class Main {
    public void run() throws Exception {
    // LogFactory.
    PropertyConfigurator.configure("C:\\rakesh\\newpr\\env\\log4j.properties");
    // Log log = LogFactory.getLog(Main.class);
    // log.info("------- Initializing ----------------------");
    // First we must get a reference to a scheduler
    SchedulerFactory sf = new StdSchedulerFactory();
    Scheduler sched = sf.getScheduler();
    // log.info("------- Initialization Complete -----------");
    // log.info("------- Scheduling Jobs -------------------");
    // computer a time that is on the next round minute
    Date runTime = TriggerUtils.getEvenMinuteDate(new Date());
    // define the job and tie it to our HelloJob class
    JobDetail job = new JobDetail("job1", "group1", test.class);
    // Trigger the job to run on the next round minute
    SimpleTrigger trigger =
    new SimpleTrigger("trigger1", "group1", runTime);
    // Tell quartz to schedule the job using our trigger
    sched.scheduleJob(job, trigger);
    //log.info(job.getFullName() + " will run at: " + runTime);
    // Start up the scheduler (nothing can actually run until the
    // scheduler has been started)
    sched.start();
    //log.info("------- Started Scheduler -----------------");
    // wait long enough so that the scheduler as an opportunity to
    // run the job!
    //log.info("------- Waiting 90 seconds... -------------");
    try {
    // wait 90 seconds to show jobs
    Thread.sleep(90L * 1000L);
    // executing...
    } catch (Exception e) {
    // shut down the scheduler
    //log.info("------- Shutting Down ---------------------");
    sched.shutdown(true);
    //log.info("------- Shutdown Complete -----------------");
    public static void main(String[] args) throws Exception {
    Main example = new Main();
    example.run();
    And Exception as follows
    init:
    deps-jar:
    compile-single:
    run-single:
    log4j:ERROR Failed to excute sql
    java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getConnection(DriverManager.java:545)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at org.apache.log4j.jdbc.JDBCAppender.getConnection(JDBCAppender.java:197)
    at org.apache.log4j.jdbc.JDBCAppender.execute(JDBCAppender.java:160)
    at org.apache.log4j.jdbc.JDBCAppender.flushBuffer(JDBCAppender.java:235)
    at org.apache.log4j.jdbc.JDBCAppender.append(JDBCAppender.java:131)
    at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
    at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)
    at org.apache.log4j.Category.callAppenders(Category.java:187)
    at org.apache.log4j.Category.forcedLog(Category.java:372)
    at org.apache.log4j.Category.log(Category.java:864)
    at org.apache.commons.logging.impl.Log4JLogger.info(Log4JLogger.java:152)
    at org.quartz.simpl.SimpleThreadPool.initialize(SimpleThreadPool.java:258)
    at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:1154)
    at org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedulerFactory.java:1355)
    at javaapplication1.Main.run(Main.java:49)
    at javaapplication1.Main.main(Main.java:93)
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/collections/SetUtils
    at org.quartz.JobDetail.<init>(JobDetail.java:85)
    at javaapplication1.Main.run(Main.java:59)
    at javaapplication1.Main.main(Main.java:93)

    Don't post more than once:
    http://forum.java.sun.com/thread.jspa?threadID=5206089

Maybe you are looking for

  • Versions Set not saving in Organizer 9

    Using Organizer and PSE 9 on a Mac, about 13,000 photos in single catalog.  Had been using Versions Sets with no problem, but now the edited image is not being added to the version set.  It works okay if I do the edit in Organizer - the edited versio

  • ITunes5 won't load photo in iPod Photo

    I was forced to upgrade to iTunes5 (long AppleCare story) after a complete hard disk reformat. prior to this, I was using iLife04 with iTunes4.9 and iPod Photo30G, and all was working well. now that I have iTunes5, it won't upload photo to my iPod. I

  • StartUp Class in WLS 6.0

    Hi, I am beggining to upgrade our app from Weblogic 5.1 to 6.0. So far it has been progressing nicely and everything works with one exception. I can not get the start up classes to run. I get the following exception: <Failed to invoke startup class "

  • Issue of Speakers and SD Card not supporting.

    Recently I have bought Lenovo Yoga 2 Tab  8inch. My first great disappointment is the volume of sound that cannot be enhanced in the device to a decent level. Much smaller Samsung S4 has 100 times more prominent sound which can be heard without strai

  • HT3986 recommended size of windows partition

    What is the recommended size of the windows partition needed when installing Windows 7 on my MacBook Pro?