afPodBuilderExt icon

afPodBuilderExt

Transform your Axon functions, Views, and Apps, into custom SkySpark extensions
afPodBuilderExtForum
< All topics

Registered StackHub users may elect to receive email notifications whenever a new package version is released or a comment is posted on the forum.

There are 9 watchers.


Unable to Bundle Axon Functions
Farhang Razzaghi6th Sep 2022

I'm unable to bundle Axon functions into my pod. It looks like it's loading with the below error. I'm using the full version of PodBuilder with SkySpark (Linux) 3.1.4.

axon::EvalErr: Func failed: afPodBuilder_callSkyJax(Dict msg); args: (Dict3)

sys::Err: Could not call afPodBuilderExt::PodBuilderFuncsImpl.listRecs - java.lang.ClassCastException: class fan.haystack.Marker cannot be cast to class java.lang.String (fan.haystack.Marker is in unnamed module of loader fan.sys.FanClassLoader @1e127982; java.lang.String is in module java.base of loader 'bootstrap') [eval:1]
axon::FantomFn.callx (FantomFn.fan:117)
axon::Fn.callLazy (Fn.fan:84)
axon::Call.eval (Call.fan:39)
skyarcd::Context.evalOrReadAll (Context.fan:117)
hx::HxEvalOp.onRequest (HxApiOp.fan:193)
hx::HxApiOp.onService (HxApiOp.fan:41)
skyarcd::ApiWebMod.onService (ApiMod.fan:150)
skyarcd::HttpRootMod.onService (HttpMod.fan:122)
wisp::WispActor.process (WispActor.fan:80)
wisp::WispActor.receive (WispActor.fan:38)
concurrent::Actor._dispatch (Actor.java:274)
concurrent::Actor._work (Actor.java:229)
concurrent::ThreadPool$Worker.run (ThreadPool.java:273)

Cause:

sys::Err: Could not call afPodBuilderExt::PodBuilderFuncsImpl.listRecs - java.lang.ClassCastException: class fan.haystack.Marker cannot be cast to class java.lang.String (fan.haystack.Marker is in unnamed module of loader fan.sys.FanClassLoader @1e127982; java.lang.String is in module java.base of loader 'bootstrap')
  afPodBuilderExt::SkyJaxServer.call (SkyJaxServer.fan:86)
  afPodBuilderExt::PodBuilderLib.afPodBuilder_callSkyJax (PodBuilderLib.fan:12)
  jdk.internal.reflect.GeneratedMethodAccessor261.invoke (Unknown)
  jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
  java.lang.reflect.Method.invoke (Method.java:568)
  fan.sys.Method.invoke (Method.java:573)
  fan.sys.Method$MethodFunc.callList (Method.java:212)
  fan.sys.Method.callList (Method.java:138)
  axon::FantomFn.doCall (FantomFn.fan:125)
  axon::AxonContext.callInNewFrame (AxonContext.fan:153)
  axon::AxonContext.callInNewFrame (AxonContext.fan)
  axon::FantomFn.callx (FantomFn.fan:113)
  axon::Fn.callLazy (Fn.fan:84)
  axon::Call.eval (Call.fan:39)
  skyarcd::Context.evalOrReadAll (Context.fan:117)
  hx::HxEvalOp.onRequest (HxApiOp.fan:193)
  hx::HxApiOp.onService (HxApiOp.fan:41)
  skyarcd::ApiWebMod.onService (ApiMod.fan:150)
  skyarcd::HttpRootMod.onService (HttpMod.fan:122)
  wisp::WispActor.process (WispActor.fan:80)
  wisp::WispActor.receive (WispActor.fan:38)
  concurrent::Actor._dispatch (Actor.java:274)
  concurrent::Actor._work (Actor.java:229)
  concurrent::ThreadPool$Worker.run (ThreadPool.java:273)
Cause:
  sys::CastErr: java.lang.ClassCastException: class fan.haystack.Marker cannot be cast to class java.lang.String (fan.haystack.Marker is in unnamed module of loader fan.sys.FanClassLoader @1e127982; java.lang.String is in module java.base of loader 'bootstrap')
    afPodBuilderExt::PodTrioFile.toPodRec (PodTrioFile.fan:50)
    afPodBuilderExt::PodTrioRec.make$ (PodTrioFile.fan:78)
    afPodBuilderExt::PodTrioRec.make (PodTrioFile.fan:78)
    afPodBuilderExt::PodTrioFile.toPodRec (PodTrioFile.fan:44)
    afPodBuilderExt::PodManifest.listRecs (PodManifest.fan:115)
    fan.sys.Func$Indirect1.call (Func.java:145)
    haystack::Grid.mapToList (Grid.fan:415)
    fan.sys.List.each (List.java:609)
    haystack::GbGrid.each (GridBuilder.fan:393)
    haystack::Grid$.mapToList (Grid.fan:415)
    haystack::GbGrid.mapToList (GridBuilder.fan:371)
    afPodBuilderExt::PodManifest.listRecs (PodManifest.fan:114)
    afPodBuilderExt::PodBuilderFuncsImpl.listRecs (PodBuilderFuncs.fan:164)
    jdk.internal.reflect.GeneratedMethodAccessor332.invoke (Unknown)
    jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    java.lang.reflect.Method.invoke (Method.java:568)
    fan.sys.Method.invoke (Method.java:573)
    fan.sys.Method$MethodFunc.callOn (Method.java:244)
    fan.sys.Method.callOn (Method.java:139)
    afPodBuilderExt::SkyJaxServer.call (SkyJaxServer.fan:85)
    afPodBuilderExt::PodBuilderLib.afPodBuilder_callSkyJax (PodBuilderLib.fan:12)
    jdk.internal.reflect.GeneratedMethodAccessor261.invoke (Unknown)
    jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    java.lang.reflect.Method.invoke (Method.java:568)
    fan.sys.Method.invoke (Method.java:573)
    19 More...
Henry Chatwin6th Sep 2022

Hi Farhang,

That Error would indicate that you have a function within your folio database that has the "doc" field on it set to a Marker, where it's expected type is a String - would you be able to confirm if that's the case?

We'll implement a fix for this as soon as possible, but for now if you change out any "doc" fields that are set to a Marker to instead contain a String, the view should return to a working state.

Let us know if that doesn't sort the issue and we can troubleshoot further.

Farhang Razzaghi6th Sep 2022

Henry,

Yes, that was the issue and it's fixed now. Thank you for your quick response.


Log in or Sign up to post a reply.