• Welcome to KonaKart Community Forum. Please login or sign up.
 
December 21, 2024, 12:27:52 pm

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Mike

1
Oh well, look on the plus side, I know where to find the patches now ;)
2
If anyone is interested, there is a simple Javascript fix for this problem available at http://www.webwrights.co.uk/konakart/print_problem_fix.html

It just involves a modification to the Velocity templates. Easy to remove when the bug is actually fixed.

Enjoy

Mike
3
Server is Tomcat 6.
4
Programming of KonaKart / Module class loading
May 07, 2008, 06:58:08 pm
I have an odd problem which I assume is a classloader issue. Can anyone shed any light?

I have created a Payment module (which works fine). I then tried to add in a call to some Javamail code (which works perfectly else where).

With the Javamail code included, I get the exception shown at the bottom of the page.

If I incorporate my Javamail code into a new Struts action (TestAction), invoked by Test.do, it works fine. The problem only occurs when the module is packaged as a jar and then loaded. Hence my suspicion of the behaviour of the class loader. Is there any configuration of the classpath for the module loader?

Thanks for any help.


The exception:

<pre>
java.lang.NoClassDefFoundError: com/konakart/actions/gateways/WebWrightPayAction$1
   java.lang.Class.getDeclaredConstructors0(Native Method)
   java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
   java.lang.Class.getConstructor0(Class.java:2699)
   java.lang.Class.newInstance0(Class.java:326)
   java.lang.Class.newInstance(Class.java:308)
   org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:143)
   org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcessor.java:292)
   org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:230)
   org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
   org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
   org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
   org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)
   org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318)
   org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
   org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
   org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
</pre>
5
Configuration of KonaKart / Re: Admin Currency
April 30, 2008, 10:26:40 am
I've fixed it!

I did not want to use a comma as the thousands separator (nasty American idea) so set the separator to a space. This was presumably getting trimmed to an empty string by your DB code. Then in getFormatter, something was presumably searching the thousands separator string which was zero length.

Cheers.
6
Configuration of KonaKart / Admin Currency
April 30, 2008, 10:15:58 am
I'm new to Konakart so I've probably missed something obvious.

I want to switch the default currency to GBP so:

1. I created a new currency

2. I set that currency to be the default

3. I restarted Tomcat (Konakart server)

4. I restarted my browser

As soon as I try to view any of my existing products in the Admin Web App I get a stack trace in Tomcat:

30-Apr 10:05:54 INFO  (?:<init>:?) Engine used by application is com.konakart.
p.KKEng
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
        at java.lang.String.charAt(Unknown Source)
        at com.konakart.al.KKAppEng.getFormatter(Unknown Source)
        at com.konakart.al.KKAppEng.setupCurrency(Unknown Source)
        at com.konakart.al.KKAppEng.<init>(Unknown Source)
        at com.konakart.al.ConfigCacheUpdater.getClientEng(Unknown Source)
        at com.konakart.al.ConfigCacheUpdater.updateConfigs(Unknown Source)
        at com.konakart.al.ConfigCacheUpdater.run(Unknown Source)

Looks to me as if something is trying to get a format string for the language and failing.

Any help would be great (this is one of those times when the source code would be valuable!).

Regards

Mike

PS: As long as I can get over these minor glitches, I will be much happier supplying Konakart to my customers than oscommerce. Great job.