AbstractEventHandler

79 views
Skip to first unread message

Thiat Min

unread,
Sep 22, 2017, 11:51:51 AM9/22/17
to idem...@googlegroups.com
Hello,

I try use AbstractEventHandler as model validator. My validator run
well if i run it from eclipse .
But after i create idempiere client, and run from the binary, my
validator is not functioned at all.
What's wrong ?

Thank You.

Orlando Curieles

unread,
Sep 22, 2017, 12:28:15 PM9/22/17
to iDempiere
Hi, can you show your plugins details or check this:


Regards.

Thiat Min

unread,
Sep 22, 2017, 12:49:19 PM9/22/17
to idem...@googlegroups.com
Yes, my plugin has follow the
http://wiki.idempiere.org/en/Developing_Plug-Ins_-_Model_Events
exactly.
The problem is it run well if i run it from eclipse.
But if i run it from binary after i compile it, my validator is not functioned.

Here is my manifest.mf :
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: btm
Bundle-SymbolicName: btm.modification;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Require-Bundle: org.adempiere.base;bundle-version="2.0.0",
org.adempiere.plugin.utils;bundle-version="2.0.0",
org.adempiere.ui;bundle-version="4.1.0",
org.adempiere.base.process;bundle-version="4.1.0"
Bundle-Activator: org.adempiere.plugin.utils.AdempiereActivator
Service-Component:
OSGI-INF/*.xml,TaxProviderFactory.xml,OSGI-INF/BTMModelFactory.xml,OSGI-INF/BTMProcessFactory.xml,
OSGI-INF/BTMDocFactory.xml,OSGI-INF/BTMValidator.xml
Import-Package: org.eclipse.equinox.events;version="1.0.0",
org.joda.time,
org.osgi.framework;version="1.8.0",
org.osgi.service.event;version="1.3.0"
Bundle-ActivationPolicy: lazy
Export-Package: org.btm.apps.form,
org.btm.model

On 22 September 2017 at 23:28, Orlando Curieles
> --
> You received this message because you are subscribed to the Google Groups
> "iDempiere" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to idempiere+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/idempiere/6d1895f2-f7d6-4129-ba74-518b2b16f404%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Orlando Curieles

unread,
Sep 22, 2017, 12:57:31 PM9/22/17
to iDempiere
I recommend you change your Java Version plugin to 1.8, you need restart your server after start your plugin.

How you enable your plugin on your production environment ?

Regards-

Thiat Min

unread,
Sep 22, 2017, 2:50:15 PM9/22/17
to idem...@googlegroups.com
I have changed to 1.8 , no effect.
I don't enable plugin in production environment, but i include my
plugins in an installation package of iDempiere,
by edit feature.xml that is in project of
"org.adempiere.server-feature" and org.adempiere.ui.swing.feature for
include my plugins into iDempiere package.
And use buckminster to build the binary.

My other factory like calloutfactory, modelfactory, docfactory, etc
run without problem in binary, except the validator ., the validator
only functioned if run from eclipse.


On 22 September 2017 at 23:57, Orlando Curieles
> https://groups.google.com/d/msgid/idempiere/12d3ae28-0c92-4ddb-82f5-1d91a665ae63%40googlegroups.com.

Hiep Lq

unread,
Sep 23, 2017, 12:09:25 AM9/23/17
to Mohemmed Bilal Ilyas
when you package to binary, your plugin don't go with package. have two option.
1. add your plugin to org.idempiere.customize-feature and re-package
2. export your plugin and install it by osgi command line or flex web ui.

--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/CAMLJ2RXsn7GM3LJMWCt57dHczyG7Qi%3Dtze328HkPbwPE4ErbkQ%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.



--
Lê Quý Hiệp
Email: hie...@hasuvimex.vn
Skype: admin.hasuvimex

Company: Thanh Hoa Fishery Import - Export J.s.c  (HasuvimexDL 47
Add: Lot E, Le Mon Industrial Zone, Thanh Hoa, Vietnam

Thiat Min

unread,
Sep 26, 2017, 4:53:54 AM9/26/17
to idem...@googlegroups.com
Problem solved. It's very simple problem. I forgot to add
myvalidator.xml to build.properties. :)))

Hengsin, what's the difference between add plugin between
idempiere.customize and org.adempiere.ui.swing or ui.zk ?
I add my plugin to ui.swing and ui.zk, and my plugin packaged well to binary.

On 23 September 2017 at 11:09, 'Hiep Lq' via iDempiere
<idem...@googlegroups.com> wrote:
> when you package to binary, your plugin don't go with package. have two
> option.
> 1. add your plugin to org.idempiere.customize-feature and re-package
> 2. export your plugin and install it by osgi command line or flex web ui.
>
> On Fri, Sep 22, 2017 at 10:51 PM, Thiat Min <thia...@gmail.com> wrote:
>>
>> Hello,
>>
>> I try use AbstractEventHandler as model validator. My validator run
>> well if i run it from eclipse .
>> But after i create idempiere client, and run from the binary, my
>> validator is not functioned at all.
>> What's wrong ?
>>
>> Thank You.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "iDempiere" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to idempiere+...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/idempiere/CAMLJ2RXsn7GM3LJMWCt57dHczyG7Qi%3Dtze328HkPbwPE4ErbkQ%40mail.gmail.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
>
>
> --
> Lê Quý Hiệp
> Email: hie...@hasuvimex.vn
> Skype: admin.hasuvimex
>
> Company: Thanh Hoa Fishery Import - Export J.s.c (Hasuvimex) DL 47
> Add: Lot E, Le Mon Industrial Zone, Thanh Hoa, Vietnam
>
> --
> You received this message because you are subscribed to the Google Groups
> "iDempiere" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to idempiere+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/idempiere/CAHZ0wEb36dr%2BpFLqQd3WvfAo0gg73hDSLB5C1TEWp8N%3DAfSTrQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages