Hello All,
I have an app in B4XPages with three pages:
- B4XMainPage , pedidos and orderDetail
The app switches from B4XMainPage normally to pedidos ... this is the declaration code in B4XMainPage:
Switching to pedidos, the app calls:
When pedidos is shown, the follow code is called in order to define the orderDetail page:
But when the orderDetailPage is initialized, I'm getting the error (in B4A):
java.lang.ClassCastException: java.lang.NoClassDefFoundError cannot be cast to java.lang.Exception
It's running fine in B4J. I didn't tested in IOS yet. What's wrong? The page definition from B4XMainPage -> pedidos has exactly the same syntax of pedidos -> orderDetail...
Can anybody help me please?
I have an app in B4XPages with three pages:
- B4XMainPage , pedidos and orderDetail
The app switches from B4XMainPage normally to pedidos ... this is the declaration code in B4XMainPage:
B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("loginLayout")
PedidosPage.Initialize
B4XPages.AddPage("pedidos",PedidosPage)
End Sub
Switching to pedidos, the app calls:
B4X:
B4XPages.ShowPageAndRemovePreviousPages("pedidos")
When pedidos is shown, the follow code is called in order to define the orderDetail page:
B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
'load the layout to Root
Root.LoadLayout("pedidos")
orderDetailPage.Initialize
B4XPages.AddPage("orderDetail",orderDetailPage)
end sub
But when the orderDetailPage is initialized, I'm getting the error (in B4A):
java.lang.ClassCastException: java.lang.NoClassDefFoundError cannot be cast to java.lang.Exception
It's running fine in B4J. I didn't tested in IOS yet. What's wrong? The page definition from B4XMainPage -> pedidos has exactly the same syntax of pedidos -> orderDetail...
Can anybody help me please?