cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAY-2148) Failure upgrading from 3.1 to M4
Date Wed, 23 Nov 2016 11:50:59 GMT

    [ https://issues.apache.org/jira/browse/CAY-2148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15689882#comment-15689882
] 

ASF GitHub Bot commented on CAY-2148:
-------------------------------------

GitHub user stariy95 opened a pull request:

    https://github.com/apache/cayenne/pull/140

    CAY-2148 Failure upgrading from 3.1 to M4

    Fix notes: this is a hot-fix for exact problem converting queries from v6 directly to
v9 format.
    Actually whole upgrade system should be redesigned, see some thoughts at https://issues.apache.org/jira/browse/CAY-2152

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/stariy95/cayenne CAY-2148

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cayenne/pull/140.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #140
    
----
commit 7cfd28624c19a76907cdc9e73a509b0929ba12d8
Author: Nikita Timofeev <stariy95@gmail.com>
Date:   2016-11-23T11:45:38Z

    CAY-2148
    Failure upgrading from 3.1 to M4
    Fix notes: this is a hot-fix for exact problem converting queries from v6 directly to
v9 format.
    Actually whole upgrade system should be redesigned, see some thoughts at https://issues.apache.org/jira/browse/CAY-2152

----


> Failure upgrading from 3.1 to M4
> --------------------------------
>
>                 Key: CAY-2148
>                 URL: https://issues.apache.org/jira/browse/CAY-2148
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Modeler
>    Affects Versions: 4.0.M4
>            Reporter: ana benko
>            Assignee: Nikita Timofeev
>         Attachments: cayenne-upgrade_test.xml, mysql.map.xml, postgres.map.xml
>
>
> 1. Run modeler v3.1
> 2. Import db (mysql and postgres in my case), create embeddables, queries, procedures.
Save
> 3. Run latest release of M4
> -> error appears
> CayenneModeler Info
> Version: 4.0.M4-SNAPSHOT
> Build Date: ноя 17 2016 02:57:40
> Exception:
> =================================
> java.lang.NullPointerException
> at org.apache.cayenne.map.QueryDescriptor.descriptor(QueryDescriptor.java:76)
> at org.apache.cayenne.map.QueryDescriptorLoader.buildQueryDescriptor(QueryDescriptorLoader.java:58)
> at org.apache.cayenne.map.MapLoader.processEndQuery(MapLoader.java:1092)
> at org.apache.cayenne.map.MapLoader.access$4500(MapLoader.java:41)
> at org.apache.cayenne.map.MapLoader$45.execute(MapLoader.java:524)
> at org.apache.cayenne.map.MapLoader.endElement(MapLoader.java:724)
> at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
Source)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
> at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
> at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
> at org.apache.cayenne.map.MapLoader.loadDataMap(MapLoader.java:652)
> at org.apache.cayenne.configuration.XMLDataMapLoader.load(XMLDataMapLoader.java:49)
> at org.apache.cayenne.configuration.XMLDataChannelDescriptorLoader$DataChannelChildrenHandler.createChildTagHandler(XMLDataChannelDescriptorLoader.java:208)
> at org.apache.cayenne.configuration.SAXNestedTagHandler.startElement(SAXNestedTagHandler.java:113)
> at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown
Source)
> at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
> at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
Source)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
> at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
> at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
> at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
> at org.apache.cayenne.configuration.XMLDataChannelDescriptorLoader.load(XMLDataChannelDescriptorLoader.java:138)
> at org.apache.cayenne.project.upgrade.v7.UpgradeHandler_V7.doPerformUpgrade(UpgradeHandler_V7.java:71)
> at org.apache.cayenne.project.upgrade.BaseUpgradeHandler.performUpgrade(BaseUpgradeHandler.java:98)
> at org.apache.cayenne.project.upgrade.v8.UpgradeHandler_V8.doPerformUpgrade(UpgradeHandler_V8.java:79)
> at org.apache.cayenne.project.upgrade.BaseUpgradeHandler.performUpgrade(BaseUpgradeHandler.java:98)
> at org.apache.cayenne.project.upgrade.v9.UpgradeHandler_V9.doPerformUpgrade(UpgradeHandler_V9.java:72)
> at org.apache.cayenne.project.upgrade.BaseUpgradeHandler.performUpgrade(BaseUpgradeHandler.java:98)
> at org.apache.cayenne.modeler.action.OpenProjectAction.openProject(OpenProjectAction.java:164)
> at org.apache.cayenne.modeler.action.OpenProjectAction.performAction(OpenProjectAction.java:103)
> at org.apache.cayenne.modeler.WelcomeScreen$RecentFileListRenderer.mouseReleased(WelcomeScreen.java:303)
> at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
> at java.awt.Component.processMouseEvent(Unknown Source)
> at javax.swing.JComponent.processMouseEvent(Unknown Source)
> at java.awt.Component.processEvent(Unknown Source)
> at java.awt.Container.processEvent(Unknown Source)
> at java.awt.Component.dispatchEventImpl(Unknown Source)
> at java.awt.Container.dispatchEventImpl(Unknown Source)
> at java.awt.Component.dispatchEvent(Unknown Source)
> at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
> at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
> at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
> at java.awt.Container.dispatchEventImpl(Unknown Source)
> at java.awt.Window.dispatchEventImpl(Unknown Source)
> at java.awt.Component.dispatchEvent(Unknown Source)
> at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
> at java.awt.EventQueue.access$500(Unknown Source)
> at java.awt.EventQueue$3.run(Unknown Source)
> at java.awt.EventQueue$3.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
Source)
> at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
Source)
> at java.awt.EventQueue$4.run(Unknown Source)
> at java.awt.EventQueue$4.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
Source)
> at java.awt.EventQueue.dispatchEvent(Unknown Source)
> at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
> at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
> at java.awt.EventDispatchThread.run(Unknown Source)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message