From commits-return-23317-archive-asf-public=cust-asf.ponee.io@cayenne.apache.org Wed Apr 18 14:21:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 36DED18064E for ; Wed, 18 Apr 2018 14:21:05 +0200 (CEST) Received: (qmail 61761 invoked by uid 500); 18 Apr 2018 12:21:04 -0000 Mailing-List: contact commits-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list commits@cayenne.apache.org Received: (qmail 61746 invoked by uid 99); 18 Apr 2018 12:21:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2018 12:21:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id DD7411A052D for ; Wed, 18 Apr 2018 12:21:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -101.511 X-Spam-Level: X-Spam-Status: No, score=-101.511 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 3d1x9isPweaz for ; Wed, 18 Apr 2018 12:21:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 16BCA5F5F7 for ; Wed, 18 Apr 2018 12:21:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 23734E0C93 for ; Wed, 18 Apr 2018 12:21:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 87FD5241CC for ; Wed, 18 Apr 2018 12:21:00 +0000 (UTC) Date: Wed, 18 Apr 2018 12:21:00 +0000 (UTC) From: "Nikita Timofeev (JIRA)" To: commits@cayenne.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAY-2429) Generate classes: Invalid template type: EMBEDDABLE_SINGLE_CLASS MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAY-2429?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Nikita Timofeev updated CAY-2429: --------------------------------- Fix Version/s: 4.1.M2 4.0.B3 > Generate classes: Invalid template type: EMBEDDABLE_SINGLE_CLASS > ---------------------------------------------------------------- > > Key: CAY-2429 > URL: https://issues.apache.org/jira/browse/CAY-2429 > Project: Cayenne > Issue Type: Bug > Components: Modeler > Affects Versions: 4.0.B3, 4.1.M2 > Reporter: ana benko > Priority: Major > Fix For: 4.0.B3, 4.1.M2 > > > Precondition: add Embeddable objects to datamap > # Open Generate Classes -> Advanced (both entities and embeddables are s= elected in Classes tab) > # Uncheck 'Make Pairs' > # Generate > -> Error generating classes - Invalid template type: EMBEDDABLE_SINGLE_CL= ASS error appears > Log: > Apr 13, 2018 3:53:38 PM ERROR: Error generating classes > java.lang.IllegalArgumentException: Invalid template type: EMBEDDABLE_SI= NGLE_CLASS > =C2=A0=C2=A0 =C2=A0at org.apache.cayenne.gen.ClassGenerationAction.custo= mTemplateName(ClassGenerationAction.java:146) > =C2=A0=C2=A0 =C2=A0at org.apache.cayenne.gen.ClassGenerationAction.getTe= mplate(ClassGenerationAction.java:247) > =C2=A0=C2=A0 =C2=A0at org.apache.cayenne.gen.ClassGenerationAction.execu= te(ClassGenerationAction.java:239) > =C2=A0=C2=A0 =C2=A0at org.apache.cayenne.gen.ClassGenerationAction.execu= te(ClassGenerationAction.java:212) > =C2=A0=C2=A0 =C2=A0at org.apache.cayenne.modeler.dialog.codegen.CodeGene= ratorController.generateAction(CodeGeneratorController.java:143) > =C2=A0=C2=A0 =C2=A0at sun.reflect.GeneratedMethodAccessor143.invoke(Unkn= own Source) > =C2=A0=C2=A0 =C2=A0at sun.reflect.DelegatingMethodAccessorImpl.invoke(De= legatingMethodAccessorImpl.java:43) > =C2=A0=C2=A0 =C2=A0at java.lang.reflect.Method.invoke(Method.java:498) > =C2=A0=C2=A0 =C2=A0at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:491= ) > =C2=A0=C2=A0 =C2=A0at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime= .java:785) > =C2=A0=C2=A0 =C2=A0at ognl.ObjectMethodAccessor.callMethod(ObjectMethodA= ccessor.java:61) > =C2=A0=C2=A0 =C2=A0at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:819) > =C2=A0=C2=A0 =C2=A0at ognl.ASTMethod.getValueBody(ASTMethod.java:75) > =C2=A0=C2=A0 =C2=A0at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.ja= va:170) > =C2=A0=C2=A0 =C2=A0at ognl.SimpleNode.getValue(SimpleNode.java:210) > =C2=A0=C2=A0 =C2=A0at ognl.Ognl.getValue(Ognl.java:333) > =C2=A0=C2=A0 =C2=A0at ognl.Ognl.getValue(Ognl.java:413) > =C2=A0=C2=A0 =C2=A0at ognl.Ognl.getValue(Ognl.java:395) > =C2=A0=C2=A0 =C2=A0at org.apache.cayenne.swing.BindingBase.getValue(Bind= ingBase.java:168) > =C2=A0=C2=A0 =C2=A0at org.apache.cayenne.swing.ActionBinding.fireAction(= ActionBinding.java:80) > =C2=A0=C2=A0 =C2=A0at org.apache.cayenne.swing.ActionBinding$1.actionPer= formed(ActionBinding.java:42) > =C2=A0=C2=A0 =C2=A0at javax.swing.AbstractButton.fireActionPerformed(Abs= tractButton.java:2022) > =C2=A0=C2=A0 =C2=A0at javax.swing.AbstractButton$Handler.actionPerformed= (AbstractButton.java:2348) > =C2=A0=C2=A0 =C2=A0at javax.swing.DefaultButtonModel.fireActionPerformed= (DefaultButtonModel.java:402) > =C2=A0=C2=A0 =C2=A0at javax.swing.DefaultButtonModel.setPressed(DefaultB= uttonModel.java:259) > =C2=A0=C2=A0 =C2=A0at javax.swing.plaf.basic.BasicButtonListener.mouseRe= leased(BasicButtonListener.java:252) > =C2=A0=C2=A0 =C2=A0at java.awt.Component.processMouseEvent(Component.jav= a:6533) > =C2=A0=C2=A0 =C2=A0at javax.swing.JComponent.processMouseEvent(JComponen= t.java:3324) > =C2=A0=C2=A0 =C2=A0at java.awt.Component.processEvent(Component.java:629= 8) > =C2=A0=C2=A0 =C2=A0at java.awt.Container.processEvent(Container.java:223= 6) > =C2=A0=C2=A0 =C2=A0at java.awt.Component.dispatchEventImpl(Component.jav= a:4889) > =C2=A0=C2=A0 =C2=A0at java.awt.Container.dispatchEventImpl(Container.jav= a:2294) > =C2=A0=C2=A0 =C2=A0at java.awt.Component.dispatchEvent(Component.java:47= 11) > =C2=A0=C2=A0 =C2=A0at java.awt.LightweightDispatcher.retargetMouseEvent(= Container.java:4888) > =C2=A0=C2=A0 =C2=A0at java.awt.LightweightDispatcher.processMouseEvent(C= ontainer.java:4525) > =C2=A0=C2=A0 =C2=A0at java.awt.LightweightDispatcher.dispatchEvent(Conta= iner.java:4466) > =C2=A0=C2=A0 =C2=A0at java.awt.Container.dispatchEventImpl(Container.jav= a:2280) > =C2=A0=C2=A0 =C2=A0at java.awt.Window.dispatchEventImpl(Window.java:2746= ) > =C2=A0=C2=A0 =C2=A0at java.awt.Component.dispatchEvent(Component.java:47= 11) > =C2=A0=C2=A0 =C2=A0at java.awt.EventQueue.dispatchEventImpl(EventQueue.j= ava:758) > =C2=A0=C2=A0 =C2=A0at java.awt.EventQueue.access$500(EventQueue.java:97) > =C2=A0=C2=A0 =C2=A0at java.awt.EventQueue$3.run(EventQueue.java:709) > =C2=A0=C2=A0 =C2=A0at java.awt.EventQueue$3.run(EventQueue.java:703) > =C2=A0=C2=A0 =C2=A0at java.security.AccessController.doPrivileged(Native= Method) > =C2=A0=C2=A0 =C2=A0at java.security.ProtectionDomain$JavaSecurityAccessI= mpl.doIntersectionPrivilege(ProtectionDomain.java:80) > =C2=A0=C2=A0 =C2=A0at java.security.ProtectionDomain$JavaSecurityAccessI= mpl.doIntersectionPrivilege(ProtectionDomain.java:90) > =C2=A0=C2=A0 =C2=A0at java.awt.EventQueue$4.run(EventQueue.java:731) > =C2=A0=C2=A0 =C2=A0at java.awt.EventQueue$4.run(EventQueue.java:729) > =C2=A0=C2=A0 =C2=A0at java.security.AccessController.doPrivileged(Native= Method) > =C2=A0=C2=A0 =C2=A0at java.security.ProtectionDomain$JavaSecurityAccessI= mpl.doIntersectionPrivilege(ProtectionDomain.java:80) > =C2=A0=C2=A0 =C2=A0at java.awt.EventQueue.dispatchEvent(EventQueue.java:= 728) > =C2=A0=C2=A0 =C2=A0at java.awt.EventDispatchThread.pumpOneEventForFilter= s(EventDispatchThread.java:201) > =C2=A0=C2=A0 =C2=A0at java.awt.EventDispatchThread.pumpEventsForFilter(E= ventDispatchThread.java:116) > =C2=A0=C2=A0 =C2=A0at java.awt.EventDispatchThread.pumpEventsForFilter(E= ventDispatchThread.java:109) > =C2=A0=C2=A0 =C2=A0at java.awt.WaitDispatchSupport$2.run(WaitDispatchSup= port.java:184) > =C2=A0=C2=A0 =C2=A0at java.awt.WaitDispatchSupport$4.run(WaitDispatchSup= port.java:229) > =C2=A0=C2=A0 =C2=A0at java.awt.WaitDispatchSupport$4.run(WaitDispatchSup= port.java:227) > =C2=A0=C2=A0 =C2=A0at java.security.AccessController.doPrivileged(Native= Method) > =C2=A0=C2=A0 =C2=A0at java.awt.WaitDispatchSupport.enter(WaitDispatchSup= port.java:227) > =C2=A0=C2=A0 =C2=A0at java.awt.Dialog.show(Dialog.java:1084) > =C2=A0=C2=A0 =C2=A0at java.awt.Component.show(Component.java:1671) > =C2=A0=C2=A0 =C2=A0at java.awt.Component.setVisible(Component.java:1623) > =C2=A0=C2=A0 =C2=A0at java.awt.Window.setVisible(Window.java:1014) > =C2=A0=C2=A0 =C2=A0at java.awt.Dialog.setVisible(Dialog.java:1005) > =C2=A0=C2=A0 =C2=A0at org.apache.cayenne.modeler.dialog.codegen.CodeGene= ratorController.startup(CodeGeneratorController.java:73) > =C2=A0=C2=A0 =C2=A0at org.apache.cayenne.modeler.action.GenerateCodeActi= on.performAction(GenerateCodeAction.java:55) > =C2=A0=C2=A0 =C2=A0at org.apache.cayenne.modeler.util.CayenneAction.acti= onPerformed(CayenneAction.java:171) > =C2=A0=C2=A0 =C2=A0at javax.swing.AbstractButton.fireActionPerformed(Abs= tractButton.java:2022) > =C2=A0=C2=A0 =C2=A0at javax.swing.AbstractButton$Handler.actionPerformed= (AbstractButton.java:2348) > =C2=A0=C2=A0 =C2=A0at javax.swing.DefaultButtonModel.fireActionPerformed= (DefaultButtonModel.java:402) > =C2=A0=C2=A0 =C2=A0at javax.swing.DefaultButtonModel.setPressed(DefaultB= uttonModel.java:259) > =C2=A0=C2=A0 =C2=A0at javax.swing.AbstractButton.doClick(AbstractButton.= java:376) > =C2=A0=C2=A0 =C2=A0at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Bas= icMenuItemUI.java:833) > =C2=A0=C2=A0 =C2=A0at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mou= seReleased(BasicMenuItemUI.java:877) > =C2=A0=C2=A0 =C2=A0at java.awt.AWTEventMulticaster.mouseReleased(AWTEven= tMulticaster.java:289) > =C2=A0=C2=A0 =C2=A0at java.awt.Component.processMouseEvent(Component.jav= a:6533) > =C2=A0=C2=A0 =C2=A0at javax.swing.JComponent.processMouseEvent(JComponen= t.java:3324) > =C2=A0=C2=A0 =C2=A0at java.awt.Component.processEvent(Component.java:629= 8) > =C2=A0=C2=A0 =C2=A0at java.awt.Container.processEvent(Container.java:223= 6) > =C2=A0=C2=A0 =C2=A0at java.awt.Component.dispatchEventImpl(Component.jav= a:4889) > =C2=A0=C2=A0 =C2=A0at java.awt.Container.dispatchEventImpl(Container.jav= a:2294) > =C2=A0=C2=A0 =C2=A0at java.awt.Component.dispatchEvent(Component.java:47= 11) > =C2=A0=C2=A0 =C2=A0at java.awt.LightweightDispatcher.retargetMouseEvent(= Container.java:4888) > =C2=A0=C2=A0 =C2=A0at java.awt.LightweightDispatcher.processMouseEvent(C= ontainer.java:4525) > =C2=A0=C2=A0 =C2=A0at java.awt.LightweightDispatcher.dispatchEvent(Conta= iner.java:4466) > =C2=A0=C2=A0 =C2=A0at java.awt.Container.dispatchEventImpl(Container.jav= a:2280) > =C2=A0=C2=A0 =C2=A0at java.awt.Window.dispatchEventImpl(Window.java:2746= ) > =C2=A0=C2=A0 =C2=A0at java.awt.Component.dispatchEvent(Component.java:47= 11) > =C2=A0=C2=A0 =C2=A0at java.awt.EventQueue.dispatchEventImpl(EventQueue.j= ava:758) > =C2=A0=C2=A0 =C2=A0at java.awt.EventQueue.access$500(EventQueue.java:97) > =C2=A0=C2=A0 =C2=A0at java.awt.EventQueue$3.run(EventQueue.java:709) > =C2=A0=C2=A0 =C2=A0at java.awt.EventQueue$3.run(EventQueue.java:703) > =C2=A0=C2=A0 =C2=A0at java.security.AccessController.doPrivileged(Native= Method) > =C2=A0=C2=A0 =C2=A0at java.security.ProtectionDomain$JavaSecurityAccessI= mpl.doIntersectionPrivilege(ProtectionDomain.java:80) > =C2=A0=C2=A0 =C2=A0at java.security.ProtectionDomain$JavaSecurityAccessI= mpl.doIntersectionPrivilege(ProtectionDomain.java:90) > =C2=A0=C2=A0 =C2=A0at java.awt.EventQueue$4.run(EventQueue.java:731) > =C2=A0=C2=A0 =C2=A0at java.awt.EventQueue$4.run(EventQueue.java:729) > =C2=A0=C2=A0 =C2=A0at java.security.AccessController.doPrivileged(Native= Method) > =C2=A0=C2=A0 =C2=A0at java.security.ProtectionDomain$JavaSecurityAccessI= mpl.doIntersectionPrivilege(ProtectionDomain.java:80) > =C2=A0=C2=A0 =C2=A0at java.awt.EventQueue.dispatchEvent(EventQueue.java:= 728) > =C2=A0=C2=A0 =C2=A0at java.awt.EventDispatchThread.pumpOneEventForFilter= s(EventDispatchThread.java:201) > =C2=A0=C2=A0 =C2=A0at java.awt.EventDispatchThread.pumpEventsForFilter(E= ventDispatchThread.java:116) > =C2=A0=C2=A0 =C2=A0at java.awt.EventDispatchThread.pumpEventsForHierarch= y(EventDispatchThread.java:105) > =C2=A0=C2=A0 =C2=A0at java.awt.EventDispatchThread.pumpEvents(EventDispa= tchThread.java:101) > =C2=A0=C2=A0 =C2=A0at java.awt.EventDispatchThread.pumpEvents(EventDispa= tchThread.java:93) > =C2=A0=C2=A0 =C2=A0at java.awt.EventDispatchThread.run(EventDispatchThre= ad.java:82) -- This message was sent by Atlassian JIRA (v7.6.3#76005)