發表文章

Liferay Deployment

圖片
1 I am trying to deploy few liferay portlets in my local and I keep getting this exception. Here is the log of the error: "classLoader findResourceInternal INFO: Illegal access: this web application instance has been stopped already. Could not load META-INF/services/org.apache.axis.EngineConfigurationFactory. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact. ERROR [ContainerBackgroundProcessor[StandardEngine[Catalina]]][PortalClassLoaderServlet:79] javax.servlet.ServletException: java.lang.NullPointerException" tomcat liferay share | improve this question asked Nov 15 '18 at 16:05 Vineela Thonupunuri Vineela Thonupunuri 70 10 Need more information - exact Liferay version, and code, best an MCVE – Olaf Kock Nov 17 '18 at 21:51 Liferay 6.1, I cannot upload t...

Running room DB inside AsyncTask gives an error

圖片
0 Hi I am running some operation that copies data drom Firebase DB to local room DB. Here is doInBackground part from my AsyncTask. @Override protected Void doInBackground(Void... voids) contactList = getContactListFromPhone(); DatabaseReference databaseReference = FirebaseDatabase.getInstance().getReference("users"); databaseReference.addListenerForSingleValueEvent(new ValueEventListener() @Override public void onDataChange(@NonNull DataSnapshot dataSnapshot) for (DataSnapshot userSnapshot : dataSnapshot.getChildren()) User user = userSnapshot.getValue(User.class); if (contactList.containsKey(user.getPhone())) UserDB userDB = new UserDB(); userDB.setName(user.getName()); userDB.setPhone(user.getPhone()); userDB.setToken(user.getToken()); //adding to database DatabaseClient.getInstance(context.getApplicationContext()).getAppDatabase().userDao().insert(userDB); @Override public void onCancelled(@NonNull DatabaseError databaseError) ); re...