How can I use soundcloud API to search new songs? - soundcloud

I can not use soundcloud API to search new songs, example https://soundcloud.com/search?q=nonstop-vol14-phia-sau-em. Soundcloud API return only old songs.
How can I use soundcloud API to search new songs?

You can use the SoundCloud API to search for tracks.
Example: http://api.soundcloud.com/tracks.json?client_id=[CLIENT_ID]&q=nonstop%20Phia%20Sau%20Em&filter=public
Results:
[{"id":471243825,"kind":"track","created_at":"2018/07/13 16:31:52 +0000","last_modified":"2018/07/13 16:31:54 +0000","permalink":"nonstop-phia-sau-em","permalink_url":"https://soundcloud.com/vi-t-h-219347540/nonstop-phia-sau-em","title":"Nonstop Phía Sau Em","duration":3284369,"sharing":"public","waveform_url":"https://w1.sndcdn.com/NHQyA6PpGFcT_m.png","stream_url":"https://api.soundcloud.com/tracks/471243825/stream","uri":"https://api.soundcloud.com/tracks/471243825","user_id":398075790,"artwork_url":"https://i1.sndcdn.com/artworks-000373448307-3e1aeq-large.jpg","comment_count":0,"commentable":true,"description":"Mọi người nghe nếu có gì sai bỏ qua nha hoặc không hay thì mọi người góp ý giúp mình để mình hoàn thiện hơn nhé. cám ơn mọi người đã cố gắng lắng nghe =))","download_count":10,"downloadable":true,"embeddable_by":"all","favoritings_count":0,"genre":"Soundtrack","isrc":null,"label_id":null,"label_name":null,"license":"all-rights-reserved","original_content_size":78817533,"original_format":"mp3","playback_count":0,"purchase_title":null,"purchase_url":null,"release":"","release_day":null,"release_month":null,"release_year":null,"reposts_count":0,"state":"finished","streamable":true,"tag_list":"","track_type":null,"user":{"avatar_url":"https://i1.sndcdn.com/avatars-000472674369-d550z9-large.jpg","id":398075790,"kind":"user","permalink_url":"http://soundcloud.com/vi-t-h-219347540","uri":"https://api.soundcloud.com/users/398075790","username":"Việt Hà","permalink":"vi-t-h-219347540","last_modified":"2018/07/13 16:34:28 +0000"},"likes_count":15,"attachments_uri":"https://api.soundcloud.com/tracks/471243825/attachments","bpm":null,"key_signature":"","user_favorite":false,"user_playback_count":null,"video_url":null,"download_url":"https://api.soundcloud.com/tracks/471243825/download"},{"id":216723926,"kind":"track","created_at":"2015/07/28 14:58:18 +0000","last_modified":"2018/01/05 14:23:20 +0000","permalink":"mp3-phia-sau-em-kay-tran-ft-binz","permalink_url":"https://soundcloud.com/binz-le/mp3-phia-sau-em-kay-tran-ft-binz","title":"[mp3] Phía Sau Em - Kay Trần ft Binz","duration":224490,"sharing":"public","waveform_url":"https://w1.sndcdn.com/QFSqry1QpiQh_m.png","stream_url":"https://api.soundcloud.com/tracks/216723926/stream","uri":"https://api.soundcloud.com/tracks/216723926","user_id":11577043,"artwork_url":"https://i1.sndcdn.com/artworks-000124615926-ck3v4s-large.jpg","comment_count":199,"commentable":true,"description":"Mixed, Mastered : Sino\nImage : Anh Khôi\nLyrics :\nPhía trước em là đoạn đường dài anh ko nơi đấy\nVì giờ này phía sau lưng em anh bước một mình về\n\nDù đã biết mất em nhưng sao lòng anh vẫn nhói đau \nDù chẳng nói ra câu nhưng anh sẽ luôn ở phía sau \nLà người cho em bờ vai sẽ chia câu chuyện \nI will be waitting for you....for you \nLà người cho em vòng tay bên em mỗi khi \nem khóc vì ai \nChắc có lẽ , Chắc có lẽ, Chắc có lẽ\nVì em đã quên đi những giấc mơ,\nđể anh lại đây cùng những muộn phiền \nRồi cứ thế em bước đi và không cần nghĩ suy\n A đa phải cố quên đi đau thương người hỡi \n\nChorus : \n\nNo No please come back to me\n i will be waiting for you x2 \nXin em hãy một lần nhìn về phía sau,nơi bình minh \nXin em hãy một lần nhìn về phía sau,nơi hoàng hôn\n Chỉ có mỗi riêng anh luôn chờ em\n\nRap\nNỗi buồn này chắc đâu ai hiểu\nPhố dài ta ngược nhau hai chiều\nAnh về lối cũ ta thường qua\nEm về nơi khác bên người ta\nĐường anh về vẫn là gió và mây\nEm đã xa khỏi vòng tay\nGiờ em thêm 1 người mới còn anh thêm 1 bài hát buồn cùng Kay \nAnh muốn gọi gió cho tóc em bay\n\"Gọi nắng trên vai em gầy\"\nNhư là Trịnh Công Sơn anh viết\nNiềm vui kia anh biết\nChôn vùi mãi nơi đây\nEm cứ để con tim này tổn thương cũng được \n em cứ để lòng tin anh dần chết . \nEm cứ để anh điên khùng vô cảm vậy\n mang hết yêu thương đi anh không cần đến .\n Em à ! Đợi chờ không phải là hạnh phúc \nanh biết rằng yêu không nhất thiết phải gần nhau\nnhưng anh thấy nổi nhớ lớn dần lên từng phút \ncảm giác quen thuộc như sắp thêm 1 lần đau ... Vì em\n\nĐã quên đi những giấc mơ để anh lại đây\nCùng những muộn phiền\n(lang thang nơi đây anh bước một mình”\nAnh biết quên mau với em điều đó dễ\nNhững tháng ngày dài đôi ta chỉ có thế\nCon tim cố chấp cứ nghĩ rằng có thể\nThấy em nơi cũ nhưng người đâu có về đâu , no\n\nChorus : \n\nNo No please come back to me\n i will be waiting for you x2 \nXin em hãy một lần nhìn về phía sau,nơi bình minh \nXin em hãy một lần nhìn về phía sau,nơi hoàng hôn\n Chỉ có mỗi riêng anh luôn chờ em\n\nAnh vẫn luôn âm thầm phía sau mà\nĐiều đó em ko cần biết đâu\nGo on và tìm them hạnh phúc\nĐễ những hy vọng trong anh mất dần từng phút\nNếu vô tình em tìm về nơi đầu tiên\nGặp anh nơi đó em đừng ngạc nhiên vì\nAnh vẫn luôn ở đó\n\n\n\n\n\n","download_count":0,"downloadable":false,"embeddable_by":"all","favoritings_count":0,"genre":"VietRap","isrc":null,"label_id":null,"label_name":null,"license":"all-rights-reserved","original_content_size":8970048,"original_format":"mp3","playback_count":0,"purchase_title":null,"purchase_url":null,"release":"","release_day":null,"release_month":null,"release_year":null,"reposts_count":1596,"state":"finished","streamable":true,"tag_list":"RnB","track_type":null,"user":{"avatar_url":"https://i1.sndcdn.com/avatars-000207099477-q5ydaq-large.jpg","id":11577043,"kind":"user","permalink_url":"http://soundcloud.com/binz-le","uri":"https://api.soundcloud.com/users/11577043","username":"Binz Da Poet","permalink":"binz-le","last_modified":"2017/02/28 05:52:01 +0000"},"likes_count":16079,"attachments_uri":"https://api.soundcloud.com/tracks/216723926/attachments","bpm":null,"key_signature":"","user_favorite":false,"user_playback_count":null,"video_url":null,"download_url":null},{"id":459239736,"kind":"track","created_at":"2018/06/16 16:36:49 +0000","last_modified":"2018/06/16 16:42:10 +0000","permalink":"nonstop-viet-mix-yeu-em-tu-phia-sauth","permalink_url":"https://soundcloud.com/phi-lyhoang/nonstop-viet-mix-yeu-em-tu-phia-sauth","title":"nonstop viet mix yeu em tu phia sau...(TH)...","duration":2772582,"sharing":"public","waveform_url":"https://w1.sndcdn.com/t8VGQO0klec0_m.png","stream_url":"https://api.soundcloud.com/tracks/459239736/stream","uri":"https://api.soundcloud.com/tracks/459239736","user_id":247179497,"artwork_url":"https://i1.sndcdn.com/artworks-000361561242-7ujman-large.jpg","comment_count":0,"commentable":true,"description":"","download_count":0,"downloadable":false,"embeddable_by":"all","favoritings_count":0,"genre":"nhac viet","isrc":null,"label_id":null,"label_name":null,"license":"all-rights-reserved","original_content_size":110890840,"original_format":"mp3","playback_count":0,"purchase_title":null,"purchase_url":null,"release":"","release_day":null,"release_month":null,"release_year":null,"reposts_count":0,"state":"finished","streamable":true,"tag_list":"","track_type":null,"user":{"avatar_url":"https://i1.sndcdn.com/avatars-000314128981-ayx9w6-large.jpg","id":247179497,"kind":"user","permalink_url":"http://soundcloud.com/phi-lyhoang","uri":"https://api.soundcloud.com/users/247179497","username":"ly hoang phi","permalink":"phi-lyhoang","last_modified":"2017/06/01 09:15:46 +0000"},"likes_count":3,"attachments_uri":"https://api.soundcloud.com/tracks/459239736/attachments","bpm":null,"key_signature":"","user_favorite":false,"user_playback_count":null,"video_url":null,"download_url":null},{"id":292714388,"kind":"track","created_at":"2016/11/12 17:16:55 +0000","last_modified":"2018/10/30 12:53:03 +0000","permalink":"nonstop-vinahouse-phia-sau-mot-co-gaidj-mario-remix2016","permalink_url":"https://soundcloud.com/marionguyen6789/nonstop-vinahouse-phia-sau-mot-co-gaidj-mario-remix2016","title":"Nonstop Vinahouse - Phía Sau Một Cô Gái 2016(Dj Mario - Remix)vol.4","duration":3581330,"sharing":"public","waveform_url":"https://w1.sndcdn.com/K8Qs9AyVZojN_m.png","stream_url":"https://api.soundcloud.com/tracks/292714388/stream","uri":"https://api.soundcloud.com/tracks/292714388","user_id":209547623,"artwork_url":null,"comment_count":26,"commentable":true,"description":"Hay anh lùi bước về sau để thấy e gãy lun nhỉ kkk","download_count":0,"downloadable":false,"embeddable_by":"all","favoritings_count":0,"genre":"","isrc":null,"label_id":null,"label_name":null,"license":"all-rights-reserved","original_content_size":631674924,"original_format":"wav","playback_count":0,"purchase_title":null,"purchase_url":null,"release":"","release_day":null,"release_month":null,"release_year":null,"reposts_count":339,"state":"finished","streamable":true,"tag_list":"Vinahouse","track_type":null,"user":{"avatar_url":"https://i1.sndcdn.com/avatars-000270205046-6r633c-large.jpg","id":209547623,"kind":"user","permalink_url":"http://soundcloud.com/marionguyen6789","uri":"https://api.soundcloud.com/users/209547623","username":"marionguyen6789","permalink":"marionguyen6789","last_modified":"2016/10/08 15:01:58 +0000"},"likes_count":3039,"attachments_uri":"https://api.soundcloud.com/tracks/292714388/attachments","bpm":null,"key_signature":"","user_favorite":false,"user_playback_count":null,"video_url":null,"download_url":null},{"id":290942684,"kind":"track","created_at":"2016/11/01 10:25:29 +0000","last_modified":"2016/11/01 10:30:55 +0000","permalink":"nonstop-ph-a-sau-m-t-c-g-i","permalink_url":"https://soundcloud.com/tu-n-punk/nonstop-ph-a-sau-m-t-c-g-i","title":"Nonstop Phía Sau Một Cô Gái Remix - Liên Khúc Nhạc Trẻ Remix Tâm Trạng Buồn Hay Nhất 2017 Vol 3.mp3","duration":4222461,"sharing":"public","waveform_url":"https://w1.sndcdn.com/fxcKMLv6W85Z_m.png","stream_url":"https://api.soundcloud.com/tracks/290942684/stream","uri":"https://api.soundcloud.com/tracks/290942684","user_id":204626028,"artwork_url":null,"comment_count":14,"commentable":true,"description":null,"download_count":0,"downloadable":false,"embeddable_by":"all","favoritings_count":0,"genre":null,"isrc":null,"label_id":null,"label_name":null,"license":"all-rights-reserved","original_content_size":65981393,"original_format":"mp3","playback_count":0,"purchase_title":null,"purchase_url":null,"release":"","release_day":null,"release_month":null,"release_year":null,"reposts_count":236,"state":"finished","streamable":true,"tag_list":"soundcloud:source=android-3rdparty-upload","track_type":"recording","user":{"avatar_url":"https://i1.sndcdn.com/avatars-000203854833-lf2oe9-large.jpg","id":204626028,"kind":"user","permalink_url":"http://soundcloud.com/tu-n-punk","uri":"https://api.soundcloud.com/users/204626028","username":"Tuấn Punk","permalink":"tu-n-punk","last_modified":"2017/08/15 17:41:03 +0000"},"likes_count":1557,"attachments_uri":"https://api.soundcloud.com/tracks/290942684/attachments","bpm":null,"key_signature":"","user_favorite":false,"user_playback_count":null,"video_url":null,"download_url":null},{"id":289891094,"kind":"track","created_at":"2016/10/25 13:16:15 +0000","last_modified":"2018/08/03 14:43:26 +0000","permalink":"nonstop-viet-mix-phia-sau-1-co-gai-han-phuc-nhe-an-coi-remix","permalink_url":"https://soundcloud.com/an-t-6/nonstop-viet-mix-phia-sau-1-co-gai-han-phuc-nhe-an-coi-remix","title":"NonStop - Việt Mix - Phía Sau 1 Cô Gái - Hạnh Phúc Nhé - An Còi Remix","duration":5066661,"sharing":"public","waveform_url":"https://w1.sndcdn.com/RGUf9mceUuAb_m.png","stream_url":"https://api.soundcloud.com/tracks/289891094/stream","uri":"https://api.soundcloud.com/tracks/289891094","user_id":68422968,"artwork_url":"https://i1.sndcdn.com/artworks-000190557658-142wy6-large.jpg","comment_count":25,"commentable":true,"description":"\n\nhttps://theartistunion.com/tracks/2db482'>Download for free on The Artist Union","download_count":100,"downloadable":false,"embeddable_by":"all","favoritings_count":0,"genre":"","isrc":null,"label_id":null,"label_name":null,"license":"all-rights-reserved","original_content_size":202645420,"original_format":"mp3","playback_count":0,"purchase_title":null,"purchase_url":"https://theartistunion.com/tracks/2db482","release":"","release_day":null,"release_month":null,"release_year":null,"reposts_count":143,"state":"finished","streamable":true,"tag_list":"","track_type":null,"user":{"avatar_url":"https://i1.sndcdn.com/avatars-000143131428-r8qclu-large.jpg","id":68422968,"kind":"user","permalink_url":"http://soundcloud.com/an-t-6","uri":"https://api.soundcloud.com/users/68422968","username":"An Tộ 12","permalink":"an-t-6","last_modified":"2016/10/15 08:09:36 +0000"},"likes_count":1111,"attachments_uri":"https://api.soundcloud.com/tracks/289891094/attachments","bpm":null,"key_signature":"","user_favorite":false,"user_playback_count":null,"video_url":null,"download_url":null},{"id":469166688,"kind":"track","created_at":"2018/07/09 04:20:25 +0000","last_modified":"2018/07/09 04:20:39 +0000","permalink":"phia-sau-em-kay-tran-thao-pham","permalink_url":"https://soundcloud.com/user-196915779/phia-sau-em-kay-tran-thao-pham","title":"Phia Sau Em Kay Tran Thao Pham","duration":212525,"sharing":"public","waveform_url":"https://w1.sndcdn.com/rfDBXoK6xtrU_m.png","stream_url":"https://api.soundcloud.com/tracks/469166688/stream","uri":"https://api.soundcloud.com/tracks/469166688","user_id":281332621,"artwork_url":null,"comment_count":0,"commentable":true,"description":"","download_count":0,"downloadable":false,"embeddable_by":"all","favoritings_count":0,"genre":"","isrc":null,"label_id":null,"label_name":null,"license":"all-rights-reserved","original_content_size":5099031,"original_format":"mp3","playback_count":0,"purchase_title":null,"purchase_url":null,"release":"","release_day":null,"release_month":null,"release_year":null,"reposts_count":44,"state":"finished","streamable":true,"tag_list":"","track_type":null,"user":{"avatar_url":"http://a1.sndcdn.com/images/default_avatar_large.png?1541088121","id":281332621,"kind":"user","permalink_url":"http://soundcloud.com/user-196915779","uri":"https://api.soundcloud.com/users/281332621","username":"leim","permalink":"user-196915779","last_modified":"2017/01/09 13:22:03 +0000"},"likes_count":617,"attachments_uri":"https://api.soundcloud.com/tracks/469166688/attachments","bpm":null,"key_signature":"","user_favorite":false,"user_playback_count":null,"video_url":null,"download_url":null},{"id":363001535,"kind":"track","created_at":"2017/11/30 14:08:54 +0000","last_modified":"2018/10/23 08:25:44 +0000","permalink":"phia-sau-em-binz-ft-kay-tran-full-shen-remix-dj-do-nhung","permalink_url":"https://soundcloud.com/shenproducer/phia-sau-em-binz-ft-kay-tran-full-shen-remix-dj-do-nhung","title":"Phía Sau Em - Binz ft Kay Trần - ( Full ) Shen Remix [Dj Đỗ Nhung]","duration":359765,"sharing":"public","waveform_url":"https://w1.sndcdn.com/7rZr6RAPViYz_m.png","stream_url":"https://api.soundcloud.com/tracks/363001535/stream","uri":"https://api.soundcloud.com/tracks/363001535","user_id":236134051,"artwork_url":"https://i1.sndcdn.com/artworks-000263236277-smk702-large.jpg","comment_count":2188,"commentable":true,"description":"Đây mới là ver chính chủ nhé ! . Ver trên mạng là ver nháp . Click Buy Dlw\nhttps://theartistunion.com/tracks/264675","download_count":0,"downloadable":false,"embeddable_by":"all","favoritings_count":0,"genre":"Dance & EDM","isrc":null,"label_id":null,"label_name":null,"license":"all-rights-reserved","original_content_size":14420461,"original_format":"mp3","playback_count":0,"purchase_title":null,"purchase_url":"https://theartistunion.com/tracks/264675","release":"","release_day":null,"release_month":null,"release_year":null,"reposts_count":2312,"state":"finished","streamable":true,"tag_list":"Shen \"Đỗ Nhung\" Vinahouse \"phía sau em\" kaytran Binz Congdongdjonline","track_type":null,"user":{"avatar_url":"https://i1.sndcdn.com/avatars-000471282903-itfxkt-large.jpg","id":236134051,"kind":"user","permalink_url":"http://soundcloud.com/shenproducer","uri":"https://api.soundcloud.com/users/236134051","username":"Shen","permalink":"shenproducer","last_modified":"2018/08/04 08:51:58 +0000"},"likes_count":3019,"attachments_uri":"https://api.soundcloud.com/tracks/363001535/attachments","bpm":null,"key_signature":"","user_favorite":false,"user_playback_count":null,"video_url":null,"download_url":null},{"id":261757835,"kind":"track","created_at":"2016/05/01 05:09:04 +0000","last_modified":"2016/05/01 05:20:09 +0000","permalink":"nonstop-mong-kiep-sau-van-la-anh-em-dj-co-vu","permalink_url":"https://soundcloud.com/trang-mins-299842550/nonstop-mong-kiep-sau-van-la-anh-em-dj-co-vu","title":"Nonstop - Mong kiếp sau vẫn là anh em - DJ CÒ VŨ","duration":3810917,"sharing":"public","waveform_url":"https://w1.sndcdn.com/xIFva0uuY3JY_m.png","stream_url":"https://api.soundcloud.com/tracks/261757835/stream","uri":"https://api.soundcloud.com/tracks/261757835","user_id":223594104,"artwork_url":"https://i1.sndcdn.com/artworks-000160658894-233pn7-large.jpg","comment_count":9,"commentable":true,"description":"","download_count":0,"downloadable":false,"embeddable_by":"all","favoritings_count":0,"genre":"Dancehall","isrc":null,"label_id":null,"label_name":null,"license":"all-rights-reserved","original_content_size":152421755,"original_format":"mp3","playback_count":0,"purchase_title":null,"purchase_url":null,"release":"","release_day":null,"release_month":null,"release_year":null,"reposts_count":89,"state":"finished","streamable":true,"tag_list":"","track_type":null,"user":{"avatar_url":"https://i1.sndcdn.com/avatars-000221623842-vuhha0-large.jpg","id":223594104,"kind":"user","permalink_url":"http://soundcloud.com/trang-mins-299842550","uri":"https://api.soundcloud.com/users/223594104","username":"Trang Min's","permalink":"trang-mins-299842550","last_modified":"2016/05/01 06:15:58 +0000"},"likes_count":843,"attachments_uri":"https://api.soundcloud.com/tracks/261757835/attachments","bpm":null,"key_signature":"","user_favorite":false,"user_playback_count":null,"video_url":null,"download_url":null}]

Related

Why isn't my translator system working in flutter?

I'm attempt to do a localization translator in flutter for my project. I got help from this tutorial:
https://resocoder.com/2019/06/01/flutter-localization-the-easy-way-internationalization-with-json/
But when I run the program, it only show one language even when I change the language in the laptop setting (I use Chrome for debugging so i had to change language from the laptop setting).
Here's my code:
MAIN.dart:
import 'package:final_translating_test/taylake.dart';
import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'app_localizations.dart';
import 'dakmilprison.dart';
import 'damw.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
#override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
debugShowCheckedModeBanner: false,
routes: {
'/1': (context) => TayLake(),
'/2': (context) => DamW(),
'/3': (context) => DakMilPrison(),
},
supportedLocales: [Locale('en', 'US'), Locale('vi', 'VN')],
localizationsDelegates: [
// THIS CLASS WILL BE ADDED LATER
// A class which loads the translations from JSON files
AppLocalizations.delegate,
// Built-in localization of basic text for Material widgets
GlobalMaterialLocalizations.delegate,
// Built-in localization for text direction LTR/RTL
GlobalWidgetsLocalizations.delegate,
],
localeResolutionCallback: (locale, supportedLocales) {
for (var supportedLocale in supportedLocales) {
if (supportedLocale.languageCode == locale!.languageCode &&
supportedLocale.countryCode == locale.countryCode) {
return supportedLocale;
}
}
return supportedLocales.first;
},
home: MyHomePage(),
);
}
}
class MyHomePage extends StatefulWidget {
MyHomePage({
Key? key,
}) : super(key: key);
#override
_MyHomePageState createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
#override
Widget build(BuildContext context) {
return Scaffold(
body: Column(
children: [
Stack(
children: [
Image.network(
'https://t4.ftcdn.net/jpg/03/36/07/85/240_F_336078503_3rIlo0PPrbrxyPbR99qXVo6VATqWsHvl.jpg',
filterQuality: FilterQuality.high,
fit: BoxFit.fitWidth,
width: 500,
),
ListTile(
leading:
Icon(Icons.menu_outlined, color: Colors.white, size: 30),
trailing: Icon(Icons.verified_user_outlined,
size: 30, color: Colors.white),
),
],
),
Expanded(
child: PageView(
children: <Widget>[
placeButton(
context,
"titleHoTay",
"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRLRsM_lVQtJSMBRgTzeyPIrqdeMFV7M3gCzA&usqp=CAU",
"/1"),
placeButton(
context,
"titleDapW",
"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTabeU7lO71WhEE3EY99nU087Xwlj5PAPd76g&usqp=CAU",
"/2"),
placeButton(
context,
"titleNhaNgucDm",
"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSzl8XkPISxI0Uqcy0FR6g3cRvtng1Ghu6T9w&usqp=CAUs",
"/3")
],
),
),
],
),
);
}
}
Widget placeButton(BuildContext context, String name, String image, String id) {
return Column(children: [
Padding(
padding: const EdgeInsets.fromLTRB(130.0, 0.0, 130.00, 0.0),
child: ClipRRect(
borderRadius: BorderRadius.circular(20),
child: SizedBox(
height: 300,
width: 400,
child: GestureDetector(
onTap: () {
Navigator.pushNamed(context, id);
},
child: Card(
child: ListTile(
title: Padding(
padding: const EdgeInsets.fromLTRB(20, 5, 20, 0),
child: Text(AppLocalizations.of(context)!.translate(name),
style: TextStyle(fontFamily: 'Manrope', fontSize: 18)),
),
subtitle: Image.network(
image,
height: 250,
),
),
),
),
),
),
),
Container(
height: 40,
width: 200,
padding: EdgeInsets.only(top: 0),
color: Colors.white,
child: ListTile(
leading: Text(
"Rating:",
style: TextStyle(fontFamily: 'Klasik'),
),
trailing: IconButton(
splashRadius: 20,
icon: Icon(Icons.star_border_outlined),
onPressed: () {},
),
),
),
]);
}
APP_LOCALIZATIONS.dart:
import 'dart:async';
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
class AppLocalizations {
final Locale locale;
AppLocalizations (this.locale);
static AppLocalizations? of(BuildContext context) {
return Localizations.of<AppLocalizations>(context, AppLocalizations);
}
static const LocalizationsDelegate<AppLocalizations> delegate =
_AppLocalizationsDelegate();
late Map<String, String> _localizedStrings;
Future<bool> load() async {
String jsonString =
await rootBundle.loadString('lang/${locale.languageCode}.json');
Map<String, dynamic> jsonMap = json.decode(jsonString);
_localizedStrings = jsonMap.map((key, value) {
return MapEntry(key, value.toString());
});
return true;
}
String translate(String key) {
return _localizedStrings[key]!;
}
}
class _AppLocalizationsDelegate
extends LocalizationsDelegate<AppLocalizations> {
const _AppLocalizationsDelegate();
#override
bool isSupported(Locale locale) {
return ['en', 'vi'].contains(locale.languageCode);
}
#override
Future<AppLocalizations> load(Locale locale) async {
AppLocalizations localizations = new AppLocalizations(locale);
await localizations.load();
return localizations;
}
#override
bool shouldReload(_AppLocalizationsDelegate old) => false;
}
en.JSON:
{
"first_string": "Hello! This is the first message.",
"second_string": "If this tutorial helps you, give it a like and subscribe to Reso Coder 😉",
"titleHoTay": "Tay Lake",
"titleDapW": "W Dam",
"titleNhaNgucDm": "DakMil Prison",
"GioiThieu": "Introduction",
"GioiThieuHoTay": "West Lake Dak Mil is an extremely familiar destination for people in the small town of Dak Mil, which not only plays the role of regulating and creating a balance in the landscape for this beautiful town, but also a tourist destination which attracts young people and tourists by the poetic and peaceful scenery. If you have the opportunity to come to the small town of Dak Mil of Dak Nong province, do not forget to check-in at this extremely hot destination.",
"LichSu": "History",
"LichSuHoTay": "West Lake in Dak Mil is a semi-artificial lake, formed in the 1940s. Initially, the lake was planned by the French colonialists to store water for the coffee growing project in Dak Nong. Until 1982, the town continued to invest in expanding the lake surface to better serve the irrigation needs of the people and at the same time become a place to store water from underground aquifers. It is also for this reason that the water here is always blue all year round.",
"ViTriDiaLy": "Geological Location",
"ViTriDiaLyDakMil": "The lake is located 67km from the center of Gia Nghia city to the northeast with an area of ​​more than 10km with an open surface area of ​​108ha and the deepest place reaching 17m. Explaining the special name, locals said, this name comes from the location of the lake. Because it is located in the west of the town, many people have called it West Lake, which has become familiar, over time people add the town's name to form the name Tay Dak Mil lake as it is today.",
"CanhDep":"Beauty scene",
"CanhDepDakMil":"As the most beautiful lake in Dak Mil town, it is not difficult to understand that West Lake is a familiar destination for tourists as well as locals, especially young people. The scenery at West Dak Mil lake is both beautiful and romantic, even though it is located in the middle of the city. From a distance, this lake is divided into two branches, hugging around the green coffee plantation, reminiscent of the image of a beautiful oasis. The winding roads or the rows of green trees around the lake also contribute to the poetic beauty of the lake.",
"GioiThieuDapW":"The unique flow and design of the W dam in Dak Nong make tourists excited and curious. This beautiful dam is one of the familiar check-in places for young people every season when the water rises.",
"LichSuDapW":"W Dak Nong Dam was built in 1999, with an area of ​​about 22 hectares to serve the needs of irrigation and water supply for the lives of local people. Although the original purpose of construction was just to prevent water and serve local life and production, with its unique design, this dam has become a favorite check-in point of local young people as well as tourists when coming to Dak Mil.",
"ViTriDiaLyDapW":"W Dam is located in Dak Sak village, Dak Mil district. to reach this place you just need to move to Duc Manh junction of Dak Sak village, then go through Nguyen Du school and enjoy the unique yet beautiful scence of Dam W.",
"CanhDepDapW":"This monumental dam possesses impressive beauty with large streams of water splashing on the spillways, creating an extremely impressive scene. The scenery here is as beautiful as any famous waterfall in Dak Nong, so it attracts more and more tourists to visit. You can check-in at W Dak Nong dam in many different locations from on the shore to the bottom of the spillway, the white foaming strips of water are the perfect background for you to freely pose and take pictures. ravishingly beautiful. With the unique beauty of W Dam as well as the love of tourists from all over the world, the site is being planned to become one of Dak Mil's tourist attractions."
}
VI.json:
{
"first_string": "Xin chào! Đây là tin nhắn đầu tiên. ",
"second_string": "Nếu hướng dẫn này hữu ích với bạn, hãy like và đăng ký Reso Coder 😉",
"titleHoTay": "Hồ Tây",
"titleDapW": "Đập W",
"titleNhaNgucDm": "Nhà ngục Đắk Mil",
"GioiThieu": "Giới Thiệu",
"GioiThieuHoTay": "Hồ Tây Đăk Mil là một điểm đến cực kỳ quen thuộc với người dân tại thị trấn nhỏ Đắk Mil, không chỉ có vai trò điều hòa và tạo sự cân bằng về cảnh quan cho thị trấn xinh đẹp này mà đây còn là điểm đến thu hút các bạn trẻ và du khách bởi khung cảnh thơ mộng và yên bình. Có dịp đến với thị trấn nhỏ Đăk Mil của tỉnh Đắk Nông, bạn đừng quên đến check-in tại điểm đến cực hot này nhé. ",
"LichSu":"Lịch Sử",
"LichSuHoTay":"Hồ Tây ở Đăk Mil là hồ nước bán nhân tạo, được hình thành từ những năm 1940. Ban đầu hồ được thực dân Pháp quy hoạch để trữ nước phục vụ cho dự án trồng cafe tại Đắk Nông. Đến năm 1982, thị trấn tiếp tục đầu tư mở rộng mặt hồ để phục vụ tốt hơn nhu cầu tưới tiêu của người dân và đồng thời trở thành nơi dung chứa nước từ các mạch nước ngầm. Cũng chính vì nguyên nhân này mà nước tại đây luôn trong xanh quanh năm. ",
"ViTriDiaLy":"Vị Trí Địa Lý",
"ViTriDiaLyDakMil":"Hồ nằm cách trung tâm của thành phố Gia Nghĩa 67km về hướng Đông Bắc với diện tích hơn 10km với diện tích mặt thoáng là 108ha và nơi sâu nhất đạt 17m. Lý giải về cái tên đặc biệt người dân địa phương cho biết, tên gọi này xuất phát từ vị trí của hồ. Do nằm ở phía Tây của thị trấn nên nhiều người đã gọi thành hồ Tây, lâu thành quen, theo thời gian người ta gắn thêm tên thị trấn hình thành nên tên gọi hồ Tây Đăk Mil như hiện tại. ",
"CanhDep":"Cảnh Đẹp",
"CanhDepDakMil":"Là hồ nước đẹp bậc nhất thị trấn Đăk Mil, nên không khó hiểu khi hồ Tây chính là điểm đến quen thuộc của du khách cũng như người dân địa phương, nhất là với các bạn trẻ. Khung cảnh ở hồ Tây Đăk Mil vừa đẹp lãng mạn lại có chút gì đó hoang sơ dù nằm giữa phố thị. Nhìn từ xa hồ nước này được chia thành hai nhánh, ôm quanh đồi trồng cafe xanh mướt khiến ta liên tưởng đến hình ảnh của một ốc đảo xinh tươi. Những con đường uốn lượn hay những hàng cây xanh mướt xung quanh hồ cũng góp phần tạo nên vẻ đẹp thơ mộng của hồ.",
"GioiThieuDapW":"Dòng chảy và thiết kế độc lạ của đập W ở Đăk Nông khiến các tín đồ du lịch phấn khích lẫn tò mò. Đập nước tuyệt đẹp này là một trong những địa điểm check-in quen thuộc của các bạn trẻ mỗi mùa nước lên. ",
"LichSuDapW":"Đập W Đăk Nông được xây dựng từ năm 1999, với diện tích khoảng 22 ha để phục vụ cho nhu cầu tưới tiêu, cung cấp nước phục vụ đời sống của đồng bào địa phương. Mặc dù mục đích xây dựng ban đầu chỉ là để ngăn nước và phục vụ đời sống và sản xuất tại địa phương, tuy nhiên với thiết kế độc đáo, đập nước này đã trở thành điểm check-in yêu thích của các bạn trẻ địa phương cũng như du khách khi đến với Đăk Mil.",
"ViTriDiaLyDapW":"Đập W Đăk Nông tọa lạc tại xã Đăk Săk, huyện Đăk Mil, để đến được địa điểm này bạn chỉ cần di chuyển đến ngã 3 Đức Mạnh của xã Đăk Săk sau đó đi qua ngôi trường Nguyên Du rồi rẽ vào đập W.",
"CanhDepDapW":"Đập nước hoành tráng này sở hữu vẻ đẹp ấn tượng với những luồng nước lớn bắn tung tóe trên các trụ tràn, tạo nên khung cảnh vô cùng ấn tượng. Khung cảnh ở đây đẹp không kém bất cứ thác nước nổi tiếng nào tại Đăk Nông, nên ngày càng thu hút du khách tìm đến thăm quan. Bạn có thể check-in tại đập W Đăk Nông ở nhiều vị trí khác nhau từ trên bờ đến phía dưới đập tràn, những dải nước tung bọt trắng xóa chính là background hoàn hảo để bạn thỏa sức tạo dáng và thu về những bức ảnh đẹp mê hồn. Trước vẻ đẹp độc đáo của đập W cũng như sự yêu thích của du khách thập phương, địa điểm đang được quy hoạch để trở thành một trong những điểm du lịch của Đắk Mil. "
}
TayLake,DamW,DakMilPrison.dart:
import 'package:flutter/material.dart';
import 'app_localizations.dart';
class DamW extends StatelessWidget {
#override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(AppLocalizations.of(context)!.translate("titleDapW")),
),
body: Scrollbar(
isAlwaysShown: true,
showTrackOnHover: true,
child: SingleChildScrollView(
child: Column(
children: [
printImage("",
170.0),
printTitle(
AppLocalizations.of(context)!.translate("GioiThieu")),
printText(
AppLocalizations.of(context)!.translate("GioiThieuDapW")),
printImage("",
180.0),
printTitle(
AppLocalizations.of(context)!.translate("LichSu")),
printText(
AppLocalizations.of(context)!.translate("LichSuDapW")),
printImage("",
180.0),
printTitle(
AppLocalizations.of(context)!.translate("ViTriDiaLy")),
printText(
AppLocalizations.of(context)!.translate("ViTriDiaLyDapW")),
printImage(
"",
180.0),
printTitle(AppLocalizations.of(context)!.translate("CanhDep")),
printText(
AppLocalizations.of(context)!.translate("CanhDepDapW")),
],
))));
}
Widget printTitle(String text) {
return Container(
child: Text(text,
style: TextStyle(fontSize: 20, color: Colors.grey.shade800)),
padding: EdgeInsets.fromLTRB(0, 50, 50, 0));
}
Widget printText(String text) {
return Container(
child: Text(text,
style: TextStyle(
fontSize: 15,
color: Colors.grey.shade600,
fontFamily: 'Manrope')),
padding: EdgeInsets.fromLTRB(50, 25, 50, 25));
}
Widget printImage(String url, double height) {
return Container(
constraints: BoxConstraints.tightFor(height: height),
child: Image.network(url, fit: BoxFit.fitWidth),
);
}
}
Note:
I have already imported all the package needed,
In fact, TayLake.dart;DamW.dart and DakMilPrison.dart are three different file, but they are basiclly the same format so I just put one of them there. (If you want the code, tell me down below :>)
The localization system is not the exact same as the tutorial, I don't know why but the tutorial is not including null safety so I add a lot of "!" and "?" to fix it (may be that's the reason).
To some up the debugging process:
hard code a different language to check whether the translations are correctly registered
MaterialApp(
locale: Locale('vi'),
...
)
If this works, make sure the language is correctly configured for the system. for Chrome:
Open the Chrome preferences
Search for "Languages"
Find "Order languages based on your preference"
Sort the preferred language to the top.

Websphere server 8.5 not starting

When I try to start the webshere server 8.5, I get the following error:
20-05-26 22:49:12:697 EDT] 000000a7 UserRegistryI E SECJ0330E: Le fichier d'implémentation du registre com.vmd.common.test.userregistry.DummyVmdUserRegistry ne peut pas être chargé en raison de l'exception suivante java.lang.ClassNotFoundException: com.vmd.common.test.userregistry.DummyVmdUserRegistry
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:176)
at com.ibm.ws.security.registry.UserRegistryImpl.createCustomImplInstance(UserRegistryImpl.java:313)
at com.ibm.ws.security.registry.UserRegistryImpl.initialize(UserRegistryImpl.java:183)
at com.ibm.ws.security.config.UserRegistryConfigImpl.do_createRegistryObjects(UserRegistryConfigImpl.java:729)
at com.ibm.ws.security.config.UserRegistryConfigImpl.createRegistryObjects(UserRegistryConfigImpl.java:686)
at com.ibm.ws.security.config.UserRegistryConfigImpl.getUserRegistryImpl(UserRegistryConfigImpl.java:671)
at com.ibm.ws.security.server.SecurityServerImpl.getRegistryImpl(SecurityServerImpl.java:659)
at com.ibm.ws.security.ltpa.LTPAServerObject.getUserRegistry(LTPAServerObject.java:2628)
at com.ibm.ws.security.ltpa.LTPAServerObject.authenticate(LTPAServerObject.java:986)
at com.ibm.ws.security.server.lm.ltpaLoginModule.login(ltpaLoginModule.java:657)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:613)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:796)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:211)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:710)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:708)
at java.security.AccessController.doPrivileged(AccessController.java:280)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:707)
at javax.security.auth.login.LoginContext.login(LoginContext.java:604)
at com.ibm.ws.security.auth.JaasLoginHelper.jaas_login(JaasLoginHelper.java:357)
at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:4759)
at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:4385)
at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:4381)
at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:3973)
at com.ibm.ws.management.util.SecurityHelper.authenticate(SecurityHelper.java:305)
at com.ibm.ws.management.connector.ipc.CallRouter.basicAuth(CallRouter.java:532)
at com.ibm.ws.management.connector.ipc.CallRouter.route(CallRouter.java:120)
at com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink.doWork(IPCConnectorInboundLink.java:360)
at com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink$IPCConnectorReadCallback.complete(IPCConnectorInboundLink.java:602)
at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1784)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1814)
[20-05-26 22:49:12:697 EDT] 000000a7 UserRegistryC E SECJ0281E: Erreur de création de l'objet registre d'utilisateurs. L'exception est java.lang.ClassNotFoundException: com.vmd.common.test.userregistry.DummyVmdUserRegistry
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:176)
at com.ibm.ws.security.registry.UserRegistryImpl.createCustomImplInstance(UserRegistryImpl.java:313)
at com.ibm.ws.security.registry.UserRegistryImpl.initialize(UserRegistryImpl.java:183)
at com.ibm.ws.security.config.UserRegistryConfigImpl.do_createRegistryObjects(UserRegistryConfigImpl.java:729)
at com.ibm.ws.security.config.UserRegistryConfigImpl.createRegistryObjects(UserRegistryConfigImpl.java:686)
at com.ibm.ws.security.config.UserRegistryConfigImpl.getUserRegistryImpl(UserRegistryConfigImpl.java:671)
at com.ibm.ws.security.server.SecurityServerImpl.getRegistryImpl(SecurityServerImpl.java:659)
at com.ibm.ws.security.ltpa.LTPAServerObject.getUserRegistry(LTPAServerObject.java:2628)
at com.ibm.ws.security.ltpa.LTPAServerObject.authenticate(LTPAServerObject.java:986)
at com.ibm.ws.security.server.lm.ltpaLoginModule.login(ltpaLoginModule.java:657)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:613)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:796)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:211)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:710)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:708)
at java.security.AccessController.doPrivileged(AccessController.java:280)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:707)
at javax.security.auth.login.LoginContext.login(LoginContext.java:604)
at com.ibm.ws.security.auth.JaasLoginHelper.jaas_login(JaasLoginHelper.java:357)
at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:4759)
at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:4385)
at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:4381)
at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:3973)
at com.ibm.ws.management.util.SecurityHelper.authenticate(SecurityHelper.java:305)
at com.ibm.ws.management.connector.ipc.CallRouter.basicAuth(CallRouter.java:532)
at com.ibm.ws.management.connector.ipc.CallRouter.route(CallRouter.java:120)
at com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink.doWork(IPCConnectorInboundLink.java:360)
at com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink$IPCConnectorReadCallback.complete(IPCConnectorInboundLink.java:602)
at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1784)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1814)
.
[20-05-26 22:49:12:698 EDT] 000000a7 RoleBasedAuth A SECJ0305I: Echec du contrôle d'autorisation basée sur le rôle pour admin-authz opérations Server : getState. L'utilisateur UNAUTHENTICATED (ID unique : UNAUTHENTICATED) n'a pas reçu un des rôles requis suivants : deployer, operator, configurator, monitor, administrator, adminsecuritymanager, auditor.
I looked for a solution in IBM pages and over the net but I am not able to find a solution for now,
do you have any suggestion to resolve this please ?
Assuming that you are trying to implement your custom user registry by class com.vmd.common.test.userregistry.DummyVmdUserRegistry, which you didn't describe in the question, you have to put that class to the AppServer\lib\ext folder, as it clearly cannot be found right now by server infrastructure.

<BEA-000403> <IOException occurred on socket: Socket[addr=/127.0.0.1,port=55554,localport=7001]

Anyone have a clue about this exception I got when starting Weblogic 12 :
<25 sept. 2019 09 h 28 GMT> <Error> <Socket> <BEA-000403> <IOException occurred on socket: Socket[addr=/127.0.0.1,port=55554,localport=7001]
java.io.IOException: Une connexion établie a été abandonnée par un logiciel de votre ordinateur hôte.
java.io.IOException: Une connexion établie a été abandonnée par un logiciel de votre ordinateur hôte.
at sun.nio.ch.SocketDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
at sun.nio.ch.IOUtil.read(IOUtil.java:197)
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:379)
Truncated. see log file for complete stacktrace
>
I didn't find any similar issue!
Thanks

Error Setting WildFly 10 Resource Adapter (wmq.jmsra.rar)

environment:
Server IBM MQ 9, JVM 8, Wildfly 10
Error log wildfly:
2017-09-15 10:53:33,955 WARN [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (default task-16) IJ000604: Throwable while attempting to get a new connection: null: com.ibm.mq.connector.DetailedResourceException: MQJCA1011: No se ha podido asignar una conexión JMS., error code: MQJCA1011 Un error interno ha hecho que falle un intento de asignar una conexión. Consulte la excepción enlazada para obtener detalles de la anomalía.
at com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:169)
at org.jboss.remoting3.EndpointImpl$TrackingExecutor$1.run(EndpointImpl.java:731)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.ibm.msg.client.jms.DetailedJMSException: JMSWMQ0018: No se ha podido conectar con el gestor de colas 'MQ.MQAWSHOM.01' con modalidad de conexión 'Client' y nombre de host '172.16.34.210(1414)'.
Compruebe que el gestor de colas esté iniciado y, si se está ejecutando en modalidad de cliente, compruebe que haya un escucha en ejecución. Consulte la excepción enlazada para obtener más información.
at com.ibm.msg.client.wmq.common.internal.Reason.reasonToException(Reason.java:595)
at com.ibm.msg.client.wmq.common.internal.Reason.createException(Reason.java:215)
at com.ibm.msg.client.wmq.internal.WMQConnection.<init>(WMQConnection.java:422)
at com.ibm.msg.client.wmq.internal.WMQXAConnection.<init>(WMQXAConnection.java:67)
at com.ibm.msg.client.wmq.factories.WMQXAConnectionFactory.createV7ProviderConnection(WMQXAConnectionFactory.java:188)
at com.ibm.msg.client.wmq.factories.WMQConnectionFactory.createProviderConnection(WMQConnectionFactory.java:7814)
at com.ibm.msg.client.wmq.factories.WMQXAConnectionFactory.createProviderXAConnection(WMQXAConnectionFactory.java:98)
at com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl.createXAConnectionInternal(JmsConnectionFactoryImpl.java:354)
at com.ibm.mq.jms.MQXAConnectionFactory.createXAConnection(MQXAConnectionFactory.java:131)
at com.ibm.mq.connector.ConnectionBuilder.createConnection(ConnectionBuilder.java:134)
... 90 more
Caused by: com.ibm.mq.MQException: JMSCMQ0001: La llamada de IBM MQ ha fallado con código de terminación '2' ('MQCC_FAILED') razón '2058' ('MQRC_Q_MGR_NAME_ERROR').
at com.ibm.msg.client.wmq.common.internal.Reason.createException(Reason.java:203)
... 98 more
2017-09-15 10:53:33,958 INFO [stdout] (default task-16) MQJCA0002: Se ha producido una excepción en la capa IBM MQ. Consulte la excepción enlazada para obtener detalles.
Why am I receiving this error?
The error is this:
Caused by: com.ibm.mq.MQException: JMSCMQ0001: La llamada de IBM MQ ha fallado con código de terminación '2' ('MQCC_FAILED') razón '2058' ('MQRC_Q_MGR_NAME_ERROR').
This indicates that the queue manager listening at 172.16.34.210(1414) is not called MQ.MQAWSHOM.01. Check that the IP and port are correct for the queue manager you want to connect to, if those are correct check for any typos in the name of the queue manager you are specifying.
If your do not care what queue manager name is listening on the IP and Port specified you can prefix the queue manager name with a * character, this will instruct the API to disregard the name of the queue manager. For example: *MQ.MQAWSHOM.01.

EAR not Deploying (org.eclipse.persistence.exceptions.EntityManagerSetupException)

I'm using Websphere, JSF 1.2, JPA (Eclipselink)
On my project I have the following structure:
-APHP0000_EJB
.APHP0000FacadeEJB.java
.Controllers (Managers)
.persistence.xml
-APHP0000_EJBClient
.APHP0000FacadeEJBLocal.java
.APHP0000FacadeEJBRemote.java
.Entyties
.TO
-APHP0000_EJBEAR
-APHP0000_Web (depends on APHP0000_EJBClient )
.jsp
.ManageBeans
-APHP0000_WebEAR
-->persistence.xml
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
<persistence-unit name="APHP0000_EJB" transaction-type="JTA">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<jta-data-source>java:comp/env/ds_aphp_web</jta-data-source>
<jar-file>APHP0000_EJBClient.jar</jar-file>
<class>su.aphpweb.jpa.entities.UnidadeProdutiva</class>
<class>su.aphpweb.jpa.entities.TipoParadaN4</class>
...
<class>su.aphpweb.jpa.entities.MaquinaProdutiva</class>
<properties>
<property name="eclipselink.logging.level" value="FINE" />
<property name="eclipselink.target-server" value="org.eclipse.persistence.platform.server.was.WebSphere_7_Platform" />
<property name="javax.persistence.jtaDataSource" value="jdbc/ds_aphp_web" />
<property name="eclipselink.cache.shared.default" value="false" />
<property name="eclipselink.logging.parameters" value="true" />
</properties>
</persistence-unit>
</persistence>
When I Start my container, my APHP0000_EJBEAR is deployed, but my APHP0000_WebEAR is not. and get the following exception. Please, I'm stuck on this thing since last week.
[19/12/12 13:33:49:898 BRST] 00000006 JPAPUnitInfo E CWWJP0015E: Ocorreu um erro no provedor de persistência org.eclipse.persistence.jpa.PersistenceProvider quando ele tentou criar factory de gerenciador de entidade do contêiner para a unidade de persistência APHP0000_EJB. Ocorreu o seguinte erro: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Predeployment of PersistenceUnit [APHP0000_EJB] failed.
Internal Exception: java.lang.RuntimeException: java.io.FileNotFoundException: D:\Equipe\APHP\APHP0000_EJB\ejbModule\APHP0000_EJBClient.jar (O sistema não pode encontrar o arquivo especificado.)
[19/12/12 13:33:49:898 BRST] 00000006 JPAPUnitInfo E CWWJP0009E: O servidor não pode criar um depósito de informações EntityManagerFactory para a unidade persistente APHP0000_EJB do provedor org.eclipse.persistence.jpa.PersistenceProvider no módulo file:/D:/Equipe/APHP/APHP0000_EJB/ejbModule/.
[19/12/12 13:33:49:914 BRST] 00000006 EJBContainerI I WSVR0037I: Iniciando o jar do EJB: APHP0000_EJB.jar
[19/12/12 13:33:49:914 BRST] 00000006 EJBContainerI I CNTR0167I: O servidor está ligando a interface su.aphpweb.jpa.entities.controller.ResponsParadaUnidManagerRemote do enterprise bean ResponsParadaUnidManager no módulo APHP0000_EJB.jar do aplicativo APHP0000_WebEAR. O local de ligação é: ejb/APHP0000_WebEAR/APHP0000_EJB.jar/ResponsParadaUnidManager#su.aphpweb.jpa.entities.controller.ResponsParadaUnidManagerRemote
[19/12/12 13:33:49:914 BRST] 00000006 EJBContainerI I CNTR0167I: O servidor está ligando a interface su.aphpweb.jpa.entities.controller.UnidadeMotivoTipoManagerRemote do enterprise bean UnidadeMotivoTipoManager no módulo APHP0000_EJB.jar do aplicativo APHP0000_WebEAR. O local de ligação é: ejb/APHP0000_WebEAR/APHP0000_EJB.jar/UnidadeMotivoTipoManager#su.aphpweb.jpa.entities.controller.UnidadeMotivoTipoManagerRemote
[19/12/12 13:33:49:914 BRST] 00000006 ComponentData E CWMDF0015E: O carregador de classes não pode carregar a interface su.aphpweb.negocio.ejb.APHP0000FacadeEJBRemote no arquivo su.aphpweb.negocio.ejb.APHP0000FacadeEJB Enterprise JavaBeans (EJB).
[19/12/12 13:33:49:914 BRST] 00000006 EJBContainerI E WSVR0040E: Falha no addEjbModule para APHP0000_EJB.jar [class com.ibm.ws.runtime.component.DeployedEJBModuleImpl]
com.ibm.ejs.container.EJBConfigurationException: CWMDF0015E: O carregador de classes não pode carregar a interface su.aphpweb.negocio.ejb.APHP0000FacadeEJBRemote no arquivo su.aphpweb.negocio.ejb.APHP0000FacadeEJB Enterprise JavaBeans (EJB).
at com.ibm.ws.metadata.ComponentDataObject.setInterfacesFromImplements(ComponentDataObject.java:783)
at com.ibm.ws.metadata.ComponentDataObject.finishCDO(ComponentDataObject.java:424)
at com.ibm.ws.runtime.component.EJBContainerImpl.startModule(EJBContainerImpl.java:2609)
at com.ibm.ws.runtime.component.EJBContainerImpl.start(EJBContainerImpl.java:3827)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1120)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1313)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:619)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:938)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:723)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(ApplicationMgrImpl.java:1264)
at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:4476)
at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:4654)
at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1269)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2041)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:437)
at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:122)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:380)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:651)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:613)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1175)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:243)
at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1086)
at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:967)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773)
at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1320)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1213)
at com.ibm.ws.management.application.AppManagementImpl._startApplication(AppManagementImpl.java:1284)
at com.ibm.ws.management.application.AppManagementImpl.startApplication(AppManagementImpl.java:1180)
at com.ibm.ws.management.application.AppManagementImpl.startApplication(AppManagementImpl.java:1140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:243)
at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1086)
at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:967)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773)
at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1320)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1213)
at com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:181)
at com.ibm.ws.management.connector.rmi.RMIConnectorService.invoke(RMIConnectorService.java:282)
at com.ibm.ws.management.connector.rmi._RMIConnectorService_Tie.invoke(_RMIConnectorService_Tie.java:395)
at com.ibm.ws.management.connector.rmi._RMIConnectorService_Tie._invoke(_RMIConnectorService_Tie.java:160)
at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:622)
at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:475)
at com.ibm.rmi.iiop.ORB.process(ORB.java:513)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:1574)
at com.ibm.rmi.iiop.Connection.respondTo(Connection.java:2841)
at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2714)
at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:63)
at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:118)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)
The error seems to indicate that it can't find the jar file, APHP0000_EJBClient.jar. Is the jar in the ear? It needs to be.
You could try removing the tag, and just list the entity classes (as long as there are on the classpath they will be found).
For EJB Exception :CWMDF0015E
It is necessary to click in the paramètrage of publication for WebSphere Application Server of Eclipse IDE "to execute the server and the resources on the server"
and run a server