Messages by kuixcoder

One topic, 16 messages
Kuix technical support » Cannot press "cancel"

Hi

I am using Nokia 40 series emulator and i get the following exception when i exit my midlet application using onAction="!exit". The onAction="!exit" in the Kuix Demo Application works well on the same emulator though.

Exception: java/lang/IllegalArgumentException
        at el.a(+15)
        at k.f(+7)
        at c.f(+29)
        at c.b(+112)
        at fq.k(+43)
        at al.k(+14)
        at al.d(+8)
        at c.e(+12)
        at c.d(+39)
        at c.e(+12)
        at c.d(+39)
        at fm.b(+10)
        at cb.a(+42)
        at el.a(+41)
        at org.kalmeo.kuix.core.KuixMIDlet.destroyApp(+9)
        at com.nestor.trs.midlet.TRSMidlet.c(+5)
        at el.a(+48)
        at bk.h(+18)
        at bx.h(+9)
        at bk.a(+23)
        at db.a(+16)
        at fd.a(+158)
        at ff.a(+125)
        at dz.run(+56)
Exception: java/lang/IllegalArgumentException
        at el.a(+15)
        at k.f(+7)
        at c.f(+29)
        at c.b(+112)
        at fq.k(+43)
        at al.k(+14)
        at al.d(+8)
        at c.e(+12)
        at c.d(+39)
        at c.e(+12)
        at c.d(+39)
        at fm.b(+10)
        at cb.a(+42)
        at el.a(+41)
        at org.kalmeo.kuix.core.KuixMIDlet.destroyApp(+9)
        at com.nestor.trs.midlet.TRSMidlet.c(+5)
        at el.a(+48)
        at bk.h(+18)
        at bx.h(+9)
        at bk.a(+23)
        at db.a(+16)
        at fd.a(+158)
        at ff.a(+125)
        at dz.run(+56)
Exception: java/lang/ClassNotFoundException
        at com.nokia.mid.impl.isa.ui.MIDletManager.shutdownHook(+5)
        at com.nokia.mid.impl.isa.ui.MIDletManager.callDestroyApp(+22)
        at com.nokia.mid.impl.isa.ui.MIDletManager.destroyMIDletSuite(+16)
        at com.nokia.mid.impl.isa.ui.MIDletManager.consumeEvent(+61)
        at com.nokia.mid.impl.isa.ui.EventDispatcher.run(+41)

 

 

Kuix technical support » Illegalargumentexception while updating image using dataprovider


KUIX Team,

Kindly let me know the solution for this issue:

When i am updating the image inside the list item, the listitem disappears. For all other components, it works fine.

Please see the compete thread for more information on this issue. It is high priorty issue for us which needs to be fixed ASAP.

Thanks.

 

Kuix technical support » Illegalargumentexception while updating image using dataprovider

i am using kuix 1.0.1 source from svn repository along with Kutil

Kuix technical support » Illegalargumentexception while updating image using dataprovider

i am using kuix 1.0.1 source from svn repository along with Kutil

Kuix technical support » Illegalargumentexception while updating image using dataprovider

i am using kuix 1.0.1 source from svn repository along with

Kuix technical support » Illegalargumentexception while updating image using dataprovider

i am using kuix 1.0.1 source from svn repository along

Kuix technical support » Illegalargumentexception while updating image using dataprovider

i am using kuix 1.0.1 source from svn repository

Kuix technical support » Illegalargumentexception while updating image using dataprovider

Hi Pandora808,

There is a way. you have to set the framewidth and frameheight values to image's width and height respectively through the dataprovider. See Below.

 <picture>

<_image>@{newImage}</_image>

<_framewidth>@{imageWidth}</_framewidth>

</picture>

It Updates the image correctly.

But if you are updating the image inside the list item, there is another issue. The listitem disappears. For all other components, it works fine.

Kuix Experts, Kindly help me to fix this issue. When the image in the list item is updated, the list item disappears. Without fixing this issue, we cannot show the midlet to our client. Please co-operate and help us in fixing this issue.

<_frameheight>@{imageHeight}</_frameheight>

Kuix technical support » Illegalargumentexception while updating image using dataprovider

Hi Kuix Experts,

Please Post a solution for this issue.

Thanks.

 

 

Kuix technical support » Illegalargumentexception while updating image using dataprovider

As mentioned previously, We are in the final phase of our product development but this issue has turned out to be a nightmare to demo/release our product. Kuix Dev Team, please kindly post a solution for this issue.

Kuix technical support » Illegalargumentexception while updating image using dataprovider

Hi Tofu,

Exactly. After i invoke the setImage method on list item dataprovider, the corresponding listitem disappear. 

Is there any work around for this. Any help would be appreciated.

Thanks.

 

 

 

 

Kuix technical support » Illegalargumentexception while updating image using dataprovider

IllegalArgumentException is resolved now. The issue was that the old and new image should have same dimensions, otherwise it would throw illegalargumentexception which is strange.

But i am facing another issue now. After the list item is updated with the new image, it is not visible in the list anymore. This List item is getting deleted from the list. Strange one again.

Any ideas from Kuix Team is welcome.

 

 

Kuix technical support » Illegalargumentexception while updating image using dataprovider

Sorry the exception is in setImageData() method of javax.microedition.lcdui.game.Sprite Class.

Kuix technical support » Illegalargumentexception while updating image using dataprovider

Hi

Yes I am updating the dataprovider for the listitem with the new image. here is the code snippet we used for updating the image.

public class ListItemDataProvider extends DataProvider
{
 private static final String IMAGE_PROPERTY = "newImage";
 
 private Image image;

 public void setImage(Image image)
 {
         this.image = image;
         dispatchUpdateEvent(IMAGE_PROPERTY);
 }

 protected Object getUserDefinedValue(String property)
 {
         if (IMAGE_PROPERTY.equals(property))
         {
              return this.image;
         }
 }
}

we are getting an illegalargumentexception while updating the dataprovider with the new image. The Stack Trace Show thats the exception occurs in the method 'setImageData()' of javax.microedition.lcdui.Image Class.

Any help would be appreciated.

Thanks.

 

Kuix technical support » Illegalargumentexception while updating image using dataprovider

We are developing a product with KUix which is almost 80% complete now. The above issue has become a show stopper for our product. Please let us know a solution for this issue.