[Mondrian] Internal error: expected primitive type, got class java.lang.Obje
Pedro Alves
pedro at neraka.no-ip.org
Thu Apr 2 05:58:56 EDT 2009
https://sourceforge.net/tracker/?func=detail&aid=2726486&group_id=35302&atid=414613
I couldn't find it in jira, so here it is.
@DMurray: Thanks for the suggestion, but this was only an example; I have
a lot of other errors regarding that
Thanks
On Wed, Apr 01, 2009 at 12:09:58PM -0700, Julian Hyde wrote:
> This is definitely an error. Can you log a bug for this, Pedro?
>
> Julian
>
> > -----Original Message-----
> > From: mondrian-bounces at pentaho.org
> > [mailto:mondrian-bounces at pentaho.org] On Behalf Of Pedro Alves
> > Sent: Wednesday, April 01, 2009 11:42 AM
> > To: Mondrian Mailing List
> > Subject: [Mondrian] Internal error: expected primitive
> > type,got class java.lang.Obje
> >
> >
> >
> > I know this isn't a users list, but I can't get my head around this;
> >
> > I can't use most of the VB / utility functions in the
> > mondrian docs due to
> > this error:
> >
> > mondrian.olap.MondrianException: Mondrian Error:Internal
> > error: expected
> > primitive type, got class java.lang.Object
> >
> >
> > And I'm talking about simple stuff like
> > Cast(Int(([Measures].[Sales]/3600))
> > as String) or every datetime function over a measure that I
> > have defined
> > earlier.
> >
> >
> >
> > Am I doing something dead wrong?
> >
> >
> >
> > Seems I'm not the only one:
> > http://forums.pentaho.org/showthread.php?p=210894 , as he
> > even investigated
> > it in the source code:
> >
> > [quote]
> >
> > I did some digging in to the mondrian source code and
> > found out a few
> > things. The method throwing the exception is
> > mondrian/olap/fun/JavaFunDef.java:160 compileTo().
> >
> > I believe the reason it's throwing an exception is that
> > cDate() from
> > mondrian/fun/vba/Vba.java:67 takes a java.lang.Object as
> > an argument and
> > not one of the types listed in compileTo().
> >
> > Perhaps there is a way to modify compileTo() so that it
> > accepts a generic
> > object type?
> >
> > [/quote]
> >
> >
> >
> > Cheers
> >
> >
> >
> >
> > --
> > Pedro Alves
> > pmgalves-at-gmail.com
> >
> > _______________________________________________
> > Mondrian mailing list
> > Mondrian at pentaho.org
> > http://lists.pentaho.org/mailman/listinfo/mondrian
> >
>
>
> _______________________________________________
> Mondrian mailing list
> Mondrian at pentaho.org
> http://lists.pentaho.org/mailman/listinfo/mondrian
--
Pedro Alves
pmgalves-at-gmail.com
More information about the Mondrian
mailing list