Database and page Load Issue

Well recently I needed to change the database tables and had to remove one table within the databse. Using MySQL 5
After I cleaned up all traces of information related to the table which was removed I decided to deploy and try out the application. When I try to enter one of the pages I get this error:
java.lang.RuntimeException: java.sql.SQLException: Error in allocating a connection. Cause: The connection is not valid as querying the table roles failed: Table 'database.table' doesn't exist
And here is the stack trace that came with the error:
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(AccessController.java:-2)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
java.security.AccessController.doPrivileged(AccessController.java:-2)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723)
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:482)
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:417)
org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:80)
org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:95)
java.security.AccessController.doPrivileged(AccessController.java:-2)
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:313)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:311)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(AccessController.java:-2)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
java.security.AccessController.doPrivileged(AccessController.java:-2)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
java.security.AccessController.doPrivileged(AccessController.java:-2)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)
The problem is I can't find any traces of the table i removed left in the project, I did a find all in the project of a keyword which will pick up on the table and removed it.
Another interesting fact is that when I remove the data providers in the page which have no connection to the table I removed the program will load fine. I also checked all my queries and they were all displaying correctly.
Any ideas?

I found out the reason for the error, the validation table I had set was used by the datasource, after I removed the table Java Studio Creator left traces of that and still tried to use the table for validation.
If anyone else has this problem, the way I fixed this was to open the Servers Window, expand the Deployment Server Node, expand the Resources folder and remove anything there even remotely related to your database, remove your database and re-add it.
Also, could this be considered a bug? I believe I have a way to reproduce it:
1) Create a database
2) Add a datasource set the Validation table to one of the tables
3) Remove that table from the database
That should cause the error to show up. When the datasource is removed shouldn't JSC remove any traces of the connection?
Lastly does this mean that JSC is checking the validation table everytime on deployment?
A response regarding this would be appreciated

Similar Messages

  • Slow start and page load on 10.8.5?

    I recently upgraded to 10.8.5 from 10.6.8. It now takes several tries to get the system to start, and page loading on the net seems slower. Is this normal?

    No.
    Do a backup, preferable 2 separate ones on 2 drives. Boot to the Recovery Volume (command - R on a restart or hold down the option/alt key during a restart and select Recovery Volume). Run Disk Utility Verify/Repair and Repair Permissions until you get no errors. Then re-install the OS.
    OS X Recovery
    OS X Recovery (2)

  • Slow FF startup and page load speed

    TIP TO IMPROVE SPEED(?): My FF startup and page load speeds increased dramatically when I used the auto feature in Ashampoo WinOptimizer 6 to adjust my internet settings. I've been using the comparable feature in TuneUp Utilities 2009 and FF speed was worse than abysmal. Hope this helps some of you. (You can obtain a trial version from Ashampoo or CNET; actually v7 is out and appears to be even better.)
    == This happened ==
    Every time Firefox opened
    == Always

    Gmail only allowed to log into one message or link or folder then ff 3.6.4 freezes.
    I have gone back to 5.2 to get it to work yet every time it updates ff freezes. Why is this?
    If I reinstall 3.5.2 will I ba able to get an answer to this problem else I may not be able to see what you send me.

  • Firefox 3.6.16 won't keep the "custom settings for history", thus causing page-load issues - any clue how to make it "stick"?

    Ever since I updated to Firefox 3.6.x I am getting constant page-load errors on apps in Facebook. I've cleared the history, the cache, cookies... and will literally set it for the "custom history settings" in my tools/options/privacy tab, reload the page, it's fine. I go to another page and come back to the app (same window) and get the error message again. Back to tools/options/privacy and "Remember History" is showing, rather than the custom settings. This is happening incessantly.

    I also have this problem and it just started in the last week or so. It seems to be dependent on my home network and the problem only exists with firefox. I have used chrome and IE8 with no issues. I can verify tomorrow that it only exists in my network but one thing I was able to test is that the problem exists even on my linux boot. I am totally dumbfounded with this problem and I can't find anything that will allow the gmail page to load. All other pages I have tried load fine, all be it a little slower than normal but they load. If anyone knows of a difference between firefox and all other browsers on how it goes through the router I would appreciate the info cause I don't know of any differences.

  • Fired up my first Azure Website to host some virtual tours... ftp uploading and page loads super slow.

    I upgraded my plan to BASIC... any idea why FTP upload are so slow?  When I go to my pages, they are loading slowly too.

    Hi,
    First, please have a look at this article to see how to use FTP in azure:
    http://blogs.msdn.com/b/kaushal/archive/2014/08/02/microsoft-azure-web-site-connect-to-your-site-via-ftp-and-upload-download-files.aspx, based on your description, the pages loading slowly, this issue only occur in your first time to loading? If yes, I
    think it is normal, If you mean the initial request takes long and then any subsequent requests are fast, then that would be because you are hitting .NET apps cold start. Many .NET apps are slow to JIT and load all their .NET requirements, but once everything
    is loaded, they are fast. If I misunderstanding, please feel free to let me know.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Single page application and page load time

    I'm trying to instrument a "single page application" with Application Insights but it seems that there is not way to provide manually the performance data (page load time) when invoking the logPageView() method.
    The single page application has a "unique page" and all views are displayed using internal routing feature without refreshing the main page once it is loaded. So the logPageView() method is invoked multiple times: one of each displayed view.
    It means that the built-in performance counter (netCon, ..., ptotal) based on window.performance.timing.* do not make sense for this type of application, that should be based on manual computation of the time needed to render each view.
    Is there any method to provide manually this information using logPageView() or separate method ? If not, is there any idea to fully support in the future the single page application ?
    Thanks in advance,
    Maurizio

    Hello Maurizio,
    Do you still have the same issue with the latest
    AI in Azure Portal?
    There should be new API layer with the ability to submit custom properties and metrics. This might work well for you scenario. AI nugets are still in preview, please, use "Show Prerelease" in VS when adding those.
    Dmitry Matveev

  • Scrolling and page loading is very choppy...i've cleaned out my history, cache, etc..it isn't my computer cause it does not do it in IE

    Scrolling has become very frustrating--there is nothing smooth about it..the pages jump so when i try to click on a link, the page jumps and i click on another link that is close by....getting very annoying...there is nothing wrong with my machine cause i tried IE and Chrome and i don't have issues there...also i cleaned out my cache, cookies, history...

    Please see [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]

  • ConversionManager - Override and Class Loader Issues

    Hi
    We are using Toplink 10.1.3 deployed withiin 10gAS 10.1.3.
    We have overridden the ConversionManger as documented in tips.
    1. MyConversionManager extends ConversionManager.
    2. We have overriden convertObject
    3. We have a pre-login SessionEventAdapter that sets the ConversionManager.
    We have had issues of classloading within the application previously, particularly where we have two versions of our application deployed on the same App Server instance (potentially with differing versions of MyConversionManager).
    For this reason we only set the ConversionManager within the preLogin event on the Session as follows:
    *//Just set the conversion manager for the session.*
    event.getSession().getLogin().getPlatform().setConversionManager(getConversionManager());
    We no longer set the default conversion manager, as my understanding was that this would set it at the root level within the OC4J instance (meaning that each deployment would override the previous).
    Additionally, we have had to sepcify the class loader to use, within the ovverriden convertObject method, as otherwise start up of Toplink falied, as it was unable to solve references to application classes specified within class indicator mappings. We do this as follows:
    *@Override*
    *public Object convertObject(final Object source, final Class javaClass) {*
    super.setShouldUseClassLoaderFromCurrentThread(true);
    The only know issue with this, is that if I try and use OEM to veiw the Toplink Cache, I just get and AnnotatedClassNotFoundException as it is attempting to use the system class loader (that does not contain our Application classes).
    Two questions therefore:
    1. Is the deployment we have now stable, i.e. overriding the class loader within the overriden Conversion Manager, and only loading this against the session??
    2. How can I get mutiple versions of the application to still work, together with being able to view the Toplink Cache from within OE:M.
    Any help or insight, would be greatly appreciated.
    Marc

    Looks fine, you may also wish to investigate using Converters in your mappings instead of customizing the ConversionManager.
    For the OEM issue, try setting the class loader to be your application class loader instead of the thread one, i.e. MyAppClass.getLoader().
    James : http://www.eclipselink.org

  • Boot and page load very slow after 2nd HD install

    Good morning.
    I recently added a second slave HD (80 GB with a OS X partition) to my beige G3 MT. I am using the original 9 GB drive as the boot drive. Northing else was changed.
    Since that time, the boot time has increased significantly (2-3X pre 2nd drive).
    Also, page load times have been increased with the Norton AntiVirus symbol being displayed.
    1. What's causing the slow boot? Is the CPU looking at the new drive and applying Norton before the original boot drive?
    2. Are there settings in Norton that might help?
    3. Is it even worth continuing Norton use for this OS 9.1 machine?
    Thanks for your time!

    Hi, Bruce. NAV is probably scanning the entire new drive at startup, thus accounting for the major startup slowdown. And no, there's no good reason to have NAV installed at all. Your Mac doesn't need antivirus protection.

  • ADF Page Load Issue

    Hi,
    ADF Jdeveloper: 11.1.1.3.0
    I have a page with 10 tables. My issue is, all queries are executing in a second but page is taking more than 3 mins to load the data. All the time it is showing Fetching Data....
    Is there any way to get rid of this load time. We have checked the database sessions and found that all queries are executing very fast.
    Please help me.
    Thanks.

    Hi,
    actually the whole tab renders. So what you can do is to initially hide the content on this tab except for an outer container that you refresh after setting rendered=true on the initial hidden content. This should eliminate the loading. However, if the problem is when clicking the tab - thus when you want the content to be visible - then I would reconsider loading 10 tables at once and look for alternatives
    Frank

  • Sharepoint web part Page Load issue

    Hi ,
     We are developing Sharepoint 2013 Integration application, We are fetching the data from third party application and dumping data into sharepoint List for offline analysis.
    Synchronization steps
    1) fetch data from third party application
    2) delete the old data
    3) Insert the new data in List
    4) Show the data in custom web part 
    synchronization is taking lot of time, is there any profiling  tools , we can measure the performance of method , network traffic which is causing the issue.
    We need to load the page less than second
    Regards
    Pat

    Hi,
    Per my understanding, you might want to improve the performance of your web part page.
    A suggestion is that you can create a custom Timer job in the server side which handles the data fetching and updating in a list in the backend periodically, the burden
    on the custom web part would get decreased.
    About create and deploy Custom Timer Job Definition in SharePoint Programmatically:
    http://www.codeproject.com/Tips/634208/Create-and-Deploy-Custom-Timer-Job-Definition-in-S
    Thanks 
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to Load Values From Database on page load?

    I am sure this is easy but... I have a website that lists products similar to the way Amazon lists them. Each product is listed in a separate HTMP table cell complete with Product Name, Desciption, Image and Pricing. Any given product will appear on many different pages within the website. I have a mysql dtabase that has columns that define the primary key, the Product Name, the Product Description and Pricing. I was hoping to use the Dremaweaver Recordset to load the correct pricing and product description for each product on any given web page at the time the page is loaded by the user. Surely I must be able to run an SQL query based on a hiiden vale (e.g. the primary key or name of the product) in order to fill in the correct descriotion and pricing. Am I on the right track or is there a better way to do this? Put another way, how do you load your product data from a database onto a web page without using URL paraneters?

    Yes, you are on the right track. Besides URL parameter you can filter a recordset with a session variable, cookie, or entered value.

  • Safari and page loading errors -- slooooow

    Folks:
    I have noticed the following (Safari 3 or Public Beta 4)
    First use the Safari "Windows" menu and open the "Activity" window.
    Now pick a page from any number of those pages that open 'slowly'.
    Watch what happens in the Activity window...
    What I bet you see is that some element(s) in the page 'can't be found'
    Safari seems to sit and poll for missing elements for a loooong time.
    While Safari is busy polling to get the page open, go ahead an launch Firefox.
    Wait for Firefox to render whatever its home page is and then give Firefox the url that Safari will still be trying to render.
    Firefox will load and render the page well before Safari finally gets around to it.
    NOTE: If there are no page errors and all elements are found then Safari loads the page quickly!
    The standard stuff I see in the forum here about permissions and disk space don't apply here.
    This is a side by side, real time, same context test of the browsers and if there are any page "issues" then Firefox blows Safari out of the water.
    Seemd to me we need a prefence that says:
    "If you can't find a page element right away go ahead and ignore it"
    Is there such a beast hiding away in a hidden preference?
    What's totally annoying about this issue is that it is largely caused by the equivalent of junk mail on the web. Its appalling how much garbage inhabits most pages today.... Activity window makes it pretty clear what the real cost of "free" is....
    Comments? Any way to avoid this painful slowness?
    Steve

    iBod;
    Hmm - thanks for the tip!
    I'm a uVerse customer so my mac is on ethernet cable wired to uVerse router.
    The DNS setting for the Mac were pointing to the uVerse router.
    I don't really want to head off on a DNS adventure wiht UVerse..
    (I need to get work done!)
    So what I did was simply add the OpenDNS servers to the list on my mac.
    It does seem to have improved things a bit! So thanks for that.
    I guess I don't have a handle on how the mac would handle this multiple DNS business...
    A given request goes out to all at once and its just a race?
    A request is given in list order and passed on after a 'try' interval?
    If the Mac is a passing everything through the uVerse router is this multiple DNS setup now actually creating MORE traffic?
    Thanks for some improvement
    Steve

  • Printing and Page scaling issues

    On a lot of my documents -- scanned from 8x11 b&w pages -- Acrobat seems to want to scale down the pages to print correctly, when this is not true.
    Is there anything that I can do to solve this issue?
    I realize that I can set page scaling to none, but this is NOT a solution. Every person printing the document would have to do the same thing.  I want to solve this problem so that even if Acrobat is set to "Shrink to Fit", that it knows to NOT scale down the pages.

    In addition to the above comment, Acrobat or Adobe Reader will always try to scale a page down if it is printing on paper of the same size.  If you want to make it even more fool proof (a user could override the above setting and select scale pages to fit) make the page size a bit smaller than letter, then even if they select shrink to fit it won't need to.

  • Raw HTML and Page Rendering Issue happening at Random

    We are an internet retailer (BettyMills.com) and recently started having customers and our internal users reporting two issues.
    It is random, but due to the high volume of traffic on our website, it is a high enough frequency to be very troubling.
    The webpage does not fully render, and the customer sees a dump of the page without formatting, just a listing of all the links on our page and the images dumped out and out of place.
    We thought this was initially a comcast DNS issue, but seems it is happening beyond that.
    I'm on Firefox 19.x and I've never had the issue, but I've witnessed it on about half dozen of our staff computers and external customers.
    Has anyone seen this issue or any way to know how to trouble shoot it?
    We can't recreate it on demand so very difficult to debug it.
    Vic

    Attached is an image..
    -Vic

Maybe you are looking for