Gwt starting sample project - gwt

I am a beginer for gwt application when i am creating a sample application after all steps i am geting these errors in my Development mode window.
1.[ERROR] [mysecondproj] - Unable to initialize static dispatcher
2.[ERROR] [mysecondproj] - Failed to load module 'mysecondproj' from user agent 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/33.0.1712.2 Safari/537.36' at
127.0.0.1:63405
And also in browser one message is coming like
3.Plugin failed to connect to Development Mode server at 127.0.0.1:9997.
I am using jdk 7,eclipse(luna),plugin version-4.3,sdk version-2.7.0and app engine version-1.9.18.so please help me.

I ran into a similar problem, but I got errors that said
java.lang.NoSuchMethodError: org.obectweb.asm.MethodVisitor.vistMetodInsn(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
This ended up being a buildpath problem. To fix it I did the following:
Right click on your package in Eclipse>Build Path>Configure Build Path
Go to the Order and Export Tab
Select GWT SDK and move it up above the App Engine SDK [appengine-java-sdk]

Related

Problem to run chrome debugger in VS Code

Hi I've got a problem to run Chrome Debugger directly in VS Code. I'm working on Linux Mint.
Now i try to run debugger and error message says: Unable to launch browser: "Unable to find Chrome version stable. Available auto-discovered versions are: ["dev"]. You can set the "runtimeExecutable" in your launch.json to one of these, or provide an absolute path to the browser executable."
Following the sugesstion I've added runtimeExecutable to chromeExecutable and now the error is:
Unable to Attach to the browser.
Google Chrome is installed on my machine version: 83.0.4103.116-1.
Thanks for help in advance
Error:
Current config:
1. Type chrome://version/ in Chrome browser.
2. Notice you will get some thing like this :::
Google Chrome :: 86.0.4240.80 (Official Build) (x86_64)
Revision :: 7ed88b53bda45a2d19efb4f8706dd6b6cad0d3af-refs/branch-heads/4240#{#1183}
OS :: macOS Version 10.15.7 (Build 19H2)
JavaScript :: V8 8.6.395.10
Flash :: 32.0.0.445 /Users/shivamgupta/Library/Application Support/Google/Chrome/PepperFlash/32.0.0.445/PepperFlashPlayer.plugin
User Agent :: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.80 Safari/537.36
Command Line :: /Applications/Chrome.app/Contents/MacOS/Google Chrome -psn_0_57358 --flag-switches-begin --flag-switches-end --restore-last-session
Executable Path :: /Applications/Chrome.app/Contents/MacOS/Google Chrome
Profile Path :: /Users/shivamgupta/Library/Application Support/Google/Chrome/Default
Variations :: 84085631-ab02a1cf dff70c3e-377be55a .......,.
Copy the Executable Path to runTimeExecutable
Now Copy this snippet in launch.json::
"configurations": [
{
"name": "Launch Chrome",
"request": "launch",
"type": "pwa-chrome",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}/public",
"runtimeExecutable": "/Applications/Chrome.app/Contents/MacOS/Google Chrome"
}
]
I have the same problem. And found how to set
debug.javascript.usePreview: false in VS settings
I had the same problem today, It works for me to use runtimeExecutable as #Shivam Gupta said,But I still want to know what is causing the problem. And finally found the reason.For some reason I have two chrome,One of the two is damaged,In chromeluncher in debuger, chromefinder is used to locate the location of chrome in your system.Without specifying a path, it will search for chrome.
So another solution is to just delete the chrome you don't use. This way chromefinder can correctly find the chrome you are using.It works for me.

Cordova plugin network information not working

I have followed https://ionicframework.com/docs/native/network/ but it is not triggering when connecting or disconnecting from the network. Not in browser, dev app and not in phone.
I have checked this link https://forum.ionicframework.com/t/cordova-plugin-network-information-not-working/99271 and check https://www.youtube.com/watch?v=U9nVMSMimRQ
This is my dev environment
Ionic Framework: 3.9.2
Ionic App Scripts: 3.2.0
Angular Core: 5.2.11
Angular Compiler CLI: 5.2.11
Node: 10.13.0
OS Platform: Windows 10
Navigator Platform: Win32
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
Add a bit of code base of what you have done for more help.
Also add your code under platform ready and test.
*Import platform service before doing this.
this.platform.ready().then(() => {
//Code
});

Ionic 3 app cannot build due to package

I have an Ionic app and am trying to use NGX-Bootstrap with it, but my app cannot build due to the way the package is organized.
sass: node_modules/ngx-bootstrap/datepicker/bs-datepicker.scss, line:
1
It's not clear which file to import for '#import "utils/scss/variables"'. Candidates:
utils/scss/variables.scss utils/scss/variables.css Please delete or rename all but one of these files.
L1: #import './utils/scss/variables';
L2: #import './utils/scss/mixins';
This issue mentions the problem, but claims it should be fixed in the next version. I am running v 2.0.2 (latest) and the error still remains.
This is my setup:
Ionic Framework: 3.9.2
Ionic App Scripts: 3.1.2
Angular Core: ^4.4.3
Angular Compiler CLI: 4.4.3
Node: 9.1.0
OS Platform: macOS High Sierra
Navigator Platform: MacIntel
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
And I'm running typescript v 2.3.4.
Any assistance would be great.

Ionic error page for invalid segments

I don't like that I can go to http://localhost:8100/#/asdfasd and get the normal start page. I want that to be an error page.
I tried to implement this by creating a NoSuchPageComponent and setting rootPage to that in the AppComponent. (I also made NoSuchPageComponent#ionViewDidEnter navigate to the home page when no segment is present.)
This works when the browser navigates to http://localhost:8100/#/asdfasd, but if I first open any real page and then change the address bar to http://localhost:8100/#/asdfasd, I get the Ionic error handler showing "Uncaught (in promise): invalid views to insert"
Is there another way this is expected to be done?
Is there somewhere I can catch that error?
Does this have anything to do with lazy loading?
How can I make this work as I intend?
Here's the full error message:
Runtime Error
Uncaught (in promise): invalid views to insert
Stack
Error: Uncaught (in promise): invalid views to insert
at c (http://localhost:8100/build/polyfills.js:3:18260)
at Object.reject (http://localhost:8100/build/polyfills.js:3:17682)
at NavControllerBase._fireError (http://localhost:8100/build/vendor.js:46029:16)
at NavControllerBase._failed (http://localhost:8100/build/vendor.js:46017:14)
at http://localhost:8100/build/vendor.js:46072:59
at t.invoke (http://localhost:8100/build/polyfills.js:3:13979)
at Object.onInvoke (http://localhost:8100/build/vendor.js:4248:33)
at t.invoke (http://localhost:8100/build/polyfills.js:3:13919)
at r.run (http://localhost:8100/build/polyfills.js:3:9146)
at http://localhost:8100/build/polyfills.js:3:18750
Ionic Framework: 3.7.0
Ionic App Scripts: 3.0.1
Angular Core: 4.4.3
Angular Compiler CLI: 4.4.3
Node: 6.12.0
OS Platform: macOS Sierra
Navigator Platform: MacIntel
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.89 Safari/537.36

ionic app is working on emulator but not in phone

I have created a hybrid app using ionic. When I test the login feature in the app using ionic serve then I am able to login on both IONS and android. Howver, when I build an apk and test the same login feature on the phone I am getting a login fail error. Subsequently I installed Gapdebug and tried to debug on the phone. Gapdebug is showing me the following error :
In the Console tab:
POST http://localhost:8100/api/v2/auth/login net::ERR_CONNECTION_REFUSED
In the network tab:
1.Request URL: http://localhost:8100/api/v2/auth/login.
2.Request Headers CAUTION: Provisional headers are shown.
1.Accept: application/json, text/plain, /
2.Cache-Control: no-cache
3.Content-Type: application/x-www-form-urlencoded
4.Origin: file://
5.Pragma: no-cache
6.User-Agent: Mozilla/5.0 (Linux; Android 4.4.4; XT1022 Build/KXC21.5-40) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36
Please advise as to how I can fix this.
Thanks