[jboss-jira] [JBoss JIRA] (DROOLS-3746) JavaScript run error when edit Guided Decision Tables on latest chrome

Alberto Fanjul Alonso (Jira) issues at jboss.org
Wed Jun 26 09:37:00 EDT 2019


    [ https://issues.jboss.org/browse/DROOLS-3746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13752203#comment-13752203 ] 

Alberto Fanjul Alonso edited comment on DROOLS-3746 at 6/26/19 9:36 AM:
------------------------------------------------------------------------

I tried this with chrome:

{code:javascript}
 | Uncaught exception: Uncaught TypeError: Cannot read property 'createElement' of undefined (http://localhost:8080/business-central/verifier/dtableVerifier/DDFC3D4453CB85BB71197C4DE2FF626C.cache.js:2609:75)
{code}

and firefox

{code:javascript}
 | Uncaught exception: TypeError: b is undefined (http://localhost:8080/business-central/verifier/dtableVerifier/DDFC3D4453CB85BB71197C4DE2FF626C.cache.js:2609) | Uncaught exception: TypeError: b is undefined (http://localhost:8080/business-central/verifier/dtableVerifier/DDFC3D4453CB85BB71197C4DE2FF626C.cache.js:2609)
{code}

So seems not related with chrome.

Seing the stack trace from chrome:

{code:javascript}
Uncaught TypeError: Cannot read property 'createElement' of undefined
    at Qb (DDFC3D4453CB85BB71197C4DE2FF626C.cache.js:formatted:13294)
    at Rsb (DDFC3D4453CB85BB71197C4DE2FF626C.cache.js:formatted:23506)
    at ssb (DDFC3D4453CB85BB71197C4DE2FF626C.cache.js:formatted:8218)
    at rsb (DDFC3D4453CB85BB71197C4DE2FF626C.cache.js:formatted:3192)
    at tsb.wsb [as tb] (DDFC3D4453CB85BB71197C4DE2FF626C.cache.js:formatted:38072)
    at KT (DDFC3D4453CB85BB71197C4DE2FF626C.cache.js:formatted:12820)
    at QT (DDFC3D4453CB85BB71197C4DE2FF626C.cache.js:formatted:11819)
    at gc (DDFC3D4453CB85BB71197C4DE2FF626C.cache.js:formatted:10406)
    at bc (DDFC3D4453CB85BB71197C4DE2FF626C.cache.js:formatted:12150)
    at DDFC3D4453CB85BB71197C4DE2FF626C.cache.js:formatted:6237
    at self.onmessage (DDFC3D4453CB85BB71197C4DE2FF626C.cache.js:formatted:14754)
{code}

formatted code is:

{code:javascript}
function Qb(a) {
    var b, c, d;
    d = !a.c ? (Ob(),
    window) : a.c;
    b = (Ob(),
    d.document);
    c = b.createElement('script');
    Pb(c, a.b);
    (b.head || b.getElementsByTagName('head')[0]).appendChild(c);
    a.a && (c.parentNode.removeChild(c),
    undefined);
    return c
}
{code}

this is generated code by gwt http://www.gwtproject.org/overview.html so the real code is under.

drools-wb-services/drools-wb-verifier/drools-wb-verifier-webworker/src/main/java/org/drools/workbench/services/verifier/plugin/backend/DecisionTableVerifierWebWorkerProvider.java

or

drools-wb-screens/drools-wb-guided-dtable-editor/drools-wb-guided-dtable-editor-client/src/main/java/org/drools/workbench/screens/guided/dtable/client/widget/analysis/DecisionTableAnalyzerBuilder.java

Not sure if in code itself or in gwt translation

Any idea on what to check, debug or test to fix this?


was (Author: afanjula):
I tried this with chrome:

```
 | Uncaught exception: Uncaught TypeError: Cannot read property 'createElement' of undefined (http://localhost:8080/business-central/verifier/dtableVerifier/DDFC3D4453CB85BB71197C4DE2FF626C.cache.js:2609:75)
```
and firefox

```
 | Uncaught exception: TypeError: b is undefined (http://localhost:8080/business-central/verifier/dtableVerifier/DDFC3D4453CB85BB71197C4DE2FF626C.cache.js:2609) | Uncaught exception: TypeError: b is undefined (http://localhost:8080/business-central/verifier/dtableVerifier/DDFC3D4453CB85BB71197C4DE2FF626C.cache.js:2609)
```

So seems not related with chrome.

Seing the stack trace from chrome:

```
Uncaught TypeError: Cannot read property 'createElement' of undefined
    at Qb (DDFC3D4453CB85BB71197C4DE2FF626C.cache.js:formatted:13294)
    at Rsb (DDFC3D4453CB85BB71197C4DE2FF626C.cache.js:formatted:23506)
    at ssb (DDFC3D4453CB85BB71197C4DE2FF626C.cache.js:formatted:8218)
    at rsb (DDFC3D4453CB85BB71197C4DE2FF626C.cache.js:formatted:3192)
    at tsb.wsb [as tb] (DDFC3D4453CB85BB71197C4DE2FF626C.cache.js:formatted:38072)
    at KT (DDFC3D4453CB85BB71197C4DE2FF626C.cache.js:formatted:12820)
    at QT (DDFC3D4453CB85BB71197C4DE2FF626C.cache.js:formatted:11819)
    at gc (DDFC3D4453CB85BB71197C4DE2FF626C.cache.js:formatted:10406)
    at bc (DDFC3D4453CB85BB71197C4DE2FF626C.cache.js:formatted:12150)
    at DDFC3D4453CB85BB71197C4DE2FF626C.cache.js:formatted:6237
    at self.onmessage (DDFC3D4453CB85BB71197C4DE2FF626C.cache.js:formatted:14754)
```

formatted code is:

```
function Qb(a) {
    var b, c, d;
    d = !a.c ? (Ob(),
    window) : a.c;
    b = (Ob(),
    d.document);
    c = b.createElement('script');
    Pb(c, a.b);
    (b.head || b.getElementsByTagName('head')[0]).appendChild(c);
    a.a && (c.parentNode.removeChild(c),
    undefined);
    return c
}
```

this is generated code by gwt http://www.gwtproject.org/overview.html so the real code is under.

drools-wb-services/drools-wb-verifier/drools-wb-verifier-webworker/src/main/java/org/drools/workbench/services/verifier/plugin/backend/DecisionTableVerifierWebWorkerProvider.java

or

drools-wb-screens/drools-wb-guided-dtable-editor/drools-wb-guided-dtable-editor-client/src/main/java/org/drools/workbench/screens/guided/dtable/client/widget/analysis/DecisionTableAnalyzerBuilder.java

Not sure if in code itself or in gwt translation

Any idea on what to check, debug or test to fix this?

> JavaScript run error when edit Guided Decision Tables on latest chrome
> ----------------------------------------------------------------------
>
>                 Key: DROOLS-3746
>                 URL: https://issues.jboss.org/browse/DROOLS-3746
>             Project: Drools
>          Issue Type: Bug
>          Components: Guided Decision Table Editor
>    Affects Versions: 7.18.0.Final
>            Reporter: xiaodong zhang
>            Assignee: Toni Rikkola
>            Priority: Blocker
>
> When updated to the latest chrome (72.0.3626.121), When I do edit using Guided Decision Tables, an error will throw. 
> The error detail is :
>  | Uncaught exception: Uncaught TypeError: Cannot read property 'createElement' of undefined (http://127.0.0.1:8080/kie-drools-wb/verifier/dtableVerifier/C1C6DDEF649DAF8C4584B96CD0A482BB.cache.js:2590:75)
> My version is 7.14.0.Final and I also tried the latest 7.18.0.Final but no lucky. It's happend on both windows and Mac client when using the latest chrome or safari. 



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list