Bug #44982 Don't recognize a view
Submitted: 20 May 2009 12:32 Modified: 26 Jun 2009 9:36
Reporter: alexandre dursel Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server Severity:S2 (Serious)
Version:5.1.34 OS:Windows (XP pro V2)
Assigned to: CPU Architecture:Any

[20 May 2009 12:32] alexandre dursel
Description:
Hello we used the mysql for a web application.

I have a glassfish server V2.1

I have no problem with the 5.0.67 but the problem apear in the 5.0.81. I just unistall the server and install the old version. So nothing as changed.

The error in the application server.

[#|2009-05-20T13:55:23.000+0200|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=19;_ThreadName=httpSSLWorkerThread-8080-1;_RequestID=e6b07ccd-8979-4b3d-8e5b-e0e6ba79fd20;|WebModule[/sys-test]personnes.V_PERS_ID
java.lang.IllegalArgumentException: personnes.V_PERS_ID
	at com.sun.data.provider.impl.CachedRowSetDataProvider.getFieldKeyInternal(CachedRowSetDataProvider.java:555)
	at com.sun.data.provider.impl.CachedRowSetDataProvider.getFieldKey(CachedRowSetDataProvider.java:513)
	at com.sun.webui.jsf.faces.DataProviderELResolver$SelectItemsData.getValue(DataProviderELResolver.java:586)
	at com.sun.webui.jsf.faces.DataProviderELResolver$SelectItemsData.getSelectItems(DataProviderELResolver.java:711)
	at com.sun.webui.jsf.faces.DataProviderELResolver.getValue(DataProviderELResolver.java:166)
	at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
	at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
	at com.sun.el.parser.AstValue.getValue(AstValue.java:138)
	at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:206)
	at com.sun.webui.jsf.component.Selector.getItems(Selector.java:577)
	at com.sun.webui.jsf.component.ListSelector.getOptions(ListSelector.java:212)
	at com.sun.webui.jsf.component.ListSelector.getListItems(ListSelector.java:140)
	at com.sun.webui.jsf.renderkit.widget.ListRendererBase.getListProperties(ListRendererBase.java:269)
	at com.sun.webui.jsf.renderkit.widget.ListRendererBase.getProperties(ListRendererBase.java:220)
	at com.sun.webui.jsf.renderkit.widget.DropDownRenderer.getProperties(DropDownRenderer.java:74)
	at com.sun.webui.jsf.renderkit.widget.RendererBase.encodeChildren(RendererBase.java:134)
	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
	at com.sun.webui.jsf.util.RenderingUtilities.renderComponent(RenderingUtilities.java:73)
	at com.sun.webui.jsf.renderkit.html.AbstractRenderer.encodeChildren(AbstractRenderer.java:202)
	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
	at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:271)
	at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:242)
	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
	at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:245)
	at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:176)
	at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:320)
	at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
	at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
	at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
	at com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.render(PartialTraversalLifecycle.java:106)
	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
	at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
	at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:267)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
	at systic.SessionTimeout.doFilter(SessionTimeout.java:73)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
	at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
	at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
	at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
	at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
	at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
	at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
	at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
	at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
	at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
	at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
|#]

How to repeat:
It's repeat when i go to the page.
[20 May 2009 12:38] alexandre dursel
this select is ok

SELECT ALL vue_personnes_pre_nom.`V_PERS_ID`, vue_personnes_pre_nom.`V_PERS_PRE_NOM`, vue_personnes_pre_nom.`V_PERS_NOM`, vue_personnes_pre_nom.`V_PERS_PRENOM`, utilisateur_groupe.`GROUPE_ID`, utilisateur_groupe.`PERS_ID`  FROM vue_personnes_pre_nom, utilisateur_groupe WHERE utilisateur_groupe.`GROUPE_ID` = ?          AND vue_personnes_pre_nom.`V_PERS_ID` = utilisateur_groupe.`PERS_ID` ORDER BY vue_personnes_pre_nom.`V_PERS_NOM` ASC,                     vue_personnes_pre_nom.`V_PERS_PRENOM` ASC"

this select is not recognise

SELECT ALL vue_personnes_pre_nom.`V_PERS_ID`, vue_personnes_pre_nom.`V_PERS_PRE_NOM`, vue_personnes_pre_nom.`V_PERS_NOM`, vue_personnes_pre_nom.`V_PERS_PRENOM` FROM vue_personnes_pre_nom ORDER BY vue_personnes_pre_nom.`V_PERS_NOM` ASC,                     vue_personnes_pre_nom.`V_PERS_PRENOM` ASC
[20 May 2009 13:20] Valeriy Kravchuk
You write about 5.0.67 vs. 5.0.81, but why version is noted as 5.1.34 then?

Please, send the results of:

EXPLAIN SELECT ALL vue_personnes_pre_nom.`V_PERS_ID`, vue_personnes_pre_nom.`V_PERS_PRE_NOM`,
vue_personnes_pre_nom.`V_PERS_NOM`, vue_personnes_pre_nom.`V_PERS_PRENOM` FROM
vue_personnes_pre_nom ORDER BY vue_personnes_pre_nom.`V_PERS_NOM` ASC,                    
vue_personnes_pre_nom.`V_PERS_PRENOM` ASC\G

from the problematic version (5.0.81?) and the results of SHOW CREATE VIEW for that vue_personnes_pre_nom view.

Please, check also if will get any error message running this query from the command line client.
[25 May 2009 8:30] alexandre dursel
Why version is noted as 5.1.34? 
It is because we have new server and we have download the MySQL GA version and it was the 5.1.34. After I have downloaded the 5.0.81. Few month ago for my test we had the 5.0.67. This version work.

The result of the select is for the 5.0.81, but if you want it is possible for me to install the 5.1.34.

I make it with the MySQL query browser. When i take the problematic select it work !(with the query browser)

Here are the results:

EXPLAIN SELECT ALL vue_personnes_pre_nom.`V_PERS_ID`,
vue_personnes_pre_nom.`V_PERS_PRE_NOM`,
vue_personnes_pre_nom.`V_PERS_NOM`,
vue_personnes_pre_nom.`V_PERS_PRENOM`
FROM vue_personnes_pre_nom
ORDER BY vue_personnes_pre_nom.`V_PERS_NOM` ASC,
vue_personnes_pre_nom.`V_PERS_PRENOM` ASC

"id","select_type","table","type","possible_keys","key","key_len","ref","rows","Extra"
1,"SIMPLE","personnes","ALL","PRIMARY","","","",43,"Using where; Using filesort"

SHOW CREATE VIEW vue_personnes_pre_nom

"View","Create View"
"vue_personnes_pre_nom","CREATE ALGORITHM=UNDEFINED DEFINER=`autic`@`%` SQL SECURITY DEFINER VIEW `vue_personnes_pre_nom` AS select `personnes`.`PERS_ID` AS `V_PERS_ID`,concat(`personnes`.`PERS_NOM`,_utf8' ',`personnes`.`PERS_PRENOM`) AS `V_PERS_PRE_NOM`,`personnes`.`PERS_NOM` AS `V_PERS_NOM`,`personnes`.`PERS_PRENOM` AS `V_PERS_PRENOM` from `personnes` where (`personnes`.`PERS_ID` >= _utf8'0')"
[25 May 2009 12:22] Sveta Smirnova
Thank you for the feedback.

Please also provide output of SHOW CREATE TABLE personnes
[25 May 2009 12:35] alexandre dursel
Thanks for the attention

SHOW CREATE TABLE personnes

"Table","Create Table"
"personnes","CREATE TABLE `personnes` (
  `PERS_ID` int(4) NOT NULL default '0',
  `PERS_NOM` varchar(50) default NULL,
  `PERS_PRENOM` varchar(50) default NULL,
  `PERS_EMAIL` varchar(100) default NULL,
  `PERS_TEL` varchar(15) default NULL,
  PRIMARY KEY  (`PERS_ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8"
[25 May 2009 13:02] Sveta Smirnova
Thank you for the feedback.

Problem is not repeatable without Glassfish. Please try to create repeatable test case we can use. Also, please, indicate version of Connector/J which you are using.
[25 May 2009 13:29] alexandre dursel
Ok it is not repeatable without use glassfish, when i make a simple query on a view with the glassfish and a complex view work!

If a take an other view it is the same probleme.

I explain it so : the view that i compose is not recognise as you seen in the error messages. Normaly the query server is "view.column" but here it was "table_name.column" so when the appserver excecute the query, we found an error.

I am use the "mysql-connector-java-5.1.6-bin.jar". I have just tested with mysql-connector-java-5.1.7-bin.jar and the error is still there.

Which kind of test can i make to help the community because with the 5.0.67 version it work fine.

For me it is possible to download other MySQL version, drivers, ... It is possible to have a problem in the java (JRE, JDK, SDK)
[25 May 2009 13:36] Sveta Smirnova
Thank you for the feedback.

We need any code which we can compile, then repeat the problem.

Please see comment "[12 Mar 11:28] Tonci Grgin" to bug #43556 for the example of test which we use in connector/J testsuite. Also please check if your case is duplicate of bug #43556 or bug #33744.
[26 May 2009 9:10] alexandre dursel
Hello,

It is exactly the same problem that the 43556.

What would you say any code? Because i work with netbeans, (it is not a problem i can made a small application), I think it is not possible to make an attachement.

The sql script it is a simple file.

The configuration of my glassfish server: I have no idea to give the configuration file. But if you say me how it will be with pleasure.
[26 May 2009 9:36] Sveta Smirnova
Thank you for the feedback.

> What would you say any code? Because i work with netbeans, (it is not a problem i can made
> a small application), I think it is not possible to make an attachement.

You can make archive from netbeans project and attach using "Files" tab of the bug report web page.

> The configuration of my glassfish server: I have no idea to give the configuration file.
> But if you say me how it will be with pleasure.

Most likely this is domain.xml file
[26 Jun 2009 23:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".