Android Studio and Vusial Paradigm integration problems


#1

Hi there.

Could not start/open Visual Paradigm from Android Studio after successful “IDE Integration” process described here

I just press “Open Visual Paradigm Professional” from the IDE code editor and nothing happens…

  • Linux vip 4.13.0-37-generic #42-Ubuntu SMP Wed Mar 7 14:13:23 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
  • Android Studio 3.1
  • Visual Paradigm CE 15.0

General system info (from vp.log):

[2018/03/29 01:10:45] [message] [Thu Mar 29 01:10:45 MSK 2018]: Start Visual Paradigm Community Edition [VP CE]: 15.0 (20180302)
[2018/03/29 01:10:45] [message] Operating system: Linux 4.13.0-37-generic running on amd64
[2018/03/29 01:10:45] [message] Java VM: 9.0.1 Java HotSpot™ 64-Bit Server VM, vendor 9.0.1+11 Oracle Corporation
[2018/03/29 01:10:45] [message] User: vptester, language: en
[2018/03/29 01:10:45] [message] Installation ID: 30f3e17071f6dcc35ac6fb5fcce6d844
[2018/03/29 01:10:45] [message] Memory: current=256M, max=1024M
[2018/03/29 01:10:48] [message] start startup getLicenseKey on 29-Mar-2018
[2018/03/29 01:10:48] [message] getLicenseKey in local …
[2018/03/29 01:10:48] [message] finish startup getLicenseKey
[2018/03/29 01:10:48] [message] getVerifiedLicenseKey: null; state=Activating
[2018/03/29 01:10:48] [message] Workspace: /home/vptester/.config/VisualParadigm/ws
[2018/03/29 01:14:12] [message] Saved project “.systemproject” to “/home/vptester/.config/VisualParadigm/ws/.vpprefdata/.systemproject.vpp”.
[2018/03/29 01:18:40] [message] [Thu Mar 29 01:18:40 MSK 2018]: Start Visual Paradigm [VP]: 15.0 (20180302)
[2018/03/29 01:18:40] [message] Operating system: Linux 4.13.0-37-generic running on amd64
[2018/03/29 01:18:40] [message] Java VM: 9.0.1 Java HotSpot™ 64-Bit Server VM, vendor 9.0.1+11 Oracle Corporation
[2018/03/29 01:18:40] [message] User: vptester, language: en
[2018/03/29 01:18:40] [message] Installation ID: 30f3e17071f6dcc35ac6fb5fcce6d844
[2018/03/29 01:18:40] [message] Memory: current=256M, max=1024M
[2018/03/29 01:18:40] [message] start startup getLicenseKey on 29-Mar-2018
[2018/03/29 01:18:40] [message] getLicenseKey in local …
[2018/03/29 01:18:40] [message] finish startup getLicenseKey
[2018/03/29 01:18:40] [message] getVerifiedLicenseKey: null; state=Installed
[2018/03/29 01:20:30] [message] start startup getLicenseKey on 29-Mar-2018
[2018/03/29 01:20:30] [message] getLicenseKey in local …
[2018/03/29 01:20:30] [message] finish startup getLicenseKey
[2018/03/29 01:20:37] [message] Workspace: /home/vptester/.config/VisualParadigm/ws
[2018/03/29 01:23:02] [message] Saved project “.systemproject” to “/home/vptester/.config/VisualParadigm/ws/.vpprefdata/.systemproject.vpp”.
[2018/03/29 01:35:42] [warning] Language dir not found: /home/vptester/…/UserLanguage
[2018/03/29 01:35:42] [warning] Cannot read Product and Edition
[2018/03/29 01:38:05] [warning] java.lang.NullPointerException
at v.czx.c.a(:98)
at v.czx.w.b(:279)
at v.czx.w.a(:207)
at v.dap.b.a(:48)
at v.dan.c.a(:63)
at v.cyx.c.a(:43)
at v.cyx.c.actionPerformed(:29)
at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:220)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:237)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.lambda$actionPerformed$0(ActionMenuItem.java:321)
at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:911)
at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:136)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:311)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.lambda$fireActionPerformed$0(ActionMenuItem.java:130)
at com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:88)
at com.intellij.openapi.application.TransactionGuardImpl.lambda$submitTransaction$1(TransactionGuardImpl.java:111)
at com.intellij.openapi.application.TransactionGuardImpl.submitTransaction(TransactionGuardImpl.java:120)
at com.intellij.openapi.application.TransactionGuard.submitTransaction(TransactionGuard.java:122)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:130)
at com.intellij.ui.plaf.beg.BegMenuItemUI.doClick(BegMenuItemUI.java:521)
at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:48)
at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:541)
at java.awt.Component.processMouseEvent(Component.java:6541)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6306)
at java.awt.Container.processEvent(Container.java:2237)
at java.awt.Component.dispatchEventImpl(Component.java:4897)
at java.awt.Container.dispatchEventImpl(Container.java:2295)
at java.awt.Component.dispatchEvent(Component.java:4719)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4526)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)
at java.awt.Container.dispatchEventImpl(Container.java:2281)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4719)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:737)
at java.awt.EventQueue$4.run(EventQueue.java:735)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:822)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:646)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:366)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)


#2

Hi,

Seems you haven’t activated your community license. Can you try to start VP and activate it first?


#3

Nope, it does not help…

Visual Paradigm is activated. /Window/License Manager shows:

License: Community
Status: Activated
User Name: VPTester
Email: my-email-here…

But the error is still there:

null
java.lang.NullPointerException
at v.czx.c.a(:98)
at v.czx.w.b(:279)
at v.czx.w.a(:207)
at v.dap.b.a(:48)
at v.cyx.c.a(:43)
at v.cyx.c.actionPerformed(:29)
at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:220)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:237)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.lambda$actionPerformed$0(ActionMenuItem.java:321)
at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:911)
at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:136)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:311)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.lambda$fireActionPerformed$0(ActionMenuItem.java:130)
at com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:88)
at com.intellij.openapi.application.TransactionGuardImpl.lambda$submitTransaction$1(TransactionGuardImpl.java:111)
at com.intellij.openapi.application.TransactionGuardImpl.submitTransaction(TransactionGuardImpl.java:120)
at com.intellij.openapi.application.TransactionGuard.submitTransaction(TransactionGuard.java:122)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:130)
at com.intellij.ui.plaf.beg.BegMenuItemUI.doClick(BegMenuItemUI.java:521)
at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:48)
at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:541)
at java.awt.Component.processMouseEvent(Component.java:6541)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6306)
at java.awt.Container.processEvent(Container.java:2237)
at java.awt.Component.dispatchEventImpl(Component.java:4897)
at java.awt.Container.dispatchEventImpl(Container.java:2295)
at java.awt.Component.dispatchEvent(Component.java:4719)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4526)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)
at java.awt.Container.dispatchEventImpl(Container.java:2281)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4719)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:737)
at java.awt.EventQueue$4.run(EventQueue.java:735)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:822)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:646)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:366)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)


#4

Hi,

Did you reinstall Integration after activate?
Can you find sde/community.txt file in under your IDE’s folder? and sde/product_edition.properties? What’s the content of it?


#5

thx for your quick response!

i’d activated it before the integration, but in any case i’ve reinstalled one again.

~/Soft/android-studio/bin/sde/community.txt:

~/Soft/android-studio/bin/sde/product_edition.properties:


#6

Hi,

Thank you for the information, can you also provide the vp.log from the last “Start Visual Paradigm…”?
Is the IDE still showing “Open Visual Paradigm Professional”?


#7

I just tested and it should looks like that:


#8

yes, i can see /Tools/Start Visual Paradigm Professional (by the way, i use CE not Professional) and when i press it the above mentioned error occurs

vp.log content is just exactly the same as in previous posts…

i think that this is because i use Android Studio 3.1, it was released two days ago and may be there are some breaking changes…

Furthermore, all specific to Visual Paradigm menu items (like Format, Modeling) are disabled


#9

My screenshot above is captured from Android Studio 3.1…

Do you have ~/.config/VisualParadigm/product_edition.properties? If yes, what’s the content?


#10

I found sone new error log now, its tight here: ~/Soft/Visual_Paradigm_CE_15.0/bin/sdelanuncher.log with the following content:

no i don’t, my ll ~/.config/VisualParadigm/ is like:

and this one community.properties (not product_edition.properties) is like:


#11

and vp.log now is:


#12

It looks like the log does not come from the Integration.
Please rename/delete vp.log, start Android Studio, Start Visual Paradigm from Tools menu, and post the log again.

Thanks.


#13

well, now only this content:


#14

Hi,

I can reproduce the problem only if I delete sde/product_edition.properties, so I believe there are some problems when reading this file. Please try to run in terminal:

cd ~/Soft/android-studio/bin
ls -l sde/product_edition.properties # ensure have “r” permission
./studio.sh


#15

hmm… very interesting, everything works if i start Android Studio from a command line (like ./studio.sh) but it does not if i try to launch it with .desktop file ~/Desktop/jetbrains-studio.desktop (that default one which Studio creates under /Tools/Create Desktop Entry)

may be some problems with absolute path resolving, etc…

in any case this topic may be helpful to someone else who uses Ubuntu too…

Kit.So, thx so much for your collaboration and patience! hope this helps to someone else.


#16

You’re welcome and I am glad to hear that the problem was solved.
For the .desktop file problem, did you set Working Directory? It should works with this settings:

[Desktop Entry]
Version=1.0
Type=Application
Name=Android Studio 3.1
Comment=
Exec=/home/vptester/Soft/android-studio/bin/studio.sh
Icon=
Path=/home/vptester/Soft/android-studio/bin
Terminal=false
StartupNotify=false


#17

Hi,

We fixed auto-detect android studio working directory. If your problem cannot resolve by changing working directory in .desktop file, we can provide a patch for you.