Create Tables on Very Furst Run of the Application

Hi,
I'm trying to create a derby(Java DB) database and its tables on the very first run of the application, but when I run second time, obviously it throws an exception of TABLE/VIEW already exists.
So, once the database and its tables are created, how do I check for the second time so that it does not try to create it again.
heres the code
            System.setProperty("derby.system.home", System.getProperty("user.dir"));
            Class.forName("org.apache.derby.jdbc.EmbeddedDriver").newInstance();
            Global.con = DriverManager.getConnection("jdbc:derby:emails;create=true");
            Statement stat = Global.con.createStatement();
            stat.executeUpdate("CREATE TABLE emails(" +
                    "email VARCHAR(100) DEFAULT ''," +
                    "category VARCHAR(80) DEFAULT ''," +
                    "status VARCHAR(30) DEFAULT ''," +
                    "website VARCHAR(100) DEFAULT ''" +
            stat.executeUpdate("INSERT INTO emails(email, status, website) VALUES('[email protected]', 'unsubscribed', 'alsharia.org')");
            ResultSet rs = stat.executeQuery("Select * from emails");
            while (rs.next()) {
                System.out.println(rs.getString("email"));
                System.out.println(rs.getString("status"));
                System.out.println(rs.getString("website"));
            }

Great. Heres the complete code with the solution.
        try {
            System.setProperty("derby.system.home", System.getProperty("user.dir"));
            Class.forName("org.apache.derby.jdbc.EmbeddedDriver").newInstance();
            Global.con = DriverManager.getConnection("jdbc:derby:emails;create=true");
            metaData = Global.con.getMetaData();
            rs = metaData.getTables(null, null, "%", null);
            while (rs.next()) {
                if (rs.getString(3).equals("EMAILS")) {
                    System.out.println("database found");
                    databaseFound = true;
            if (databaseFound == false) {
                System.out.println("creating database");
                stat = Global.con.createStatement();
                stat.executeUpdate("CREATE TABLE emails(" +
                        "email VARCHAR(100) DEFAULT ''," +
                        "category VARCHAR(80) DEFAULT ''," +
                        "status VARCHAR(30) DEFAULT ''," +
                        "website VARCHAR(100) DEFAULT ''" +
                stat.executeUpdate("INSERT INTO emails(email, category, status, website) VALUES('[email protected]', 'Education', 'subscribed', 'website.org')");
            rs = stat.executeQuery("Select * from emails");
            while (rs.next()) {
                System.out.println(rs.getString("email"));
                System.out.println(rs.getString("status"));
                System.out.println(rs.getString("website"));
        } catch (Exception e) {
            e.printStackTrace();
        }

Similar Messages

  • Vista x64, Dell Laptop Lately I have been getting audio ads from Lysol etc which I can stop by deleting the process plug-in container Iknow how to delete this process but why does the audio ad run despite the application of two well known antivirus progs?

    Vista x64, Dell Laptop Lately I have been getting audio ads from Lysol etc which I can stop by deleting the process plug-in container Iknow how to delete this process but why does the audio ad run despite the application of two well known antivirus progs?

    Oh, PLEASE IGNORE the line:
    deleted everything under HKLM\SYSTEM\CurrentControlSet\Enum\Root\SYSTEM (folders 0000 to 0004)
    That was left there inadvertedly. Can't seem to find the edit button here...

  • Creating a report subscription to run on the 5th BUSINESS day.

    I have a report that needs to send out on the 5th Business day, right now i have it running on the 5th of the month but it needs to change so that it does not send out on the weekends.  How do i schedule it to send out on the 5th business day?
    Thanks!

    We have created subscription with One-time Schedule and then created another agent job to execute on 1st working day.
    Step 2: execute below to get code that will actually be executed by SQL agent for subscription.
    SELECT
    'EXEC ReportServer.dbo.AddEvent @EventType=''TimedSubscription'', @EventData='''
    + CAST(RS.SubscriptionID AS VARCHAR(40)) + '''' AS ReportCommand
    FROM ReportServer.dbo.ReportSchedule RS JOIN msdb.dbo.sysjobs SJ
    ON Convert(varchar(500),RS.ScheduleID) = SJ.name
    JOIN ReportServer.dbo.ReportSchedule RSC
    ON SJ.name = Convert(varchar(500),RSC.ScheduleID)
    JOIN ReportServer.dbo.Subscriptions SU
    ON RSC.SubscriptionID = SU.SubscriptionID
    JOIN ReportServer.dbo.Catalog CA
    ON SU.report_oid = CA.itemid
    Join ReportServer.dbo.Users U
    on U.UserID = CA.CreatedByID
    where CA.Name like 'Test' --Add your report name here
    Step 3 : Create another SQL job  to execute daily and add below to job step
    DECLARE @Today DATE = GETDATE(), @Workingday Date
    SELECT @Workingday = CASE DATEDIFF(DAY, '19000101', theDate) % 7
    WHEN 0 THEN DATEADD(DAY, 4, theDate)
    WHEN 6 THEN DATEADD(DAY, 5, theDate)
    ELSE DATEADD(DAY, 6, theDate)
    END
    FROM (
    SELECT DATEADD(MONTH, DATEDIFF(MONTH, '19000101', @Today), '19000101')
    ) AS d(theDate)
    IF @Today = @Workingday
    BEGIN
    EXEC ReportServer.dbo.AddEvent @EventType='TimedSubscription', @EventData='A30C87A9-4AF1-43FA-978A-2AFD05215' --Add output from previous query
    END;
    Make sure you test above solution as you might have to tweak a bit to work in your environment.
    Regards,
    Vishal Patel
    Blog: http://vspatel.co.uk
    Site: http://lehrity.com

  • Can a thread created in an applet still run after the browser is closed?

    Dear all,
    I was able to make an applet's thread keep running even the web page changed to other page. Is it possible to make a thread spawned by an applet keep running even if the browser is close? I am using signed applet and JRE1.3.1_02. Thank for answer.
    [email protected]
    Arthur Pan

    No. A thread is part of a process and if the browser closes that process will (generally) be destroyed.

  • Unable to Run/Deploy the Application

    JDev 11.1.2.1.0 ADF BC
    I am unable to run my application and it gives the below log:
    *** Using HTTP port 7101 ***
    *** Using SSL port 7102 ***
    C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\bin\startWebLogic.cmd
    [waiting for the server to complete its initialization...]
    JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m  -XX:MaxPermSize=512m
    WLS Start Mode=Development
    CLASSPATH=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar;C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_jdev1112\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JDK160~1\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.5.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrf.jar;D:\Sahar Hassan\sqljdbc4.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar
    PATH=C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\native;C:\Oracle\MIDDLE~1\patch_jdev1112\profiles\default\native;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1\bin;C:\Oracle\MIDDLE~1\JDK160~1\jre\bin;C:\Oracle\MIDDLE~1\JDK160~1\bin;D:\oracle\product\10.2.0\db_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8
    *  To start WebLogic Server, use a username and   *
    *  password assigned to an admin-level user.  For *
    *  server administration, use the WebLogic Server *
    *  console at http:\\hostname:port\console        *
    starting weblogic with Java version:
    java version "1.6.0_24"
    Java(TM) SE Runtime Environment (build 1.6.0_24-b50)
    Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode)
    Starting WLS with line:
    C:\Oracle\MIDDLE~1\JDK160~1\bin\java -client   -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m  -XX:MaxPermSize=512m -Dweblogic.Name=DefaultServer -Djava.security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy -Djavax.net.ssl.trustStore=C:\Users\ADMINI~1\AppData\Local\Temp\trustStore4013408576188156013.jks -Doracle.jdeveloper.adrs=true -Dweblogic.nodemanager.ServiceEnabled=true  -Xverify:none  -da -Dplatform.home=C:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server  -Djps.app.credential.overwrite.allowed=true -Dcommon.components.home=C:\Oracle\MIDDLE~1\ORACLE~1 -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Ddomain.home=C:\Users\ADMINI~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1 -Djrockit.optfile=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.server.config.dir=C:\Users\ADMINI~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\config\FMWCON~1\servers\DefaultServer -Doracle.domain.config.dir=C:\Users\ADMINI~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\config\FMWCON~1  -Digf.arisidbeans.carmlloc=C:\Users\ADMINI~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\config\FMWCON~1\carml  -Digf.arisidstack.home=C:\Users\ADMINI~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\config\FMWCON~1\arisidprovider -Doracle.security.jps.config=C:\Users\ADMINI~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\config\fmwconfig\jps-config.xml -Doracle.deployed.app.dir=C:\Users\ADMINI~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\servers\DefaultServer\tmp\_WL_user -Doracle.deployed.app.ext=\- -Dweblogic.alternateTypesDirectory=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.ossoiap_11.1.1,C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.oamprovider_11.1.1 -Djava.protocol.handler.pkgs=oracle.mds.net.protocol  -Dweblogic.jdbc.remoteEnabled=false -Dwsm.repository.path=C:\Users\ADMINI~1\AppData\Roaming\JDEVEL~1\SYSTEM~1.81\DEFAUL~1\oracle\store\gmds   -Dweblogic.management.discover=true  -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_jdev1112\profiles\default\sysext_manifest_classpath  weblogic.Server
    <Jun 19, 2012 4:43:24 PM IST> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
    <Jun 19, 2012 4:43:24 PM IST> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
    <Jun 19, 2012 4:43:24 PM IST> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
    C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\lib\sqljdbc4.jar>
    <Jun 19, 2012 4:43:25 PM IST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 19.1-b02 from Sun Microsystems Inc.>
    <Jun 19, 2012 4:43:27 PM IST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.5.0  Fri Apr 1 20:20:06 PDT 2011 1398638 >
    <Jun 19, 2012 4:43:27 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Jun 19, 2012 4:43:27 PM IST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    <Jun 19, 2012 4:43:27 PM IST> <Notice> <LoggingService> <BEA-320400> <The log file C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <Jun 19, 2012 4:43:27 PM IST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log00019. Log messages will continue to be logged in C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log.>
    <Jun 19, 2012 4:43:27 PM IST> <Notice> <Log Management> <BEA-170019> <The server log file C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log is opened. All server side log events will be written to this file.>
    <Jun 19, 2012 4:43:31 PM IST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <MessageLocalizationHelper> <getLocalizedMessage> The resource for bundle "oracle.jrf.i18n.MBeanMessageBundle" with key "oracle.jrf.JRFServiceMBean.checkIfJRFAppliedOnMutipleTargets" cannot be found.
    <Jun 19, 2012 4:43:36 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <Jun 19, 2012 4:43:36 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <CodebasePolicyHandler> <migrateDeploymentPolicies> Migration of codebase policy failed. Reason: oracle.security.jps.JpsException: java.lang.reflect.InvocationTargetException.
    <AppPolicyHandler> <migrateAppPolicies> Migration of application policy failed. Reason: oracle.security.jps.JpsException: java.lang.reflect.InvocationTargetException.
    <CodebasePolicyHandler> <migrateDeploymentPolicies> Migration of codebase policy failed. Reason: oracle.security.jps.JpsException: java.lang.reflect.InvocationTargetException.
    <AppPolicyHandler> <migrateAppPolicies> Migration of application policy failed. Reason: oracle.security.jps.JpsException: java.lang.reflect.InvocationTargetException.
    <WSEE:12>com.bea.core.repackaged.springframework.beans.factory.BeanCreationException: Error creating bean with name 'weblogic.wsee.jaxws.client.async.AsyncTransportProvider': Instantiation of bean failed; nested exception is com.bea.core.repackaged.springframework.beans.BeanInstantiationException: Could not instantiate bean class [weblogic.wsee.jaxws.client.async.AsyncTransportProvider]: No default constructor found; nested exception is java.lang.NoSuchMethodException: weblogic.wsee.jaxws.client.async.AsyncTransportProvider.<init>()<WSEEComponentContributor.loadUsingSpring:83>
    <Jun 19, 2012 4:44:26 PM IST> <Error> <HTTP> <BEA-101216> <Servlet: "weblogic.wsee.jaxws.client.async.AsyncTransportProvider" failed to preload on startup in Web application: "SugarCRM-ViewController-context-root".
    javax.xml.ws.WebServiceException: javax.xml.ws.WebServiceException: java.lang.InstantiationException: weblogic.wsee.jaxws.client.async.AsyncTransportProvider
         at weblogic.wsee.jaxws.WLSInstanceResolver.getSingleton(WLSInstanceResolver.java:36)
         at weblogic.wsee.jaxws.WLSInstanceResolver.start(WLSInstanceResolver.java:55)
         at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.start(WLSInstanceResolver.java:82)
         at com.sun.xml.ws.server.InvokerTube.setEndpoint(InvokerTube.java:85)
         at weblogic.wsee.jaxws.EndpointAwareLateInitTube.postCreateEndpoint(EndpointAwareLateInitTube.java:48)
         Truncated. see log file for complete stacktrace
    Caused By: javax.xml.ws.WebServiceException: java.lang.InstantiationException: weblogic.wsee.jaxws.client.async.AsyncTransportProvider
         at weblogic.wsee.jaxws.WLSServletInstanceResolver.create(WLSServletInstanceResolver.java:37)
         at weblogic.wsee.jaxws.WLSInstanceResolver.getSingleton(WLSInstanceResolver.java:34)
         at weblogic.wsee.jaxws.WLSInstanceResolver.start(WLSInstanceResolver.java:55)
         at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.start(WLSInstanceResolver.java:82)
         at com.sun.xml.ws.server.InvokerTube.setEndpoint(InvokerTube.java:85)
         Truncated. see log file for complete stacktrace
    Caused By: java.lang.InstantiationException: weblogic.wsee.jaxws.client.async.AsyncTransportProvider
         at java.lang.Class.newInstance0(Class.java:340)
         at java.lang.Class.newInstance(Class.java:308)
         at weblogic.wsee.jaxws.injection.WSEEComponentContributor.newInstance(WSEEComponentContributor.java:54)
         at weblogic.wsee.jaxws.injection.WSEEComponentContributor.newInstance(WSEEComponentContributor.java:42)
         at weblogic.wsee.jaxws.WLSServletInstanceResolver.create(WLSServletInstanceResolver.java:35)
         Truncated. see log file for complete stacktrace
    >
    <Jun 19, 2012 4:44:26 PM IST> <Error> <Deployer> <BEA-149231> <Unable to set the activation state to true for the application 'SugarCRM'.
    weblogic.application.ModuleException: [HTTP:101216]Servlet: "weblogic.wsee.jaxws.client.async.AsyncTransportProvider" failed to preload on startup in Web application: "SugarCRM-ViewController-context-root".
    javax.xml.ws.WebServiceException: javax.xml.ws.WebServiceException: java.lang.InstantiationException: weblogic.wsee.jaxws.client.async.AsyncTransportProvider
         at weblogic.wsee.jaxws.WLSInstanceResolver.getSingleton(WLSInstanceResolver.java:36)
         at weblogic.wsee.jaxws.WLSInstanceResolver.start(WLSInstanceResolver.java:55)
         at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.start(WLSInstanceResolver.java:82)
         at com.sun.xml.ws.server.InvokerTube.setEndpoint(InvokerTube.java:85)
         at weblogic.wsee.jaxws.EndpointAwareLateInitTube.postCreateEndpoint(EndpointAwareLateInitTube.java:48)
         at weblogic.wsee.jaxws.JAXWSServlet.registerEndpoint(JAXWSServlet.java:150)
         at weblogic.wsee.jaxws.JAXWSServlet.init(JAXWSServlet.java:64)
         at weblogic.wsee.jaxws.JAXWSDeployedServlet.init(JAXWSDeployedServlet.java:54)
         at javax.servlet.GenericServlet.init(GenericServlet.java:241)
         at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
         at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
         at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
         at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539)
         at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1985)
         at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1959)
         at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1878)
         at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
         at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
         at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
         at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
         at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
         at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58)
         at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
         at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
         at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
         at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
         at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
         at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
         at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
         at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
         at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
         at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
         at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: javax.xml.ws.WebServiceException: java.lang.InstantiationException: weblogic.wsee.jaxws.client.async.AsyncTransportProvider
         at weblogic.wsee.jaxws.WLSServletInstanceResolver.create(WLSServletInstanceResolver.java:37)
         at weblogic.wsee.jaxws.WLSInstanceResolver.getSingleton(WLSInstanceResolver.java:34)
         ... 49 more
    Caused by: java.lang.InstantiationException: weblogic.wsee.jaxws.client.async.AsyncTransportProvider
         at java.lang.Class.newInstance0(Class.java:340)
         at java.lang.Class.newInstance(Class.java:308)
         at weblogic.wsee.jaxws.injection.WSEEComponentContributor.newInstance(WSEEComponentContributor.java:54)
         at weblogic.wsee.jaxws.injection.WSEEComponentContributor.newInstance(WSEEComponentContributor.java:42)
         at weblogic.wsee.jaxws.WLSServletInstanceResolver.create(WLSServletInstanceResolver.java:35)
         ... 50 more
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1510)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
         Truncated. see log file for complete stacktrace
    Caused By: java.lang.InstantiationException: weblogic.wsee.jaxws.client.async.AsyncTransportProvider
         at java.lang.Class.newInstance0(Class.java:340)
         at java.lang.Class.newInstance(Class.java:308)
         at weblogic.wsee.jaxws.injection.WSEEComponentContributor.newInstance(WSEEComponentContributor.java:54)
         at weblogic.wsee.jaxws.injection.WSEEComponentContributor.newInstance(WSEEComponentContributor.java:42)
         at weblogic.wsee.jaxws.WLSServletInstanceResolver.create(WLSServletInstanceResolver.java:35)
         Truncated. see log file for complete stacktrace
    >
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <LoggingService> <BEA-320400> <The log file C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log00019. Log messages will continue to be logged in C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Security> <BEA-090171> <Loading the identity certificate and private key stored under the alias DemoIdentity from the jks keystore file C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\DemoIdentity.jks.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\DemoTrust.jks.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file C:\Oracle\MIDDLE~1\JDK160~1\jre\lib\security\cacerts.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=Entrust Root Certification Authority - G2,OU=(c) 2009 Entrust\, Inc. - for authorized use only,OU=See www.entrust.net/legal-terms,O=Entrust\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=thawte Primary Root CA - G3,OU=(c) 2008 thawte\, Inc. - For authorized use only,OU=Certification Services Division,O=thawte\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=T-TeleSec GlobalRoot Class 3,OU=T-Systems Trust Center,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=T-TeleSec GlobalRoot Class 2,OU=T-Systems Trust Center,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=GlobalSign,O=GlobalSign,OU=GlobalSign Root CA - R3". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "OU=Security Communication RootCA2,O=SECOM Trust Systems CO.\,LTD.,C=JP". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=VeriSign Universal Root Certification Authority,OU=(c) 2008 VeriSign\, Inc. - For authorized use only,OU=VeriSign Trust Network,O=VeriSign\, Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=KEYNECTIS ROOT CA,OU=ROOT,O=KEYNECTIS,C=FR". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=GeoTrust Primary Certification Authority - G3,OU=(c) 2008 GeoTrust Inc. - For authorized use only,O=GeoTrust Inc.,C=US". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Server> <BEA-002613> <Channel "Default[6]" is now listening on 0:0:0:0:0:0:0:1:7101 for protocols iiop, t3, ldap, snmp, http.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure[5]" is now listening on 127.0.0.1:7102 for protocols iiops, t3s, ldaps, https.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure[6]" is now listening on 0:0:0:0:0:0:0:1:7102 for protocols iiops, t3s, ldaps, https.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Server> <BEA-002613> <Channel "Default[5]" is now listening on 127.0.0.1:7101 for protocols iiop, t3, ldap, snmp, http.>
    <Jun 19, 2012 4:44:33 PM IST> <Warning> <Server> <BEA-002611> <Hostname "path-mumbai7", maps to multiple IP addresses: 192.168.1.20, fe80:0:0:0:8ceb:756:d0e1:6176%11, fe80:0:0:0:3401:2477:3f57:feeb%13, 2001:0:5ef5:79fb:3401:2477:3f57:feeb>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on fe80:0:0:0:3401:2477:3f57:feeb:7101 for protocols iiop, t3, ldap, snmp, http.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure[1]" is now listening on 192.168.1.20:7102 for protocols iiops, t3s, ldaps, https.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Server> <BEA-002613> <Channel "Default[3]" is now listening on fe80:0:0:0:0:5efe:c0a8:114:7101 for protocols iiop, t3, ldap, snmp, http.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure[2]" is now listening on fe80:0:0:0:3401:2477:3f57:feeb:7102 for protocols iiops, t3s, ldaps, https.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 192.168.1.20:7101 for protocols iiop, t3, ldap, snmp, http.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure[4]" is now listening on fe80:0:0:0:8ceb:756:d0e1:6176:7102 for protocols iiops, t3s, ldaps, https.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Server> <BEA-002613> <Channel "Default[4]" is now listening on fe80:0:0:0:8ceb:756:d0e1:6176:7101 for protocols iiop, t3, ldap, snmp, http.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 2001:0:5ef5:79fb:3401:2477:3f57:feeb:7101 for protocols iiop, t3, ldap, snmp, http.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure" is now listening on 2001:0:5ef5:79fb:3401:2477:3f57:feeb:7102 for protocols iiops, t3s, ldaps, https.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure[3]" is now listening on fe80:0:0:0:0:5efe:c0a8:114:7102 for protocols iiops, t3s, ldaps, https.>
    <Jun 19, 2012 4:44:33 PM IST> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "DefaultServer" for domain "DefaultDomain" running in Development Mode>
    <Jun 19, 2012 4:44:34 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <Jun 19, 2012 4:44:34 PM IST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    IntegratedWebLogicServer startup time: 98161 ms.
    IntegratedWebLogicServer started.
    [Running application SugarCRM on Server Instance IntegratedWebLogicServer...]
    [04:44:34 PM] **** Warning: Application SugarCRM may have been left deployed on the server.  Undeploy it from the admin console.
    [04:44:34 PM] Web Module ViewControllerWebApp.war recognized in project ViewController.jpr
    [04:44:34 PM] ----  Deployment started.  ----
    [04:44:34 PM] Target platform is  (Weblogic 10.3).
    [04:44:35 PM] Retrieving existing application information
    [04:44:35 PM] Running dependency analysis...
    [04:44:35 PM] Deploying 2 profiles...
    [04:44:35 PM] Wrote Web Application Module to C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\o.j2ee\drs\SugarCRM\ViewControllerWebApp.war
    [04:44:36 PM] Wrote Enterprise Application Module to C:\Users\Administrator\AppData\Roaming\JDeveloper\system11.1.2.1.38.60.81\o.j2ee\drs\SugarCRM
    [04:44:36 PM] Redeploying Application...
    <CodebasePolicyHandler> <migrateDeploymentPolicies> Migration of codebase policy failed. Reason: oracle.security.jps.JpsException: java.lang.reflect.InvocationTargetException.
    <AppPolicyHandler> <migrateAppPolicies> Migration of application policy failed. Reason: oracle.security.jps.JpsException: java.lang.reflect.InvocationTargetException.
    <Jun 19, 2012 4:44:37 PM IST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1340104476670' for task '0'. Error is: 'weblogic.application.ModuleException: Context path '/SugarCRM-ViewController-context-root' is already in use by the module: SugarCRM-ViewController-context-root application: SugarCRM_Project1_SugarCRM'
    weblogic.application.ModuleException: Context path '/SugarCRM-ViewController-context-root' is already in use by the module: SugarCRM-ViewController-context-root application: SugarCRM_Project1_SugarCRM
         at weblogic.servlet.internal.WebAppModule.initAndValidateContextPath(WebAppModule.java:1210)
         at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:970)
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:382)
         at weblogic.servlet.internal.WebAppModule.activate(WebAppModule.java:433)
         at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleStateDriver.java:375)
         Truncated. see log file for complete stacktrace
    >
    <Jun 19, 2012 4:44:37 PM IST> <Error> <Deployer> <BEA-149202> <Encountered an exception while attempting to commit the 1 task for the application 'SugarCRM'.>
    <Jun 19, 2012 4:44:37 PM IST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'SugarCRM'.>
    <Jun 19, 2012 4:44:37 PM IST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException: Context path '/SugarCRM-ViewController-context-root' is already in use by the module: SugarCRM-ViewController-context-root application: SugarCRM_Project1_SugarCRM
         at weblogic.servlet.internal.WebAppModule.initAndValidateContextPath(WebAppModule.java:1210)
         at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:970)
         at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:382)
         at weblogic.servlet.internal.WebAppModule.activate(WebAppModule.java:433)
         at weblogic.application.internal.flow.ModuleStateDriver$2.next(ModuleStateDriver.java:375)
         Truncated. see log file for complete stacktrace
    >
    [04:44:37 PM] Deployment cancelled.
    [04:44:37 PM] ----  Deployment incomplete  ----.
    [04:44:37 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
    #### Cannot run application SugarCRM due to error deploying to IntegratedWebLogicServer.
    [Application SugarCRM stopped and undeployed from Server Instance IntegratedWebLogicServer]

    Context path '/SugarCRM-ViewController-context-root' is already in use by the module: SugarCRM-ViewController-context-root application: SugarCRM_Project1_SugarCRMLooks like the application (or another application which uses same context root) is already deployed to the server and could not be undeployed.
    Can you invoke the WLS console, navigate the deployment and undeploy it, then try deploying from JDev and see if it works fine?
    -Arun

  • Creating an index of all pages in the application?

    Is there anyway I can create a page in my app that displays a dynamic index (list) of all pages in the application? Sort of like a table of contents that automatically updates if I create a new page?
    Thanks!
    BoilerUP

    BoilerUp,
    The page comment is the last region on the page definition page. Just select a page, click the icon to edit and then click the Comments 'button' on the far right and it will focus you on that region.
    As to why it is not working, what version of APEX are you using? There have been some changes to the views from their debut in 2.2 to 3.0. You should perfect your query using SQL Commands in the SQL Workshop and then can paste it into a report region. If you are using 3.0, you can also use the APEX Views utility under the Utilities tab.
    -- Sharon

  • Create Project Web App Site - Failed - see the Application event Log

    Hi, we have installed MS Project Server 2010 on our LAB SharePoint 2010 Server (Single Server and SQL Server Database).
    My farm admin account have all server roles in SQL, it is runng the OWSTimer also and it is the AppPool Service App.
    No specific error in the Application log from eventvwr on SharePoint Server.
    No specific error log from SQL
    This is the log information from SharePoint ULS :
    04/09/2015 10:56:47.01 OWSTIMER.EXE (0x1464) 0x0728 Project Server Provisioning 6935 Critical Error provisioning database. Script: C:\Program Files\Microsoft Office Servers\14.0\Sql\Project Server\Core\addpublishsps12.sql,
    Line: 0, Error: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote
    connections. (provider: TCP Provider, error: 0 - An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.), Line: grant execute on dbo.MSP_RESTORE_WEB_SECURITY_SP_CAT_PERMISSIONS to ProjectServerRole
    . 5141bd37-50f2-495c-bcd6-d0804f08e3f0
    04/09/2015 10:56:47.01 OWSTIMER.EXE (0x1464) 0x0728 Project Server Provisioning 6580 Critical Failed to provision database LAV-SP2010LAB-SQL.ProjectServer_Published as Published because of exception grant execute on dbo.MSP_RESTORE_WEB_SECURITY_SP_CAT_PERMISSIONS
    to ProjectServerRole . 5141bd37-50f2-495c-bcd6-d0804f08e3f0
    04/09/2015 10:56:47.01 OWSTIMER.EXE (0x1464) 0x0728 Project Server Provisioning 6993 Critical Provisioning 'PWA': Failed to provision databases. An exception occurred: grant execute on dbo.MSP_RESTORE_WEB_SECURITY_SP_CAT_PERMISSIONS
    to ProjectServerRole . 5141bd37-50f2-495c-bcd6-d0804f08e3f0
    04/09/2015 10:56:47.01 OWSTIMER.EXE (0x1464) 0x0728 Project Server Provisioning 6958 Critical Provisioning 'PWA': Database provisioning failed. 5141bd37-50f2-495c-bcd6-d0804f08e3f0
    04/09/2015 10:56:47.01 OWSTIMER.EXE (0x1464) 0x0728 Project Server Provisioning 6971 Critical Failed to provision site PWA with error: Microsoft.Office.Project.Server.Administration.ProvisionException: Failed to provision
    databases. ---> Microsoft.Office.Project.Server.Administration.ProvisionException: grant execute on dbo.MSP_RESTORE_WEB_SECURITY_SP_CAT_PERMISSIONS to ProjectServerRole  ---> System.Data.SqlClient.SqlException: A network-related or instance-specific
    error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - An operation
    on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.)     at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)    
    at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)     at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire,
    Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject)     at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout,
    Int64 timerExpire, SqlConnection owningObject)     at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions,
    Int64 timerStart)     at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)     at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity
    identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)     at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions
    options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)     at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)    
    at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)     at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)    
    at System.Data.SqlClient.SqlConnection.Open()     at Microsoft.Office.Project.Server.Data.SqlSession.OpenConnection()     at Microsoft.Office.Project.Server.Data.SqlSession.ExecuteNonQuery(SqlCommand command)    
    at Microsoft.Office.Project.Server.Administration.ProjectDatabase.ExecuteScript(SqlSession session, TextReader textReader, Int32 commandTimeout)     --- End of inner exception stack trace ---     at Microsoft.Office.Project.Server.Administration.ProjectDatabase.ExecuteScript(SqlSession
    session, TextReader textReader, Int32 commandTimeout)     at Microsoft.Office.Project.Server.Administration.ProjectDatabase.ExecuteScript(SqlSession session, String path, Int32 commandTimeout)     at Microsoft.Office.Project.Server.Administration.ProjectDatabase.Provision(ProjectDatabaseType
    databaseType, PjSqlConnectionString databaseConnectString, String installpath, Int32 lcid)     at Microsoft.Office.Project.Server.Administration.ProjectDatabase.Provision(PjSqlConnectionString databaseConnectString, Int32 lcid, ProjectDatabaseType
    databaseType, Guid collectionGuid)     at Microsoft.Office.Project.Server.Administration.ProjectSite.ProvisionDatabases(String pubConn, String wrkConn, String verConn, String repConn, String adminUsername, String adminName, String adminEmail,
    Int32 lcid, Guid collectionGuid)     at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.EnsureDatabases(ProjectProvisionSettings provset, SPSite pwaSite, String adminName, String adminEmail, ProjectDatabaseStateType&
    originalDatabaseState, Guid& adminGuid)     --- End of inner exception stack trace ---     at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.EnsureDatabases(ProjectProvisionSettings provset,
    SPSite pwaSite, String adminName, String adminEmail, ProjectDatabaseStateType& originalDatabaseState, Guid& adminGuid)     at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.CreateSite(ProjectProvisionSettings
    provset) 5141bd37-50f2-495c-bcd6-d0804f08e3f0
    Social Technet Microsoft.

    We have found the problem. The organisation was asking us to reduce the number of Dynamic TCP Port.
    Our setup was only 3,975
    Netsh Int IPv4 Show Dyn TCP
    Protocol tcp Dynamic Port Range
    Start Port      : 1025
    Number of Ports : 3975
    We have use this command to raise the number of port available to 60,000
    netsh int ipv4 set dyn tcp start=1025 num=60000
    Everything is working now.
    Social Technet Microsoft.

  • Creating tables on SQL studio and viewing the table in the SAP system

    i have just created a table using the SQL studio and wants to use it view it in the SAP system using the SAP logon. till now i have not found a way to create it therefore any help is much appreciated.

    Hmm... you want to see tables via SAPLogon ??
    Ok, let's assume you really want to access tables via ABAP instead.
    For that you've two options:
    1. Create the table in the ABAP dictonary (SE11) exactly like you created it in the database and activate the table.
    After that you can access the table via SE16 or any ABAP as you like.
    2. You don't create the table in the ABAP dictonary and use native SQL to access the data.
    Neither of these options is meant to be the way to do it.
    The correct way would be to design the whole table in the ABAP dictionary and create the table on the database from that.
    regards,
    Lars

  • Creating table at runtime w/o knowing the structure

    Hi,
    I have searched high and far to find a solution for my needs, but have not come across anything. Hopefully, the knowledge here is greater than my searching skills
    In an ABAP called during Dynamic Actions I have the need for storing data retrieved from the Call Stack via an ASSIGN command:
    DATA: gv_ps_ref TYPE char50 VALUE '(SAPFP50P)PS[]'.
    FIELD-SYMBOLS: <gt_ps_table> TYPE STANDARD TABLE.
    ASSIGN (gv_ps_ref) TO <gt_ps_table>.
    The ASSIGN part works beautifully - in debugging I now have access to the data in the PS table. But I need to store the data locally, as PS gets refreshed by this, which then also refreshes my <GT_PS_TABLE>:
    PERFORM initialize_ps(sapfp50p).
    The thing is, I need the data for later use, so I want to separate the link and create a local copy.
    This code (most of it copied from other solutions here on SDN) works fine, but notice that the DESCRIBE_BY_DATA method is called with the GS_DATA structure. This means that the TYPE of the table that I want to create dynamically is known.
    DATA: BEGIN OF gt_data OCCURS 5,
            char   TYPE text5,
            numc   TYPE numc5,
            dec    TYPE pad_amt7s,
          END OF gt_data.
    DATA: gs_data LIKE LINE OF gt_data.
    DATA: go_struct   TYPE REF TO cl_abap_structdescr,
          go_new_type TYPE REF TO cl_abap_structdescr,
          go_new_tab  TYPE REF TO cl_abap_tabledescr,
          gt_comp     TYPE cl_abap_structdescr=>component_table,
          go_data     TYPE REF TO data.
    FIELD-SYMBOLS: <fs_any> TYPE ANY TABLE.
    go_struct  ?= cl_abap_typedescr=>describe_by_data( gs_data ).    "see alternate reference below, i.e. my need
    gt_comp     = go_struct->get_components( ).
    go_new_type = cl_abap_structdescr=>create( gt_comp ).
    go_new_tab  = cl_abap_tabledescr=>create(
                         p_line_type  = go_new_type
                         p_table_kind = cl_abap_tabledescr=>tablekind_std
                         p_unique     = abap_false ).
    CREATE DATA go_data TYPE HANDLE go_new_tab.
    ASSIGN go_data->* TO <fs_any>.
    <fs_any> = gt_data[].
    As indicated, having only a reference to the PS table (<GT_PS_TABLE>) is not enough, I want to create a copy of PS locally, without knowing how it is declared in FP50PPSB (partly via a structure, partly via separate fields), as this will make my coding insensitive to any change in the structure.
    This is my visualization of what I want to do, or the likes - I believe you get the idea. But is it possible?
    go_struct ?= cl_abap_typedescr=>describe_by_data( <gt_ps_table> ).
    The syntax checker allows for this, but it dumps at runtime

    Hi,
    besides that your posting is allmost unreadable (try preview before posting), your basic idea is correct. You just overdid it a bit.
    Just try something like this
      data: a_descr TYPE REF TO CL_ABAP_TYPEDESCR.
      FIELD-SYMBOLS: <val> type any.
         a_descr = cl_abap_datadescr=>describe_by_data( p_data =  st_val ).
        CREATE DATA me->d_ref type (a_descr->ABSOLUTE_NAME).
        assign me->d_ref->* to <val>.
        <val> = st_val.
    this should work fine with all types of data, structures or tables.
    Regards
    Jörg

  • How to create table with rows and columns in the layout mode?

    One of my friends advised me to develop my whole site on the
    layout mode as its better than the standard as he says
    but I couldnot make an ordinary table with rows and columns
    in th layout mode
    is there any one who can tell me how to?
    thanx alot

    Your friend is obviously not a reliable source of HTML
    information.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Mr.Ghost" <[email protected]> wrote in
    message
    news:f060vi$npp$[email protected]..
    > One of my friends advised me to develop my whole site on
    the layout mode
    > as its
    > better than the standard as he says
    > but I couldnot make an ordinary table with rows and
    columns in th layout
    > mode
    > is there any one who can tell me how to?
    > thanx alot
    >

  • I've just bought a 2nd hand iMac running 10.7.5 but I can't get my HP Laserjet 2200DN up and running. The Applications Printers doesn't have an HP driver

    I've just bought a reconditioned iMac running OSX 10.7.5 but I can't get my HP Laserjet 2200DN printer up and running. I used a Firewire cable to transfer all my stuff over to the iMac from a Power PC G5. However, the printer driver disappeared. The Print & Scan pane in System Preferences is now empty and when I press the + to add a printer the Add Printer pane has nothing in it either. Apple says os 10.7.5 already has printer software installled, but not on my iMac. It says in its list of compatible printers that it supports HP Laserjet 2200 (is absence of the 'DN' suffx siginifcant?) Apple also says to use Software Update to check if software is needed. Manual downloading from Apple, who say they've taken over from HP for this software doesnt' work either - I get a two-part download, one file is an unopenable '.dmg' document and the other is a '.dmg.part' document, similarly unopenable. I'm completely stumped. The HP Laserjet 2200DN is an excellent printer that serves all my needs but I'm beginning to think it may be too old for the iMac, but I sincerely hope not. Anybody out there with workable advice about how to solve this issue? I'd love to hear from you.
    Alex Carr

    Firstly, in Safari you will find a button on the right side of the toolbar: note the downward pointing arrow. If you click on that you will get the download progress bar.
    I don't know what may be the problem with getting the driver working. I suggest you open Print & Scan preferences. CTRL- or RIGHT-click anywhere in the blank Printers list and click on the "Reset printing system" item in the context menu.
    Assuming you have installed the printer drivers you downloaded by running the installer that appears after you mount the .dmg file, click on the Add [+] button to Add a printer. A window should open with your printer listed, hopefully (the printer must be turned on and already connected to the computer. Do a direct connection while getting this configuration set up.) Select the printer. Now, if the driver model name does not appear in the "Use:" dropdown menu, you will need to look for it in the list of available drivers. Once found, select it, then click on the Add button.

  • Anything i create in flash professional wont work outside the application,

    i have created my first flash file at home and i have published it and imported it into dreamweaver, i try to preview it into a browesr and i get the error massage
    Adobe® Flash® Player has stopped a potentially unsafe operation. The following local application on your computer or network:
    /Users/greenjacket1985/Desktop/Cerberus Web Design/Scripts/expressInstall.swf
    is trying to communicate with this Internet-enabled location:
    fpdownload.macromedia.com
    To let this application communicate with the Internet, click Settings.
    You must restart this application after changing your settings.
    now i ave tried everything, every button in the settings.
    my flash player works with other FLA files that ther people have produced but not mine, can anyone help?
    thx

    Yeah it's just the Flash Global Security Settings Manager that you need to deal with. It allows you to give Internet access from your application to the Internet when working in "Local" environment. Does not come into play at all once uploaded to server.
    So tet locally and deal with Settings Manager or just upload and test on line. But review the documentation here:
    http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.htm l
    Best wishes,
    Adninjastrator

  • Formatting value in the dynamically created table

    Hi,
    I have created table dynamically.
    In that, if the columns going to be number datatype,
    <af:convertNumber pattern="##########"/> , i want to apply this pattern,
    if the column going to be date,
    <af:convertDateTime pattern="DD/mm/yyyy" /> , i want to apply this pattern.
    Code Snippet for dynamically created UI table,
    <af:table rows="#{bindings.DynamicVO.rangeSize}"
    fetchSize="#{bindings.DynamicVO.rangeSize}"
    emptyText="#{bindings.DynamicVO.viewable ? 'No data to display.' : 'Access Denied.'}"
    var="row" rowBandingInterval="0"
    value="#{bindings.DynamicVO.collectionModel}"
    selectedRowKeys="#{bindings.DynamicVO.collectionModel.selectedRow}"
    selectionListener="#{bindings.DynamicVO.collectionModel.makeCurrent}"
    rowSelection="single" id="t1">
    <af:forEach items="#{bindings.DynamicVOIterator.attributeDefs}" var="def">
    <af:column headerText="#{def.name}" sortable="true" rendered="#{def.hints.displayHint!='Hide'}"
    sortProperty="#{def.name}" id="hisc1">
    <af:outputText value="#{row[def.name]}" id="othis1">
    </af:outputText>
    </af:column>
    </af:forEach>
    </af:table>
    How to apply the pattern for the ouput text dynammically depending on the data type.
    My Jdeveloper version is 11.1.1.3.0
    Reg,
    vini

    Any help on the above scenario?

  • Question on Creating table from another table and copying the partition str

    Dear All,
    I want to know whether is there any way where we can create a table using another table and have the partitions of the new table to be exactly like the used table.
    Like
    CREATE TABLE TEST AS SELECT * FROM TEMP;
    The table TEMP is having range and hash partitions.
    Is there any way when we use the above command, we get the table partitions of TEMP to be copied to the new table TEST.
    Appreciate your suggestions on this one.
    Thanks,
    Madhu K.

    may this answer your question...
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:595568200346856483
    Ravi Kumar

  • EXEC SQL & CREATE TABLE

    Hi,
    I am trying to create table using EXEC SQL. But, the table that I had created using EXEC SQL is not shown in data dictionary. I can not see that table from SE11. If I run the same program again, then gives error about there is already a table that I want to create. So, How can see it? Is seeing that table possible?
    EXEC SQL.
    CREATE TABLE ZCOPYTABLE(
    NAME CHAR(15) NOT NULL,
    SURNAME CHAR(15) NOT NULL,
    TEL CHAR(10) NOT NULL,
    PRIMARY KEY (NAME, SURNAME)
    ENDEXEC.

    Hello Huseyin,
    I don't think you can use the Native SQL statements for DDL (data definition language) statements in SQL.
    The reason is that the Native SQL statements by-pass the SAP Application Server and are executed directly at the Database Server. You will find more information on the SAP Online Help Documentation site.
    Since the ABAP Dictionary is very much an application, it fails to recognize the tables which were not created through it.
    The DDL statements in Native SQL are only for advanced database adminstration tasks.
    Hope this helps.
    Regards,
    Anand Mandalika.

Maybe you are looking for

  • Not accepting serial number after reinstall

    I am working with CS3 - Design Suite. I recently installed a CS4, in addition, to check out some of the new features. (It was installed from a friend's disk, but was already active on 2 computers - so I was just testing for 30 days). Once the 30 days

  • Problem in activating substitution in workflow,

    Hi Friends I've maintained my substitute from sbwp. whenever i'm getting a workitem ,a similar copy is being receiped by my substitute. But actually I want that only my substitute will get the workitems, not me for the time period mentioned in substi

  • Compiling interfaces

    Hi, I have an interface Compute.java package compute; import java.rmi.Remote; import java.rmi.RemoteException; public interface Compute extends Remote { Object executeTask(Task t) throws RemoteException; Also there is one more interface in the same p

  • Essbase-behind-the-firewall problem

    The essbase server (6.2) is behind the firewall. All the needed ports are open (according to support recomendations). I can log on, start and use the first application, but after i start the second one (no matter which) and try to save the outline or

  • Retrieve server msg from procedures located on other servers

    all works fine executing this: set serveroutput on; execute dbms_java.set_output(20000); execute JProg_Caller; Output Created By JProg_Caller: JProg_Caller's Message but when I am NOT Connected to the server where JProg_Caller is located on: executin